Sleep Mode (SM)
The 802.15.4 protocol contains four basic sleep behaviors which can be divided into two categories: pin-controlled sleep modes and cyclic sleep modes. By default, sleep mode is disabled (SM = 0) so the radio will always be awake.
Tip Once you enable sleep mode, XCTU may display a warning message if you try to communicate with the module while it is sleeping (for example, to change the value of a setting). Press the reset button to wake it up.
Pin-controlled sleep mode
The Pin Hibernate (SM = 1) mode is controlled by the Sleep_RQ pin. In this mode, the XBee module will sleep when the Sleep_RQ (pin 9) is asserted or pulled high by connecting it to 3.3 volts. For the typical power-down current and wake-up times, see the legacy XBee/XBee-PRO 802.15.4 RF Module User Guide or the XBee/XBee-PRO S2C 802.15.4 RF Module User Guide.
Cyclic sleep modes
XBees have the ability to sleep and wake on a fixed schedule. This is the most common method of conserving power when a radio is being used as a simple sensor node. Within the cyclic sleep category, XBees offer two modes:
- Cyclic Sleep Remote (SM = 4) mode allows modules to periodically check for RF data.
- Cyclic Sleep Remote with Pin Wake-up (SM = 5) is the same as Cyclic Sleep Remote but with the option of also waking the module using physical pin 9.
In these two modes, you must configure the Time Before Sleep (ST) and Cyclic Sleep Period (SP) settings (described below). For the typical power-down current and wake-up times, see the legacy XBee/XBee-PRO 802.15.4 RF Module User Guide or the XBee/XBee-PRO S2C 802.15.4 RF Module User Guide.
Time before sleep (ST)
Defines the period of inactivity of the module (during which no data is sent or received) before returning to cyclic sleep. If the XBee is transmitting or receiving a message, it will not go to sleep. This setting is only applicable if the sleep mode is 4 or 5.
Cyclic sleep period (SP)
Defines the length of time an XBee remains asleep. This setting is only applicable if the sleep mode is 4 or 5.
For bidirectional communication with sleep modes, other protocols such as Zigbee or DigiMesh may provide more appropriate functionality.
Sleep-related pins
The XBee modules have two special pins related to the sleep mode: pin 9 and pin 13.
The Sleep control or sleep request pin, physical pin 9 on the XBee, is used in pin-controlled sleep modes to put the module to sleep when it is asserted or pulled high by connecting it to 3.3 volts.
The On/Sleep pin, physical pin 13, goes high when the module is awake and low when it is sleeping. Generally, this pin is connected to an LED as a visual indication of the module’s current sleep state or to a microcontroller input to wake up the control unit and/or provide a simple way for the control unit to know if the radio is awake or sleeping.
Congratulations! You have just completed the section, so you are ready to do the Example: enable sleep mode.
PDF
