AT commands
Sleep commands
XBee Wi-Fi RF Module User Guide
178
Sleep commands
The following AT commands are sleep commands.
SM (Sleep Mode)
Sets or reads the sleep mode of the device.
The sleep mode determines how the device enters and exits a power saving sleep.
Sleep mode is also affected by the
SO
command, option bit 6. See
for more information
about sleep modes.
Parameter range
0, 1, 4, 5
Parameter Description
0
Normal. In this mode the device never sleeps.
1
Pin Sleep. In this mode
the device honors the SLEEP_RQ pin. Set
to the sleep request
function:
1
.
4
Cyclic Sleep. In this mode
the device repeatedly sleeps for the value specified by
SP
and spends
ST
time awake.
5
Cyclic Sleep with Pin Wake. In this mode the device acts as in Cyclic Sleep but does not
sleep if the SLEEP_RQ pin is inactive, allowing the device to be kept awake or woken by
the connected system.
Default
0
SP (Sleep Period)
This value determines how long the device sleeps, up to 24 hours or 86,400 seconds. This corresponds
to 0x83d600 in 10 ms units.
Parameter range
1 - 0x83D600 (x 10 ms)
Default
0xC8 (2 seconds)
SO (Sleep Options)
Set or read the sleep mode options.
Bit
Option
0x40
Stay associated with AP during sleep. Draw more current during sleep with this option
enabled, but also avoid data loss.