www.rovingnetworks.com
Version 1.0r 9/21/2012
23
RN -W IFLYCR -U M
set sys sleep <
value
>
This command sets the sleep timer, where <
value
> is a decimal number. The sleep timer is the time (in seconds)
after which the module goes to sleep. This timer is disabled during an open TCP connection. When the TCP
connection is closed, the module counts down and puts the module to sleep after <
value
> seconds. Setting the value
to 0 disables the sleep timer, and the module will not go to sleep based on this counter.
NOTE:
Be sure to set the wake timer before issuing the sleep timer if you are not using an external wake up
signal; otherwise, the module will never wake up.
See “System & Auto-Connect Timers” on page 48 for more details on using system timers.
Default:
0
Example:
set sys sleep 5
// Module sleeps 5 s after TCP connection closes
set sys trigger <
flag
>
or
<
mask
>
With this parameter setting, the module wakes from sleep state using the sensor input 0, 1, 2, and 3, where <
flag
> is
a decimal number referring to a bit-mapped register as shown in Table 8 and <
mask
> is a hex number. You use
either <
flag
> or <
mask
> with this parameter setting. This command sets the sensor input(s) to wake on (0 to 3).
Setting <
flag
> to 0 disables wake on sensor inputs.
Table 8. set sys trigger Command Bit-Mapped Register
Bit Position
Description
0
Trigger sensor input 0.
1
Trigger sensor input 1.
2
Trigger sensor input 2.
3
Trigger sensor input 3.
4
Enable WPS function.
5
Enable sleep on GPIO8.
Table 9 describes how you can wake the module using sensor input.
Table 9. Sensor Input Trigger Values
Wake on Sensor Input
Value
Command
0
1
set sys trigger 1
1
2
set sys trigger 2
2
4
set sys trigger 4
3
8
set sys trigger 8
NOTE:
Setting the system trigger value to
0x10
enables WPS functionality. WPS is disabled by default.