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

BLE connect interval setting

For an application reading a block of data (9000 bytes) from a BLE device I need to modify the connect interval to be as fast as possible. I am running BlueZ stack 4.101 with a linux kernel = 3.14.43 Presently, I am able to do that using "hcitool…
Pierre Pitiot
  • 71
  • 1
  • 3
7
votes
0 answers

Stream audio to multiple bluetooth headsets from a single bluetooth device?

I want to stream an identical audio (music) stream from one linux box to two bluetooth headsets, as follows: According to this stack overflow post there's not enough bandwidth in a single bluetooth device to send two audio streams. Does that mean…
tleyden
  • 1,942
  • 2
  • 12
  • 17
7
votes
1 answer

Maximum no. of BLE Connection using BlueZ

Q1. Is there a connection limit for BLE Central Device while connecting to BLE peripherals using BlueZ 5.34? My question is for general connection capabilities using BlueZ not white list. Q2. If the no. of connection depends on the controller. Is…
swaroop
  • 93
  • 1
  • 10
7
votes
1 answer

Setting up a pc bluetooth server for android

Possible Duplicate: Service discovery failed exception using Bluetooth on Android Alright, I've been reading a lot of topics the past two or three days and nothing seems to have asked this. I am writing a PC side server for my andriod device,…
Del
  • 73
  • 1
  • 3
7
votes
1 answer

Bluez auto reconnect devices

I am writing a library in C/C++ for a Bluetooth low energy device. So far I have been using the D-Bus interface exposed by Bluez and been able to discover, connect and communicate with the device. However, when the device disconnects either due to a…
prinsen
  • 748
  • 6
  • 16
7
votes
2 answers

BlueZ on i.MX25 : Can't connect RFCOMM socket: Operation now in progress

I'm trying to connect to a bluetooth device on embedded linux. BlueZ version is 4.101. Local bluetooth adapter is an USB Bluetooth dongle Trendnet TBW-107UB, for all tests. I can't provide details about the target device, as it is a product…
Vincent T
  • 101
  • 1
  • 2
  • 9
7
votes
4 answers

Bluetooth Low Energy in C - using Bluez to create a GATT server

I'm attempting to use GATT on my Linux box to set up a custom service with a load of characteristics. Using this question, and the ones it links to, I was able to identify the code that I would need to write (making use of the gatt_service_add()…
Alex
  • 1,082
  • 3
  • 12
  • 23
7
votes
2 answers

Bluetooth Library for BlueZ (Windows)

What is the Windows equivalent for Linux's libbluetooth2-dev? I'm trying to run simple_scan.c for a BlueZ-enabled bluetooth scan on my Intel Edison but I need the bluetooth library. This is the solution for linux: Where is the bluetooth/bluetooth.h…
Essam
  • 157
  • 1
  • 2
  • 12
7
votes
0 answers

read rssi of bluetooth low-energy beacon using bluez5

I want to read the RSSI simultaneously of an bluetooth lowenergy beacon, on 2 bluetooth le usb adapters. I'm using a fedora 20 system with bluez 5 and the LogiLink BT0015 adapters (CSR chip). My code works like a charm when only one adapter is…
wland
  • 71
  • 1
  • 3
7
votes
2 answers

Bluetooth: Detect Event Using Bluez

We are trying to detect an event in C/C++. We are using Bluez on Linux as our Bluetooth Library. Our objective is to run an external script when that event is triggered. Specifically, we have a Motorola H730 headset, with a button on it, and we are…
user1505132
  • 71
  • 1
  • 2
6
votes
0 answers

What is the purpose of hci_get_route()

Looking through code examples, it looks like hci_get_route(NULL) is generally used to get a device id for a Bluetooth device on the local machine. That's fine, and I can understand that. My confusion, I suppose, would only matter on a system that…
TallChuck
  • 1,725
  • 11
  • 28
6
votes
2 answers

How to install hcitool in mac os terminal

Hello there guys i have been trying to use hcitool on mac os terminal but whenever i type hcitool scan the following error is appeared -bash: hcitool: command not found i have tried pip install hci and pip install hcitool but the following error is…
Tanay Kumar
  • 81
  • 1
  • 2
  • 7
6
votes
2 answers

Bluez D-bus, "StartNotify" vs "AcquireNotify"

I have a c++ application running on the Raspberry Pi that uses the bluez d-bus api. It supports multiple sensors from different vendors but for the most part adding new sensors has been fairly straight forward once I'd got the first one going. Once…
Chrisby
  • 81
  • 1
  • 1
  • 7
6
votes
1 answer

How can BlueZ be configured to require a connecting device to enter a matching pass key?

I'm trying to setup Bluetooth on an embedded Linux device such that SSP mode is used, with my device generating and displaying a passcode on it's display, and the remote end (e.g. user's phone) being required to enter the matching passcode to be…
bainorama
  • 331
  • 2
  • 6
6
votes
1 answer

BluezV5.42 DBUS C API for BLE?

I have developed BLE application for openwrt using BLUEZV5.30. I was able to create the application by extracting source code gatttool and hcitool. I have also added few more functionality then provided by these tools (like reading rssi). However, i…
abhiarora
  • 9,743
  • 5
  • 32
  • 57