I have a bluetooth serial connection between my computer and my robot (beaglebone black). I am very happy because I do not need anything other than a cheap Bluetooth-USB dongle on the side of the robot to get a remote terminal. My PC also has its own Bluetooth.
The following steps helped me:
First, you need to connect the devices. Pairing is relatively easy. I will call the client (who starts talking - the robot) and the server (who answers)
You need to configure the server to: Server side (with root privileges):
sdptool add --channel=3 SP mknod -m 666 /dev/rfcomm0 c 216 0 rfcomm watch /dev/rfcomm0 3 /sbin/agetty rfcomm0 115200 linux
Client side (with root privileges):
sdptool add --channel=3 SP rfcomm connect /dev/rfcomm0 [SERVER_ADDR] 3
Now, to open the serial terminal on the client:
screen /dev/rfcomm0 115200
Comments:
When you invoke the last rfcomm connect ... command in the client, the device / dev / rfcomm 0 will be created and connected to the server / dev / recomm 0. This is a serial connection between both
The last server command: rfcomm watch .... will "listen" for incoming connections. If the connection is lost, the command will restart the new "listen" state.
source share