WiSnap User Manual 4.41 05282015-ML
Page 14
set ad-hoc beacon
<ms>
-
sets the ad-hoc beacon interval in milliseconds where
<ms>
is a decimal number from 0 to 65,436.
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 ANDed (compared) to a free running seconds counter. For example:
-
If the interval is 0x1, the module sends one packet every 2 seconds.
-
If the interval is 0x2. The module sends two packets every 4 seconds.
-
If the interval is 0x3, the module sends one packet every 4 seconds.
-
If the interval is 0x6, the module sends two packets every 8 seconds.
-
If the interval is 0x7, the module sends one packet 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*
set comm open
<string>
-
sets the string that is sent to the local UART when the TCP port is opened. If no string is desired, use
0 as the
<string>
parameter. Max string length is 32 characters. Default is *OPEN*
set comm remote
<string>
-
sets the string that is sent to the remote TCP client when the TCP port is opened. If no string is
desired, use 0 as the
<string>
parameter. Max string length is 32 characters. Default is *HELLO*
set comm idle
<secs>
-
sets the Idle Timer Value. This is the number of seconds with no transmit or receive data before the
connection is closed automatically. Default is 0, never disconnect on idle.
set comm match
<value>
|
<hex>
-
sets the match character, where <
value
> is a decimal number from 0 to 127 or a hex
number from 0 to 7F. When this configuration option is set, the module sends an IP packet each time the match character
appears in the data. You enter <
value
> either as the decimal (e.g., 13) or hex (e.g., 0xd) equivalent of the of the ASCII
character. Setting the match character to 0 disables matching.
Flush timer is one of three ways to control TCP/IP packet forwarding. The others are match character and size. For more
information see section 10.4.