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
0 answers

Using GATTTOOL to listen without a write command

I can't seem to find anyone who has had this issue. I'm trying to listen to notifications using gatttool. On most devices, this is fine, I type in gatttool -b mydevice --char-write-req -a enablebdaddr -n enablingvalue --listen and I just sit and…
0
votes
1 answer

QAudioDeviceInfo::availableDevices does not refresh

On a PC w/ Ubuntu 14.04, Qt 5.5.0 & Bluez 4.101-0ubuntu13.1, I'm trying to play audio to BT sink devices over A2DP. To do so, I'm connecting to those devices using Bluez and then play to it using QAudioOutput with a device detected using search on…
G. Ko
  • 403
  • 6
  • 15
0
votes
1 answer

Bluetooth Bluez: Unable to create crypto contex

I am using android with Bluez stack, Linux Kernel 3.14 with backports from Linux Kernel 3.19 I am getting the following error message: Bluetooth: hci0 command 0x0c01 tx timeout Bluetooth: unknown link type 192 Bluetooth: Unable to create crypto…
0
votes
2 answers

Communication issues between Arch Linux and iPad

I'm running Arch Linux and the Bluez libraries on my computer, and I'm trying to connect to an iPad [w/ Retina] over BLE. I can see the iPad in bluetoothctl, pair it, trust it, and connect to it. My question is in two parts: 1) I want to be able to…
0
votes
1 answer

Gatttool "Characteristic Write Request failed:" How to reduce fail timeout for read/write?

I'm reading and writing the characteristics from my board using bluez-4.101. using gatttool. sometimes i get Characteristic Write Request failed: or read failed. Frequency of these errors is like 2/10, is there something that i can do to make full…
0
votes
2 answers

bluez-tools bt-adapter -d requires usb dongle reset before next use

Im writing a BLE app to read/write to peripheral characteristics and am using bluez-tools as an example. One of the requirements for this is to discover nearby BLE devices and it would be preferred if this process would work on every app…
tonisives
  • 1,962
  • 1
  • 18
  • 17
0
votes
2 answers

bluez: connection error with 5

hci_le_create_conn(device,htobs(0x0010),htobs(0x0010),0,0, peeraddr,0,15,15,0,3200,1,1,0,1000); I get errno = 5 form above, and it means that the command has not been received and is not being processed in the host…
Samuel
  • 803
  • 8
  • 17
0
votes
0 answers

bluetoothd error: adapter_ops_setup failed

I am trying to create a GATT Service with BLE in Raspberry pi 2 (Kernel Version: Linux raspberrypi 4.1.7-v7+ and Bluez version: 5.11). I have connected leoxsys BLE adapter with the pi. I am able to advertise as iBeacon and the advertising signal is…
0
votes
1 answer

Forcing immediate handling of events in Glib with C

Programming against the C GDBus API from Bluez, I noticed that method calls I am making using DBUS through a proxy won't return their results until the end of the main loop. For example, typing a function I made "cmd_bpm" in the terminal application…
Zimano
  • 1,870
  • 2
  • 23
  • 41
0
votes
2 answers

Send file to remote device with bluetooth without the requirement of a pin using obexftp in terminal

Hi This command in terminal obexftp –nopath –noconn –uuid none –bluetooth –channel –put Should allow a file to be sent to remote bluetooth device without the requirement of a pin on a remote device. When i…
Nasir Shiraz
  • 161
  • 1
  • 3
  • 15
0
votes
1 answer

GATTService interface doesn't appear

My goal is to activate a notification on a Bluetooth Low Energy device to receive data using the DBus Interface so I downloaded the last Bluez version (5.33). I read the README file and I used the --enable-experimental options during the…
AV28
  • 67
  • 1
  • 9
0
votes
0 answers

How to emulate BLE transmitter with Bluez?

I have Debian 8.1 with Bluez 5.23. I know how to connect with BLE transmitter with hcitool and gatttool. But is there any way to emulate BLE transmitter on Debian?
LA_
  • 19,823
  • 58
  • 172
  • 308
0
votes
2 answers

Apt-get install bluez and bluetooth for debian noninteractively

I'm trying to build an image of a debian and install certain applications, all non-interactively. Almost everything works, but alas, almost ... I chroot into my working directory and try to install bluez and bluetooth: apt-get install -y…
Kousha
  • 32,871
  • 51
  • 172
  • 296
0
votes
1 answer

Generator of C code for Bluez

I'm about to develop my program bluetooth in C on ARM platform, which is supposed to be able to exchange information with bluez via dbus interface. I have succeeded in cross-compiling the Bluez, but the part of "client" in C is always a big work…
0
votes
0 answers

Bluetooth socket constantly timing out

I am developing a few tests to compute metrics about Bluetooth connections on Android. My problem is that randomly the socket fails to connect to the remote device, especially when more than two devices are involved. Specifically, most of the time,…