Questions tagged [bluez]

BlueZ is the Bluetooth stack implemented in most Linux kernels.

Its goal is to make an implementation of the Bluetooth wireless standards specifications for Linux.
As of 2006, the BlueZ stack supports all core Bluetooth protocols and layers.
It was initially developed by Qualcomm and is available for Linux kernel versions 2.4.6 and up.

For user space applications, BlueZ essentially provides two ways to implement the stack in the application: Through DBus or through the so-called MGMT API. These methods are high- and low level respectively.

In addition to the basic stack, the bluez-utils and bluez-firmware packages contain low-level utilities such as dfutool, which can interrogate the Bluetooth adapter chipset to determine whether its firmware can be upgraded.

Further information about BlueZ:

Aditionally there are two IRC channels available on freenode.net where you can find developers and other users of BlueZ:

#bluez (development related topics)
#bluez-users (non-development related topics)
979 questions
6
votes
2 answers

I want to enable debug messages on bluez

I am actually trying to figure out where the DBG("") prints are going when I do a music stream using bluez to my headset. So basically I want to know where all the bluez debug messages are getting printed, be it any kind of bluetooth operation. ex:…
Sagar Sm
  • 69
  • 1
  • 1
  • 2
6
votes
1 answer

Linux BlueZ dbus communication

I work with BlueZ 5.30 and kernel 3.13.0-32 and I need to implement in my app read/write characteristics functionality via DBus. I'm using BlueZ test scripts to established connection: "test-discovery", and then "test-device connect". the problem is…
Marcin Joppek
  • 61
  • 1
  • 2
6
votes
2 answers

BlueZ 5.30: D-Bus GATT API - Simply Discover and Connect to a BLE device in C

With the last release of BlueZ (5.30) the highlight was the completion of the GATT D-Bus apis. My goal is to programmatically (in C), as a BLE client: scan for ble devices (which I can do with the hci layer) Connect to an advertising BLE device Get…
s2c97
  • 61
  • 1
  • 1
  • 4
6
votes
1 answer

How to scan for bluetooth LE devices via dbus API?

I'm trying to scan for bluetooth LE devices using the bluez DBus API. I've installed bluez-5.25 using --enable-experimental configure option. I can see in the build that support has been compiled in. Interfaces like HeartBeat, ThermoMeter etc.…
Norbert Hartl
  • 10,481
  • 5
  • 36
  • 46
6
votes
1 answer

Bluetooth Low Energy: Read/Write to sensors attached to RedBearLab Shield

I have the RedBearLab BLE shield connected to Arduino UNO R3. I can connect to it using gatttool from a Rasp-Pi (attached CSR4.0 dongle). I have some sensors (FSR) connected to the analog pin and LED connected to digital pin in Arduino. My goal is…
nad
  • 2,640
  • 11
  • 55
  • 96
6
votes
6 answers

Raspberry iBeacon not detecting

I recently was trying to configure ibeacon on a BLE dongle (cambridge silicon radio) on a raspberry pi. Reference: http://developer.radiusnetworks.com/2013/10/09/how-to-make-an-ibeacon-out-of-a-raspberry-pi.html I get this message : HCI Command:…
6
votes
1 answer

How to send Bluetooth Low Energy GATT Notification with Bluez?

I am extending plugin/gatt_example.c in Bluez sources to try the BLE Notification function without success. I am using the included sample Battery Service in Bluez source. It has 1 characteristic with READ and NOTIFY properties. I add dbus method…
user1012131
  • 139
  • 1
  • 2
  • 6
6
votes
2 answers

Multiple BLE Connections using Linux and Bluez 5.0

I am currently attempting to connect to multiple BLE devices using BlueZ 5.0 and Linux. I have one host BLE adapter and I have modified the gatttool to connect and perform this function. If I run an instance of the modified gatttool, I…
user2321427
  • 61
  • 1
  • 2
5
votes
0 answers

How can I use Bluetooth within Docker?

I have an Ubuntu container in Docker on Windows/MacOS. I'd like to use bluez to communicate with BLE peripherals in the container. service bluetooth start, bluetoothd, and hciconfig all fail to scan for communication. Please let me know if there is…
isexxx
  • 727
  • 1
  • 6
  • 23
5
votes
1 answer

bluez and service/characteristics cache issue with Android

I have some trouble to communicate through BLE between an Android mobile application and a custom embedded device. The embedded device is peripheral and used a custom GATT profile define with Bluez. Everything is working fine. The problem is that…
ArthurLambert
  • 749
  • 1
  • 7
  • 30
5
votes
1 answer

Bluez 5.48 clear cached devices

I'm currently developing a QT app on Mac OS and it is working fine. However I build buildroot image for SAMA5D27 with WILC3000 wifi/ble. The BlueZ version is 5.48 and the QT is 5.12.2. The problem is when a device is scanned it remains in cache. I'm…
Angel
  • 51
  • 2
5
votes
2 answers

I cannot list up the BLE devices in the neighbourhood of my Raspberry Pi (python, btmgmt)

I want to scan the ble devices in the environment of my Raspberry, by using a python script called from a cron script. But when I do this in cron (I mean I added to sudo crontab -e), I allways end up with an empty list. when I am logged in as pi…
PatrickB
  • 51
  • 2
5
votes
0 answers

Apple Magic Keyboard/Trackpad 2 will pair with but wont connect to linux device

I have been using Apple's latest version of the Magic Keyboard and Magic Trackpad on my Archlinux machine for a while by establishing a USB connection. This works just fine. Now, in order to minimize cable clutter on my desk I want to use both of…
maurerf
  • 51
  • 3
5
votes
1 answer

BlueZ: sending LE directed adverts from the command line

I am trying to send out directed adverts from the command line but I can't figure out how to do it. I've checked hciconfig, hcitool, btmgmt, and bluetoothctl but none of them seem to enable directed adverts to a specific BLE device. When using…
Youssif Saeed
  • 11,789
  • 4
  • 44
  • 72
5
votes
2 answers

Emulate a keyboard with BlueZ 5

I'm working on a setup where I want to connect a RaspberryPi-3 to another machine. Most of the time it will be a Windows machine. On the Pi I want to forward all Keyboard strokes via Bluetooth to the other (Windows) machine. Therefore I did some…
r3dst0rm
  • 1,876
  • 15
  • 21