![Roving Networks RN-171 Скачать руководство пользователя страница 28](http://html1.mh-extra.com/html/roving-networks/rn-171/rn-171_user-manual-and-command-reference_1492508028.webp)
WiFly GSX
www.rovingnetworks.com
WiFlyRN171-um 2/23/2011
809 University Avenue
•
Los Gatos, CA 95032
•
Tel (408) 395-6539
~
28
~
Method Interface
Description
RTS
transition
RTS pin
Once the WiFly GSX module wakes up, the RTS line goes HIGH. Once the
system is ready, the RTS is driven LOW. This can be monitored by the micro
controller
Monitor
GPIO 4
Alternative
GPIO
functions
Set the alternative functions for GPIO 4, 5 and 6 (Refer section 10.5.1). Once
the module wakes up and connects to an AP, GPIO 4 goes high. This
indicates the module is ready to receive data over the UART. Your micro
controller can monitor GPIO 4
Sensor Power
Sensor power
pin
You can configure the module to output Vbat, or 3.3V or 1.2V on the Sensor
Power pin when it wakes up form sleep indicating it is ready
Once the module is awake, you can open a TCP connection to a remote host in a number of ways described
below. The remote host can be set using the following commands:
setip host <IP address>
OR
set dns name <string> // sets up the IP address OR URL of host
setip remote <port number>
// sets up the port number on which the host is listening
save
//
save
settings
in
config
file
reboot
//
reboots
the
module
so
that
the
settings
take
effect
Method Type
Description
Auto connect
Internal RTC
Timer
Connect out to the host at specific time intervals based upon the
set sys
autoconn<secs>
command
Open
Uart
In command mode, you can issue the
open
command
Connect on
uart data
Uart mode 2
This mode is designed for the HTML client feature. Use the
set uart mode 2
command to automatically connect out to host onuart data
GPIO 5
Alternative
GPIO
functions
Set the alternative functions for GPIO 4, 5 and 6 (Refer section 10.5.1). Set
GPIO 5 HIGH to trigger TCP connection, LOW to disconnect
10.1.
System Timers and Auto Connect Timers
The WiFly GSX module uses the Real Time clock to generate timers. The RTC is active even when the
WiFly module is asleep. This makes it possible to put the module to sleep and wake up from sleep based on
timer intervals using timers.
The WiFly module has the following timers available:
1.
Sleep Timer: Used to put the WiFly module to sleep
2.
Wake Timer: Used to wake the WiFly module from sleep
3.
Auto-connect Timer: Used to automatically open a TCP connection
4.
Idle Timer: Used to automatically close a TCP connection