
www.rovingnetworks.com
Version 1.0r 9/21/2012
46
RN -W IFLYCR -U M
Table 16. GPIO Alternative Functions
GPIO
Description
GPIO
Role in alternative function
GPIO4
High when the first client associates, Low when all clients leave the network
GPIO5
WiFly module can drive it high to open a TCP connection to a stored host.
When the module drives GPIO5 low, it closes the TCP connection
GPIO6
WiFly module drives it high when a TCP connection is open, low when TCP
connection is closed
PUTTING THE MODULE TO SLEEP & WAKING IT
Table 17 describes the methods for putting the module to sleep.
Table 17. Methods for Putting the Module to Sleep
Method
Interface
Description
sleep
command
UART
Go into command mode using
$$$
and issue the
sleep
command.
Sleep timer
Internal RTC
The module sleeps based on the
set sys sleep
<
value
> command setting.
Drive GPIO8 high
GPIO8
The module sleeps as soon as GPIO8 is held high (4
µ
s latency). To enable this feature,
use the
set sys trigger 0x20
command setting.
Table 18 describes the methods for waking the module.
Table 18. Methods for Waking the Module
Method
Interface
Description
Sensor input
(1.2-V DC only)
Sensor pins
You can wake the module using sensor pins 0 - 3 (1.2-V DC ONLY). Use the
set sys
trigger
<
value
> command to enable the sensors.
Rx pin
(3.3-V DC only)
RX pin via
sensor 0
The RX pin on the RN-134 and the RN-174 evaluation boards is tied to sensor pin 0 via a
resistor divider network. Use the
set sys trigger 1
command to wake the module when it
receives RX data.
NOTE
: With this method, the module may drop the first UART data byte. A better method
is to wake the module using the CTS pin.
CTS pin
(3.3-V DC only)
CTS pin via
sensor 1
The CTS pin on the RN-134 and the RN-174 evaluation boards is tied to sensor pin 1 via
a resistor divider network. Use the
set sys trigger 2
command to wake the module using
the CTS pin.
Wake timer
Internal RTC
The wake timer wakes the module based on the
set sys wake
<
value
> command setting.
FORCE AWAKE
FORCE
AWAKE pin
An input pulse of at least 31
µμ
s (3.3 V) wakes the module.