Hi,
For the longest time I've been working on applications that would allow bt connection between an Android device and an embedded prototype we have developed.
For about a year now I was able to establish a connection between the two, using 6 Android devices I had in my disposal.
Today, I've tried some new Android devices, to realize that the connection fails, some Android devices fail with a "Permission denied" IOException, and the other Android devices causes the sdk to crash with the SDK_WRONG_EVENT_RECEIVED, I've monitored the received ACL events on the embedded program and have put the data into the following table, what you see are the event types received:
| Small LG | Pantech | Large LG | S3 | Nexus 7 | |||
| 0x0F | 0x0F | 0x0F | 0x0F | 0x0F | 0x0F | 0x0F | 0x0F |
| 0x03 | 0x03 | 0x03 | 0x03 | 0x03 | 0x03 | 0x03 | 0x03 |
| 0x20 | 0x20 | 0x20 | 0x20 | 0x20 | 0x20 | 0x20 | 0x20 |
| 0x1B | 0x1B | 0x0E | 0x0E | 0x0E | 0x0E | 0x1B | 0x0E |
| 0x0E | 0x0E | 0x1B | 0x1B | 0x1B | 0x1B | 0x0E | 0x1B |
| 0x13 | 0x13 | 0x0E | 0x0E | 0x13 | 0x13 | 0x13 | 0x13 |
| 0x0E | 0x0E | 0x0E | 0x08 | 0x13 | 0x13 | 0x13 | 0x13 |
| 0x38 | 0x38 | 0x0E | 0x13 | 0x13 | 0x13 | 0x13 | 0x13 |
| 0x0E | 0x08 | 0x36 | 0x13 | 0x0E | 0x13 | 0x13 | 0x13 |
| 0x0E | 0x18 | 0x13 | 0x0E | 0x0E | 0x13 | 0x0E | |
| 0x36 | 0x13 | 0x0E | 0x13 | 0x36 | 0x13 | 0x0E | 0x36 |
| 0x18 | 0x05 | 0x0E | 0x0E | 0x18 | 0x08 | 0x36 | 0x0E |
| 0x08 | 0x0E | 0x36 | 0x0E | 0x08 | 0x0E | ||
| 0x18 | 0x36 | 0x13 | 0x13 | ||||
| 0x13 | 0x08 | 0x18 | 0x13 | 0x05 | 0x13 | 0x05 | |
| 0x05 | 0x13 | 0x30 | 0x05 | 0x0E | 0x05 | 0x0E | |
| 0x0E | 0x13 | 0x0E | 0x0E | ||||
| 0x13 | 0x13 | ||||||
| 0x0E | 0x05 | ||||||
| 0x0E | 0x0E | ||||||
| 0x36 | |||||||
| 0x18 | |||||||
| 0x30 | |||||||
| 0x13 | |||||||
| 0x13 | |||||||
| 0x14 | |||||||
| 0x2E | |||||||
| 0x14 | |||||||
| 0x13 | |||||||
| 0x05 | |||||||
| 0x0E | |||||||
The S3, Note 2 receive a permission exception...
The Nexus 7 causes the SDK to crash with the SDK_WRONG_EVENT_RECEIVED error...
NOTE: The working device but not all of them are older version of android, all the devices which are of version 4.0+ does not work and fail with the reasons above.
If I'm not mistaken the 0x18 event (HCI_LINK_KEY_NOTIFICATION_EVENT) is not called, and that is why things don't work...
I've also encountered this, and tried it out, but it didn't work, it just didn't crash the application, and simply received an ACL disconnection event.
I've also tried to play with the 5040.sdk_bluetooth_common_config.h but it seem to have no effect... :(
Thanks in advance,
Adam Zehavi.