Redpine Signals, Inc.
Page 40
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
4.
The terminal will show the message “Welcome to WiSeConnect”. The
module boots up. Card Ready (LED2) glows on successful completion
of boot-up and a string “READY” is sent from module to host.
5.
Enter the following commands
3
. A command should be entered only
after getting the response of the previous command
a.
at+rsi_opermode=1
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?
Optional command to report the firmware version in use.
e.
at+rsi_wfd=15,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 highest value of
15 in this case. Refer to the Programming Reference Manual
for more details. The module responds with “OK”.
6.
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
7.
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”
3
Please refer to the Programming Reference Manual for detailed descriptions of all
the commands.