当前位置:网站首页>Pit avoidance: about the interconnection of two hc-05 master-slave integrated Bluetooth modules, there is no connection problem
Pit avoidance: about the interconnection of two hc-05 master-slave integrated Bluetooth modules, there is no connection problem
2022-07-29 06:15:00 【A thousand songs sigh and hold the summer】
matters needing attention :
One 、 First , Be sure to buy 6 Foot's HC-05 Master slave Bluetooth module , Because it is necessary to realize the interconnection of two Bluetooth , So one must be the host , A slave .
Two 、 Next is the fixed configuration step , Basically, it operates like other blogs on the Internet .( The first 9 Step needs to avoid the pit )
1、【AT Pattern 】 Of two Bluetooth modules PIO11( That is to say EN Pin ,HC-05 Yes 6 A foot ,HC-06 yes 4 individual ) Pick up VCC, Enter... After power on AT Command mode , Use both USB turn TTL The module is connected to the computer's USB Interface .( If it is HC-05 Just press and hold the button on the Bluetooth module , If the red light flashes slowly, it means you have entered AT Pattern )
2、【 Open the serial debugging assistant 】 Turn on 2 A serial port debugging window , One turns on Bluetooth A Of COM mouth , One turns on Bluetooth B Of COM mouth .【 The default baud rate is generally 38400】
3、【 recovery A default setting 】 Serial debugging assistant A, Bluetooth A Restore default settings :AT+ORGL 【 Enter immediately 、 Line break , Enter a carriage return on the serial port debugging assistant 】
4、【 Set up A Pairing code 】 Serial debugging assistant A, Configure Bluetooth A Password :AT+PSWD=0000 【 bluetooth A With Bluetooth B The password is the same , In order to successfully pair 】
5、【 Set up A Main mode 】 Serial debugging assistant A, Bluetooth A Configure to host mode :AT+ROLE=1
6、【 recovery B default setting 】 Serial debugging assistant B, Bluetooth B Restore default settings :AT+ORGL
7、【 Set up B Pairing code 】 Serial debugging assistant B, Configure Bluetooth B Password and Bluetooth A Agreement :AT+PSWD=0000
8、【 Set up B Slave mode 】 Serial debugging assistant B, Bluetooth B Configured as slave mode :AT+ROLE=0
The first 8 Skip directly to step 11 Step , Because after binding the address , There is metaphysics , Two Bluetooth cannot be interconnected , Let them automatically connect at will ( Don't worry about connecting to other modules , Because you have set the password , Other modules , He can't even connect , Only those with the same password )
11、【 Normal operating mode 】2 Module PIO11 All pins are grounded , After power on again, enter the normal working mode , Automatically complete pairing . after , Serial debugging assistant A And serial port debugging assistant B You can transfer data to each other .
After two Bluetooth modules are configured , power failure , Three seconds after power on , It will automatically connect to , Then the flashing frequency of the continuous light is two times of continuous flashing and one time of slow flashing .
边栏推荐
- ML自学笔记5
- Beijing Baode & taocloud jointly build the road of information innovation
- Torch. NN. Parameter() function understanding
- Model building in pytorch
- Design and implementation of QT learning notes data management system
- Based on stc51: schematic diagram and source code of four axis flight control open source project (entry-level DIY)
- 2、 Summary of deep learning data enhancement methods
- 1、 Pytorch Cookbook (common code Collection)
- Transfer learning
- QT learning notes - Import and export of Excel
猜你喜欢
随机推荐
How to perform POC in depth with full flash distribution?
智慧充电桩系统由什么组成?
DP1332E多协议高度集成非接触式读写芯片
STM32FF030 替代国产单片机——DP32G030
Discussion on the design of distributed full flash memory automatic test platform
Reading papers on false news detection (I): fake news detection using semi supervised graph revolutionary network
NRF52832-QFAA 蓝牙无线芯片
Hal learning notes - Basic timer of 7 timer
2.4G频段的无线收发芯片 SI24R1 问题汇总解答
【RoboMaster】从零开始控制RM电机(2)-CAN通信原理及电调通信协议
1、 Transmission of file stream on Web page
QT学习笔记-数据管理系统设计实现
AttributeError: module ‘tensorflow‘ has no attribute ‘placeholder‘
噪声传感器工作原理是什么?
Beijing Baode & taocloud jointly build the road of information innovation
Hal library learning notes-13 application of I2C and SPI
Hal library learning notes-11 I2C
Huawei cloud 14 day Hongmeng device development -day3 kernel development
扬尘噪声监控系统
HAL库学习笔记-10 HAL库外设驱动框架概述









