Bluesmirf Propeller Communications for Dummies
scocioba
Posts: 19
in Propeller 1
Hi all,
Few quick question involving the Bluesmirf bluetooth module and propeller. I found the very well made Bluesmirf code off of the OBEX by Matthew Brown but am a little confused as to how to set it up for simple serial communications between a PC and the propeller board. The initialization commands just ask for master or slave mode and the PIN code while that method handles all the connections internally. How would you properly initialize and send data via wireless like any serial port? Do I need to open a serial port first using the FullDuplexSerial object? Does the bluesmirf need to be connected to any specific pins that are dedicated to Tx and Rx? Do the Bluesmirf and declared Tx/Rx pins on the prop board need to be crossed (Bsmirf Tx = Prop Rx)? Thanks again and pardon my naivete in advance...I am still very new to all this!
SPIN files attached below
Few quick question involving the Bluesmirf bluetooth module and propeller. I found the very well made Bluesmirf code off of the OBEX by Matthew Brown but am a little confused as to how to set it up for simple serial communications between a PC and the propeller board. The initialization commands just ask for master or slave mode and the PIN code while that method handles all the connections internally. How would you properly initialize and send data via wireless like any serial port? Do I need to open a serial port first using the FullDuplexSerial object? Does the bluesmirf need to be connected to any specific pins that are dedicated to Tx and Rx? Do the Bluesmirf and declared Tx/Rx pins on the prop board need to be crossed (Bsmirf Tx = Prop Rx)? Thanks again and pardon my naivete in advance...I am still very new to all this!
SPIN files attached below
Comments
I don't know enough about Bluesmirf modules to know what sort of advantages they offer but there are lots of inexpensive Bluetooth modules which work great with the Propeller. I've used HC-05 modules myself and I think they work great.
I think most of Bluetooth modules behave about the same when used as a simple UART pass through. The trick is configuring the modules. I have code which makes it easy to configure HC-05 modules and it looks like Mathew Brown has experience setting up these Bluesmirf modules. I'm not sure, but maybe the code was intended to be used as a guide on how to configure the modules without it being ready to use as a serial driver replacement. The files attached to the top post don't appear to be complete if it's intended to be used as a serial driver.
http://forums.parallax.com/discussion/161969/data-transfer-to-smart-device
Once a module has been paired with a master, just about any module should be able to be used as a serial connection.