SM (Sleep Mode)

This command applies to the XBee 3 Cellular LTE-M/NB-IoT.

Sets or displays the sleep mode of the device.

The sleep mode determines how the device enters and exits a power saving sleep.

In addition to the sleep modes listed below, sleep can be controlled directly by a MicroPython program. See the Power management in MicroPython section of the Digi MicroPython Programming Guide. With direct control additional power savings can be realized through intelligent sleep upon immediate completion of application tasks and dynamic sleep intervals can be used to respond to changing needs.

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 D8 (DIO8/SLEEP_REQUEST) 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