Download Print this page

ATC -2000WF Quick Start Manual page 6

Wi-fi to rs-232/422/485

Advertisement

set ip gateway <addr>
sets the gateway IP address, If DHCP is turned on, the
gateway IP address is assign and overwritten during
association with the access point.
set ip host <addr>
sets the remote host IP address. This command is
used for making connections from the ATC-2000WE to
a TCP/IP server at the IP address <addr>.
set ip localport <num>
sets the local port number.
set ip netmask <value>
sets the network mask. If DHCP is turned on, the net
mask is assign and overwritten during association with
the access point.
set ip protocol <value>
sets the IP protocol. Value is a bit mapped setting. To
connect to the ATC-2000WF module over TCP/IP such
as Telnet the device must have the use the TCP Server
protocol / bit 2 set. To accept both TCP and UDP use
value = 3 (bit 1 and bit 2 set)
Bit
Protocol
Value
0
UDP
1
TCP Server & Client (Default)
Secure (only receive packets with IP
2
address matches the store host IP)
3
TCP Client only
4
Future Use
set ip remote <value>
sets the remote host port number.
3.7 OPTIONAL Parameters
set opt jointmr <msecs>
Join timer is the time in milliseconds (default=1000) the
join function will wait for the an access point to
complete the association process.This timer is also the
timeout for the WPA handshaking process.
set opt replace <char>
replacement character for spaces. The replacement
character is used when entering SSID and pass
phrases that include space. This is used by the
ATC-2000WFcommand parser only. Each occurrence
of the replacement character is changed into a space.
The default is "$" (0x24)
set opt deviceid <string>
Configurable Device ID - can be used for storing serial
numbers,product name or other device information.
This information is sent as part of the broadcast hello
packet that is sent as a UDP. The current value can be
shown with the "get option" or "show deviceid"
commands. Max string size is 32 bytes. The default is
"WiFly-GSX".
set opt password <string>
TCP connection password. Used to challenge the
remote device to authenticate the connection. When
set all incoming connections will be challenged and the
first characters sent must match the stored password or
the connection will be closed. When the password is
set the WiFly module will send the string "PASS?" to
the remote connection. All characters in the string must
be sent in one TCP packet. Max string size is 32 bytes.
To disable the password feature use string=0 which is
the default.
3.8 SYSTEM Parameters
set sys autoconn <secs>
TCP mode: sets the auto connect timer. This command
Bit
Function
TCP stack copies RX buffer before
0
sending
Bypass Nagle algorithm and use
1
TCP_NODELAY
2
TCP application level single retry enabled
3
RETRY multi - retries 4 times
4
DNS host address caching enabled
5
ARP table caching enabled
6
Reserved
causes the module periodically connect to the host.
The timer <secs> determines how often to connect to
the stored remote host. If set to 1, the module will only
make one attempt to auto connect uponpower up. If set
to 2 or greater auto connect will re-open the connection
after the connection is closed. Default=0 disables.
set sys autosleep <num *10ms>
Sets the auto-sleep timer. 0 disables. If the protocol is
set to UDP ONLY, this timer is used as a quick sleep
function. Device will sleep <num> ms after transmission
of the first UDP packet.
set sys iofunc
<value>
sets the IO port alternate functions. Bit-mapped value.
For
more details see section 10.5
set sys mask
<mask>
sets the IO port direction mask. Bit-mapped value. For
more information see section 1错误!未找到引用源。.5
set sys printlvl <value>
sets numerous print functions. 0 = quiet 1 = connect
information Default is 1.
set sys output <value> <mask>
sets output PIO pins to HIGH or LOW.
Bit-mapped value. Optional mask only sets a subset of
pins.

Advertisement

loading
Need help?

Need help?

Do you have a question about the ATC-2000WF and is the answer not in the manual?