WiSnap User Manual 2.21 04112011-JF
Page
16
of
66
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>
sets match character. An IP packet will be sent each time the match
character appears in the data. Value is entered as the decimal (13)
or hex (0x0D) ASCII character. Default is 0, disabled. The match
character is one of three ways to control TCP/IP packet forwarding.
The others are size and timer. For more information see section 0.
set comm size <value>
sets the flush size. An IP packet will be sent each time “value” bytes
are received. Default is 64 bytes. You should set this value to the
largest possible setting to maximize TCP/IP performance. Maximum
value = 1420 (at 9600) bytes.
NOTE: This value is set automatically when the baudrate is set, in
an attempt to optimize the link. It is assumed that higher baudrates
equates to more data and hence the flush size is increased.
Flush size is one of three ways to control TCP/IP packet forwarding.
The others are match character and timer. For more information see
section 0.
set comm time <num>
sets the flush timer. An IP packet will be sent if no additional bytes
are received for “num” milliseconds. Num is one milliseconds
intervals. 1 is the minimum value. Default is 10 (10 milliseconds).
Setting this value to 0 will disable forwarding based on the flush
timer.
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 0.
5.4
DNS Parameters
set dns address <addr>
sets the IP address of the DNS sever. This is auto-set when using
DHCP, and needs to be set in STATIC IP or Auto-IP modes.
set dns name <string>
sets the name of the host for TCP/IP connections.
set dns backup <string>
sets the name of the backup host for TCP/IP connections.