WiSnap User Manual 2.21 04112011-JF
Page
15
of
66
5
SET Commands
These commands begin with “set”. There are 6 major categories.
AD-HOC
-
controls the ad-hoc parameters
BROADCAST -
controls the broadcast hello/heartbeat UDP message
COMM
- communication and data transfer, timers, matching characters
DNS
- DNS host and domain
FTP
- FTP host address and login information
IP
- IP settings
OPTION
- optional and not frequently used parameters
SYS
- system settings such as sleep and wake timers
TIME
- timer server settings
UART
- serial port settings such as baud rate and parity
WLAN
-
wireless interface settings, such as SSID, channel, and security options
5.1
AD-HOC Parameters
set ad-hoc beacon <ms>
sets the ad-hoc beacon interval in milliseconds. Default is 100.
set ad-hoc probe <num>
sets the ad-hoc probe retry count. Default is 5. This is the number
of consecutive probe responses that can be lost before declaring
“AD-HOC is lost” and disabling the network interface.
5.2
BROADCAST Parameters
set broadcast address <addr>
sets the address to which the UDP hello/heartbeat message is
sent. The default address is 255.255.255.255
set broadcast interval <value>
sets the interval at which the hello/heartbeat UDP message is
sent. Interval is specified in seconds. The value is a mask that is
compared to a free running seconds counter. For example if interval
= 0x7, a packet will be sent every 8 seconds. The minimum interval
value is 1 (every 2 seconds) and max value is 0xff (every 256
seconds). Setting the interval value to zero disables sending UDP
broadcast messages. The default interval is 7.
set broadcast port <port>
sets the port number to which the UDP hello/heartbeat message is
sent. The default port is 55555.
5.3
COMM Parameters
set comm $ <char>
sets character used to enter command mode. Typically used when
“$$$” is a possible data string. Default is ‘$’. Care should be taken
when setting this to note the new character as once this setting is
saved every subsequent reboot will ignore “$$$” and look for
“<char><char><char>”.
set comm close <string>
sets the ASCI string that is sent to the local UART when the TCP port
is closed. If no string is desired, use 0 as the <string> parameter.
Max string length is 32 characters. Default is *CLOS*