Skip to content
This repository has been archived by the owner on Aug 5, 2022. It is now read-only.

Missing P2P support #173

Open
MrMEEE opened this issue Feb 27, 2017 · 10 comments
Open

Missing P2P support #173

MrMEEE opened this issue Feb 27, 2017 · 10 comments

Comments

@MrMEEE
Copy link

MrMEEE commented Feb 27, 2017

Hi..

Following the Readme I get:

mj@falcon ~/Hentede filer/wds-master/connman/usr/sbin $ sudo ./connmanctl
connmanctl> enable wifi
Enabled wifi
connmanctl> enable p2p
Error p2p: Method "SetProperty" with signature "sv" on interface "net.connman.Technology" doesn't exist

connmanctl>

Info:

mj@falcon ~/Hentede filer/wds-master/connman/usr/sbin $ wpa_supplicant -v
wpa_supplicant v2.4
Copyright (c) 2003-2015, Jouni Malinen [email protected] and contributors

mj@falcon ~/Hentede filer/wds-master/connman/usr/sbin $ ./connmand -v
1.32

mj@falcon ~/Download/wpa-2.4 $ lspci
00:00.0 Host bridge: Intel Corporation Broadwell-U Host Bridge -OPI (rev 09)
00:02.0 VGA compatible controller: Intel Corporation HD Graphics 5500 (rev 09)
00:03.0 Audio device: Intel Corporation Broadwell-U Audio Controller (rev 09)
00:14.0 USB controller: Intel Corporation Wildcat Point-LP USB xHCI Controller (rev 03)
00:16.0 Communication controller: Intel Corporation Wildcat Point-LP MEI Controller #1 (rev 03)
00:19.0 Ethernet controller: Intel Corporation Ethernet Connection (3) I218-LM (rev 03)
00:1b.0 Audio device: Intel Corporation Wildcat Point-LP High Definition Audio Controller (rev 03)
00:1c.0 PCI bridge: Intel Corporation Wildcat Point-LP PCI Express Root Port #6 (rev e3)
00:1c.1 PCI bridge: Intel Corporation Wildcat Point-LP PCI Express Root Port #3 (rev e3)
00:1d.0 USB controller: Intel Corporation Wildcat Point-LP USB EHCI Controller (rev 03)
00:1f.0 ISA bridge: Intel Corporation Wildcat Point-LP LPC Controller (rev 03)
00:1f.2 SATA controller: Intel Corporation Wildcat Point-LP SATA Controller [AHCI Mode] (rev 03)
00:1f.3 SMBus: Intel Corporation Wildcat Point-LP SMBus Controller (rev 03)
00:1f.6 Signal processing controller: Intel Corporation Wildcat Point-LP Thermal Management Controller (rev 03)
02:00.0 Unassigned class [ff00]: Realtek Semiconductor Co., Ltd. RTS5227 PCI Express Card Reader (rev 01)
03:00.0 Network controller: Intel Corporation Wireless 7265 (rev 99)

Any ideas???

Logfiles:

supplicant.txt
connmand.txt

@jku
Copy link
Contributor

jku commented Feb 27, 2017

connmanctl> enable wifi
Enabled wifi
connmanctl> enable p2p
Error p2p: Method "SetProperty" with signature "sv" on interface "net.connman.Technology" doesn't exist

There's a bug in connmanctl that makes this error message weird: what I think it's trying to say is that technology 'p2p' does not exist -- connman thinks there's no support for Wifi-P2P. What should happen is that after "enable wifi" a new technology with path /net/connman/technology/p2p is created, you can check that with "technologies" in connmanctl.

You might get better help from connman folks, my expertise is pretty limited...

I did do a quick check on a build with connman 1.33, supplicant 2.6 on a NUC with intel 8260 wifi : "enable p2p" works fine.

@MrMEEE
Copy link
Author

MrMEEE commented Feb 28, 2017

Ok.. I got a step further... after compiling supplicant 2.6 from source, I was able to enable p2p...

Now I can scan and detect my device:

connmanctl> scan p2p
connmanctl> peers
DOOGEE_P1_BOkJ70 idle peer_185e0f6a2700_e276d08f5479
Scan completed for p2p
connmanctl> agent on
Agent registered

I can the run the test script:

mj@falcon ~/Hentede filer/wds-master/desktop_source $ sudo ./desktop-source-test

  • Registering Wi-Fi Display Source with IE 00000600101C440032
  • Now scanning for peers...
    0 : DOOGEE_P1_BOkJ70
    connect 0

I then get:
Agent RequestPeerAuthorization peer_185e0f6a2700_e276d08f5479
WPS = [ Type=wpspin, Requirement=mandatory ]
Scan completed for p2p
WPS PIN (empty line for pushbutton)?

in connmanctl...

if I just press enter, the screen turns black on the projector... and nothing happens...

after some time I get:

Agent ReportPeerError peer_185e0f6a2700_e276d08f5479
connect-failed
connmanctl> Retry (yes/no)?

Any ideas???

@MrMEEE
Copy link
Author

MrMEEE commented Feb 28, 2017

When I press enter I get:

mj@falcon ~/Hentede filer/wds-master/desktop_source $ sudo ./desktop-source-test

  • Registering Wi-Fi Display Source with IE 00000600101C440032
  • Now scanning for peers...
    0 : DOOGEE_P1_BOkJ70
    connect 0
  • connected
  • Connected to 192.168.49.1
    ** Message: connection from: 192.168.49.1

@MrMEEE
Copy link
Author

MrMEEE commented Feb 28, 2017

Log files

wpa26.txt
connman133.txt

@jku
Copy link
Contributor

jku commented Feb 28, 2017

What is your sink device? another machine running WDS sink-test or some actual product?

In any case, screen going black (and the connection from 192.168.49.1) suggests the Wifi-p2p part is now succeeding (you mentioned an error message but I'm guessing that was a different test). You should look at the miracast (RTSP) negotiation and any debug output next: I admit I no longer remember how to enable the debug output... "G_MESSAGES_DEBUG=rtsp" might get you the network messages.

@MrMEEE
Copy link
Author

MrMEEE commented Feb 28, 2017

I'm trying to connect to a mini-projector (Doogee P1)...

G_MESSAGES_DEBUG=all sudo ./desktop-source-test

  • Registering Wi-Fi Display Source with IE 00000600101C440032
  • Now scanning for peers...
    0 : DOOGEE_P1_BOkJ70
    connect 0
  • connected
  • Connected to 192.168.49.1
    ** Message: connection from: 192.168.49.1
  • scan complete

Nothing??

@MrMEEE
Copy link
Author

MrMEEE commented Feb 28, 2017

Ok..

./desktop-source-test --gst-debug-level=9

gives alot of info.. can't really find any errors....

Logfile is available here:
http://martin-juhl.dk/wds/log.txt.gz

@MrMEEE
Copy link
Author

MrMEEE commented Mar 22, 2017

@jku Any ideas??

@MrMEEE
Copy link
Author

MrMEEE commented Mar 22, 2017

One thought is that it might be the wrong resolution for the stream that causes the problem... the projector only supports upto 840x400...

Any way to change the format of the stream???

@varun-dhar
Copy link

I am also having this problem enabling p2p from connmanctl, any solution?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants