0% found this document useful (0 votes)
96 views

Connecting Bluetooth USB With Beaglebone Black: Let's Get Started

This document provides instructions for connecting a Bluetooth USB dongle to a Beaglebone Black device using Linux. It outlines steps such as installing necessary software, identifying the dongle and nearby Bluetooth devices, modifying configuration files, pairing the dongle, and connecting to devices using their MAC addresses.

Uploaded by

Vivek Soni
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
96 views

Connecting Bluetooth USB With Beaglebone Black: Let's Get Started

This document provides instructions for connecting a Bluetooth USB dongle to a Beaglebone Black device using Linux. It outlines steps such as installing necessary software, identifying the dongle and nearby Bluetooth devices, modifying configuration files, pairing the dongle, and connecting to devices using their MAC addresses.

Uploaded by

Vivek Soni
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 4

ConnectingBluetoothUSBwithBeagleboneBlack

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.

Disconnect the USB cable and/or power from the BBB.


Plug the USB Bluetooth Dongle into the device.
Connect an Ethernet cable to the device.
Power the device using an external 5 volt supply.

Make sure the Dongle is recognized by entering the following command:


lsusb

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.

Using you favorite text editor, open up:


cd/etc/Bluetooth
sudonanorfcomm.conf

Modify the following:

Save and close the file.

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&

You might also like