LowPowerLab Forum

Hardware support => CurrentRanger => Topic started by: Floris on November 28, 2019, 10:15:21 AM

Title: Question about CR and HC-06 baudrate
Post by: Floris 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
Title: Re: Question about CR and HC-06 baudrate
Post by: Felix 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 (https://github.com/LowPowerLab/CurrentRanger/blob/master/CurrentRanger_R1.ino).
Title: Re: Question about CR and HC-06 baudrate
Post by: Floris 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.
Title: Re: Question about CR and HC-06 baudrate
Post by: Felix on December 02, 2019, 11:11:30 AM
Should make no difference.
But Win7 is no longer supported started January, time to upgrade  ;)