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)
843 questions
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,423
  • 3
  • 14
  • 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
  • 489
  • 1
  • 3
  • 11
16
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
  • 233
  • 2
  • 3
  • 10
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,095
  • 9
  • 38
  • 54
16
votes
7 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
  • 655
  • 1
  • 9
  • 21
15
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
  • 8,246
  • 4
  • 39
  • 62
14
votes
2 answers

Change Tx Bluetooth Linux No Effect

I would like to change the signal strength of my bluetooth device using linux command line (ubuntu 14.04). I have found that I need to use the command sudo hciconfig hci0 inqtpl to change the signal strength but it's not working sudo hciconfig…
Orelsanpls
  • 18,380
  • 4
  • 31
  • 54
14
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
  • 151
  • 1
  • 1
  • 3
14
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,110
  • 3
  • 10
  • 26
13
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
  • 654
  • 10
  • 33
13
votes
4 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,359
  • 10
  • 29
  • 57
13
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
  • 337
  • 1
  • 2
  • 10
13
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
  • 141
  • 1
  • 2
  • 5
12
votes
3 answers

HFP/HSP profile in linux

I have Ubuntu 16.04 and already installed BlueZ 5.37, PulseAudio 10.0, and ofono 1.20 (clone from github). And I need to use phone like modem for transmitting my phone calls to computer. I paired my telephone with PC, made device trust and connect…
12
votes
2 answers

Which tool has replaced gatttool in bluez5?

It seems like since commit b1eb2c4cd057624312e0412f6c4be000f7fc3617 gatttool has been deprecated but I'm unable to find any information on what has replaced gattool. Every Python Bluetooth LE packages I looked into relays on gatttool and is now…
Henrik Pingel
  • 2,782
  • 1
  • 16
  • 26
1
2
3
56 57