17,230 questions
-1
votes
0
answers
75
views
How to give a rootless Podman container access to host bluetooth?
I'm trying to give a rootless podman container access to the host bluetooth (the ultimate goal is to receive data from a heartrate sensor). My user account does not have elevated privileges. Host ...
0
votes
0
answers
41
views
ESP32 Music using ESP32 bluetooth and PM8406 not working
I used this code, but speaker just playing some dont understandble sounds
I connected:
ESP32 → pin 26 → LIN PAM8406
GND ESP → GND PAM8406
PAM8406 L+ L- → speaker
PAM8406 VCC GND → POWER SUPPLY 5V ...
1
vote
2
answers
122
views
Is this BLE Advertisement packet out of spec? How can I emulate it?
I'm working on a project to emulate some BLE packets from a lamp that has Bluetooth functionality.
To do so, I'm capturing packets via Wireshark + nRF52840 dongle.
I've dissected most of the packet, ...
3
votes
0
answers
102
views
Wrapping IOBluetooth/CoreBluetooth with JNA/FFM
As the current (as of 2026) situation concerning Java and Bluetooth is a complete disaster, I am trying to wrap macOS’s bluetooth functionality with JNA/FFM, but as central elements of these APIs are ...
0
votes
0
answers
50
views
Expose Audio Output Device & Route Change Listener in Flutter WebRTC
Title: Flutter WebRTC audio route auto-switches mid-call and no API to observe / control current audio output device
Question:
In Flutter WebRTC on both Android and iOS, audio routing is handled ...
Best practices
0
votes
1
replies
50
views
How to decide whether to use BluetoothLeScanner or CompanionDeviceManager for a BLE device on android?
I have a led matrix which is programmable over BLE. The user is supposed to be able to set pixel patterns or text turned into pixel patterns using the app. When not actively displaying text the ...
0
votes
1
answer
92
views
How to check BLE GAP flags?
Is there a way to check the device's BLE GAP flags while scanning BLE devices with CoreBluetooth?
We need to check the bytes inside so we can filter out devices in pairing (limited discoverable) mode, ...
3
votes
0
answers
73
views
Why does BLE-program ble_simple_central.py respond with <memoryview> instead of data
I have run the Micropython code examples at github connecting the Bluetooth example programs "ble_simple_peripheral.py" to "ble_simple_central.py" over a Bluetooth link. Running ...
0
votes
1
answer
74
views
Bluetooth(BLE) Note Receiving The Data. What is the issue ? Working in iOS but not in android?
I am trying to send some data to a BLE Device but for some reasion it says data is sent successfully but actually the BLE is not doing any thing where asI have implemented the same thing in iOS and ...
0
votes
0
answers
70
views
Detox to test Bluetooth calls from Android device
I want to automate tests of Bluetooth calls from Android device (in a react native app).
I was thinking about using Detox for that.
Note that I do not want to test any UI, just the Bluetooth calls to ...
1
vote
1
answer
80
views
Bluetooth Extension Codename One not working as expected
I have installed the Bluetooth extension from Codename One Settings and follow the demo example, to get list of devices but cannot execute the "start scan" process
hi.add(new Button(new ...
Advice
0
votes
0
replies
75
views
How do devices like Android Auto / Insta360 use Wi-Fi without blocking cellular Internet and without showing “Connected without Internet”?
I’m trying to understand how some Android accessories (e.g. Android Auto head units, Insta360 cameras, dashcams, etc.) are able to:
connect to the phone over Wi-Fi
keep cellular (LTE/5G) as the ...
Advice
0
votes
1
replies
87
views
How to connect 2 devices to the same android device
I'm developing an Android application that uses Google Maps and Bluetooth to track data from an Arduino Nano with an HC-06 module.
Currently, I can connect to one HC-06 device and process its data ...
0
votes
2
answers
131
views
I cannot connect to my HC-05 bluetooth module using my own Java app
I built a Java app where I implemented bluetooth functionality. Using the documentation I managed to discover devices and pair with them. I managed to get the whole device info (address, name), but it ...
1
vote
0
answers
80
views
WASAPI loopback capture returns 0 bytes from Bluetooth headset during bidirectional audio (video calls) despite active session
I want to record the system audio using the WASAPI Loopback recording ( https://learn.microsoft.com/en-us/windows/win32/coreaudio/loopback-recording ).
I built a small application that enumerates the ...
-1
votes
1
answer
201
views
Android shared library build using NDK leads to loading failure
I'm working on a bluetooth library. This library is used by the service at runtime to talk to the controller.
The service binary is built in AOSP env with soong.
The library i have is generally logic ...
Tooling
1
vote
2
replies
72
views
How can I track the position in map without an Internet connection?
I have a experiment, which is analogged by Dubai Mall. There is an app, which tracks your position inside of the building, showing you the position using Bluetooth beacons, and floor number using the ...
0
votes
0
answers
80
views
How do I solve Bluetooth Service errors in inthehand library
I can't find the solution for errors in the BluetoothService class in .NET MAUI. I get 2 errors:
bluetoothService does not contain a definition for SerialPort
bluetoothDeviceInfo does not contain a ...
1
vote
0
answers
94
views
Android BluetoothAdapter.setName() returns true but ACTION_LOCAL_NAME_CHANGED broadcast never fires - Proposed Solution
I'm working on an Android app that programmatically changes the Bluetooth device name using BluetoothAdapter.setName(). The app needs to know when the name change completes to trigger subsequent ...
2
votes
0
answers
59
views
How to retrieve Manufacturer and Service Data from a Bluetooth Low Energy advertisement using Web Bluetooth API?
i'm trying to advertise data using BLE broadcasting. When it comes to the transmitter, no problem, I can use a native app to do the transmission, but, when talking about the receiver, I need it to be ...
0
votes
0
answers
116
views
There is a double scan happening with my python Bluetooth scanner and I don't know why
I will provide my code. The primary purpose of this is vehicle identification. My only hypothesis is my laptop having multiple Bluetooth signals but it seems to happen for other devices as well. This ...
0
votes
0
answers
116
views
Why Companion device pairing is not able to detect my device?
I am trying to integrate Companion device pairing to pair my bluetooth device with other device, One of my device is using Android 15 whereas the other one is using Android 16. I have enabled location ...
1
vote
0
answers
52
views
AVAudioSession - Play audio in the internal speaker while music is playing on bluetooth speaker
I'd like to play an application sound through the internal speaker while the device is playing music through a bluetooth speaker. Is that possible?
The context is I am working on a timer app. My timer ...
2
votes
1
answer
120
views
Subscribed to InterfaceAdded But no signal from dbus connection
My goal is to automate pairing and connecting between my device and controller via BlueZ to handle Bluetooth connection.
In order to do this, I thought of the most basic scenario:
execute the program
...
0
votes
1
answer
99
views
Unable to connect to bluetooth remote from Raspberry Pi Zero 2 W
I'm a newbie to Raspberry Pi. I'm trying to write an app that interacts with an Amazon Fire TV bluetooth remote but the app can't connect.
I know the bluetooth controller is working because my ...
3
votes
0
answers
178
views
Bluetooth device using Serial Port Profile (Master) can't connect to my PC (Slave)
I have a DS2278 barcode scanenr that is configured to connect via Bluetooth (Classic) using Serial Port Profile (Master).
For initiating a connection from the scanner (Master) I have to scan a barcode ...
0
votes
0
answers
104
views
ESP32 cannot connect to Arduino Uno via HC-05 Bluetooth module
I'm trying to connect an ESP32 (as Bluetooth master) to an Arduino Uno that has an HC-05 Bluetooth module attached. My goal is to send serial data between the ESP32 and the Uno.
Setup:
Arduino Uno ...
0
votes
0
answers
58
views
How to detect Bluetooth device name/alias changes on macOS using IOBluetooth
I am developing a macOS app using IOBluetooth.framework.
I simply want to keep a list of paired devices with up-to-date names.
I want to detect when a user renames a paired Bluetooth device (the alias)...
0
votes
0
answers
68
views
How to reliably detect success/failure of org.bluez.Device1.Connect() over D-Bus?
I’m working with the BlueZ D-Bus API (org.bluez.Device1.Connect()) to connect to Bluetooth devices. Is there any official way to detect when a connection attempt has failed, other than setting my own ...
1
vote
0
answers
90
views
Flutter iOS clear phone cache
Is there a way to clear the cache on an iOS device in flutter?
I currently use flutter_blue_plus package and my iOS device caches some data. Can I prevent the device from caching or just clear it?
1
vote
0
answers
59
views
Simultaneous recording and music streaming on a classic BT Headset on Android >=15
I want to use a bluetooth headset (not BLE) to record audio while at the same time streaming music from another app (e.g. Youtube, Spotify). I'm aware that the music quality will be low, but that's ...
0
votes
1
answer
290
views
Debugging Zephyr RTOS MCUmgr SMP on ESP32: stack overflow and illegal instruction in Bluetooth thread
My application using Zephyr RTOS v4.1.0 on ESP32-WROVER-IE and ESP32-S3-WROOM-1 to implement MCUmgr over Bluetooth (SMP transport) based on the smp_svr sample builds successfully, but flashing results ...
0
votes
0
answers
61
views
React Native: Bluetooth permission request not working on HUAWEI VOG-L29 - requestPermissions shows no dialog, openSettings() does nothing
React Native: Bluetooth permission request not working on HUAWEI VOG-L29 - requestPermissions shows no dialog, openSettings() does nothing
Problem Description
I have a React Native app that requires ...
0
votes
0
answers
65
views
Webrtc using default internal mic instead of bluetooth mic in react native iOS
I'm using react-native-incall-manager lib in my RN project (that also uses react-native-webrtc) to help route the audio to come in from the bluetooth mic. It works in Android but iOS still uses the ...
6
votes
2
answers
655
views
How to exclude a USB adapter vendor and product ID from a Linux HCI command [closed]
My CM749 UGREEN Bluetooth 5.4 adapter does not work on Linux kernel 6.15.7, since when the kernel sends Read_Local_Extended_Features to CM749, by the time the adapter finishes responding, the ...
6
votes
2
answers
573
views
What does it mean to "cancel" a command in the linux kernel and how can one do so?
Context
I bought a CM749 UGREEN Bluetooth 5.4 USB adapter for my Nixos machine. It is recognized by lsusb as ID 33fa:0010 USB2.0-BT, but is not detected by KDE/Plasma's bluetooth daemon.
I dug deeper ...
1
vote
2
answers
245
views
Find bluetooth connected devices battery level through Apple Script
I'm making a swift app that shows the battery level of all connected bluetooth devices.
I've got three devices connected: Mysz(name surname), Magic Keyboard (name), i12; where Mysz is just Magic Mouse....
-2
votes
1
answer
131
views
Mapping Bluetooth device to USB device on linux
I am trying to share Xbox One controller that is connected to my RPI 5 bluetooth to my windows computer. In past few days, I couldn't find anything about Bluetooth over IP or Bluetooth over USB, but I ...
2
votes
2
answers
131
views
onServicesDiscovered() not called if requestMtu() and discoverServices() called together when connecting to peripheral that initiates MTU negotiation
I am running into a BLE interoperability issue between an Android central/client (compileSDK=35) connecting to a peripheral/server that initiates its own MTU negotiation: service discovery appears to ...
1
vote
0
answers
155
views
Power off Xbox Series controller with C# via Bluetooth
I am writing a small winforms tray app targeting 4.7.2 on a win10 pc that will allow me to power down the controller on game exit. I've been trying to do this for some time now but still can't manage ...
0
votes
1
answer
75
views
Android get bluetooth device new name changed in bluetooth settings
How can I get the new name of a bonded device that was changed in the Bluetooth settings? Is it possible to track this change?
I checked:
val adapter = context.getSystemService<BluetoothManager>(...
0
votes
1
answer
204
views
Python Bluetooth advertising fails when I include any manufacturing data
I'm using a Raspberry Pi 3 with a fresh install of Raspberry Pi OS Lite 32-bit. I have a Bluetooth Dongle that supports Bluetooth Low Energy. I'm running Python 3.11.2.
I am attempting to broadcast a ...
1
vote
2
answers
1k
views
Unstable Bluetooth on Ubuntu 24.04: Discovery loop and connection failures with Qualcomm QCNFA765
I'm facing issues with bluetooh connections (in applications) in a way that my device seems to toggle discovery on/off all the time. I can't sucessfully connect to the devices.
But let me explain ...
1
vote
2
answers
226
views
How to improve Bluetooth communication between Arduino Uno using HC-05 and Android?
I have an Arduino Uno (atmega328p) and this sketch which sends data every 100ms
#include <SoftwareSerial.h>
const int BT_RX_PIN = 15; // SoftwareSerial RX
const int BT_TX_PIN = 17; // ...
0
votes
0
answers
88
views
Got this error just after booting my raspberrypi 4 with raspberrypi no desktop environment while starting bluetooth service
Got this error just after booting my raspberrypi 4 with raspberrypi no desktop environment while starting bluetooth service.
Now this one Jun 21 20:22:27 rpi systemd[1]: Started bluetooth.service - ...
0
votes
0
answers
73
views
BleManager isNotifying: true but listener is never triggered
I'm working on connecting a react native app to a bluetooth peripheral with react-native-ble-manager. Im successfully connecting to the device and when I run retrieve services before sending the ...
0
votes
1
answer
88
views
Monitor/TV auto switch on Bluetooth Service Linux Steam
Ok, so I want to make a background daemon/script/service that listens for my Bluetooth Xbox controller. Once it detects the controller is connected, it will turn off my monitor, switch to the TV, and ...
0
votes
0
answers
182
views
How to hide contacts in Android AOSP Contacts Provider when A phone is temporarily disconnected
In Android AOSP 15 code, I see that whenever a phone gets disconnected from the Phone Book( PBAP ) Client profile, PBAPClientConnectionHandler.java calls the AccountManager.removeAccountExplicitely ...
0
votes
0
answers
40
views
Mix and record Bluetooth sound will be much smaller than the previously played sound
SDK version: jl701n_soundbox_release_v1.4.2
When DAC_CONNECT_MODE is set to DAC_OUTPUT_MONO_LR_DIFF, the sound of mic during mixed recording and playback will be abnormal (the sound of mic is normal ...
1
vote
0
answers
215
views
Bluetooth Scanning not working on Android 15 - Samsung Galaxy S24 & S25
Our mobile application is scanning the IOT devices' data continuously over Bluetooth. The Bluetooth data is scanning in foreground and background.
Only Samsung Galaxy S24 & S25 devices having ...