STM8 MCU Learning Summary 05-Bluetooth Module

Publisher:不羁少年Latest update time:2017-10-23 Source: eefocusKeywords:STM8 Reading articles on mobile phones Scan QR code
Read articles on your mobile phone anytime, anywhere

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;


Keywords:STM8 Reference address:STM8 MCU Learning Summary 05-Bluetooth Module

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

Design Method of Stable Operation of 51 Single Chip Microcomputer in Microcomputer Automatic Switching System
MCS-51 single-chip microcomputer The real-time performance of processing tasks in power line carrier communication is particularly prominent. Since the main service object of the system configuration is power dispatching, and its use environment will mostly be unmanned stations in the future, the stabili
[Microcontroller]
Design Method of Stable Operation of 51 Single Chip Microcomputer in Microcomputer Automatic Switching System
Introduction to PIC16F616 Microcontroller
In order to give a summary of my study of PIC16F616 microcontroller some time ago and to facilitate communication with everyone, I wrote this article about my learning experience of PIC microcontroller. I organized it in my own language after reading the manual and programming and debugging. If there are any defici
[Microcontroller]
The phenomenon of single chip computer program running away and its solution--watchdog circuit
1. Program runaway phenomenon With the widespread application of single-chip microcomputers in the energy field, the anti-interference problem of single-chip microcomputers has become more and more prominent. The underground environment of coal mines is generally harsh, which will bring various interferences to the s
[Microcontroller]
The phenomenon of single chip computer program running away and its solution--watchdog circuit
ATMEGA16 MCU Timer1's OC1A pin outputs a PWM signal with adjustable duty cycle
Using fast PWM mode, the value of OCR1A is set by keystroke to change the duty cycle; When the value exceeds the limit, an alarm is given by LED and LCD. The output can be filtered to obtain a DC signal, and the output will be different by changing the duty cycle. The simulation schematic diagram is as follows and
[Microcontroller]
ATMEGA16 MCU Timer1's OC1A pin outputs a PWM signal with adjustable duty cycle
Introduction to the differences and features of the 51 series microcontrollers
1. Characteristics of 8031 The 8031 ​​chip does not have a program memory ROM. When using it, the user needs an external program memory and a logic circuit 373. The external program memory is mostly EPROM 2764 series. If the user wants to modify the program written in the EPROM, it must be erased with a special ultr
[Microcontroller]
System Hardware Design of Temperature Monitoring System Based on AT89S52 Single Chip Microcomputer
System Structure The whole system consists of an acquisition board, a communication board and a PC monitoring program. The acquisition board uses the temperature monitoring chip DS18B20t21, the single-chip microcomputer chip AT89S52 and the Bluetooth chip BC4 as the core to complete the functions of monitoring the hos
[Microcontroller]
Principle of single chip digital tube display
  A small light is a simple LED that can only express simple information by turning on and off. In this class, we are going to learn a device that can express more clearly, the digital tube.   1. Basic introduction of digital tube   First, let me show you a schematic diagram, as shown in Figure 1. Figure 1 Sche
[Microcontroller]
Principle of single chip digital tube display
A simple design of electronic password lock based on 51 single chip microcomputer
  1 Background and design features of single chip electronic password lock   With the rapid development of high technology today, people have invented various forms of locks, such as password locks, electronic locks and laser locks. Based on traditional keys, these locks use magnetic fields, sound waves and light be
[Microcontroller]
A simple design of electronic password lock based on 51 single chip microcomputer
Latest Microcontroller Articles
Change More Related Popular Components

EEWorld
subscription
account

EEWorld
service
account

Automotive
development
circle

About Us Customer Service Contact Information Datasheet Sitemap LatestNews


Room 1530, 15th Floor, Building B, No.18 Zhongguancun Street, Haidian District, Beijing, Postal Code: 100190 China Telephone: 008610 8235 0740

Copyright © 2005-2024 EEWORLD.com.cn, Inc. All rights reserved 京ICP证060456号 京ICP备10001474号-1 电信业务审批[2006]字第258号函 京公网安备 11010802033920号