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

BlueZ with BluePy - where does the difference between the specified connection interval values and real connection time come from?

I'm trying to use Bluez tool hcitool lecup to setup my bluetooth LE connection interval between 6 (7.6ms BLE min supported value) and 10 (12.5ms). However, if I then run a bare minimum of my code using BluePy library and poll my BLE compatible…
Gleko
  • 127
  • 10
0
votes
1 answer

Why in Bluez 5.35 SBC codec capabilities are initialized in android/hal-audio-sbc.c packge not in AVDTP.c

I am updating Bluez 4.97 to 5.35 in my embedded device. For A2DP connection, we have to share SBC codec capabilities. In ideal case the capablity will look like figure 1 . In Bluez 4.97 code, I am getting SBC codec capability from sbc_getcap_ind()…
Hari
  • 111
  • 1
  • 1
  • 8
0
votes
1 answer

raspberry pi3 BLE connecting issues

I'm trying to connect my Raspberry pi3 to my smart phone but it fails. On my RP I type the following command : bluetoothctl connect B8:08:D7:AC:CC:42 but I have the following error: Attempting to connect to B8:08:D7:AC:CC:42 Failed to connect:…
loua
  • 1
0
votes
1 answer

How to include bluez latest version library using CMake in project

I want to include bluez latest version (5.44) to my C program project. I am using CMake for build purpose. I tried using pkg_check_modules as below pkg_check_modules (BLUEZ REQUIRED…
Bill Goldberg
  • 1,699
  • 5
  • 26
  • 50
0
votes
1 answer

Issue with CMake when using glib library

I am writing a bluez C program to read battery service. I am using CMake for building the code. My Cmake File is : # CMakeLists file for module-bluez project cmake_minimum_required(VERSION 3.02) project (bluez-module) find_package(PkgConfig…
Bill Goldberg
  • 1,699
  • 5
  • 26
  • 50
0
votes
3 answers

Update dbus on Raspberry Pi

I need to update DBus on my Raspberry Pi, in order to upgrade to the latest Bluez version (and I hope for performance benefits). I can't use a package install, as the latest packaged version is old, so I "configure/make/make install". The problem…
Chris Chandler
  • 3
  • 1
  • 1
  • 2
0
votes
1 answer

cross compile bluetooth C program(blueZ) for Android

In order to run the bluetooth C program on my ubuntu desktop I installed the libbluetooth-dev using sudo apt-get install libbluetooth-dev Then I compiled the code with gcc -o simplescan simplescan.c -lbluetooth and it executed just fine. However…
xl46
  • 23
  • 4
0
votes
1 answer

iBeacon Dynamic Minor Value

I am using a Raspberry Pi as an iBeacon by creating a LaunchService that runs on startup executing the following (using BlueZ): sudo hciconfig hci0 up sudo hcitool -i hci0 cmd 0x08 0x0006 40 [...] 00 sudo hcitool -i hci0 cmd 0x08 0x000A 01 sudo…
0
votes
0 answers

BluetoothSerial ionic2 - can't connect to device

i'm trying to use Bluez (python) on a raspberry pi to receive data with bluetooth from a ionic2 app. I'm using the built in Bluetooth from "native ionic" which is the bluetoothSerial framework from Cordova I can't receive any data on the rasp. I'm…
Nathan Schwarz
  • 631
  • 5
  • 19
0
votes
1 answer

RFCOMM Connection refused because of pin

i am having issues connecting to a serial to bluetooth device on my raspberry pi. in bluetoothctl i scan for the ip and try to pair (after trusting) but i get rejected and i never get prompted for a pin. i also tried rfcomm connect /dev/rfcomm1…
Sam
  • 31
  • 1
  • 6
0
votes
0 answers

BLE pairing failure when changing MAC address using HCI command

I'm engaging in dev. project which uses BlueZ v5.26 and TI CC2564 chip. Recently there needs to change BT MAC address to be in the range of that customer owns. To meet, I used hci command as chip maker guides in the following link. And, I also tried…
chjo
  • 1
0
votes
1 answer

DBus-monitor to watch bluetooth activity

Im trying to read the output form Bluetoothctl automaticly. So a bash script would scan the output for certain words like and echo if there is a new device. ([NEW]Device x:x:x:x:x ). Now i found that you could use DBus-monitoring for that. but im…
user7238361
0
votes
1 answer

Exact role of Bluez in creating a virtual beacon

I use this code to transmit ibeacon profile over BLE. sudo hciconfig hci0 up 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 96 e0 00 00 00 00 c5 00 00 00 00 00 00 00 00 00 00 00 00…
user567
  • 3,712
  • 9
  • 47
  • 80
0
votes
0 answers

Not discovering services after connection in some android mobile

I'm trying to use Android's Bluetooth Low Energy[BLE supported Android] to communicate with a BLE device. After connect with device, it will not be able to discover the services. In few mobile phones like samsung galaxy s6,iphone,ipad service are…
0
votes
1 answer

how I can extract any useful information from the dbus bluez api that returns a byte array

For BLE, I use BLUEZ5 stack on my Raspberry pi 3 Device, For running gatt server i used example-gatt-server.py in my board(server) and used mobile for central device(client side) when i write value from characteristics from my mobile,its received…
lucifer
  • 67
  • 1
  • 4