tinyb
tinyb copied to clipboard
can not get some service
I can not get some services when i use tinyb(hellotinyb.cpp), result as:
But with gatttool as:
why there have not 1800 and 1812 (uuid) service with tinyb? thanks!
I use raspberry pi3 with blueZ 5.47
Same issue here. Using the Ubuntu 16.10 with bluez 5.43
Hi to all Have you checked this guide? https://github.com/intel-iot-devkit/tinyb/blob/master/TROUBLESHOOTING.md
I had the same problem with older version of BlueZ (5.32), but after changing to 5.43 it worked for me. Please check the above points.
@aplastiras , hello,
I checked the TROUBLESHOOTING.md and follow it , but not worked for me... which hardware and software do you used? thank you!
Some services are used by BlueZ and never exposed to others. They are accessible through the methods exposed by BlueZ. In this case 1800 is the the GAP service and it's never exposed. 1812 is the HID service and I think it only gets exposed to root or not at all, since otherwise any program might be capable of reading what is typed in by the user, if the user is using a Bluetooth keyboard.
@petreeftime Thank you for your reply, But why other program cannot get 1812(HID service data)data? if this is permission issue, there must an method to allow program to discovery this service. By the way, I can get all of this five services with nrfconnect(app) in android.
The new version of Bluez (v5.48) also removed Battery Service, it is not getting resolved anymore.
https://www.bluetooth.com/specifications/gatt/viewer?attributeXmlFile=org.bluetooth.service.battery_service.xml
Why would they do this... Seems to me odd.
They have introduced a new DBus interface: https://git.kernel.org/pub/scm/bluetooth/bluez.git/tree/doc/battery-api.txt
But still... why would they remove a service... They just don't think that this could have broken anything?