Connecting Bluetooth USB With Beaglebone Black: Let's Get Started
Connecting Bluetooth USB With Beaglebone Black: Let's Get Started
Bluetooth is a standard for the short-range wireless interconnection of cellular phones, computers, and other electronic
devices. In Linux, the canonical implementation of the Bluetooth protocol stack is BlueZ.
Letsgetstarted.
You should see an entry that looks something like the following for the Dongle:
Do an apt-get update
sudoaptgetupdate
Install the bluez package (To know more about bluez: http://www.bluez.org/ )
sudoaptgetinstallbluez
To find the MAC address of the surrounding Bluetooth devices, type the following (this
may take a few moments):
sudohcitoolscan
Write down the mac address. We will need it for the next step.
Pair the Dongle with your Bluetooth device. This command is being issued in the
background by the "&" appended at the end of the command. 1234 is the default pairing
address.
sudobluetoothagent1234&
Finally connect your device to rfcomm, using the mac address you wrote down above.
Notice that this command is run in the background, as was the previous command:
sudorfcommconnecthci0DEVICE_MAC_ADDRESS&