25Views2Replies

Author Options:

HM-11 Bluetooth module: How to change the baud rate Answered

I'm writing some code to use an HM-11 Bluetooth module

After switching on it responds to AT, AT+BAUD? etc. commands - the default baud rate is 9600, 8N1

I now want to change the baud rate to 38400. The procedure is:

1. Send command "AT+BAUD2" at 9600 baud

2. After the last command character has been sent change the baud rate of the receiver (SAMD21J) to 38400

3. Wait for the response, which should be "OK+Set:2"

The response never comes

What am I doung wrong?

Thanks for any hints,

Jerry

2 Replies

user
iceng (author)2018-03-22

Did you forget to change to the different baud rate ?

Select as Best AnswerUndo Best Answer

user
Palingenesis (author)2018-03-22

Read this:

http://www.e-gizmo.net/oc/kits%20documents/Bluetoo...

If you want an example of a sketch for Arduino, I have put one on my blog i am currently working on. (near the end of the blog at the time of this post)

http://tims-arduino-cybot.blogspot.co.uk/2018/03/t...

Select as Best AnswerUndo Best Answer