![Telit Wireless Solutions WE866C3 User Manual Download Page 25](http://html1.mh-extra.com/html/telit-wireless-solutions/we866c3/we866c3_user-manual_1083807025.webp)
WE866C3 Wi-Fi Network Interface Card (NIC) User Guide
1VV0301545 Rev 1.0
Page
25
of
37
2018-07-09
P2P Client Mode
In P2P client mode, the WE866C3 device is connected to a P2P device capable of running
as GO. It can connect to an autonomous P2P GO device or it can connect to a normal
P2P device, which will become GO during the connection process.
1. For client mode, write the GO intent to a lesser value in the config file
p2p_go_intent=1
2. Start the wpa_supplicant for the p2p interface using the above configuration file.
wpa_supplicant -B -D nl80211 -i p2p0 -c p2p_mode.conf
3. Start the wpa_cli to issue the p2p commands
wpa_cli -i p2p0
4. Scan the GO MAC address to connect
p2p_find
5. When the target GO details are listed in the find operation, stop find
p2p_stop_find
6. The MAC address of all the devices found will be listed using the command
p2p_peers
7. Connect the GO MAC address using the PIN method
p2p_connect <GO MAC addr> pin go_intent=1
This command generates
the “PIN” number to be typed in the keypad of the GO
device.
8. When the P2P connection is successful, then the command for the status of the
device provides the new BSS
status
9. Get the IP address for the P2P client interface
dhclient p2p0
Once the IP address is received, check the data transfer with GO using the Ping
test.
P2P GO Mode
WE866C3 module can start P2P GO mode in two ways:
•
The module can start as a GO autonomously and a client can connect to it.
•
During connection with another P2P device, WE866C3 can be assigned as P2P GO.
1. For P2P GO mode, write the GO intent value to a maximum value in config file
p2p_go_intent=15
2. Before starting the p2p0 interface in GO mode, assign static IP address for the
p2p0 interface and start the isc-dhcp-server for the p2p interface. Refer section -
5.3 AP Mode
.
3. Start the wpa_supplicant for the p2p interface using the above configuration file
wpa_supplicant -B -D nl80211 -i p2p0 -c p2p_mode.conf