WiFly GSX
www.rovingnetworks.com
WiFlyGSX-um 9/16/2010
809 University Avenue
•
Los Gatos, CA 95032
•
Tel (408) 395-6539
•
~ 31 ~
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.
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.
10.3.
Wake on UART
When the module is in sleep mode, the UART itself is disabled. However, wake on UART can be
accomplished by connecting the SENSE pins to the RX data or CTS pin. (Using the appropriate divider
resistors mentioned above)
The SuRF board (RN-134) has a built in resistor divider connecting SENSE 0 and SENSE 1 to RXD and
CTS respectively. This allows wake on RX and CTS using a 3.3V signal.
NOTE: Do not apply 3.3V directly to SENSE 0 and SENSE 1. Under no conditions should the voltage
on any sensor input exceed 1.2VDC. Permanent damage to the module will result.