Open DrCWO opened 1 year ago
your connect is destroying when you get characteristics.
this problem in hardware bluetooth.
Hi Alexey and thank's for your reply. I still don't understand how to make it work. Using the default HCI-Driver in the kernel the hardware works but delayed after reconnect. I believe that the hardware is OK as the HCI-driver can use it. So I want to know what to do to make it work? Are you able to help with a solution?
Hi out there, I got an issue I cannot solve by myself so some help would be appreciated. Here my configuration.
I am on a Raspberry with Raspbian. I have a Microsoft Surface Dial (which is a HCI device). The Surface Dial is paired with the Raspberry. I did this with bluetoothctl.
I like to get notifications directly from D-Bus so I disabled the HCI service in
/lib/systemd/system/bluetooth.service
by settingExecStart=/usr/libexec/bluetooth/bluetoothd --noplugin=sap,input,hog
to be able to access the HCI service via D-Bus.In my first implementation I used RAW HCI to get the data but after a disconnect of the device it takes more than three seconds after touching the Surface Dial until the HCI-Service was available again. This is much to long as rotating the dial a sudden reaction must occur. This is why I tried to use D-Bus. So in this implementation here I get the connect event immediately but I was not able to get the data any more π
I used the code below to get notification from the HCI Report Characteristic of the Surface Dial but it failed:
Running this code anything worked fine at the beginning. The service and the characteristic were found. But trying to setup the notification I get an error message. See output below:
Any idea why I cannot start the notification?
Best DrCWO