Sleep support
Sleep conditions
Digi XBee® 3 802.15.4 RF Module User Guide
126
Sleep conditions
Since instructions stop executing while the device is sleeping, it is important to avoid sleeping when
the device has work to do. For example, the device will not sleep if any of the following are true:
1. The device is operating in Command mode, or in the process of getting into Command mode
with the
+++
sequence.
2. The device is processing AT commands from API mode
3. The device is processing remote AT commands
4. Something is queued to the serial port and that data is not blocked by RTS flow control
If each of the above conditions are false, then sleep may still be blocked in these cases:
1. Enough time has not expired since the device has awakened.
a. If the device is operating in pin sleep, the amount of time needed for one character
to be received on the UART is enough time.
b. If the device is operating in cyclic sleep, enough time is defined by a timer. The
duration of that timer is:
i. defined by
ST
if in
SM
5 mode and it is awakened by a pin
ii. 30 ms to allow enough time for a poll and a poll response
iii. 750 ms to allow enough time for association, in case that needs to
happen
c. In addition, the wake time is extended by an additional
ST
time when new OTA data
or serial data is received.
2. Sleep Request pin is not asserted when operating in pin sleep mode
3. Data is waiting to be sent OTA.