xrucka / bluetooth-manager-dbus

Bluetooth transport implementation bypassing tinyb and using directly dbus binding instead
Apache License 2.0
1 stars 2 forks source link

Cannot make it work on RPI4 Debian Buster #11

Open TD-3294 opened 4 years ago

TD-3294 commented 4 years ago

Hi,

First of all, thanks for this library. Nice work. I cannot get it to work on Debian Buster. Tried running bluetoothd 5.50 with --experimental and without --experimental.

I get the logs:

[Sender] INFO org.freedesktop.dbus.MessageWriter - <= MethodCall(0,2545) { Path=>/, Interface=>org.freedesktop.DBus.ObjectManager, Member=>GetManagedObjects, Destination=>org.bluez } { }
[Sender] INFO org.freedesktop.dbus.MessageWriter - <= MethodCall(0,2546) { Path=>/org/bluez/hci0, Interface=>org.freedesktop.DBus.Properties, Member=>Get, Destination=>org.bluez, Signature=>ss } { org.bluez.Adapter1, Name }
[Sender] INFO org.freedesktop.dbus.MessageWriter - <= MethodCall(0,2547) { Path=>/org/bluez/hci0, Interface=>org.freedesktop.DBus.Properties, Member=>Get, Destination=>org.bluez, Signature=>ss } { org.bluez.Adapter1, Alias }
[Sender] INFO org.freedesktop.dbus.MessageWriter - <= MethodCall(0,2548) { Path=>/, Interface=>org.freedesktop.DBus.ObjectManager, Member=>GetManagedObjects, Destination=>org.bluez } { }

But no device is detected. I am new to bluetoothd/bluez, so not sure if I am doing the right thing. I am using org.sputnikdev.bluetooth.manager.BluetoothManager library. It sort of works with tinyb (I can see the devices, but not get their characteristics).

I have added a discoveryListener and loaded your Class as BluetoothManager, but no devices are discovered.

Any help would be appreciated. Do you have any sample code, for instance?

Thanks,

Juan

xrucka commented 4 years ago

Hello, I have near-to-none time to support the project in near future, so I apologize for late responses. As for your problem, I'd start with following:

1) try bluetoothctl, list, select adapter, power on, scan on - to see if your adapter works all right. If you connect to any of the devices, you should get also characteristics printouts. 2) try d-feet (a dbus probe gui), that should allow you to walk through the dbus-exported interfaces. You should also see the adapter and allready discovered devices.

This is only a theory, however it might be that your system for some reason does not fire notifications. I had experienced similar issues on RPI3, which is why I started working on this project.

TD-3294 commented 4 years ago

Thanks many, will try that.

Cheers,

Juan

From: Lukáš Ručka notifications@github.com Reply-To: xrucka/bluetooth-manager-dbus reply@reply.github.com Date: Sunday, October 13, 2019 at 3:35 PM To: xrucka/bluetooth-manager-dbus bluetooth-manager-dbus@noreply.github.com Cc: "Juan F. Arjona" jarjona@noven.io, Author author@noreply.github.com Subject: Re: [xrucka/bluetooth-manager-dbus] Cannot make it work on RPI4 Debian Buster (#11)

Hello, I have near-to-none time to support the project in near future, so I apologize for late responses. As for your problem, I'd start with following:

  1. try bluetoothctl, list, select adapter, power on, scan on - to see if your adapter works all right. If you connect to any of the devices, you should get also characteristics printouts.
  2. try d-feet (a dbus probe gui), that should allow you to walk through the dbus-exported interfaces. You should also see the adapter and allready discovered devices.

This is only a theory, however it might be that your system for some reason does not fire notifications. I had experienced similar issues on RPI3, which is why I started working on this project.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHubhttps://github.com/xrucka/bluetooth-manager-dbus/issues/11?email_source=notifications&email_token=AM3CYCBTBE3TWDCOTWQLVJTQOOBBBA5CNFSM4I7GVB2KYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEBC7UUQ#issuecomment-541456978, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AM3CYCDR3TGOW3BI5YVGLQ3QOOBBBANCNFSM4I7GVB2A.