I was given one of those Bluetooth slave-only serial adapters (I believe it's the HC-06), and I can't seem to connect to it by either bluetooth or serial. It powers on, emits a bluetooth signal, and shows the device name, but I don't know what the baud rate is. When connecting it to a USB to serial adapter, I tried every option in the arduino serial monitor and couldn't get any response.
After looking through the datasheet, I was trying to find a way to reset it to factory defaults, but the only way to do that requires an active connection to it. So, does anybody know a way where I can make this work again, or is it basically junk?
schmidtbag:
It powers on, emits a bluetooth signal, and shows the device name, but I don't know what the baud rate is.
What device name does it show?
Can you attempt to pair with it? Is pairing successful?
Linvor. And I can attempt to pair with it but the pairing isn't successful because I don't know the passcode.
Did you try the default code? 1234
If that doesn't work I'd try 0000 and a few other patterns.
So on a separate computer I managed to establish a connection using 1234 as the passcode. But, it seems no matter what baud rate I use, AT commands won't do anything.
I am, however, able to transmit data from bluetooth to the USB serial adapter. The serial adapter seems to show clean data if I set the baud rate to 57600. Surprisingly, the bluetooth end will send and receive data just fine no matter what baud rate I choose.
Any suggestions on how I can configure the baud rate and other settings?
This document gives all sorts of information about the various HC modules. Perhaps it will give you a way of entering command mode:
so I managed to figure it out. You cannot run AT commands while the HC-06 is paired via bluetooth, so they must be done through serial-only. They also can't have any line terminator including \0, \n, and \r.
If it weren't for the pairing though, I never would have figured out the baud rate.
Dear schmidtbag, I do have the very same problem.
I can connect with HC-06 and it runs perfectly with my Arduino but I just cannot get it into AT mode to change name.
I just acquired a new HC-06 and was able to go into AT mode and change settings.
I noticed the new HC-06 blinks a lot faster than the one I have for some time.
From what I have been reading it relates to the fact that the new one has never been paired and the only has been paired with my android phone.
The question is, how to REMOVE this pairing from the HC-06, I have switched Bluetooth off on my cell but the HC-06 was not convinced and still blinks slowly.
When my cell Bluetooth is on and paired with the HC-06 it's led blinks even slower.
How to get the HC-06 to FORGET the pairing or just force it to factory defaults?
Thanks
Paulo
pcborges:
I just cannot get it into AT mode to change name.
An HC-06 is in AT mode by default, i.e. as soon as power is on but before you make a connection.
I just acquired a new HC-06 and was able to go into AT mode and change settings.
That is because you entered AT command before you made a connection.
I noticed the new HC-06 blinks a lot faster than the one I have for some time.
probably not true. Maybe it's not an HC-06
From what I have been reading it relates to the fact that the new one has never been paired and the only has been paired with my android phone.
Nonsense
The question is, how to REMOVE this pairing from the HC-06, I have switched Bluetooth off on my cell but the HC-06 was not convinced and still blinks slowly.
Inexplicable, and probably not true. If it is blinking slowly once 2 sec, it is probably not an HC-06. If you want to unpair ANY bluetooth, you do it in the phone anyway, not in bluetooth.
How to get the HC-06 to FORGET the pairing or just force it to factory defaults?
See above, and I don't think there is a factory default setting anyway, you just overwrite.