Pin Sleep, also known as Pin Hibernate, is one of the sleep modes available on XBee devices. It allows you to put the XBee module into a low-power state based on a pin control, reducing energy consumption when the device is not actively transmitting or receiving data.
Pin Sleep mode is ideal for applications where the XBee needs to be woken up manually or by an external source, such as a microcontroller or sensor, triggered by a specific event.
Enable Pin sleep mode
To enable Pin Sleep mode on the XBee 3 BLU device, configure the SM
(Sleep Mode) setting with 1
.
Enter/Exit sleep mode
When the XBee device is configured in Pin Sleep mode (SM
= 1
), the device enters or exits its sleep state based on the control of the DTR/SLEEP_RQ
pin:
-
Entering sleep: Asserting or pulling the
DTR/SLEEP_RQ
pin high (connecting it to 3.3V) puts the XBee module into sleep mode, reducing power consumption significantly. -
Exiting sleep: De-asserting or pulling the
DTR/SLEEP_RQ
pin low wakes the XBee module, resuming normal operations.
Alternatively, you can use the SPI_SSEL pin to enter/exit sleep mode if the setting D8 is configured with 0 .
For more information about pins used to manage and monitor sleep and wake states, refer to Sleep pins.
|
Check sleep status
The ON_SLEEP
pin allows external devices, such as microcontrollers, to check whether the XBee is in sleep mode or awake:
-
Low indicates that the device is low-power state (asleep).
-
High signals that the XBee is awake and can transmit or receive data.
Alternatively, you can use the CTS pin to check the XBee’s sleep status.
For more information about pins used to manage and monitor sleep and wake states, refer to Sleep pins.
|