Reference Manual

Table Of Contents
Restart the network processor.
AT+stop =0
AT+ s t a r t
And scan for P2P devices.
AT+wlanscan =0 ,5
As soon as a P2P device has been found, the connection is setup. In case of the group
owner, the output is as follows.
+eventwlan : p2p_devfound , calypso ,0 x98 : 0 x84 :0 xe3 :0 xf6 :0 x8c : 0 x1 ,
+eventwlan : p2p_request , calypso ,0 x98 :0 x84 :0 xe3 :0 xf6 :0 x8c :0 x1 , pbc
+eventwlan : p2p_client_added ,0 x98 :0 x84 :0 xe3 :0 xf6 :0 x8c :0 x1 , calypso ,DIRECTGJ
+eventnetapp : dhcpv4_leased ,10.123.45.2 ,86400 ,0 x98 :0 x84 :0 xe3 : 0 xf6 :0 x8c :0 x1
In case of the client, the output is as follows.
+eventwlan : p2p_devfound , calypso ,0 xc8 :0 xfd :0 x19 :0 x5 : 0 x5e :0 xef ,
+eventwlan : p2p_request , calypso ,0 xc8 :0 xfd :0 x19 : 0 x5 :0 x5e :0 xef , pbc
+eventwlan : p2p_connect , DIRECTGJ,0 xc8 :0 xfd :0 x19 :0 x5 :0 x5e :0 xef , calypso
+eventnetapp : ipv4_acquired , 10 .1 2 3. 45 . 2 ,10.123. 4 5 . 1 ,10.123.45.1
Now a socket can be created to transmit/receive data. Please refer to the chapters
10.1
and
10.2
to do so.
After data has been transmitted/received, the connection can be closed again.
AT+wlandisconnect
10.4.3. Manual connection setup
This chapter describes how to set-up a P2P connection between two Calypso radio mod-
ules. The goal is to establish a connection to the client (module B) initiated by the group
owner (module A).
First of all, the P2P settings of module A has to be configured. Here we use the follow-
ing settings: Furthermore we configure the role as "group owner" and negotiation request
strategy as "active".
AT+wla n polic y set =P2P, group_owner , a ct ive
Set the device to P2P mode.
AT+wlansetmode=P2P
Restart the network processor.
AT+stop =0
AT+ s t a r t
Repeat the previous steps with module B. Use here "client" and "passive" in the
AT+wlanpolicyset
command.
AT+wla n polic y set =P2P, c l i e n t , passive
After both devices have been configured and the network processor has been restarted,
start the scan for P2P devices.
AT+wlanscan =0 ,5
As soon as a P2P device has been found, the following message occurs.
Calypso reference manual version 1.2 © April 2019
www.we-online.com/wireless-connectivity 84