WiFly GSX
WiFlyGSX-um.pdf 11/11/2009
www.rovingnetworks.com
Phone 408-395-6539
-
29 -
seconds the connection will be closed. The sleep timer will the kick in and put the module in deep
sleep. Finally the wake timer will start the whole cycle again one minute later.
set ip host X.X.X.X
( set up the IP address of the remote machine )
set ip remote_port num
(set up the IP port of the remote machine )
set sys autoconn 1
(automatically connect out after READY )
set com idle 5
(disconnect after 5 seconds with no data activity )
set sys sleep 2
(sleep 2 seconds after connection is closed )
set sys wake 60
(wakeup after 1 minute of sleeping )
save
11.4
Controlling Connections using PIO5 and PIO6
PIO5 can be used to control the TCP connection. Once configured with the set system IO command
the module will attempt to make a connection to the stored IP and PORT address when set high and
will disconnect when set low.
set sys io 0x20
(configures PIO5 to connect/disconnect )
You can monitor the connection status by reading PIO6. High indicates an open connection, low
indicates no connection. Use the command set system IO to enable PIO6.
set sys io 0x40
(configures PIO6 to represent the connection status )
11.5
Using DNS settings
WiFly contains a built in DNS client. If the IP address of the host is not specified (i.e it is set to
0.0.0.0) , DNS will be used. WiFLY will automatically attempt to resolve the host address
stored with the command:
set dns name <string>
sets the name of the host for TCP/IP connections.
Once the address is resolved an automatic connection will be made.
11.6
Utilizing the Backup IP address/connect function
WiFly contains a feature for auto-retry and redundancy. If the first IP host address connection fails,
the backup IP will be used (if set) . If this fails (or is not set) then the first DNS name will be
used. If this fails (or is not set) then the Backup DNS name will be used.
To set the backup IP address, use:
set ip backup <address>
To set the backup DNS name, use:
set dns backup <string>