Reference Manual

Table Of Contents
4. Which is indicated by a +recv event in the client.
+recv :0 ,0 , 3 2 ,YJaZ4yUGKRES7mE5ApBDo0zrFRtq56Jt
OK
5. The client can reply to this message also using the AT+send (with socket ID "0" to
address the server).
AT+send =0 ,0 ,32 , iu w I HSis5xTt t z ffbtfhjtf h 678pSHJA
OK
6. Which is indicated by a +recv event in the server with socket ID 1.
+recv :1 ,0 , 3 2 , iuw I H Sis5xTtt z f fbtfhjtf h 6 78pSHJA
OK
7. Close the sockets using the command and corresponding Socket ID.
AT+close=0
+close :0
OK
10.4. Wi-Fi direct example
The Wi-Fi direct standard enables peer-to-peer communication between two compatible de-
vices without the need for an infrastructure AP. Wi-Fi direct enabled devices negotiate their
roles and one of them assumes the role of a Group Owner (GO) (equivalent to an AP)
and the other the role of a Client. The discovery of devices is done by sending/listening
broadcasting packets on channels 1, 6 and 11. This section demonstrates the Wi-Fi direct
capabilities of Calypso module by connecting two Calypso EV boards over Wi-Fi direct.
10.4.1. Prerequisites
The following hardware is required to go through this Wi-Fi direct example.
1. Two Calypso evaluation boards.
2. Computer with a serial terminal emulator like Tera Term.
10.4.2. Auto connection setup
First of all, the P2P settings of both devices have to be configured. Here we use the following
settings:
Connect to the first P2P device that is found.
AT+wla n polic y set =connection , P2P,
The role (client or group owner) and negotiation request strategy (active, passive or random
back-off) can be set as needed. Here we choose for simplicity to negotiate the role (client or
group owner) and send the negotiation request as soon as a P2P device has been found.
AT+wla n polic y set =P2P, negotiate , a ct i ve
Set the device to P2P mode.
AT+wlansetmode=P2P
Calypso reference manual version 1.2 © April 2019
www.we-online.com/wireless-connectivity 83