Download Print this page

ATC -2000WF Quick Start Manual page 12

Wi-fi to rs-232/422/485

Advertisement

8.5 Joining Networks and Making Connections
Configuring the module to make connections is a two
set process.
First you need to associate with a
network access point and second you need to open a
connection.To configure the module over the WiFi link
is a chicken and egg problem. The module must be
associated to a network to connect to it and program
the network settings. This problem can be solved by
configuring the module from the UART or over the air
using adhoc mode.If configuring the module using
adhoc mode, see section 错误! 未找到引用源。 . Once in
adhoc mode open up a telnet window on IP address
169.254.1.1 port 2000
If configuring the module using the UART mode either
using the RS232 or development board, open a
terminal emulator on the COM port associated with that
deveice. The default baud rate is 9600, 8 bits no parity.
8.6
Associate with a network access point
From within the terminal window, put the WiFly GSX
module into command mode by typing $$$ in the
terminal window. You should get CMD back confirming
you are in command mode.
Type show net to display the current network settings.
Now finding all available networks with the scan
command
If the network you're connecting to is open, you can
simply use the join command to associate with the
access point. From the scan list above you can see
that roving1 is an open network access point.
Type join roving1 to associate with an access point.
You could also have specified the roving1 access point
by using the command join # 1
If the access point is security enabled you will need to
set the pass phrase prior to issuing the join command.
The ATC-2000 module will attempt to inquire and
determine the security protocol of the access point so
you do not have to set the authentication mode. To
set the pass phrase for WPA use the command set
wlan phrase <string>. For WEP set the key using the
set wlan key <num> command.
Once you have successfully associated to the network
the access point SSID is stored.This along with the
pass phrase can be saved to the config file so the
module can associate with the network each time it is
booted up.
8.7 Making connections
To make a connection into the module simply open a IP
socket and connect to the IP address of the module.
Telnet is a simple way to test this connection. From in
Telnet type open <addr> <port>. In the example above
the telnet command you look like open 10.20.20.62
2000. Once open you can type characters into the
UART window and see them on the Telnet window or
visa versa.
To make a connection from the module you will need IP
address and port number of your a server application.
A simple program to test this functionality is a COM port
redirector.
This software opens an IP port and
transfers all data it receives to a specified COM port on
your machine.
A free com port redirector program is
available from Pira at
http://www.pira.cz/eng/piracom.htm
After installing and starting this program, note the IP
address of the machine it is running on. This can be
found by running ipconfig in the Microsoft command
window. With the ATC-2000WF module in command
mode type open <addr> <port>. The server will report
the connection is open and you can type characters
into the UART window and see them on the server
window or visa versa.
8.8 Setting up Automatic Connections
Often, it is desired on power up (or wakeup) to
automatically connect out to a remote server, send
data, and then disconnect. This can be configured to
happen automatically.
In the following example assume the network SSID and
security have been set correctly and autojoin
is set to 1. This will also work in adhoc mode(autojoin

Advertisement

loading
Need help?

Need help?

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