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 server for bidirectional communication

I want to create on my Linux desktop a small server listening to requests using Bluetooth. Clients (such as mobile phones or tablets) will connect to this server and exchange data back and forth. It should be straightforward, but I'm unable to find…
Jon Smark
  • 2,528
  • 24
  • 31
0
votes
2 answers

QtBlueTooth not functional on Linux

I'm developing an embedded application with bluetooth LE function enabled using Qt 5.7. The device I'm developing are meant to act as peripheral role, it can broadcast advertising packets and let smartphones to connect to. The target board are…
colin
  • 281
  • 4
  • 13
0
votes
2 answers

Linking bluetooth library bluez in eclipse

I want to compile and run the following bluetooth scan code bluetooth scan code on eclipse neon. I need to run it on Raspberry pi 3, so I did the following: 1- I downloaded the latest bluez version 5.43 from bluez 2- I compiled the downloaded file…
halim
  • 386
  • 4
  • 14
0
votes
1 answer

Why Bluetooth firmware needs to be loaded at driver initialization?

For example, see this code for BCM43xx Bluetooth driver adapted from BlueZ: int bcm43xx_init(int fd, int def_speed, int speed, struct termios *ti, const char *bdaddr) { char chip_name[20]; char fw_path[PATH_MAX]; …
Xi Han
  • 323
  • 1
  • 7
0
votes
1 answer

Bluez 5 Set L2CAP Extended Features Mask

I am trying to set my L2CAP extended features mask to enable Unicast Connectionless Data in order to complete Bluetooth Sig certification. I cannot seem to find anywhere to do this. The particular Bluetooth PTS test I am trying to pass is as…
wfb0002
  • 66
  • 7
0
votes
1 answer

How to improve BLE connection success rate on connection calls to D-Bus through BlueZ

I have an iOS app that can connect pretty reliably to my BLE devices that advertise at 1.285 seconds, a frequency defined by Apple as one of the freqs that will help to optimize connectivity. I also have some BLE devices that advertise much slower…
dfclark
  • 49
  • 5
0
votes
0 answers

Is this bluetooth configuration sufficient?

I have a Yocto/Open Embedded Linux build for a Gumstix Overo Y COM which I am trying to integrate bluetooth into (using Bluez4). When I boot my image, the onboard bluetooth module (wilink 8) is unresponsive. Is the configuration I outline below…
RadioRaheem
  • 198
  • 1
  • 14
0
votes
1 answer

Unable to use struct defined in API library header in C

I'm trying to mess around with Bluetooth programming on Linux and in C (not C++). I need to use a struct defined in a header; but every time I try to declare a variable of the particular struct that I need Eclipse complains about being unable to…
user2213764
0
votes
0 answers

How does my C application communicate with bluetoothctl?

In C language, I want to develop an application to run bluetoothctl, and then send command to it and receive the info, like we run bluetoothctl in console. int main(void) { int fd, err = 0; char* tty; wait_pid = -1; printf("BLEapp program…
Mian
  • 23
  • 3
0
votes
1 answer

Get nearby beacons and their MAC adresses

I use a script found here detect nearby beacons with Raspberry Pi. This is the script code #!/bin/bash # iBeacon Scan by Radius Networks if [[ $1 == "parse" ]]; then packet="" capturing="" count=0 while read line do count=$[count +…
Doe.J
  • 1
  • 5
0
votes
1 answer

Bluez - transmit beacon and scan on same radio

I am using Bluez to set up a BLE beacon scanner on a standalone Linux box. I want it to do some form of self diagnosis on the radio (for some specific application reasons) and the way I'd like to do it is by transmitting a beacon (iBeacon or any…
0
votes
1 answer

Detect nearby beacons with Bluez

I installed Bluez and I am trying to scan and get UUID Major, Minor and if possible mac address for nearby ibeacon. I found similar questions and they refer to a script which I found here . When I launch the script I get this error Set scan…
Doe.J
  • 1
  • 5
0
votes
0 answers

C Bluetooth Pairing Using Bluez

I'm developing a C application on C.H.I.P. board (Debian Jessie on it) ; while I was able to scan for classic and BLE devices using the source code of hcitool scan and hcitool lescan that we can find in /tools/hcitool.c of bluez package, I can't…
Lubron
  • 35
  • 2
  • 15
0
votes
1 answer

Bluetooth connection refused

I am working on a Bluetooth project involving one Arduino (with Seeed bluetooth shield v2.0) and one ubuntu laptop. Basically, I want message exchanges between the Arduino and the laptop. I paired the Arduino bluetooth shield with the laptop. Then I…
Sissi
  • 65
  • 1
  • 10
0
votes
1 answer

how to add interface on gdbus object (/org/bluez/hci1) for bluez 5.35?

I am using bluez5.35 for my application development and while debugging come across that /org/bluez/hci1 provides only 8 interfaces.(org.bluez.Adapter1, CyclingSpeedManager1, HeartRateManager1, Media1, NetworkServer1, ThermometerManager1,…
FTW
  • 11
  • 2