当前位置:网站首页>避坑:关于两个HC-05主从一体蓝牙模块互连,连不上问题
避坑:关于两个HC-05主从一体蓝牙模块互连,连不上问题
2022-07-29 05:22:00 【千歌叹尽执夏】
注意事项:
一、首先,一定要买6脚的HC-05主从机一体蓝牙模块,因为要实现两个蓝牙互连,所以一定得一个做主机,一个做从机。
二、接下来就是固定配置步骤,基本跟网上其他博客一样操作。(第9步需要避坑)
1、【AT模式】两个蓝牙模块的PIO11(也就是EN引脚,HC-05有6个脚,HC-06是4个)接VCC,上电后即进入AT指令模式,都用USB转TTL模块连接到电脑的USB接口。(如果是HC-05就直接长按蓝牙模块上的按键就行,红灯慢闪即表示进入了AT模式)
2、【打开串口调试助手】开启2个串口调试窗口,一个打开蓝牙A的COM口,一个打开蓝牙B的COM口。【默认波特率一般为38400】
3、【恢复A默认设置】串口调试助手A,将蓝牙A恢复默认设置:AT+ORGL 【 即回车、换行,在串口调试助手上输入一个回车即可】
4、【设置A配对码】串口调试助手A,配置蓝牙A的配密码:AT+PSWD=0000 【蓝牙A与蓝牙B的密码相同,这样才能成功配对】
5、【设置A主模式】串口调试助手A,将蓝牙A配置为主机模式:AT+ROLE=1
6、【恢复B默认设置】串口调试助手B,将蓝牙B恢复默认设置:AT+ORGL
7、【设置B配对码】串口调试助手B,配置蓝牙B的密码与蓝牙A一致:AT+PSWD=0000
8、【设置B从模式】串口调试助手B,将蓝牙B配置为从机模式:AT+ROLE=0
第8步完成后直接跳到第11步,因为绑定地址后,有玄学,两个蓝牙没办法互连,让他们任意自动连就没问题(也不用担心连上别的模块,因为你已经设置了密码,别的模块,他也连不上,只能连密码相同的)
11、【常规工作模式】2个模块的PIO11引脚都接地,重新上电后进入常规工作模式,自动完成配对。之后,串口调试助手A和串口调试助手B就能互传数据了。
两个蓝牙模块配置后,断电,上电三秒后,会自动连上,然后连灯闪烁频率是连闪两下慢闪一下。
边栏推荐
- 3、 How to read video?
- AttributeError: module ‘tensorflow‘ has no attribute ‘placeholder‘
- 基于STM32开源:磁流体蓝牙音箱(包含源码+PCB)
- 引入Spacy模块出错—OSError: [E941] Can‘t find model ‘en‘.
- ML7自学笔记
- 1、 Focal loss theory and code implementation
- 入门到入魂:单片机如何利用TB6600高精度控制步进电机(42/57)
- 【Transformer】AdaViT: Adaptive Vision Transformers for Efficient Image Recognition
- [target detection] KL loss: bounding box progression with uncertainty for accurate object detection
- 迁移学习笔记——Adapting Component Analysis
猜你喜欢

How to perform POC in depth with full flash distribution?
![[target detection] KL loss: bounding box progression with uncertainty for accurate object detection](/img/8c/1a561fab040730ae29901a04b70ac4.png)
[target detection] KL loss: bounding box progression with uncertainty for accurate object detection

ROS常用指令

Transformer回顾+理解

虚假新闻检测论文阅读(一):Fake News Detection using Semi-Supervised Graph Convolutional Network

"Full flash measurement" database acceleration solution

iSCSI vs iSER vs NVMe-TCP vs NVMe-RDMA

ML16-神经网络(2)

基于FPGA:运动目标检测(补充仿真结果,可用毕设)

迁移学习笔记——Adapting Component Analysis
随机推荐
C # judge whether the user accesses by mobile phone or computer
【Transformer】SOFT: Softmax-free Transformer with Linear Complexity
ML16-神经网络(2)
四、One-hot和损失函数的应用
pip安装后仍有解决ImportError: No module named XX
clion+opencv+aruco+cmake配置
一、Focal Loss理论及代码实现
迁移学习笔记——Adapting Component Analysis
Reporting Services- Web Service
[competition website] collect machine learning / deep learning competition website (continuously updated)
Discussion on the design of distributed full flash memory automatic test platform
一、迁移学习与fine-tuning有什么区别?
【Transformer】AdaViT: Adaptive Vision Transformers for Efficient Image Recognition
torch.nn.Embedding()详解
4、 Application of one hot and loss function
ML15 neural network (1)
AttributeError: module ‘tensorflow‘ has no attribute ‘placeholder‘
ML11-SKlearn实现支持向量机
Migration learning notes - adaptive component analysis
迁移学习——Transfer Joint Matching for Unsupervised Domain Adaptation