I am trying to connect two raspberry pi via Bluetooth these days. The Bluetooth I use is the Plugable USB Bluetooth. I want to set one pi to receive data sent from the other one so it can plot the data dynamically. However, I followed some instructions online and failed to make it. Here is my method:
- Install everything needed including bluez, blueman, etc.
- Modified /etc/bluetooth/rfcomm.conf like:
# # RFCOMM configuration file. # rfcomm0 { # Automatically bind the device at startup bind yes; # Bluetooth address of the device device XX:XX:XX:XX:XX:XX; # RFCOMM channel for the connection channel 1; # Description of the connection comment "XXX"; }
- Type "rfcomm connect 0" on the pi that is going to send data. (I even try typing "rfcomm listen 0" on the receiving side.)
However, every time I only get "Can't connect RFCOMM socket: Connection refused". Can anyone help me with this problem? I managed to send data from PC to gumstix before using blueman in Ubuntu but this time is different. Thanks!