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

Is it a way to make bluetooth pairing much faster

Goal: trying to achieve fast Bluetooth pairing. Storyline: I tried Bluecove library in Java, and if you know already the device address, pairing process on windows is blindly fast. On Linux it is lacking 15 seconds or so and is pretty annoying.…
user2805346
  • 302
  • 2
  • 11
4
votes
2 answers

Difference between Connecting and Pairing in BlueZ

I was looking through the Device API in BlueZ 5.44 and am a bit confused about the difference between Connecting and Pairing to a device. I see that connecting is profile based while pairing seems to profile independent. Pairing seemingly has more…
zeus_masta_funk
  • 1,388
  • 2
  • 11
  • 34
4
votes
1 answer

How to use dbus-send to call org.bluez.Adapter1.StartDiscovery?

I am trying to interact with Bluez 5.44 using the dbus-send command line tool. I cannot seem to get it to start discovery properly, although it works fine when I use bluetoothctl's scan on and scan off commands. I can also start and stop discovery…
user1002430
4
votes
1 answer

BlueZ showing old cached data on DBUS

I have a very strange issue with BlueZ (stock version 5.37 in Ubuntu 16.04). I am developing bluetooth periphery and I have just one development kit. In its firmware, I have changed name that is broadcasted. When I use: hcitool lescan ,updated name…
janstepan
  • 246
  • 3
  • 9
4
votes
3 answers

Open source implementations of BLE stack

Are there any open source implementations of BLE stack other than BlueZ and Bluedroid?
user299012
  • 41
  • 2
  • 6
4
votes
1 answer

Can connect to BLE device with hcitool but not gatttool?

I am trying to connect to a bluetooth low energy device from my PC and Raspberry Pi3 in a QT application, but I get this QT error when trying to connect: qt.bluetooth.bluez: Unknown l2cp socket error: QBluetoothSocket::UnknownSocketError "Transport…
Jolle
  • 1,336
  • 5
  • 24
  • 36
4
votes
1 answer

Bluez core interferes with HCI socket commands

I have following problem: I have created a HCI socket via pybluez and try to create a connection to a remote device. I send successfully a CREATE_CONNECTION command but after receiving the answers it seems the bluez stack sends further requests…
ph10
  • 57
  • 6
4
votes
1 answer

BlueZ, do not require authentication

I'm working with BlueZ 3.x. I have a linux embedded device and I need to send and receive files using the bluetooth technology, with Obex. (Note: BlueZ 4.x doesn't even compile on our specific platform.) I don't need PIN authentication, I even don't…
Tangui
  • 3,626
  • 2
  • 26
  • 28
4
votes
1 answer

Qt 5.7 QBluetooth LE GATT Server Example with Raspberry Pi 3 and BlueZ 5.39

I am trying to run the Qt 5.7 beta QBluetooth GATT Server example ( https://doc-snapshots.qt.io/qt5-dev/qtbluetooth-heartrate-server-example.html ) on a Raspberry Pi 3 with it's integrated Broadcom Bluetooth chip. Bluetooth works great on my Pi 3…
PhilBot
  • 748
  • 18
  • 85
  • 173
4
votes
0 answers

Is there a way to list channel in-use of RFCOMM in Linux?

Environment: Ubuntu 14.04 running in vmplayer. in PyBluez Example, rfcomm-server.py, Problem with running RFCOMM server on PORT_ANY code chunk: from bluetooth import * erver_sock=BluetoothSocket( RFCOMM…
bcat
  • 397
  • 2
  • 6
4
votes
2 answers

Connecting to a Bluetooth smart/LE weight scale with bluez/bluetoothctl/gatttool

What I want to do: I want to connect my Raspberry Pi 2 to a Bluetooth Smart Weight Scale (Medisana BS440) and receive my Data. What I know: There is just one interesting Primary Service with 5 Characteristics: - handle: 0x001a - properties:…
Edmundo Del Gusto
  • 378
  • 1
  • 4
  • 15
4
votes
1 answer

Send a file from phone to laptop using bluetooth with bluez - don't work

I want to send a file from my phone to my laptop. Both of them has bluetooth. On the laptop I have archlinux. I have installed bluez-5.35-1 for bluetooth management. After installing, I typed: systemctl enable bluetooth.service systemctl start…
Sorin Vladu
  • 1,768
  • 3
  • 21
  • 37
4
votes
2 answers

Dbus & Bluez programming language

For a project I am doing I have to connect my Linux PC to a Bluetooth LE device. The application I design will be deployed on an ARM embedded system when it is complete. Searching for documentation online hints that the preferred programming…
Zimano
  • 1,870
  • 2
  • 23
  • 41
4
votes
3 answers

DBUS APIs in BLUEZ

I am new to BLUEZ as well as linux. I found that Bluez promotes usage of DBUS APIs. I want to know whats a DBUS API in terms of BLUEZ also, whats the benefit of using them instead of direct C APIS? How different is it as compared to C APIs?
Shruthi
  • 93
  • 2
  • 6
4
votes
0 answers

PyBluez 'Connection reset by peer' on a Raspberry Pi

I'm trying to get the PiTooth example from here working. I'm able to get the devices to pair successfully, but whenever I transmit data after approximately 5 seconds, I see the following: Traceback (most recent call last): File "./PiTooth.py",…
Justin Ramos
  • 116
  • 10