WiSnap User Manual 4.41 05282015-ML
Page 41
CMD
scan
<2.03>
Found 6
Num
SSID
Ch
RSSI
Sec
MAC Address
Suites
1
roving1
01
-64
Open
00:1c:df:4f:45:9e
104
4
2
NETGEAR
01
-58
Open
00:22:3f:6b:95:42
104
0
3
07FX12018434
06
-73
WEP
00:18:3a:7e:71:d7
1104
0
4
TheLoft
06
-51
WPA2PSK
00:0c:41:82:54:19
AESM-AES 1100
0
5
airlink-11
11
-53
WPAv1
00:18:02:70:7e:e8
TKIPM-TKIP 3100
ac
6
sensor
11
-52
Open
00:1c:df:cc:aa:d8
100
1
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 RN-131G
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.
12.2 Making Connections
To make a connection into the module simply open an 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 vice versa.
To make a connection from the module you will need IP address and port number of your 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.
CMD
<2.03> join roving1
Auto-Assoc roving1 chan=1 mode=OPEN SCAN OK
<2.03> Associated!
DHCP in 1ms: Renew: 86400 s
IF is UP
DHCP=ON
IP=10.20.20.62:2000
NM=255.255.255.0
GW=10.20.20.20
HOST=0.0.0.0:2000
PROTO=2
MTU=1460
bind=10
listen FAIL