$SL - Sleep mode
This command puts the device into a low-power sleep mode.
$SL [S=<seconds>|U=<[YYYY-MM-DD ]hh:mm:ss>]*xx
Sleep for this many seconds
U=<[YYYY-MM-DD ]hh:mm:ss>
Sleep until date (optional) and time
Returns one of:
Sleep period accepted, device is now
non-responsive
Device has woken from selected sleep mode
Time not yet set from GPS
Invalid number of seconds or date/time value
No S or U parameter is present
Attempt to sleep before time is set
The S parameter is the number of seconds to sleep. This value may range from 5 to 31536000
(approximately 1 year) seconds. A value not within this range will return $SL ERR,BADPARAM. If
the command is accepted, the device will emit $SL OK and enter sleep mode for the requested
duration.
The U parameter is a time and optional date the device should sleep until and then wake. If the
date is not specified and the time to sleep until is less than the current time, the time is
presumed to be the next day. For example, if the current time is 11:00:00 and $SL
U=09:00:00 is issued, the device will wake 22 hours from now. If a date and time are specified,
and that date/time is before the current date/time, $SL WAKE will be immediately issued.
November 2021 Swarm M138 Modem Manual - Rev 1.00 67/77