nrf91-series

Controlling hardware with sleep notifications

Any sleep type can be used to control hardware. The threshold for the sleep length must be set to notify only sleeps where controlling the hardware saves power or resources can be allocated for other use.

The following command example subscribes sleep notifications with a 1000 ms prewarning and a 60000 ms threshold:

AT%XMODEMSLEEP=1,1000,60000
OK

The following command example activates the modem:

AT+CFUN=1
OK

The following notification example indicates that the modem sleeps for 120 seconds:

%XMODEMSLEEP: <type>,120000

The following notification example is a prewarning of the end of the modem sleep 1000 ms before the sleep ends:

%XMODEMSLEEP: <type>,1000

The following notification example indicates that the modem sleep has ended:

%XMODEMSLEEP: <type>,0