- Sun Nov 09, 2014 1:16 pm
#2376
alonewolfx2 wrote:Can you add powersave functions like deepsleep or sleep
Done, check the git repo. Binaries are updated as well. I've added gpio command, so you can read/write GPIO from commandline. So far only GPIO0 and GPIO2 are MUXed as GPIO on startup. We need a proper GPIOMUX command.
ifconfig now only displays info on active interfaces and displays iface state as well.
Regarding deep sleep - my modules don't seem to exit correctly out of deep sleep. I can see they get reset after the timeout, but instead of booting I get garbage that looks like as if my module has entered bootloader mode.
I found no references to 'normal' sleep in the doc, so I suggest you can just bring down the wireless interface with 'iwmode NONE' and that should be sufficient. It will disconnect from your base station.
The summary of current commands is below:
Code: Select allhelp - Show this message
apconfig - Setup Access Point.
apconfig name OPEN/WEP/WPA_PSK/WPA2_PSK/WPA_WPA2_PSK [password]
iwconnect - Join a network/Display connection status.
iwconnect ssid password
iwmode - Get/set wireless mode. Available modes: NONE, STA, AP, APSTA
iwmode STA
iwscan - Scan for available stations
ifconfig - Show/setup network interfaces
ifconfig [iface] [ipaddr] [netmask] [gateway]
ifconfig sta0 192.168.0.1 255.255.255.0 192.168.0.8
argtest - Print out argc/argv
deepsleep - Enter deep sleep for some microseconds
deepsleep 10000
reset - Soft-reboot the device
meminfo - Display memory information
version - Display version information and copyright
gpio - Control gpio lines. gpio mode line [value]
gpio in 0
gpio out 0 1