I own two of the SparkFun BlueSmirf bluetooth modules and I would like to connect them to eachother – one as the master, and one as the slave. It is easy to pair these together using a PC with Putty as the master, but some of the commands for the module require a carriage return to send a command.
How can I pair these bluetooth modules between two Arduinos without using a PC to send the carriage command signal from putty while the device is being configured?
I have thoroughly looked over the datasheet and command sheet for the module itself, but it does not include information of how to get past this problem.
Best Answer
I explain the way to do it on this blog post or in great details on this Instructables. For now, here is the basic code that you can put on the master device and the slave device.
And some tips before you go further with Bluesmirf:
"$$$"
command is the only one that is not followed by a carriage return. Why? To complicate things of course. Use print() for the"$$$"
command andprintln()
for all other commands.“---”
). Some commands are not effective until you have exited the command mode (e.g. MS command).