You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@Ircama first of all thanks a lot for providing such a in deep description for hostp2pd.
I may be doing something wrong with some configuration but i cannot manage to get hostp2pd working with persistent connection. I am trying to connect an Android tablet to RPI from Android WIFI Direct setting panel. When i click on my DIRECT-xx from android, it asks me for the pin but after entering the pin, its status on Android remain 'invited'.
Here is the error message shows up on my hostp2pd when is I run it from command line:
2021-04-06 10:30:48,299 - root - ERROR - Invalid negotiation request from station with address "96:be:46:9a:77:33".
Some information of my test bed:
RPI 3B+ with Raspbian GNU/Linux 10 (buster)
wpa_supplicant v2.10-devel-hostap_2_9-2186-g5f082c15 (compiled from git)
dhcpd is disabled and using only systemd networking (built in dhcpd + resolv etc)
Connection from Android 10
Lunching hostp2pd:
$ sudo hostp2pd -c hostp2pd.yaml
CMD> stats
Statistics:
<3>P2P: = 2
CTRL-EVENT-SCAN-RESULTS = 1
CTRL-EVENT-SCAN-STARTED = 1444
E>OK = 4
E>RX-PROBE-REQUEST = 4
OK = 3
P2P-DEVICE-FOUND = 1
P2P-DEVICE-LOST = 1
P2P-FIND-STOPPED = 1
P2P-GO-NEG-REQUEST = 1
P2P-PROV-DISC-SHOW-PIN = 1
last_response_message = CTRL-EVENT-SCAN-STARTED
response_messages = 1463
Internal parameters:
Configuration file = hostp2pd.yaml
Interface name = p2p-dev-wlan0
SSID persistent/autonomous group = DIRECT-RPI
Active group = p2p-wlan0-0
Group formation technique = Persistent
Persistent group number (net id) = 0
Activation/deactivation program =
Deactivation program was run = False
Thread backend state = Active
Pbc is in use = False
Configuration method in use = keypad
p2p_connect_time = 0
find_timing_level = connect
Logging level = 10
Number of failures = 0
Stored station name = None
wpa_supplicant errors = 0
Number of scan pollings = 0
wpa_cli process Pid = 780
Enroller wpa_cli process Pid = 785
wpa_cli output
I ran the sudo wpa_cli -i p2p-dev-wlan0 in another window to see the events. here are what i see while running my scenario:
##########################################################################
# hostp2pd - The Wi-Fi Direct Session Manager
# wpa_cli controller of Wi-Fi Direct connections handled by wpa_supplicant
# https://github.com/Ircama/hostp2pd
# (C) Ircama 2021 - CC-BY-NC-SA-4.0
##########################################################################
%YAML 1.1
---
hostp2pd: # (remember to indent options)
pbc_in_use: False # Use method selected in config. (False=keypad, True=pbc, None=wpa_supplicant.conf)
activate_persistent_group: True # Activate a persistent group at process startup
activate_autonomous_group: False # Activate an autonomous group at process startup
dynamic_group: False # allow removing group after a session disconnects
persistent_network_id: None # persistent group network number (None = first in wpa_supplicant config.)
pin: "00000000" # pin
# Log file format
# left everything as default!!!
This should not be a problem of hostp2pd, but related to the wpa_supplicant interaction with the Android device. After hostp2pd creates a persistent group (p2p-wlan0-0 in your example), it just manages the enrolment to this group (P2P-GO events, which are unrelated to the P2P-GO-NEG-REQUEST event of the P2P-Device).
On the Android device, please try touching your item stuck in the Invited status, then removing it through the related popup; redo the enrolment operation more times on Android, to verify whether this problem is always occurring.
P2P_EVENT_GO_NEG_REQUEST: A P2P device requested GO negotiation, but we were not ready to start the negotiation.
It looks like your Android device does not realize that a persistent group is already available on the Raspberry Pi system (wpa_supplicant should be beaconing this to the Wi-Fi network) and opts for the group formation technique, trying to negotiate the GO instead of joining the already existent persistent group.
If you always happen to verify the problem, please share the hostp2pd logs with loglevel 10. You should also check the events of sudo wpa_cli -i p2p-wlan0-0.
@Ircama first of all thanks a lot for providing such a in deep description for hostp2pd.
I may be doing something wrong with some configuration but i cannot manage to get hostp2pd working with persistent connection. I am trying to connect an Android tablet to RPI from Android WIFI Direct setting panel. When i click on my DIRECT-xx from android, it asks me for the pin but after entering the pin, its status on Android remain 'invited'.
Here is the error message shows up on my hostp2pd when is I run it from command line:
Some information of my test bed:
Lunching hostp2pd:
wpa_cli output
I ran the
sudo wpa_cli -i p2p-dev-wlan0
in another window to see the events. here are what i see while running my scenario:/etc/wpa_supplicant/wpa_supplicant.conf
hostp2pd.yaml (removed commented line)
ifconfig
The text was updated successfully, but these errors were encountered: