This system contain two differents aproches. One of them is based on passive scanning via Ubertooth. The other one uses the HCI interface to perform active scanning of nearby devices. The bluetooth classic device are only detected by active scanning.
BlueZ provides support for the core Bluetooth layers and protocols. It is flexible, efficient and uses a modular implementatation.
- Download last version at official page. If you prefer also can use the following command:
wget http://www.kernel.org/pub/linux/bluetooth/bluez-5.37.tar.xz- Unzip the file:
tar xvf [nome do ficheiro .tar.xz]- Update linux's repositoy and install dependencies:
sudo apt-get update
sudo apt-get install -y libusb-dev libdbus-1-dev libglib2.0-dev libudev-dev libical-dev libreadline-dev- Run the configuration script:
./configure --enable-library4.1 If error configure: error: rst2man is required came up you will have to install the following package and run ./configure again
sudo apt-get install python-docutils
- Compile and install BlueZ:
make
sudo make install- Install missing libraries if needed:
sudo apt install libbluetooth3