WiFly GSX
www.rovingnetworks.com
WiFlyGSX-um 9/16/2010
809 University Avenue
•
Los Gatos, CA 95032
•
Tel (408) 395-6539
•
~ 27 ~
10.
Advanced features and Settings
This chapter describes the advanced features of the WiFly GSX module. It describes the techniques to put
the module in sleep, wake up from sleep and methods to open a TCP connection when awake. We also
discuss the uart flow control, alternative GPIO functions and Real Time Clock.
The table below describes the possible methods of putting the module to sleep.
Method
Interface
Description
sleep
command
UART
Get into command mode using
$$$
and issue the
sleep
command
Sleep Timer
Internal RTC Puts the module to sleep based on the
set sys sleep <secs>
command
To wake up the module from sleep, following options are available:
Method
Type
Description
Sensor Input
(1.2VDC
ONLY)
Sensor Pins
You can wake up the module on sensor pins 0-3 (
1.2V ONLY
). Use the
set
sys trigger <value>
command to enable. Refer section 10.2 for details
Rx Pin
(1.2VDC
ONLY)
RX pin via
Sensor 0
The RX pin on the RN-134 is tied to Sensor Pin 0. Use
set sys trigger 1
command to wake up on RX data.
NOTE
: You may drop the first byte of
uart data. A better way is to wake up the module on CTS pin. Refer section
10.3 for details
CTS Pin
(3.3VDC
ONLY)
CTS pin via
Sensor 1
The CTS pin on the RN-134 is tied to Sensor pin 1.
Use
set sys trigger 2
command to wake up on CTS. Refer section 10.3 for
details
Wake Timer
Internal RTC
Wakes up the module from sleep based on the
set sys wake <secs>
command
FORCE
AWAKE
FORCE
AWAKE pin
Input pulse of atleast 31
μ
secs duration (3.3V) will wake up the module.
When the module wakes up from sleep, it takes a certain amount of time (in milliseconds) to initialize the
internal hardware. During this time, any data that is sent to the WiFly module over the uart will not be
processed. You can monitor certain signals that indicate that the module is ready to accept data. These are
described below.