AT commands Sleep commands
XBee®/XBee-PRO SX RF Module User Guide
105
Cyclic Sleep. This allows external circuitry to sleep longer than the SP time.
During cycles when ON_SLEEP is de-asserted, the device wakes up and checks for any serial or RF
data. If it receives any such data, then it asserts the ON_SLEEP line and the device wakes up fully.
Otherwise, the device returns to sleep after checking.
This command does not work with synchronous sleep devices.
Parameter range
1 - 0xFFFF
Default
1
Example
Set to 1 to set ON_SLEEP high after each SP time (default).
If SN = 3, the ON_SLEEP line asserts only every third wakeup; SN = 9, every ninth wakeup; and so
forth.
SP (Sleep Time)
Sets or displays the device's sleep time. This command defines the amount of time the device sleeps
per cycle.
Parameter range
0x1 - 0x15F900 (x 10 ms)
Default
0x12C (3 seconds)
ST (Wake Time)
Sets or displays the wake time of the device.
For devices in asynchronous sleep, ST defines the amount of time that a device stays awake after it
receives RF or serial data.
For devices in synchronous sleep, ST defines the amount of time that a device stays awake when
operating in cyclic sleep mode. The command adjusts the value upwards automatically if it is too small
to function properly based on other settings.
For devices in synchronous sleep, the minimum wake time is a function of MT, SP, NH, NN, and
platform dependent values. If you increase SP, NH, NN, or MT, the ST value raises automatically. The
maximum value is one hour (0x36EE80 ms).
Parameter range
0x1 - 0x36EE80 (x 1 ms)
Default
0xD08 (3.3 seconds)
WH command
Sets or displays the wake host timer value. You can use WH to give a sleeping host processor
sufficient time to power up after the device asserts the ON_SLEEP line.