Redpine Signals, Inc. Proprietary and Confidential
Page 46
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
2)
the firmware.
3)
Enter the following commands. A command should be entered only
after getting the response of the previous command
a.
at+rsi_opermode=1,0,20,0
This configures the EVB to function in Wi-Fi Direct mode. The
module responds with “OK”.
b.
at+rsi_band=0
This configures the operating band of the EVB. The module
responds with “OK”.
c.
at+rsi_init
This initializes the Wi-Fi module in the EVB. The module responds
with OK<MAC_Address>.
d.
at+rsi_fwversion?
This is an optional command to report the firmware version in use.
e.
at+rsi_wfd=0,RED,1,wiseconnect,12345678
This starts the Wi-Fi Direct functionality in the module.
The first parameter in this command is called the
Group_Owner_Intent
. It gives the willingness of the module to
become a Group Owner. It has been set to the lowest value of 0 in
this case. Refer to the Programming Reference Manual for more
details. The module responds with “OK”.
4)
After issuing the last command, the module starts scanning for Wi-Fi
Direct devices, and reports any that are found through the
asynchronous message
AT+RSI_WFDDEV
5)
After the module reports Wi-Fi Direct devices, issue the Join command
to connect.
at+rsi_join=Android_phone,0,2
In this example, it is assumed that the device name of the phone is
configured as “Android_phone”. The phone should also display the
device name of the module (RED in this example). Within about 10
secs of issuing the Join command in the module, click “Connect” on
the phone as well to connect to the module. On successful
connection, the module responds with OK and the Phone displays
“Connected”
6)
If the module has NOT become a GO (Group Owner), issue the below
command to get an IP address from the phone over DHCP. If the
module has become a GO, this command need not be issued.
at+rsi_ipconf=1,0,0,0
The acquired IP address is returned to the Host but might not be
readable on the Docklight because of ASCII conversion. You can use
the HEX tab of Docklight to see the bytes sent by the module.