element14 Community
element14 Community
    Register Log In
  • Site
  • Search
  • Log In Register
  • About Us
  • Community Hub
    Community Hub
    • What's New on element14
    • Feedback and Support
    • Benefits of Membership
    • Personal Blogs
    • Members Area
    • Achievement Levels
  • Learn
    Learn
    • Ask an Expert
    • eBooks
    • element14 presents
    • Learning Center
    • Tech Spotlight
    • STEM Academy
    • Webinars, Training and Events
    • Learning Groups
  • Technologies
    Technologies
    • 3D Printing
    • FPGA
    • Industrial Automation
    • Internet of Things
    • Power & Energy
    • Sensors
    • Technology Groups
  • Challenges & Projects
    Challenges & Projects
    • Design Challenges
    • element14 presents Projects
    • Project14
    • Arduino Projects
    • Raspberry Pi Projects
    • Project Groups
  • Products
    Products
    • Arduino
    • Avnet Boards Community
    • Dev Tools
    • Manufacturers
    • Multicomp Pro
    • Product Groups
    • Raspberry Pi
    • RoadTests & Reviews
  • Store
    Store
    • Visit Your Store
    • Choose another store...
      • Europe
      •  Austria (German)
      •  Belgium (Dutch, French)
      •  Bulgaria (Bulgarian)
      •  Czech Republic (Czech)
      •  Denmark (Danish)
      •  Estonia (Estonian)
      •  Finland (Finnish)
      •  France (French)
      •  Germany (German)
      •  Hungary (Hungarian)
      •  Ireland
      •  Israel
      •  Italy (Italian)
      •  Latvia (Latvian)
      •  
      •  Lithuania (Lithuanian)
      •  Netherlands (Dutch)
      •  Norway (Norwegian)
      •  Poland (Polish)
      •  Portugal (Portuguese)
      •  Romania (Romanian)
      •  Russia (Russian)
      •  Slovakia (Slovak)
      •  Slovenia (Slovenian)
      •  Spain (Spanish)
      •  Sweden (Swedish)
      •  Switzerland(German, French)
      •  Turkey (Turkish)
      •  United Kingdom
      • Asia Pacific
      •  Australia
      •  China
      •  Hong Kong
      •  India
      •  Korea (Korean)
      •  Malaysia
      •  New Zealand
      •  Philippines
      •  Singapore
      •  Taiwan
      •  Thailand (Thai)
      • Americas
      •  Brazil (Portuguese)
      •  Canada
      •  Mexico (Spanish)
      •  United States
      Can't find the country/region you're looking for? Visit our export site or find a local distributor.
  • Translate
  • Profile
  • Settings
Bluetooth Unleashed Design Challenge
  • Challenges & Projects
  • Design Challenges
  • Bluetooth Unleashed Design Challenge
  • More
  • Cancel
Bluetooth Unleashed Design Challenge
Blog Bluetooth Maze – setting up BlueZ on the Beaglebone Wireless
  • Blog
  • Forum
  • Documents
  • Polls
  • Files
  • Events
  • Mentions
  • Sub-Groups
  • Tags
  • More
  • Cancel
  • New
  • Share
  • More
  • Cancel
Group Actions
  • Group RSS
  • More
  • Cancel
Engagement
  • Author Author: carmelito
  • Date Created: 23 Jun 2018 6:33 PM Date Created
  • Views 3240 views
  • Likes 5 likes
  • Comments 1 comment
  • bluetooth unleashed
  • bluetooth_maze
  • bluetooth unleashed design challenge
Related
Recommended

Bluetooth Maze – setting up BlueZ on the Beaglebone Wireless

carmelito
carmelito
23 Jun 2018

This is another setup blog post, which involves setting up bluez(http://www.bluez.org) on the Beaglebone Black wireless, which a prerequisite to install, and program using python library. Now when writing this blog post the latest tarball on the bluez.org download section is 5.50, but when I tried to install this version the tarball was missing a few dependencies, which meant I spent most of last week and the early part of this week trying to debug. But, with the Bluetooth challenge just having about a month more to go, I cut my losses and installed an older version using 5.33 tarball. Here are the steps to follow -

 

 

If you have just got your Beaglebone out of your parts shelf after a long time , run the following command

apt-get update

Please note, if you are following along, there are a couple of gotcha’s to the install, so follow all the steps in the sequence mentioned below and check to see that there are no errors. Now, once you’re done with update, run the following command to install the pre-requisite packages

apt-get -y install libusb-dev libdbus-1-dev libglib2.0-dev libudev-dev libical-dev libreadline-dev

 

Then download the tarball using, followed by extracting it

wget http://www.kernel.org/pub/linux/bluetooth/bluez-5.33.tar.gz
tar xvfz bluez-5.33.tar.gz

 

Once done, run configure to check that all the packages you need are available on the Beaglebone, this will take a couple of mins so quickly scroll through the output to check that there are no error/ packages missing. Just in case they are missing you will have to install then separately.

./configure

image

 

Now, run make, this will take about 10 to 12 mins , so got to your kitchen and make yourself a tea/coffee image, And if make complete’s with out run make install.

make
make install

 

image

 

Now you should ideally be ready to use Bluetooth, but since I plan on installing python library , the prequiste is to run bluetoothd daemon in experimental aka beta mode.

nano /etc/rc.local

and added --experimental & at the line

/usr/local/bin/bluetoothd --experimental &

image

Now restart the bluetoothd systemd service using the following command , and then check the status of the service. Also check the status is running in the experimental version.

systemctl daemon-reload
systemctl restart bluetooth
systemctl status bluetooth

image

 

This means you are in a good spot to test using bluetoothctl command line tool to run a few test with a mobile app.

image

 

For the mobile app on my iPhone, I am using the nRF connect app by Nordic semiconductors to check if I can read the services and characterstic , which are easy to setup with some existing sample service - like the battery service ( org.bluetooth.service.battery_service) . To check out and read more about generic service check out -  https://www.bluetooth.com/specifications/gatt/services.

 

image

 

Now once you have the app setup lets check if we can find the Battery Service using the Bluetooth command line tool. Run the following command when you are in the command line tool, till you see the local name that you have setup in the Advertiser section of the nRF connect app, in my case it is - MazeIphone

scan on
device
scan off

 

Copy the bluetooth address, and use the connect command followed by the address

connect 5D:25:C3:48:FF:37

image

Now list the attribute on the command line which you have setup in the nRF connect app, run

list-attributes 5D:25:C3:48:FF:37

image

 

As part of the next blog post the plan is to have the BBC micro bit talks to the Beaglebone Wireless via Bluetooth.

  • Sign in to reply
  • DAB
    DAB over 7 years ago

    Nice update.

     

    DAB

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • More
    • Cancel
element14 Community

element14 is the first online community specifically for engineers. Connect with your peers and get expert answers to your questions.

  • Members
  • Learn
  • Technologies
  • Challenges & Projects
  • Products
  • Store
  • About Us
  • Feedback & Support
  • FAQs
  • Terms of Use
  • Privacy Policy
  • Legal and Copyright Notices
  • Sitemap
  • Cookies

An Avnet Company © 2025 Premier Farnell Limited. All Rights Reserved.

Premier Farnell Ltd, registered in England and Wales (no 00876412), registered office: Farnell House, Forge Lane, Leeds LS12 2NE.

ICP 备案号 10220084.

Follow element14

  • X
  • Facebook
  • linkedin
  • YouTube