Skip to content
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

ConnectDevice results in org.freedesktop.DBus.Error.UnknownMethod #22

Closed
ryankurte opened this issue Jan 27, 2022 · 9 comments
Closed
Assignees
Labels
bug Something isn't working

Comments

@ryankurte
Copy link

hi there,

attempting to use Adapter::connect_device results in:

Error { kind: Internal(DBus("org.freedesktop.DBus.Error.UnknownMethod")), message: "Method \"ConnectDevice\" with signature \"a{ss}\" on interface \"org.bluez.Adapter1\" doesn't exist\n" }

i have enabled experimental features in bluetoothd, and d-feet shows this method does exist:

image

it appears that bluez is expecting an a{sv} signature (a string:variant dictionary) while bluer is calling with a{ss} (a string:string dictionary). i had a go at patching this, but it also seems that bluer won't compile when included via a path ¯\(ツ)

error: failed to run custom build command for `bluer v0.13.2 (/home/ryan/projects/forks/bluer/bluer)`

Caused by:
  process didn't exit successfully: `/home/ryan/projects/spo2/target/debug/build/bluer-55d669f39f7d50ee/build-script-build` (exit status: 101)
  --- stdout
  cargo:rerun-if-changed=service_class_uuids.json
  cargo:rerun-if-changed=bluetooth-numbers-database/v1/service_uuids.json

  --- stderr
  thread 'main' panicked at 'services: Os { code: 2, kind: NotFound, message: "No such file or directory" }', /home/ryan/projects/forks/bluer/bluer/build.rs:227:6

relates to: deviceplug/btleplug#244

@surban
Copy link
Collaborator

surban commented Jan 27, 2022

Have you cloned Bluer with submodules?

@surban surban self-assigned this Jan 27, 2022
@surban surban added the bug Something isn't working label Jan 27, 2022
@surban surban closed this as completed in 1c5e486 Jan 29, 2022
@surban
Copy link
Collaborator

surban commented Jan 29, 2022

Could you check again with the current master branch?

@ryankurte
Copy link
Author

Have you cloned Bluer with submodules?

that's what i was missing, thanks!

Could you check again with the current master branch?

the dbus call works nicely, though it turns out this method fails if the bluer already knows about the device so it actually doesn't seem to help with my device issue...

@surban
Copy link
Collaborator

surban commented Jan 31, 2022

Calling Adapter::remove_device might help with such issues.

@ryankurte
Copy link
Author

oooh, that gets me to discovering UUIDs ~30% of the time, but still no services. i think there's something non-standard in the implementation of this SPO2 sensor, though it's weird that nRF connect doesn't seem to mind.

@surban
Copy link
Collaborator

surban commented Feb 2, 2022

Have you tried the settings from the README for bluetoothd?

Also most problems are caused by old versions of BlueZ, not BlueR. So updating that might help.

@ryankurte
Copy link
Author

Have you tried the settings from the README for bluetoothd?

only --experimental, i could try getting some more debug out though.

Also most problems are caused by old versions of BlueZ, not BlueR. So updating that might help.

cheers, will have a look! though it strikes me as strange that gattool can talk to it (see linked btleplug issue) :-/

@surban
Copy link
Collaborator

surban commented Feb 3, 2022

gatttool does not use the bluetoothd, so this indeed seems to be an issue with the daemon.

@ryankurte
Copy link
Author

gatttool does not use the bluetoothd, so this indeed seems to be an issue with the daemon.

aha, that's super helpful thanks! i'll have to see if i can get the debian testing release running on my bullseye install.

otaviojr added a commit to otaviojr/bluer that referenced this issue May 10, 2023
# This is the 1st commit message:

BLE Passive Scanning

# This is the commit message #2:

monitor

# This is the commit message bluez#3:

monitor

# This is the commit message bluez#4:

monitor

# This is the commit message bluez#5:

monitor

# This is the commit message bluez#6:

monitor

# This is the commit message bluez#7:

monitor

# This is the commit message bluez#8:

monitor

# This is the commit message bluez#9:

monitor

# This is the commit message bluez#10:

monitor

# This is the commit message bluez#11:

monitor

# This is the commit message bluez#12:

monitor

# This is the commit message bluez#13:

monitor

# This is the commit message bluez#14:

monitor

# This is the commit message bluez#15:

monitor

# This is the commit message bluez#16:

monitor

# This is the commit message bluez#17:

monitor

# This is the commit message bluez#18:

monitor

# This is the commit message bluez#19:

monitor

# This is the commit message bluez#20:

monitor

# This is the commit message bluez#21:

monitor

# This is the commit message bluez#22:

monitor

# This is the commit message bluez#23:

monitor

# This is the commit message bluez#24:

monitor

# This is the commit message bluez#25:

monitor

# This is the commit message bluez#26:

monitor

# This is the commit message bluez#27:

monitor

# This is the commit message bluez#28:

monitor

# This is the commit message bluez#29:

monitor

# This is the commit message bluez#30:

monitor

# This is the commit message bluez#31:

monitor

# This is the commit message bluez#32:

monitor

# This is the commit message bluez#33:

monitor

# This is the commit message bluez#34:

monitor

# This is the commit message bluez#35:

monitor

# This is the commit message bluez#36:

monitor

# This is the commit message bluez#37:

monitor

# This is the commit message bluez#38:

monitor

# This is the commit message bluez#39:

monitor

# This is the commit message bluez#40:

monitor

# This is the commit message bluez#41:

monitor

# This is the commit message bluez#42:

monitor

# This is the commit message bluez#43:

monitor

# This is the commit message bluez#44:

monitor

# This is the commit message bluez#45:

monitor

# This is the commit message bluez#46:

monitor

# This is the commit message bluez#47:

monitor

# This is the commit message bluez#48:

monitor

# This is the commit message bluez#49:

monitor

# This is the commit message bluez#50:

monitor

# This is the commit message bluez#51:

monitor

# This is the commit message bluez#52:

monitor

# This is the commit message bluez#53:

monitor

# This is the commit message bluez#54:

monitor

# This is the commit message bluez#55:

monitor

# This is the commit message bluez#56:

monitor

# This is the commit message bluez#57:

monitor

# This is the commit message bluez#58:

monitor

# This is the commit message bluez#59:

monitor

# This is the commit message bluez#60:

monitor

# This is the commit message bluez#61:

monitor

# This is the commit message bluez#62:

monitor
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants