tinyb icon indicating copy to clipboard operation
tinyb copied to clipboard

can not get some service

Open zewenhs opened this issue 7 years ago • 8 comments

I can not get some services when i use tinyb(hellotinyb.cpp), result as: image

But with gatttool as: image

why there have not 1800 and 1812 (uuid) service with tinyb? thanks!

zewenhs avatar Nov 30 '17 08:11 zewenhs

I use raspberry pi3 with blueZ 5.47

zewenhs avatar Nov 30 '17 08:11 zewenhs

Same issue here. Using the Ubuntu 16.10 with bluez 5.43

tonyho avatar Dec 02 '17 03:12 tonyho

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 avatar Dec 02 '17 10:12 aplastiras

@aplastiras , hello,

I checked the TROUBLESHOOTING.md and follow it , but not worked for me... which hardware and software do you used? thank you!

zewenhs avatar Dec 04 '17 07:12 zewenhs

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 avatar Dec 04 '17 08:12 petreeftime

@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.

zewenhs avatar Dec 04 '17 09:12 zewenhs

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.

vkolotov avatar Jan 11 '18 03:01 vkolotov

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?

vkolotov avatar Jan 11 '18 03:01 vkolotov