-
Notifications
You must be signed in to change notification settings - Fork 415
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Handeling P2P-INVITATION-REQUEST, RX-PROBE-REQUEST, STA-OPMODE-SMPS-MODE-CHANGED from Windows 10 (as source) #495
Comments
If miraclecast is not GO it should just work, but you need to use FAQ: https://github.com/albfan/miraclecast/wiki/FAQ#microsoft-os-support as microsoft needs extra config |
@albfan Thanks for the reply! Connection did get established and I was using the config already (my bad I didn't mention that). Point 1 (Solved)Problem here was the time it was taking to connect (which was 2 mins except when connecting for first time). There was a I managed to eliminate this delay by adding Following are IE1 and IE2 respectively :
One octet are different (i.e In the case of sending IE2 I immediately got
So I am guessing windows didn't fret much about persistent group and made new one after that. Point 2 (Unsolved)Around using it as GO (it still doesn't work), I checked that DHCP(DISCOVER, OFFER, REQUEST, ACK) seemed fine, but then I got Can you can share what is probably wrong with current implementation that we face issues with Miraclecast as GO ? Point 3 (Solved)Earlier I had copy pasted the example configuration, when I removed the parameters were weren't sure of it works much better. Thanks a ton for your amazing work! I would love to contribute, maybe I can help with the GO issue. |
Remove delay on Windows connection is really interesting, feel free to edit wiki with your parameter findings, we can dig on that |
About GO, I think the miracle-dhcp implementación is wrong, but I cannot find a way to test implementation |
I have removed the delay to a great extent now (2-3 secs). There were couple of more flags which were useful namely :
Following is my config
|
I was monitoring the GO failure with Wireshark on Windows (source) and I think dhcp was successful (as I saw lot DNS request going from assigned IP of windows to the IP of sink). As sink must initiate the RTSP connection, I saw
Above seems to imply the source cannot choose 7236, and also as source didn't reply back to those @albfan am I making any sense here ? |
What is the path to the configuration file? |
@chengpings config file is in |
GroupClientLogs.zip
FailedGroupOwnerLogs.zip
A valid example of communication is needed to implement it
Originally posted by @albfan in #407 (comment)
I have been trying to get seamless screen casting from Windows PCs as source (trying on Windows 10) to my Debian OS as sink. There are following issues so far :
P2P-INVITATION-REQUEST
and after 1min 50s sendP2P-PROV-DISC-PBC-REQ
. It connects successfully thereafter, but I don't want that 2 min delay. I understand there was a persistent group formed earlier which leads to invitation. Therefore I tried to make sink a GO (set thep2p_go_intent=15
), point 2 covers what happens in that case.p2p_go_intent=15
, I seeRX-PROBE-REQUEST
andOPMODE-SMPS-MODE-CHANGED
which go unhandled. It goes tillAP-STA-CONNECTED
then I seeBSS-REMOVED
and things go haywire.vlc -vvv rtp://@7236
, it does show the stream (with 0.5 second delay) but it becomes unresponsive intermittently. Also lot of packet drop and errors in the gstreamer run by miraclecast. It could be because I have not set the sink capabilities correctly through .miraclecast config, any comments are welcome here.I am mainly looking to solve point 1 & 2. As 3 is more about handling the RTP stream but comments are welcome.
Source is looking for some input surely and its critical for it to work. Question is does wpa_supplicant do it without any explicit p2p_* commands or do we have to handle that through some such command ?
I was analyzing trace logs from wpa_supplicant and I saw this :
If wpa_supplicant is going to do it based on above mentioned settings : how do I set these ? Any resources would help.
Or if we have to respond with some p2p_*, I think it will be p2p_connect <mac_address> [to be figured].
As mentioned in another issue,
miracle-dhcp
is not doing good job of handling GO groups properly. Does it also affect the joining of GO group ? I am not sure if Go Client has to send some info regarding the persistent group to join it (other than availablesa
,go_dev_addr
andbssid
).PS: I am willing to work on it please guide me a little here.
./test-viewer.sh
passes.The text was updated successfully, but these errors were encountered: