WIFLY GSX WIFLY EZX
WiFly GSX/EZX
WiFly GSX/EZX
- No tags were found...
You also want an ePaper? Increase the reach of your titles
YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.
WiFly <strong>GSX</strong>/<strong>EZX</strong><br />
www.rovingnetworks.com WiFly-RN-UM 4/8/2011<br />
Closing the TCP connection:<br />
In TCP-Client AND TCP-Server mode (default mode), there is also a disconnect timer. This timer can be<br />
used to automatically close a TCP connection after a specified number of seconds with no transmit or<br />
receive data.<br />
set comm idle <br />
For example, to close the TCP connection after 5 seconds of inactivity, use the set comm idle 5 command.<br />
The default value of the comm idle timer is 0, never disconnect on idle.<br />
10.2. Wake on Sensor Input<br />
SENSE 0 to 3 inputs wake the module from sleep. These pins have a small current source that is activated in<br />
sleep mode. This source is approximately 100nA, and will cause the input to float up to about 1.2VDC. If<br />
SENSE1 for example, is enabled, pulling the SENSE1 pin to GROUND will wake the device.<br />
To enable Sensors to wake the module, use the command set sys trigger . The value is a bitmapped<br />
setting of each sensor. To wake on sensor pin 2, use set sys trig 4. Setting the value to 0 disables<br />
all sensors pins.<br />
The table below describes the values to wake up on individual sensor inputs.<br />
Wake on sensor input Value Command<br />
0 1 set sys trigger 1<br />
1 2 set sys trigger 2<br />
2 4 set sys trigger 4<br />
3 8 set sys trigger 8<br />
WARNING: Under no conditions should the voltage on any sensor input exceed 1.2VDC. Permanent<br />
damage to the module will result.<br />
Sensor inputs are rated 1.2VDC maximum. You must use a resistor divider when driving a sensor pin from<br />
the other 3V pins such as RX. A resistor divider network with a minimum of 24K in series and 10K to<br />
ground from the UART RX or CTS pin should be used.<br />
An open drain FET is a good device to tie to the SENSE pin. The threshold is about 500mV. Additional<br />
pullup to 1.2VDC may be used if the circuit has an impedance (due to leakage current) of less than 5Mohms<br />
(500mv / 100nA). SENSE 0 to 3 pins that are not used should be left unconnected.<br />
809 University Avenue • Los Gatos, CA 95032 • Tel (408) 395-6539 • info@RovingNetworks.com<br />
~ 36 ~