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
21
votes
6 answers

Programmatically removing all bluetooth devices on the Linux command line

I am able to scan for all available bluetooth devices with hcitool or with my C program. I can pair the device using it's address with a simple-agent python script. I would like to know if I can also remove the paired device using either hcitool,…
user2570136
  • 221
  • 1
  • 2
  • 3
19
votes
7 answers

Cannot connect to BLE device on Raspberry Pi

I'm trying to connect to a BLE device (Heart rate sensor, Polar H7), on a Raspberry Pi 2. I use the last version of bluez (5.35) found here: http://www.bluez.org/download/ But when I'm trying to connect using gatttool, I always have "connection…
palador
  • 273
  • 2
  • 3
  • 11
19
votes
8 answers

Bluetooth LE Signal Strength Linux

Hello is there any way to get the signal strength of near by bluetooth le devises in linux? Or any good libraries for nodejs, php or mono (I do know some c++ or python but would prefer to say away from them) if a tool does not exisst but would be…
Tim Holum
  • 697
  • 1
  • 11
  • 24
18
votes
5 answers

Bluetooth Low-Energy on Linux API

I have a device with a few custom GATT services, and I would like to write a Linux program to interact with it. After some searching I found out that Linux is using BlueZ to handle the Bluetooth LE protocol. I'm using Ubuntu 15.10 with BlueZ 5.35,…
UnTraDe
  • 3,747
  • 10
  • 36
  • 60
18
votes
3 answers

BlueZ: How to set up a GATT server from the command line

I would like to know if there is a way to set up a gatt server from the Linux command line. I know that the BlueZ gatttool command allows you to act as a gatt client and interrogate a remote gatt server, however, I do not think that this tool can be…
Youssif Saeed
  • 11,789
  • 4
  • 44
  • 72
17
votes
4 answers

BlueZ vs Bluedroid bluetooth stack

BlueZ have a lot of documentations and all. And from the same, i understood BlueZ supports A2DP sink support. And at the same time an android device can be made act as an A2DP sink by modifying the audio.conf file inside the same. I also came to…
Nidhin Joseph
  • 1,461
  • 3
  • 15
  • 32
17
votes
1 answer

RFCOMM without pairing using PyBluez on Debian?

I am trying to create an RFCOMM server process with Python that can be used without the need for pairing. Initially, I grabbed the two example scripts from the PyBluez documentation: Server: # file: rfcomm-server.py # auth: Albert Huang…
Tim Connolly
  • 499
  • 1
  • 3
  • 11
16
votes
1 answer

How to implement Bluetooth LE with Bluez in Linux

I'm working on setting up two Linux systems for a BLE demo. Obviously one system will be the peripheral and one will be the central devices. I have several questions surrounding both of these configurations. Environment 2x Ubuntu 14.04 systems 2x…
linsek
  • 3,334
  • 9
  • 42
  • 55
16
votes
4 answers

Using hcitool to set ad packets

There is a well known blog post going around on how to set a usb bluetooth 4 dongle to be an iBeacon. It boils down to this magical command: sudo hcitool -i hci0 cmd 0x08 0x0008 1e 02 01 1a 1a ff 4c 00 02 15 e2 c5 6d b5 df fb 48 d2 b0 60 d0 f5 a7 10…
ScottJenson
  • 367
  • 1
  • 2
  • 10
16
votes
4 answers

Bluetooth pairing in C blueZ on Linux

I cannot find any reference on how to pair a bluetooth device on linux in a program written in C using the BlueZ Bluetooth libraries. I already managed to do a HCI level query to get devices along with thier RSSI levels (during the device discovery)…
okipol
  • 1,197
  • 3
  • 11
  • 27
16
votes
4 answers

linux Bluetooth programming in c

I am trying to run a basic code of c in linux[ubuntu] to search bluetooth device, but i am facing some problem. By using command sudo apt-get install bluez, to install required blueZ library it is saying that bluez is already newest version. But…
Himanshu Pradhan
  • 171
  • 1
  • 2
  • 5
15
votes
2 answers

Connect and use multiple bluetooth dongles on linux?

Is it possible to connect more than two bluetooth dongles(adapters) to the linux machine and use them for read/write/communication with other external bluetooth devices simultaneously? So that there are will be more than one bluetooth device bluez…
Geka P
  • 587
  • 1
  • 6
  • 22
15
votes
1 answer

How can I use Bluez5 DBUS API in C++ to pair and connect new devices?

I am writing a bluetooth driver for Intel Edison. Board software is latest available, and I am developing using the Eclipse based IDE. Bluez version number in this edison release is 5.37. I am designing a system which has to meet the following…
Pablo Stark
  • 682
  • 10
  • 34
14
votes
1 answer

BlueZ D-Bus C or C++ Sample

I am trying to write an application which searches Bluetooth devices nearby and communicates with them. My application is going to be written in C++, and intended to work under Linux. 4 years ago, I used BlueZ. But now, as I see, the API has been…
jnbrq -Canberk Sönmez
  • 1,790
  • 1
  • 17
  • 29
14
votes
1 answer

Bluez Programming

I'm programming in BlueZ on my Raspberry Pi with an USB Bluetooth dongle. I need to be able to programmatically connect to an Arduino BT, the problem is that the Bluetooth module of the Arduino is still using legacy pairing so whenever I try to open…
Hatted Rooster
  • 35,759
  • 6
  • 62
  • 122
1
2
3
65 66