www.rovingnetworks.com
Version 1.0r 9/21/2012
16
RN -W IFLYCR -U M
set ip flags <
mask
>
This commands sets the TCP/IP functions, where <
mask
> is a hex number referring to a bit-mapped register. See
Figure 1.
Figure 1. set ip flags Command Bit-Mapped Register
Notes:
1.
If the module loses the link to an associated access point while a TCP connection is active, the TCP connection may hang or be
in an inconsistent state. In some cases, the TCP connection will not recover. In firmware version 2.20 and higher, if the module
regains the link to the access point within 60 seconds, the TCP connection will survive.
2.
In firmware prior to version 2.20, bit 0 specified the TCP copy function.
If bit 0 is set (the default), TCP connections are kept open when the connection to the access point is lost.
If bit 0 is cleared (e.g., by sending
set ip flags 0x6
), if the module loses the access point connection while TCP is
connected, the connection is closed.
Default:
0x7
Example:
set ip flags 0x6
// Clear bit 0
set ip gateway <
address
>
This command sets the gateway IP address, where <
address
> is an IP address in the form
<
value
>.<
value
>.<
value
>.<
value
> with <
value
> being a number between 0 and 255. If DHCP is turned on, the
gateway IP address is assigned and overwritten when the module associates with the access point.
Default:
0.0.0.0
Example:
set ip gateway 169.254.1.1
// Sets the IP gateway to 169.254.1.1
set ip host <
address
>
This command sets the remote host’s IP address, where <
address
> is an IP address in the form
<
value
>.<
value
>.<
value
>.<
value
> with <
value
> being a number between 0 and 255. You use this command to make
connections from the WiFly module to a TCP/IP server with the IP address <
address
>.
Default:
0.0.0.0
Example:
set ip host 137.57.1.1
// Sets the remote host’s IP address to 137.57.1.1
1
2
3
4
5
6
7
0
TCP connection status. See
Notes (1), (2)
.
Bypass Nagle algorithm and use TCP_NODELAY.
TCP retry enabled (for a total of 96 packet retries).
UDP RETRY (attempts retry if no ACK from UDP).
DNS host address caching enabled.
ARP table caching enabled.
UDP auto pairing enabled.
Add 8-byte timestamp to UDP or TCP packets.