I am trying desperately to get a Bluetooth dongle working with my Arduino but I can't send it a command that it needs. I can use it when I plug it into my computer via a USB to UART chip and send the command (C
) from PuTTY and then press Enter
.
The Bluetooth dongle's command sheet says that the command I am trying to send it C<cr>
but I can't figure out how to send the proper carriage return character from the Arduino code. I have tried using the Serial.println()
function as well as adding the \r
character to my current Serial.write("C\r")
but neither of those are working.
How can I achieve this?
Interestingly, I can report the opposite on Win 7: PuTTY for me and my embedded project is sending ONLY \r
over the COM port. Curious, read: frustratingly unexplainable, but I simply look for either character on the other end of the serial connection.
Then, if you enable "Implicit LF in every CR" under Terminal options it will send both \r\n
. Default behaviour seems to be akin to a Commodore machine :D (http://en.wikipedia.org/wiki/Newline). who knew...