写描述符失败 – HM-10蓝牙 Low Energy (BLE)

huangapple go评论79阅读模式
英文:

Write descriptor failed - HM-10 BLE

问题

I have problem with HM-10 BLE module with V705 firmware. When I try to connect to the module with Bluetooth Serial Monitor app(Xiaomi Redmi 5 Plus, MIUI 11.0.2 Global, Android 8.1), I get write descriptor failed error. UUID is 0xFFE0(default). Same module works fine with V609 firmware.
Also, phone gets paired with the module if I use BLE Scanner app - Image on info BLE Scanner sees.

I turned on Bluetooth debbuging in Dev. options and I found this.

写描述符失败 – HM-10蓝牙 Low Energy (BLE)

I'm new to Bluetooth (LE). Also, if I try to pair with the module from phone's settings, if module doesn't require PIN, then phone can't pair, but if it requires PIN, then phone can pair. Why?
Why with V705 firmware pairing doesn't work but with V609 works without any problems? All settings are untouched.
HM-10 will be used for DIY project. App for the project will be done soon, so for now I use Bluetooth Serial Monitor app to see packages from BT. Thanks for help!

英文:

I have problem with HM-10 BLE module with V705 firmware. When I try to connect to the module with Bluetooth Serial Monitor app(Xiaomi Redmi 5 Plus, MIUI 11.0.2 Global, Android 8.1), I get write descriptor failed error. UUID is 0xFFE0(default). Same module works fine with V609 firmware.
Also, phone gets paired with mthe module if I use BLE Scanner app - Image on info BLE Scanner sees.

I turned on Bluetooth debbuging in Dev. options and I found this.

写描述符失败 – HM-10蓝牙 Low Energy (BLE)

I'm new to Bluetooth (LE). Also, if I try to pair with the module from phone's settings, if module doesn't require PIN, then phone can't pair, but if it requires PIN, then phone can pair. Why?
Why with V705 firmware pairing doesn't work but with V609 works without any problems? All settings are untouched.
HM-10 will be used for DIY project. App for the project will be done soon, so for now I use Bluetooth Serial Monitor app to see packages from BT. Thanks for help!

答案1

得分: 1

我发现可以通过在AT+TYPE3中将HM模块绑定模式设置为“auth and bonded”来解决此问题。
在应用程序中先配对再连接效果最好;当我在应用程序中将BT模块保持未配对状态,然后尝试进行连接时,会出现多个提示,应用程序会显示连接失败。但是设备实际上已经配对过了,再次尝试连接就可以正常工作。

顺便说一下:“应用程序”=蓝牙串行终端,所以不同于楼主提到的内容,但症状似乎是相同的。我希望有人能够在楼主的应用程序中确认“对我有效”!

英文:

I found this could be resolved by setting the HM module bond mode to "auth and bonded" using AT+TYPE3.
Pairing before connecting in the app is most effective; when I left the BT module unpaired and attempted a connection in the app, there were multiple prompts and the app said the connection failed. The device had been paired, however, and trying the connection again worked fine.

BTW: "the app" = Bluetooth Serial Terminal, so not the same as the OP referred to, but the symptom appears to be the same. I hope someone can confirm "works for me" in the OP's app!

huangapple
  • 本文由 发表于 2020年1月6日 23:46:42
  • 转载请务必保留本文链接:https://go.coder-hub.com/59615031.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定