views:

29

answers:

0

Hello All,

I am working on developing a HID Bluetooth Driver, that would allow an user to connect a bluetooth keyboard or mouse. So far I was able to achieve this using JNI, and a C BlueZ interface, but there were compatibility problems: the software only worked on a few devices.

As Bluetooth support was introduced from Android 2.0, I was thinking to give it a try. I am able to manage the L2CAP connections using the Android SDK, but I have a few problems so far: 1)- how to read the STANDARD (!!) Bluetooth Device class. Android offers some custom Bluetooth Class values that are useless 2)- how to read a Service record (I am interested in the Report Descriptor, attribute ID 0x206). Basically I need to do exactly what getRemoteServiceRecord does.

Is it possible in the current form of the Bluetooth SDK? Should I consider using reflection on the bluetooth service running on the device?

Please note that I would prefer to go as Standard as possible, to avoid any other compatibility issues.

Thank you.