User`s guide
RN-WIFLYCR-UG
www.rovingnetworks.com Version 1.2r 4/30/13 page 17
Using DHCP cache mode can reduce the time the module requires to wake from deep
sleep, which saves power. The module checks the lease time; if it is not expired, the
module uses the previous IP settings. If the lease has expired, the module attempts to
associate and uses DHCP to obtain the IP settings. The DHCP cached IP address does
not survive a power cycle or reset.
Default: 1
Example: set ip dhcp 0 // Turns DHCP off
2.3.32 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 2-1.
FIGURE 2-1: SET IP FLAGS COMMAND BIT-MAPPED REGISTER
Note 1: If the module loses the link to an associated access point while a TCP con-
nection is active, the TCP connection may hang or be in an inconsistent
state. In some cases, the TCP connection will not recover. In firmware ver-
sion 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
2.3.33 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
12345670
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.