Problem with bluetooth on android 2.1 (samsung spica i5700) where pairing works but connection does not work

I have a Samsung Spica i5700 which I already have updated to Android 2.1. I am using the phone with an application called Run.GPS (http://www.rungps.net). This application logs data such as GPS...

Bluetooth communication between Arduino and PyBluez

I am trying to establish bluetooth communication between an Arduino Uno board (with a bluetooth shield) and my Linux OS, using Python PyBluez. I've successfully paired my laptop to the Uno. I'm...

How can I connect to the FitBit Zip over Bluetooth 4.0 LE on Linux with bluez?

I purchased a FitBit zip. This device uses Bluetooth 4.0 LE. I would like to at least connect to it via bluez. If that is successful I want to see how much of the protocol I can figure out. I am...

Programmatically removing all bluetooth devices on the Linux command line

I am able to scan for all available bluetooth devices with hcitool or with my C program. I can pair the device using it's address with a simple-agent python script. I would like to know if I can...

Does Android 4.2.2 support usb bluetooth dongle?

I can use blueZ hciconfig to find the usb bluetooth device 'hci0'. But I can't enable the bluetooth on Android 4.2.2. It seems android use a new bluetooth stack since version 4.2 . So it doesn't...

Is there a way to increase BLE advertisement frequency in BlueZ?

I have a linux computer broadcasting a BLE advertisement using the following commands: 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...

Bluetooth Library for BlueZ (Windows)

What is the Windows equivalent for Linux's libbluetooth2-dev? I'm trying to run simple_scan.c for a BlueZ-enabled bluetooth scan on my Intel Edison but I need the bluetooth library. This is the...

Bluetoothctl set passkey

I have a Raspberry Pi 2 running Raspbian kernel 4.1.15 and Bluez version 5.23. I want to be able to connect a device (like an Android phone) to the rapsberry which should accept the connection...

Reading Advertisement data in linux

I have libelum sensor node working with BLE module and i am trying to send "hello world " message from this module and i want to read this message from my Linux device (laptop) ,i have tried with...

Bluez5 Agent D-Bus api returns an empty Tuple

I use pydbus to access D-bus api from bluez5. I'd like to use the agent to handle pairings. Following the reference I call the RegisterAgent method like this: remote_object =...

BLE connect interval setting

For an application reading a block of data (9000 bytes) from a BLE device I need to modify the connect interval to be as fast as possible. I am running BlueZ stack 4.101 with a linux kernel =...

Bluetooth Issues Sending AVRCP Volume Changes Using D-Bus (qdbus) Send With org.bluez.MediaTransport1

I am working on emulating a Bluetooth headphone for automated testing using a raspberry pi as my headphone. Part of the challenge I was facing initially was to send AVRCP commands from the PI to...

Porting a C++ Program to Rust: Of reinterpret_cast, Structs and Bluetooth

I have a C++ program that statically links against libbluetooth/BlueZ, and I would like to port it to Rust as an exercise. One particularly ugly bit of the C++ code reads data from a UNIX file...

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...

Python Bluetooth Error on Raspberry Pi 3 (Server)

Listening for connections on port: 0 Traceback (most recent call last): File "server.py", line 29, in <module> runServer() File "server.py", line 19, in runServer ...

pybluez not detecting any devices

I have the following Python code: import bluetooth print(bluetooth.discover_devices()) This always waits a few seconds and prints out an empty list. My bluetooth adapter appears to be working, as...

bluetoothctl No default controller available

It's a bit wired here. I have a problem is bluetoothctl always said "No default controller available". I found there are many people had same problem with me. But the situation is a bit different...

Python using gattlib for BLE Scanning on Windows 10

I want to create a BLE Connection between my Laptop (Windows 10) and a BLE Device which will be the Master. I installed Bluez and I can detect Bluetooth devices like my Smartphone but no device...

How to properly connect the bluetooth server in C for Android?

I'm trying to connect an application between the computer and an android app. The app will be the client and the computer will be the server. Using BlueZ (C library for bluetooth on linux) for...

Bluetooth LE characteristic encrypt / authenticated notify not possible?

Looking at the bluez dbus API it seems it is not possible to have a characteristic with "notify" that only paired devices can subscribe to in an encrypted way (so something like...

Yocto: question on adding bluez-alsa in Yocto build

I am new to Yocto, I built core-image-sato for default machine (x86-qemu). I have below questions with adding recipe: I want to add bluez-alsa in the build. I checked...

(Bluetooth) Registering SDP record on local server in C on Linux

I am doing work on an application using Bluetooth and I want to register a new record on a local SDP server using C. I am using the BlueZ library but I am getting a segfault when trying to...

Unlock Linux with Bluetooth low energy

Have you ever seen the apple watch unlock a Mac? The idea is amazing, but I don't want a smart watch because I already have a phone which has similar capabilities AFAIK. Also, I moved from OSX to...

DHT22 Works as User but Not as Sudo on Pi Zero W

I have a python script using the adafruit-circuitpython-dht module on a Pi Zero W. The script does exactly what is should when run as user, but when run as sudo get an error from libgpoid. Script...

Raspberry Pi cannot reconnect to paired Bluetooth device

I am using Raspberry Pi 3 with BlueZ v5.5 to communicate with a Bluetooth scale. Problem: I can pair the scale and communicate with it (read/write characteristics) immediately after pairing. But...

Redirecting output of bluez btmgmt to file from systemd service

I try to have separate ssp modes during connection using Bluetooth btmgmt utility. Basic idea is scan current device OUI and select ssp on/off modes. But I can't get any answer from neither btmgmt...

Bluez can't connect permanently to a Bluetooth LE remote "Function not implemented (38)"

I have a new buster image: Linux stereo 5.10.17+ #1414 Fri Apr 30 13:16:27 BST 2021 armv6l GNU/Linux I did update bluez to it to bluez 5.52. What is already interesting is the fact that I have...

Failed to set power on: org.bluez.Error.Blocked problem

Recently I tried to use bluetooth on arch linux. I'm using WM so after installing packages such as:bluez and bluez-utils I ran a command bluetoothctl. Then I tried to run power on but I got an...

Error with Go program ( Bettercap 2 ) depending on which bluetooth dongle I use on Ubuntu/Raspberry Pi OS when running ble scan

I use this on Ubuntu 20.04 and Raspberry Pi OS 5.10 but this is not a Linux related issue. I'm having an issue with a Go program called Bettercap 2 ( https://www.bettercap.org/ and the repository:...

How to declare a variable as char* const*?

I have a bluez header file get_opt.h where argv is an argument: extern int getopt_long (int ___argc, char *__getopt_argv_const *___argv,..... which requires char* const* for argv. Because the...