Global Navigation Satellite System (GNSS) can interrupt and resume an ongoing sleep.
The following command example subscribes sleep notifications with a 5000 ms prewarning and a 60000 ms threshold:
AT%XMODEMSLEEP=1,5000,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 due to Extended Discontinuous Reception (eDRX):
%XMODEMSLEEP: 2,120000
The following notification example indicates that GNSS activity interrupts sleep:
%XMODEMSLEEP: 5,0
The following notification example indicates that sleep is resumed after GNSS activity and that the remaining sleep period is 70 seconds:
%XMODEMSLEEP: 6,70000
The following notification example indicates that GNSS activity interrupts sleep:
%XMODEMSLEEP: 5,0
The following notification example is a prewarning of the end of the sleep 5000 ms before the sleep ends:
%XMODEMSLEEP: 2,5000
The following notification example indicates that sleep is resumed and that the remaining sleep period is 2 seconds:
%XMODEMSLEEP: 6,2000
The following notification example indicates that the modem sleep has ended:
%XMODEMSLEEP: 2,0