Redpine Signals, Inc.
Page 45
R
R
S
S
-
-
W
W
C
C
-
-
3
3
0
0
1
1
E
E
v
v
a
a
l
l
u
u
a
a
t
t
i
i
o
o
n
n
B
B
o
o
a
a
r
r
d
d
U
U
s
s
e
e
r
r
G
G
u
u
i
i
d
d
e
e
V
V
e
e
r
r
s
s
i
i
o
o
n
n
2
2
.
.
5
5
1
1
This initializes the WiFi module in the EVB. The module
responds with OK<mac_address>
d.
at+rsi_fwversion?
Optional command to report the firmware version in use.
e.
at+rsi_ipconf=0,192.168.50.1,255.255.255.0,192.168.5
0.1
To configure the IP (192.168.50.1 in this example) of the AP.
If this command is not issued, a default IP of 192.168.100.76
will be used.
f.
at+rsi_apconf=1,redpine,2,2,12345678,300,2,4
The SSID is configured as “redpine”, to operate in channel 1.
g.
at+rsi_join=redpine,0,2
This starts the Access Point functionality in the module.
The module is now configured as an Access Point. Its IP address is
192.168.50.1.
A Laptop can now scan for networks and the SSID of
the module, “redpine” will be displayed in the Laptop‟s list of Scanned
APs. After the client Laptop (B) connects to the AP by providing the
correct password (12345678 in this example), it acquires an IP
address. It is assumed for illustrative purposes that the IP of the
Laptop is
192.168.50.2
5.
Exchanging data between the client Laptop (B) and the Access Point
a.
Open a Listening TCP socket on the module by issuing the
command
at+rsi_ltcp=5001
b.
Open a TCP socket on the client Laptop (B) (Windows OS based)
by typing the below command on the command line:
TCP.exe c 2001 192.168.50.1 5001
The application is found in the path
RS.WSC.x.x.GENR.x.x.x.x.x.x\Resources\Applications\Peer\Windo
ws\ . The destination IP (the Access Point in this case) is
192.168.50.1.
c.
The command line window will display three options: 1 (Send), 2
(Receive) and 3 (Exit). Type 1 to send data to the Wi-Fi module.
On being prompted “Enter the string to be transmitted”, type any
string from the Keyboard. On pressing “Enter” key on the
keyboard, the data is sent from the Laptop(B) to the module and
the Hyperterminal displays it with the
AT+RSI_READ
message.
d.
To send data from the Wi-Fi module, type Option 2 in Laptop (B)
and then type the below command in the module
at+rsi_snd=<socket_handle>,0,0,0,abcdefgh