salindor
Posts: 1
Joined: Sun Jun 07, 2020 3:48 am

raspberry pi 4 wifi direct

Sun Jun 07, 2020 3:57 am

I have two raspberry pi 4 and I am trying to get them to connect via wifi-direct. I can get each raspberry pi to see a printer near by but not each other.

Here is what I have done:
- started with Raspberry 10
- built wpa_supplicant-2.9 with p2p enabled
- verified that P2P-client, P2P-GO- and P2P-device does in fact show up in the iw list

I have tried a dozen different forum posts for wpa_supplicant.conf. Here is the latest:

Code: Select all

ctrl_interface=DIR=/var/run/wpa_supplicant
update_config=1

ap_scan=1
device_name=pi2
device_type=1-0050F204-1
driver_param=use_p2p_group_interface=1
driver_param=p2p_device=1
p2p_go_intent=10
p2p_go_ht40=1
The only way I can get one pi to see the other device is to use p2p_group_add. However, my goal is to let the pi's negotiate who is GO each connection. If I were to use p2p_group_add it would defeat the purpose of using wifi-direct (otherwise I could just turn one of the computers into a hotspot).

epoch1970
Posts: 5132
Joined: Thu May 05, 2016 9:33 am
Location: Paris, France

Re: raspberry pi 4 wifi direct

Sun Jun 07, 2020 12:12 pm

salindor wrote:
Sun Jun 07, 2020 3:57 am
The only way I can get one pi to see the other device is to use p2p_group_add. However, my goal is to let the pi's negotiate who is GO each connection. If I were to use p2p_group_add it would defeat the purpose of using wifi-direct (otherwise I could just turn one of the computers into a hotspot).
My experience as well, on Pi3B: p2p_find no worky.
"S'il n'y a pas de solution, c'est qu'il n'y a pas de problème." Les Shadoks, J. Rouxel

Return to “Troubleshooting”