-
-
Notifications
You must be signed in to change notification settings - Fork 45
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
Cannot get notifications from HCI service #62
Comments
your connect is destroying when you get characteristics. |
Hi Alexey and thank's for your reply. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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
The text was updated successfully, but these errors were encountered: