question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Method "Connect" with signature "" doesn't exist -> cannot pair device

See original GitHub issue
  • bleak version: 0.5.1
  • Python version: 3.7.6
  • Operating System: Raspbian with Linux kernel 4.19.75
  • Hardware: Raspberry Pi 4B
  • BlueZ version (bluetoothctl -v) in case of Linux: 5.50

Description

When trying to connect a custom BLE Device, I get the same error as in #55 org.freedesktop.DBus.Error.UnknownObject: Method "Connect" with signature "" on interface "org.bluez.Device1" doesn't exist

I use the discover beforehand but still get the error. With the gatttool itself the connection is also not working. EXCEPT when I use the gatttool and set the addresstype to random (sudo gatttool -t random -b D8:80:05:21:2F:99 -I). Then it works.

My idea was to use the BlueZ adapter-api call for ConnectDevice which can receive an AddressType of “random”. But further investigation showed me, that you didn’t implement this methode. And because I am trying to pair a device, I searched for the “Pair”-methode of the BlueZ device-api which is also not called from Bleak.

Can you please explain why that is and you online use the “Connect”-methode, and what can cause the Connect-signature problem?

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:13 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
hbldhcommented, Feb 3, 2020

I have been experiencing the same problems with a new device I have obtained. It only occurs in the BlueZ backend, unpaired. I can connect just fine to it from Windows without pairing, so it should not be needed. I will keep investigating, but I have no idea as to a solution right now…

0reactions
hbldhcommented, Apr 21, 2020

@Illule Is that so. If you send in an address AA:01:01:E1:80:02 bleak constructs the DBus object path here, called from the connect method, since it seemed that the path was constructed that way and that woudl avoid waiting for discovery of the path before connecting. It seems I have to revisit that decision…

Read more comments on GitHub >

github_iconTop Results From Across the Web

Method "Connect" with signature "" on interface "org.bluez ...
I got it work by removing and repairing the bluetooth device from my user interface and restarting the bluetooth device.
Read more >
BlueZ: Method "Connect" with signature "s" on interface "org ...
BlueZ: Method "Connect" with signature "s" on interface "org.bluez.Network1" doesn't exist · org.bluez.Network1 belongs to the device interface.
Read more >
Method does not exist or incorrect signature
I'm trying to complete a some test code and am running into the 'Method does not exist or incorrect signature' error.
Read more >
ConnMan - ArchWiki
"Not registered", or "Method "Connect" with signature ... doesn't exist". When issuing commands, you may see errors like the following: From a ...
Read more >
Smartphone cannot be paired; error msg: "Request signature ...
Did you try to delete the application from this phone, unpair the device from PingOne for this user so he can repair, and...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found