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
~ 38 ~
Closing the TCP connection:
In TCP-Client AND TCP-Server mode (default mode), there is also a disconnect timer. This timer can be
used to automatically close a TCP connection after a specified number of seconds with no transmit or
receive data.
set comm idle <secs>
For example, to close the TCP connection after 5 seconds of inactivity, use the set comm idle 5 command.
The default value of the comm idle timer is 0, never disconnect on idle.
10.2. Wake on Sensor Input
SENSE 0 to 3 inputs wake the module from sleep. These pins have a small current source that is activated in
sleep mode. This source is approximately 100nA, and will cause the input to float up to about 1.2VDC. If
SENSE1 for example, is enabled, pulling the SENSE1 pin to GROUND will wake the device.
To enable Sensors to wake the module, use the command set sys trigger <mask>. The value is a bit-
mapped setting of each sensor. To wake on sensor pin 2, use set sys trig 4. Setting the value to 0 disables
all sensors pins.
The table below describes the values to wake up on individual sensor inputs.
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
WARNING: Under no conditions should the voltage on any sensor input exceed 1.2VDC. Permanent
damage to the module will result.
Sensor inputs are rated 1.2VDC maximum. You must use a resistor divider when driving a sensor pin from
the other 3V pins such as RX. A resistor divider network with a minimum of 24K in series and 10K to
ground from the UART RX or CTS pin should be used.
An open drain FET is a good device to tie to the SENSE pin. The threshold is about 500mV. Additional
pullup to 1.2VDC may be used if the circuit has an impedance (due to leakage current) of less than 5Mohms
(500mv / 100nA). SENSE 0 to 3 pins that are not used should be left unconnected.