Author Topic: Question about CR and HC-06 baudrate  (Read 160 times)

Floris

  • Newbie
  • *
  • Posts: 2
  • Country: nl
Question about CR and HC-06 baudrate
« on: November 28, 2019, 10:15:21 AM »
Hello,

I'm a student and trying to use the CR for an internship and I was wondering if I could use the CR and HC-06 via Windows.

I read this on the Bluetooth page:
The HC-06 Bluetooth module is recommended since itís well supported and easy to use. It usually comes set to 19200/115200 baud. The default CurrentRanger firmware serial header baud is set to 230400, so you need to match this baud in the HC-06 module using the AT command set (by issuing the AT+BAUD9 command), see this link for more details.

And somewhere on the internet I found this:
Note: Windows cannot use baud rates above 115200. If you are using Windows and you accidentally set the baud rate higher than 115200 youíre screwed!


The HC-06 I currently have has the standard 9600 baud.

Do people use Python? Or does it just work on Windows?
Or can you change the Baudrate in the Firmware easily?

I'm a bit hesistant to upgrade the baud right now because of the warning message.


Thanks in advance,
Floris

Felix

  • Administrator
  • Hero Member
  • *****
  • Posts: 6022
  • Country: us
    • LowPowerLab
Re: Question about CR and HC-06 baudrate
« Reply #1 on: November 29, 2019, 10:23:49 AM »
Lots of people say lots of things on the internet. If it were all true, the world would self destruct.

There are many variants of HC06. They each can have slightly different firmware and sets of instructions. They generate a generic serial port, and the baud is changeable via the AT command set. Note that once you change that, you will have to change the port settings to the module at that new speed. I don't recall having problems changing to higher than 115200 on W10. The OS has nothing to do with the module itself, it just sees a COM/serial port.

Then once you have set your HC06 to new baud, update the CR firmware to that. I would recommend staying with the default SERIAL_BAUD of 230400.

Floris

  • Newbie
  • *
  • Posts: 2
  • Country: nl
Re: Question about CR and HC-06 baudrate
« Reply #2 on: December 02, 2019, 04:32:54 AM »
Thanks for the answer Felix,

I will have a go at it. I do however use windows 7 instead of 10.

Felix

  • Administrator
  • Hero Member
  • *****
  • Posts: 6022
  • Country: us
    • LowPowerLab
Re: Question about CR and HC-06 baudrate
« Reply #3 on: December 02, 2019, 11:11:30 AM »
Should make no difference.
But Win7 is no longer supported started January, time to upgrade  ;)