Redpine Signals, Inc. Proprietary and Confidential
Page 51
R
R
S
S
9
9
1
1
1
1
3
3
M
M
o
o
d
d
u
u
l
l
e
e
E
E
v
v
a
a
l
l
u
u
a
a
t
t
i
i
o
o
n
n
K
K
i
i
t
t
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
.
.
0
0
The SSID is configured as “redpine”, to operate in channel 6.
Please refer to the Software PRM for more details on the other
parameters of this command.
g.
at+rsi_join=redpine,0,2,0
This starts the Access Point functionality in the module.
The module is now configured as an Access Point. Its IP address is
192.168.0.30. 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, it acquires an IP
address over DHCP. The IP address assigned to the laptop can be
known by opening the Windows Command Prompt and issuing the
command “ipconfig”. It is assumed for illustrative purposes that the IP
of the Laptop is 192.168.0.32.
5.3.4.2
Test Procedure
The applications provided in the USB drive (as part of the release
package) send and receive TCP and UDP packets.
TCP and UDP applications are provided along with release package for
execution on the Laptop. These applications are located in the path
RS9113.NBZ.WC.GEN.OSI.x.x.x\utils\peer_applications\Windows where
RS9113.WSC.GENR.x.x.x is software package directory.
1)
Open a TCP Server socket on the Wi-Fi Client (EVB) side using the
following AT command:
at+rsi_ltcp=5001,1,0
2)
The module’s response will look as follows:
OK<ip_version><socket_type><socket_handle><Lport><module_ip
addr>\r\n
The
socket_handle
in the response above is used for subsequent
commands.
3)
Open a TCP client socket on Laptop C by running the TCP.exe
application as follows in the Windows Command Prompt:
TCP.exe c 2001 192.168.0.30 5001
Ensure that you run the Windows Command Prompt program as an
Administrator and any firewalls which block creation of sockets are
disabled before running the application.
4)
The above command opens a new window with the following options:
a.
Send
b.
Receive
c.
Exit
5)
Observe that the Docklight on the Wi-Fi AP side (EVB) prints the
following message, once the TCP connection is setup with Laptop C.
AT+RSI_LTCP_CONNECT=<ip_version><socket_descriptor>,<dest_p
ort_no>,<dest_ipaddr><mss><window_size>