User`s guide

RN-WIFLYCR-UG
www.rovingnetworks.com Version 1.2r 4/30/13 page 26
2.3.55 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 2-10 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.
Tabl e 2-11 describes how you can wake the module using sensor input.
Setting the trigger value to 0x20 (i.e., using <mask>) puts the module to sleep when
GPIO8 is pulled high. To enable this feature, use the set sys trigger 0x20 command.
This command makes GPIO8 an interrupt pin and puts the module to sleep as soon as
it is pulled high, regardless of the module’s state; the module goes to sleep even if it is
associating with a network or has an open, active TCP connection.
This command is useful for when the module is failing to associate with network
because it is out of range (or for any other reason), or if the module must be put to sleep
quickly.
Default: 0x41
Example: set sys trigger 0x8 // Enable wake on sensor input 3
2.3.56 set sys value <mask>
This command sets the default value of the GPIO pins’ outputs upon power-up, where
<mask> is a hex number representing a bit-mapped register. The GPIO pins that are
configured as outputs can be driven high or low on power-up or when the module
wakes from sleep. The default power-up states can be set ONLY for the GPIO pins that
are set as outputs. Setting the value to 1 makes the default power-up state high; setting
the value to 0 makes the default power-up state low.
TABLE 2-10: 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.
5 Enable sleep on GPIO8.
TABLE 2-11: 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: GPIO8 must be low on power up and stay low until you want to put the mod-
ule to sleep.