The "Bluetooth module" used in this operation is "HC-06". Please pay attention to the following points:
01) "HC-06" (Bluetooth module), like "HC-05", both are controlled by "AT commands", but please note:
i) "HC-06" is connected to the "serial port", the voltage is "+5.0V", the "baud rate" defaults to "9600", the "device name" defaults to "HC-06", and the "pairing password" defaults to "1234";
ii) When "HC-06" sends "AT command", there is no need to add "\r\n" (Enter key) at the end;
iii) It needs to be used in conjunction with a "mobile phone app", and "Bluetooth Serial Port Assistant Pro" is recommended;
02) The main operations of "HC-06" corresponding to "AT commands" are as follows:
i) "Test communication": send "AT", return "OK";
ii) Modify the "baud rate": send "AT+BAUDx", "x" is "1~C" (uppercase letters, a total of "12"); for example: "AT+BAUD8" returns "OK115200";
"Digital"----"Baud rate";
“1”----“1200”; “2”----“2400”; “3”----“4800”; “4”----“9600” (default);
"5"----"19200"; "6"----"38400"; "7"----"57600"; "8"----"115200";
"9"----"230400"; "A"----"460800"; "B"----"921600"; "C"----"1382400";
iii) Modify the "Bluetooth name": send "AT+NAMEname", return "OKname", "name" is the "new name";
iv) Modify the "pairing password": send "AT+PINxxxx", return "OKsetpin", "xxxx" is the "new password";
After opening "Bluetooth Serial Port Assistant Pro" with a "mobile phone", it is recommended to set "Send Data Port" to "Send IO as HEX" (default "ASCII"), "End Symbol", and you can also set the "Keyboard Button" corresponding to the "Key Value";
In actual use, when the format of data sent by "Bluetooth Serial Port Assistant Pro" changes, "HC-06" can still select valid data, provided that the "valid data" is in "HEX" format. If it is in "ASCII" format, it needs to be converted;
Previous article:STM8 MCU Learning Summary 04
Next article:Keil's software simulation and hardware simulation
Recommended ReadingLatest update time:2024-11-23 08:05
- Popular Resources
- Popular amplifiers
- Wireless Sensor Network Technology and Applications (Edited by Mou Si, Yin Hong, and Su Xing)
- Modern Electronic Technology Training Course (Edited by Yao Youfeng)
- Modern arc welding power supply and its control
- Small AC Servo Motor Control Circuit Design (by Masaru Ishijima; translated by Xue Liang and Zhu Jianjun, by Masaru Ishijima, Xue Liang, and Zhu Jianjun)
- Naxin Micro and Xinxian jointly launched the NS800RT series of real-time control MCUs
- How to learn embedded systems based on ARM platform
- Summary of jffs2_scan_eraseblock issues
- Application of SPCOMM Control in Serial Communication of Delphi7.0
- Using TComm component to realize serial communication in Delphi environment
- Bar chart code for embedded development practices
- Embedded Development Learning (10)
- Embedded Development Learning (8)
- Embedded Development Learning (6)
Professor at Beihang University, dedicated to promoting microcontrollers and embedded systems for over 20 years.
- Intel promotes AI with multi-dimensional efforts in technology, application, and ecology
- ChinaJoy Qualcomm Snapdragon Theme Pavilion takes you to experience the new changes in digital entertainment in the 5G era
- Infineon's latest generation IGBT technology platform enables precise control of speed and position
- Two test methods for LED lighting life
- Don't Let Lightning Induced Surges Scare You
- Application of brushless motor controller ML4425/4426
- Easy identification of LED power supply quality
- World's first integrated photovoltaic solar system completed in Israel
- Sliding window mean filter for avr microcontroller AD conversion
- What does call mean in the detailed explanation of ABB robot programming instructions?
- STMicroelectronics discloses its 2027-2028 financial model and path to achieve its 2030 goals
- 2024 China Automotive Charging and Battery Swapping Ecosystem Conference held in Taiyuan
- State-owned enterprises team up to invest in solid-state battery giant
- The evolution of electronic and electrical architecture is accelerating
- The first! National Automotive Chip Quality Inspection Center established
- BYD releases self-developed automotive chip using 4nm process, with a running score of up to 1.15 million
- GEODNET launches GEO-PULSE, a car GPS navigation device
- Should Chinese car companies develop their own high-computing chips?
- Infineon and Siemens combine embedded automotive software platform with microcontrollers to provide the necessary functions for next-generation SDVs
- Continental launches invisible biometric sensor display to monitor passengers' vital signs
- Method for testing FPGA logic unit based on BIST using ORCA structure
- [TI recommended course] #[High Precision Laboratory] Magnetic Sensor Technology#
- Verilog_HDL_Implementation of Common Logic
- TI CC2530 button controls the light on and off
- Could you please tell me what component this is?
- Why does the STM series MCU use SMD T card instead of traditional T card?
- LM258 circuit help
- Some Experience on Loop Compensation
- Why are chips so difficult to make? It's a miracle to make these
- What are the advantages of transistor + MOS over MOS alone? After all, the battery is a single cell, and the full charge is 4.2V, which is low voltage.