无法使用安卓连接到 hc-08 蓝牙模块 [英] Can't connect to to hc-08 bluetooth module with android

查看:128
本文介绍了无法使用安卓连接到 hc-08 蓝牙模块的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我多次尝试连接到 HC-08 蓝牙模块,但起初,我无法将模块与 android 配对,我使用

解决方案

看起来 HC-08 蓝牙模块适用于低功耗蓝牙,而蓝牙电子应用程序适用于蓝牙 BR/EDR 的 HC-05 模块(又名经典).这两者不兼容.

根据:https://drive.google.com/file/d/0B4urklB65vaCcmFqOGRFWV9IR2s/视图

此模块使用的 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.

这篇关于无法使用安卓连接到 hc-08 蓝牙模块的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆