WiSnap User Manual 2.21 04112011-JF
Page
17
of
66
5.5
FTP Parameters
set ftp filename <file>
sets the name of the file transferred when issuing the “ftp u” or “ftp
g” commands.
set ftp addr <addr>
sets the ftp server IP address.
set ftp remote <port>
sets the ftp server remote port number (default is 21).
set ftp user <name>
sets the ftp user name for accessing the FTP server.
set ftp pass <pass>
sets the ftp password for accessing the FTP server.
5.6
IP Parameters
set ip address <addr>
sets the IP address of the WiSnap module. If DHCP is turned on, the
IP address is assigned and overwritten during association with the
access point.
Example: “set ip a 10.20.20.1”
set ip backup <addr>
sets a secondary host IP address. If the primary host IP is not
reachable the module will try the secondary IP address if set.
set ip dchp <value>
enable/disable DHCP mode. If enabled, the IP address, gateway,
netmask, and DNS server are requested and set upon association
with access point. Any current IP values are overwritten.
DHCP Cache mode can reduce the time it takes the module to wake
from deep sleep thus saving power. In cache mode, the lease time
is checked and if not expired the module uses the previous IP
settings. If the lease has expired the module will attempt to
associated and use DHCP to get the IP settings. DHCP cached IP
address does not survive a power cycle or reset.
Mode
Protocol
0
DHCP OFF, use stored static IP address
1
DHCP ON, get IP address and gateway from AP
2
Auto-IP, generally used with Ad-hoc networks
3
DHCP cache mode, Uses previous IP address if
lease is not expired (lease survives reboot)
4
Reserved for future use
set ip flags <value>
Set TCP/IP advanced functions. Value is a bit mapped flag register.
Default = 0x7.
Bit
Function
0
TCP connection status. See note below
1
Bypass Nagle algorithm and use TCP_NODELAY
2
TCP retry enabled (42 total)
3
UDP retry (attempts retry if no ACK from UDP)
4
DNS host address caching enabled