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
1 answer

NodeJs exec() function stops forking after a while

i'm trying to build a BLE scan module on nodeJs using Bluez here is the code i have been using: exec('sudo hcitool lescan --duplicates &', function (error, stdout, stderr) { }); exec('sudo hcitool lescan --duplicates &', function (error, stdout,…
ozata
  • 542
  • 1
  • 5
  • 16
0
votes
2 answers

BlueTooth connection faliure

Environment Ubuntu 16.04 Standard USB BlueTooth dongle C++ BlueZ Running as root Problem description While hcitool & sdptool properly operate, my code fail connecting to SDP with errno == 2 ( ENOENT ), the following is the failing…
NadavRub
  • 2,520
  • 27
  • 63
0
votes
1 answer

Can't get info from hcidump --raw output

i am trying to create a BLE scan module via nodeJs and Bluez. I want to learn how to get mac address, minor, major and rssi values from the output of hcidump --raw command. I took a look at Radius Networks ibeacon_scan file but i still don't have a…
ozata
  • 542
  • 1
  • 5
  • 16
0
votes
0 answers

Bluetooth Adapter Crash/Freeze on sending Request

My bluetooth adapter freezes/crashes upon sending the 2nd request (really a command as I don't handle the response) to a LE Bluetooth device (a Parrot Drone). The bluetooth icon in the Ubuntu toolbar changes to having a lock on it so the device is…
Merl
  • 131
  • 1
  • 14
0
votes
1 answer

Read/Write on Raspberry Pi 3 Bluez C/C++

Once I'm connected to a bluetooth device I try to read and write a request by handle or uuid (I tried both) with no success. I'm using this library https://github.com/labapart/gattlib which works for the examples of ble_scan and discover with little…
D. Mellow
  • 133
  • 1
  • 8
0
votes
1 answer

BlueZ which layer get reason of Bluetooth disconnection

I am using BlueZ stack for Bluetooth connection between Smart-phone(AG-Audio Gateway) and Embedded board(HF-Handsfree). On which layer of Bluez ( HCI, L2CAP, RFCOMM) we will get reason of Bluetooth disconnection. So we can differentiate following…
Hari
  • 111
  • 1
  • 1
  • 8
0
votes
1 answer

Translate Gatttool command/request to Bluez c

I am having difficulty figuring out how to convert my bluetooth command (from Gatttool) to Bluez c code. Can you help me translate the following Gatttool command (bluetooth request) to c? [CON][MY_MAC_ADDRESS][LE]> char-write-req 0x00c0 0100 So my…
sazr
  • 24,984
  • 66
  • 194
  • 362
0
votes
1 answer

Enable Debugging Bluez Fedora

I work with Bluez on Fedora and need some more debugging information then provided by enabling debugging with "bluetoothd -d". So in best case i want to write in the sourcecode of bluez for debugging. Is it only possible with build bluez new after…
heidelbeere
  • 157
  • 1
  • 12
0
votes
2 answers

linux do not send IRK value(Identity Information) and 'Identity Address Information' to peripheral when BLE SMP pairing

I'm using the kernel version 4.2.0 with bluez-5.35 in linux. I'm programming use bluez dbus communication only. When BLE SMP pairing, our system do not send 'Identity Information (Identity Resolving Key)' and 'Identity Address Information (AddrType,…
ykkim
  • 1
  • 1
0
votes
1 answer

Bluez hcidump is clear despite rfcomm security set

Examine the following situation: I have two RFCOMM programs (slave and master) whom are using libbluetooth (Bluez) and are setting the following respectively: opt |= RFCOMM_LM; opt |= RFCOMM_LM_AUTH; opt |= RFCOMM_LM_ENCRYPT; opt |=…
mcdoomington
  • 518
  • 1
  • 6
  • 20
0
votes
2 answers

c++ bluez eclipse linker config

I'm trying to add bluez library to my eclipse project on raspberry pi 3 (raspbian). This is what I've done: Bluez is already installed on raspberry pi 3 but i did not find the headers files so i followed this…
Drazz
  • 1
  • 2
0
votes
1 answer

Bluez, deinstallation before make from source?

i am using Fedora 24. For my thesis, i have to build BlueZ from the source, because I need the experimental features. Now, what is the best practice? Do I have to remove BlueZ from the OS before I can reinstall it from the source? When i try to…
heidelbeere
  • 157
  • 1
  • 12
0
votes
2 answers

How to store output of hcitool lescan?

I was trying to scan ble devices using hcitool lescan in a python code. The hcitool lescan works well on the command line but fails to return any output using subprocess.Popen.The code works fine when lescan is replaced with 'scan' ie scan of…
0
votes
0 answers

bluez scan enable/disable connection time out

I was writing client were I'm continuously enabling and disabling scan after each constant time intervals(e.g every 4sec), Initially I will reset(down/up) the hci interface and adds filters then I will enable the scan using below API, …
Narrator
  • 113
  • 1
  • 3
  • 11
0
votes
1 answer

Pair with Raspberry Pi Zero using Bluetooth 2.0 dongle headless

I have a Raspberry Pi Zero with a Bluetooth 2.0 dongle in the USB port, since it's Bluetooth 2.0 I can't use Simple Pairing Mode (only available on Bluetooth 2.1+). I'd like to pair my computer with the Raspberry Pi but the computer asks me for a…
redsalt
  • 1,519
  • 4
  • 20
  • 28