User manual

WiFly GSX/EZX
www.rovingnetworks.com WiFly-RN-UM 11/9/2011
809 University Avenue Los Gatos, CA 95032 Tel (408) 395-6539 info@RovingNetworks.com
~ 20 ~
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 GPIO 8
The following table describes how the WiFly module can be woken on
sensor input.
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
Setting the trigger value to 0x20, will enable putting the module to sleep
when GPIO8 is pulled high. To enable this feature, the command is
set sys trigger 0x20. This command makes GPIO 8 an interrupt pin and puts
the module to sleep as soon as it is pulled HIGH irrespective of the state in which
the module is. Even if the module is joining a network or has an active TCP
connection open, it will go to sleep immediately.
This command is useful in cases such as when the module is failing to join
a network because it is out of range (or any other reason) or if it is
required to put the module to sleep really quick.
NOTE: GPIO8 must be low on power up and stay low until it is
desired to put the module to sleep.
NOTE: Setting the system trigger value to 0x10 enables WPS
functionality. WPS is disabled by default.
set sys value <hex value> sets the default value of the GPIO outputs upon power up. The GPIOs that
are configured as outputs can either be driven HIGH or LOW upon power
up or when the module wakes from sleep. The default power up states can
be set ONLY for the GPIOs set as outputs.
Setting the GPIO value to 1 sets the default power-up state of that GPIO
HIGH and setting the GPIO value to 0 sets the default power-up state to
be LOW.