User manual

WiFly GSX
www.rovingnetworks.com
WiFlyGSX-um 7/16/2010
809 University Avenue Los Gatos, CA 95032 Tel (408) 395-6539 info@RovingNetworks.com
~ 13 ~
NOTE: When the link to an associated to an access point is lost while a
TCP connection is active, the TCP connection can be left in hung/
inconsistent state. In some cases, the TCP connection will not recover. In
version 2.20 and later, if the link to the access point is regained within 60
seconds, the TCP connection will survive.
With version 2.20 we have changed the operation of bit0 in the “ip flags”
register. Previously this bit specified the TCP copy function, but controls
the TCP socket function while associated on a network.
If bit 0 is set (default) TCP connections are kept open when the
connection to the access point is lost.
If bit 0 is cleared (by setting “set ip flags 0x6” for example) then
when the connection to the access point is lost and TCP is
connected, the connection will be closed.
set ip gateway <addr> sets the gateway IP address, If DHCP is turned on, the gateway IP address
is assign and overwritten during association with the access point.
set ip host <addr> sets the remote host IP address. This command is used for making
connections from the WiFly module to a TCP/IP server at the IP address
<addr>.
set ip localport <num> sets the local port number.
set ip netmask <value> sets the network mask. If DHCP is turned on, the net mask is assign and
overwritten during association with the access point.
set ip protocol <value> sets the IP protocol. Value is a bit mapped setting. To connect to the
WiFly GSX module over TCP/IP such as Telnet the device must have the
use the TCP Server protocol / bit 2 set. To accept both TCP and UDP use
value = 3 (bit 1 and bit 2 set)
Bit Position Protocol
0 UDP
1 TCP Server & Client (Default)
2
Secure (only receive packets with IP address
matches the store host IP)
3 TCP Client only
4 HTTP client mode
set ip remote <value> sets the remote host port number.