Hi,
Thanks for reading my post. I'm having difficulties with changing the settings of my HC-05; I've spent a few hours reading relevant posts here, including the comprehensive Martyn Currey guide, but none of the solutions have worked for me. I'm able to enter AT mode at 38400 baud using an Arduino Uno to communicate, and I'm getting responses. When I type "AT+UART?" it says "4800,0,0", reporting that it currently has a baud rate of 4800. I'm also able to change the HC-05 name.
I want the HC-05 to have a baud rate of 9600 for my project, for numerous unrelated reasons. However, when I enter the command "AT+UART=9600,0,0" and type "AT+UART?" it returns "9600,,,,". I saw on a post here that you have to type "AT+UART=9600,0,0\r\n", but that returned "9600,,".
After some trial and error, I typed "AT+UART=960000". Now, I don't get any responses at 38400 baud. If I change the Serial Monitor to operate at 9600 baud, I get responses again. "AT+UART?" returns "9600,0,0". Bingo, right? That's the setting I want. (Although I did find it strange that the AT mode baud rate, which should stay at 38400 even at the default 4800 baud, changes to 9600.)
Anyway, here's the real issue:
When I unplug the HC-05, power it back on, and type "AT+UART?" it returns "4800,0,0", regardless of all the approaches and results I listed above, implying that on power-up, it returns to 4800 baud.
I have access to a few HC-05's, and each of them have 4800 default baud (which is strange too since my research showed that it should be 9600), and each of them experience this same issue where they revert to "4800,0,0" on power-up.
These are the HC-05's with an EN pin and a pushbutton. I keep the EN pin high, from power-up, while in AT mode. I also read somewhere in my forum-crawling-for-answers that there's potentially a "full" AT mode, which is triggered by holding down the pushbutton at power-up time, and keeping it pressed. I tried that and got the same results.
(One last thing: I've actually been using this HC-05 with an ATmega328P that's operating at 9600, and it's been able to send and receive characters to an Android app decently. However, errors occur very frequently, which led me to check the baud rates of the ATmega328P and HC-05 and realize that they're misaligned. If I change the baud rate of the ATmega328P to 4800, they should align... But then the wrong characters are received by the Android app.)
Thank you for reading this far and I'd hugely appreciate any input anyone has! ![]()