无法使用Android连接到hc-08蓝牙模块 [英] Can't connect to to hc-08 bluetooth module with android
问题描述
我尝试多次连接到HC-08蓝牙模块,但起初我无法将模块与android配对,并且我通过
看起来HC-08蓝牙模块可与低功耗蓝牙配合使用,而蓝牙电子应用程序可与HC-05模块(即蓝牙BR/EDR)配合使用(又名经典).这两个彼此不兼容.
根据: https://drive.google.com/file/d/0B4urklB65vaCcmFqOGRFWV9IR2s/view
此模块使用的UUID为:
服务:"0000ffe0-0000-1000-8000-00805f9b34fb"
特征:"0000ffe1-0000-1000-8000-00805f9b34fb"
我发现nRF Connect应用程序非常适合测试这类模块.或者,如果您在PC,手机或Raspberry Pi上安装了Chrome或Chromium浏览器,那么只要输入以下网址,即可从那里进行安装:
chrome://bluetooth-internals/#devices
按开始扫描
->检查
设备->点击 0000ffe0-0000-1000-8000-00805f9b34fb
服务->点击 0000ffe1-0000-1000-8000-00805f9b34fb
特征
您现在应该可以读取和写入值.
I tried to connect to the HC-08 Bluetooth module many times but at first, I can't pair module to android and I connect the module to android with Bluetooth Electronics but after the module, I paired I have another issue. I got the below error when I'm tried to connect with the module how can I solve the problem?
Error:
It looks like the HC-08 Bluetooth module works with Bluetooth Low Energy while the Bluetooth Electronics app works with the HC-05 module which is Bluetooth BR/EDR (aka classic). These two are not compatible with each other.
According to: https://drive.google.com/file/d/0B4urklB65vaCcmFqOGRFWV9IR2s/view
The UUID's used by this module are:
Service: "0000ffe0-0000-1000-8000-00805f9b34fb"
Characteristic: "0000ffe1-0000-1000-8000-00805f9b34fb"
I find the nRF Connect app very good for testing these kinds of modules. Or if you have the Chrome or Chromium browser installed on your PC, Phone, or Raspberry Pi, then you can do it from there if you enter the URL of:
chrome://bluetooth-internals/#devices
Press Start Scan
-> Inspect
the device -> click on 0000ffe0-0000-1000-8000-00805f9b34fb
service -> click on 0000ffe1-0000-1000-8000-00805f9b34fb
characteristic
You should now be able to read and write values.
这篇关于无法使用Android连接到hc-08蓝牙模块的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!