Configuration explanation based on "HC-05 Embedded Bluetooth Serial Communication Module AT Command Set"


> Version 05 for unconfigured bluetooth use 38400, configured use 115200

   Version 06 unconfigured bluetooth use 9600, configured use 115200

Cross-version communication is not possible between different versions


> During the process, you need to close the serial port first and then unplug the serial port, otherwise the host computer will crash


>Long press the button on the bluetooth to connect to the computer, the bluetooth light flashes once a second is normal


> open SSCOM32[1]


> set the baud rate to 38400


> Send new line tick


> send AT, return ok


If it returns ERROR:(0), click send again


-------------------------------------------------- -------------------------
5 Get the module Bluetooth address
AT+ADDR?
+ADDR:2016:11:298343

OK


-------------------------------------------------- -------------------------
8 Set/query module role
AT+ROLE=1 (0--slave 1--master)
OK
AT+ ROLE?
+ROLE:1

OK


-------------------------------------------------- -------------------------
13 Set/query serial port parameters
AT+UART=115200,0,0
OK
AT+UART?
+UART:115200, 0,0

OK


---------------------------------------------------------------------------

Repeat 5-->8-->13 for another bluetooth


-------------------------------------------------- -------------------------
5 Get the module Bluetooth address
AT+ADDR?

+ADDR:2015:3:121545


-------------------------------------------------- -------------------------
8 Set/query module role
AT+ROLE=0 (0--slave 1--master)
OK
AT+ ROLE?
+ROLE:0

OK


-------------------------------------------------- -------------------------
13 Set/query serial port parameters
AT+UART=115200,0,0
OK
AT+UART?
+UART:115200, 0,0

OK


-------------------------------------------------- -------------------------
15 Set query binding Bluetooth address
AT+BIND=2016,11,298343
OK
AT+BIND?
+BIND:2016 :11:298343

OK


---------------------------------------------------------------------------
29 AT+INIT

The bluetooth light changes to fast blinking to be successful


---------------------------------------------------------------------------

Repeat 15-->29 for another bluetooth


-------------------------------------------------- -------------------------
15 Set query binding Bluetooth address
AT+BIND=2015,3,121545
OK
AT+BIND?
+BIND:2015 :3:121545

OK


---------------------------------------------------------------------------
29 AT+INIT

The bluetooth light changes to fast blinking to be successful



Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=325640943&siteId=291194637