Android 6, authentification issue with BLE Device, access to the LinkKey bits

删除回忆录丶 提交于 2019-12-11 06:25:22

问题


I've got an issue about android 6 and BLE compatibility.

My app initiate a read request on a protected characteristic which launch the pairing display to enter the appropriate passcode. With the right pass code, the smartphone and the ble device are bonded just fine if it's with android < 6.0

I tried with an android 6.0.1 too but it keeps giving me the same message "Couldn't pair because of an incorrect PIN or passkey"

It's not a permission issue since i already get the position permission with ACCESS_COARSE_LOCATION request.

It seems it's a problem about the LinkKey bits in the pairing request. I need to access it and block it since the ble device is confused by the additional bit(s) in the pairing request (because of its use of the Bluetooth 4.0 and not 4.2).

Any idea how to do that?


回答1:


Known bug in 1.4.0 of Ti BLE stack got fixed in 1.4.1:

Fix for CC254x host Bond Manager setParam configuration does not support M/S LinkKey enc exchange



来源:https://stackoverflow.com/questions/38832903/android-6-authentification-issue-with-ble-device-access-to-the-linkkey-bits

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!