Install bluez

From Embedded Lab Vienna for IoT & Security
Revision as of 18:35, 3 March 2020 by Ikramer (talk | contribs) (Ikramer moved page Install bluez gatttool hcitool to Install bluez without leaving a redirect)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search
The printable version is no longer supported and may have rendering errors. Please update your browser bookmarks and please use the default browser print function instead.

Summary

This documentation describes how to install bluez (gatttool hcitool) on raspberrypi 3b+

Requirements

  • Operating system: Raspbian Buster with desktop

Description

Step 1: Install Dependencies

  • sudo apt-get update
  • sudo apt-get install libdbus-1-dev libglib2.0-dev libudev-dev libical-dev libreadline-dev -y

Step 2: Install BlueZ

Download BlueZ source code

wget www.kernel.org/pub/linux/bluetooth/bluez-5.52.tar.xz

Uncompress the downloaded file

tar xvf bluez-5.52.tar.xz && cd bluez-5.52

Configure

./configure --prefix=/usr --mandir=/usr/share/man --sysconfdir=/etc --localstatedir=/var --enable-experimental 

Compile the source code

make -j4

Install

sudo make install

Reboot Raspberry Pi 3

sudo reboot

Verify version

bluetoothctl -v

Used Hardware

raspberry pi 3 b+


References

  • scribles.net/