BlueZ Compatible kernel version

2020-03-26 05:52发布

问题:

I am using the kernel version 3.0.35 with bluez-4.98 in linux. With this I'm able to advertise the ibeacon as per the hcitool command given in one of the SO questions. I am also able to connect to the other ble device but not able to list its services using 'primary' in gatttool.

I want to use my device now as a peripheral to let other device to get its Device Information, and later in the Central mode to know the Device Information of other ble devices.

Will this kernel version and bluez version be compatible for the task?

EDIT: I want the device information like the Firmware Revision, Hardware Revision etc the other characteristics of the DIS service. And how can I update my database for these fields, is it through some xml or some config file?

回答1:

I know there are bugs in LE functionality in versions before 4.101. You can't use Bluez 5.x in kernels that old, but you should be able to use the latest 4.x version which is 4.101 which may solve your problem.

Firmware Revision, Hardware Revision String, and such can all be requested by their UUID with gatttool. I know nothing about any database you're using.