gpt4 book ai didi

android - BLE 蓝牙低功耗设备中的身份验证问题

转载 作者:IT老高 更新时间:2023-10-28 23:25:01 26 4
gpt4 key购买 nike

我们正在制作一个带有 BLE 接口(interface)的 IOT 设备,该设备使用 HM-11 (http://www.seeedstudio.com/wiki/Bluetooth_V4.0_HM-11_BLE_Module) 分线板,承载芯片 CC2541 (http://www.ti.com/product/CC2541)。

认证方式设置为2:Auth with PIN

数据表中显示可用身份验证模式的剪辑如下:

63。查询/设置模块绑定(bind)模式
发送接收参数
AT+类型? OK+Get:[para1] 无
AT+TYPE[para1] OK+Set:[para1] Para1: 0~2
0:不需要PIN码
1:Auth不需要PIN
2:使用 PIN 进行身份验证
3:认证和绑定(bind)
默认值:0

对于低于 Android 5.0 版本的设备,它运行良好。

然而

  1. 对于 Android 5.0 版的设备,配对对话框出现时没有 diaplyed-pin 或 pin-entering-field,并且当单击 pair 按钮时,它无法配对 - 提示

    Couldn't pair with MyApp because of an incorrect PIN or passkey.

  2. 对于 Android 5.1 版的设备,它甚至不显示配对对话框并且无法配对。

注意事项:尝试重启设备、忘记设备、清除设备中的绑定(bind)信息。

寻找指导、建议、帮助、评论、代码。

最佳答案

这是 known issue - 不少用户报告了无法使用 Android 5.0 输入密码的问题。它似乎并非在所有设备上都会发生。

其他问题示例:

https://android.stackexchange.com/questions/88011/android-5-bluetooth-pairing-dialog-has-no-passkey-form

https://en.discussions.tomtom.com/mysports-connect-apps-389/pairing-issue-on-nexus-5-android-5-948640

关于android - BLE 蓝牙低功耗设备中的身份验证问题,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/36030389/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com