I had the same issue with HC-06 yesterday... tried to change the baud rate. Following sketch is working good. It seems internally HC-06 only responds to 9600 anyhow. Even if you set the baud rate to 115200 you can "reprogram" the sketch again with 9600.
IMPORTANT! Upload the sketch via USB, then disconnect USB, cut power, connect power and use HC-06 only. If USB and HC-06 are connected simultaneously then USB has priority, your AT+Commands never reach the bluetooth module. But... besides of changing the module name I finally let the baud rate at 9600.. works perfectly for sending commands from Windows over bluetooth to my arduino uno r3. Cannot upload sketches over bluetooth though... but this is another issue...
void setup() {
// put your setup code here, to run once:
Serial.begin(9600);
}
void loop() {
// put your main code here, to run repeatedly:
Serial.println("AT");
delay(2000);
Serial.println("AT+NAMEArty4");
delay(2000);
//AT+BAUD6 OK38400 Sets the baud rate to 38400
//AT+BAUD5 OK19200 Sets the baud rate to 19200
Serial.println("AT+BAUD4");
delay(2000);
}
I just send AT I not receive OK
I connected the bluetooth module hc 08 through my arduino uno , so I dont know if a I have connect bluetooth module to my pc for use Terminal program,And android app was connection establish but in terminal not give any response ,i tried to change baudrate , rx-tx also.