I got Bluetooth working on the previous version of Raspbian, but I’m upgrading.. so I need it working in this version as well.
Needed to install the required tools..
apt-get install bluez python-gobject python-dbus
Then scan for the bluetooth device (hcitool scan) and then pair with it (bluez-simple-agent.) The rfcomm bind command creates the device. When you’re done, you can use rfcomm release 0 to drop it.
1 2 3 4 5 6 7 8 9 10 11 12 13 |
|
Then, I installed minicom and was able to change the serial port to
/dev/rfcomm0
and set the baud rate. From there, I could
take with the Arduino on the other end.
Just a note - I found that powering my Pi from a USB port on a computer, the bluetooth woudl fail. When powered from a stand alone USB battery (rated for 1amp) it worked.
This might come in handy.. seems to to the same as minicom
when you start it..
rfcomm connect rfcomm0 00:13:01:06:05:52