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
0
votes
0 answers

Bluetooth: hci1 hardware error 0x41

I'm trying to connect to a Parrot Drone (BLE device) through Bluez in C, but the connection always fails with: Connection timed out hcidump says: < HCI Command: LE Create Connection (0x08|0x000d) plen 25 bdaddr 78:BD:BC:0F:17:D8 type 0 …
user2460733
0
votes
1 answer

Does glib have a specific library that needs to be included?

I am attempting to compile some very simple code that uses the glib library. I am getting undefined reference compiler errors to my glib functions. Is there a glib library I am supposed to include? I'm not finding much references on the…
sazr
  • 24,984
  • 66
  • 194
  • 362
0
votes
2 answers

Phone Book Access (PBAP) client for Linux (Raspberry Pi)

i want to access the contacts of my smartphone over bluetooth. This should be made as first step of a project of my with a raspberry pi. I read something about the phone bok access protocol (PBAP). But all i could was not very helpful for me. The…
SteffenH
  • 97
  • 3
  • 12
0
votes
1 answer

Using Bluetooth LE devices with same BDADDR

A lot of "cheap" bluetooth adapters unfortunately have the same address assigned to them. If more than one client uses these adapters to connect to a common set of servers, what would the impact of the client having the same address be? My…
mw.
  • 357
  • 3
  • 18
0
votes
1 answer

Using Bluez/Linux, can I run a daemon broadcasting BLE ibeacons and be connectable using RFCOMM simultaneously?

As stated in the title, can both be ran simultaneously or is a second adapter required? For example, can one adapter run both BLE and BT classic at the same time - the BLE beacon broadcasts the MAC for opportunistic clients to connect to using…
mcdoomington
  • 518
  • 1
  • 6
  • 20
0
votes
2 answers

Is gdbus part of Bluez, glib, or neither?

I'm following the advice of Zimano on using the Bluez client as an example to implement Bluetooth in my Linux application. I have installed: libbluetooth-dev libglib2.0-dev libdbus-1-dev The Bluez client example uses a D-Bus helper library that…
MrSnrub
  • 57
  • 7
0
votes
1 answer

Bluetooth LE RFC

I cannot find any protocol specification for BTLE, HCI socket buffers format for advertising/communication GAP/GATT. Is there any RFC as (as for example; socks5 rfc1928), or all the HCI bits and pieces are only in the messy bluez code. Thank you.
user2195463
  • 321
  • 5
  • 8
0
votes
1 answer

How do I execute PyBluez samples using BlueZ5 library as normal user (without sudo)?

System: Ubuntu 15.10 with Bluez 5.38 PyBluez with BlueZ 4 didn't have any problem with this. But since migrating to BlueZ 5 and making necessary adjustments to run the bluetooth code, I cannot run the same programs without sudo. Using sudo…
Sidmeister
  • 856
  • 2
  • 14
  • 27
0
votes
1 answer

How to write a client characteristic configuration descriptor in bluez

I am working with the example-gatt-server.py script that comes with bluez on my linux board. I want to add notification to one of my custom characteristics. For that I need to define the Client Characteristic Configuration Descriptor and add it to…
Pallavi
  • 1
  • 2
0
votes
0 answers

Autopairing to a device in BlueZ C

What I need to do is to automatically accept pairing requests while I am discoverable using the libbluetooth library for C provided by BlueZ. The program that this needs to be done in will be run as a service on start up of a Raspberry Pi 3 and…
cyborgdragon
  • 109
  • 6
0
votes
1 answer

Get UUID, Major and Minor values with Bluez

With Bluez I was able to get the MAC adresses of beacons with this command sudo hcitool lescan But this return MAC adresses and not the detected UUID, Major and Minor values.Did someone have an idea how to get them ?
user3235881
  • 487
  • 2
  • 9
  • 24
0
votes
0 answers

BlueZ-4.101 on embedded ARM device

I'm implementing Bluetooth on an embedded device and have a few questions about the BlueZ protocol stack. I'm using BlueZ-4.101 (do not have the option to upgrade to BlueZ-5), and do not have Python available. Here are my questions after spending…
zeus_masta_funk
  • 1,388
  • 2
  • 11
  • 34
0
votes
1 answer

DBus Bluez5 CancelPairing()

When I Pair a device with a bt adapter a new debus object path of the form: /org/bluez/${bt_device}/dev_${mac} appears. Inspecting org.bluez.Device1 on this object there is a method called: CancelPairing() advertised. Calling this method returns:…
l-behrens
  • 15
  • 3
0
votes
0 answers

How to pair mobile with embbeded board using bluez stack

I am trying to pair bluetooth mobile device with my embedded board using bluez. Now I am able to scan bt devices. But when I am firinf command "hcitool cc and hcitool auth then it showing no device connected. Other that I used "rfcomm connect 0 …
shah_pankil
  • 41
  • 1
  • 1
  • 5
0
votes
1 answer

hcidump binary not found

I'm setting up the BlueZ protocol stack on a custom system using linux 3.3. I'm using buildroot to setup the filesystem, and specifically am using BlueZ-4.101. I'm attempting to use the hcidump utility to get some logs, but the binary has not been…
zeus_masta_funk
  • 1,388
  • 2
  • 11
  • 34