Android6,BLE设备的认证问题,访问LinkKey位

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

我有一个关于 android 6 和 BLE 兼容性的问题。

我的应用程序对受保护的特性发起读取请求,启动配对显示以输入适当的密码。使用正确的密码,如果 android < 6.0

,智能手机和 ble 设备就可以很好地绑定

我也尝试过 android 6.0.1,但它一直给我同样的信息 "Couldn't pair because of an incorrect PIN or passkey"

这不是权限问题,因为我已经通过 ACCESS_COARSE_LOCATION 请求获得了职位权限。

看来是配对请求中LinkKey位的问题。 我需要访问它并阻止它,因为 ble 设备被配对请求中的附加位混淆(因为它使用蓝牙 4.0 而不是 4.2)。

知道怎么做吗?

Ti BLE 堆栈 1.4.0 中的已知错误 fixed in 1.4.1:

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