bluetooth headset does not load A2DP sink automatically after connect - audio

I have Kappa (507075) headset that connects to Bluetooth automatically but does not load the A2dp sink. It only loads HFP (hand free set) mono, which is unusable for music.
The trick is to disconnect the headset inside the Settings dialogue (ubuntu 22.04) and then reconnect from the Settings dialogue. After this ritual A2DP is loaded and the sound is perfect.
How can I fix the issue so that A2DP is loaded instantaneously after connecting the headphones?

Related

Phone BLE background for auto device connection

i have some questions for ble conneciton between smartphone with bluetooth earphone.
after pairing/bonding the bluetooth earphone, when i turn on bluetooth earphone, my smartphone automatically connect to the bluetooth earphone.
how it can be? the smartphone periodically try to connect (send connect request packet) to paired devices?
i don't think that job includes advertising/scan because the connection has completed so quickly right after bluetooth earphone turn on.
maybe.. i think the smartphone periodically try to connect to paired devices..
is it right?

Debugging BLE HID device

I'm trying to make an Android application for Android Things running on raspberry pi that takes USB joystick inputs (including DJI Mavic controller) and passes it over BLE HID as a gamepad.
Windows, Oculus Quest and Mac all recognize it as a gamepad, but when I try to connect to it, they connect and disconnect right away. I'm not sure why
Is there any tool on any OS that logs the BLE HID pairing process to find out what went wrong?
https://github.com/darvin/USBMavicBLEHIDAndroidThing/blob/master/app/src/main/java/jp/kshoji/blehid/HidPeripheral.java

How to route the Bluetooth audio A2DP into the audio device MediaStream ? (from electron app)

I have an app that runs locally on a Debian Linux system.
The app is made with Electron and runs on Chromium.
From this app, I have access to many things, including files, locally installed programs.
At this point I use the app to make the bluetooth discovery with the web-bluetooth API: https://developer.mozilla.org/en-US/docs/Web/API/Web_Bluetooth_API
I also have a local external audio card.
I can see the devices using the mediaDevices interface https://developer.mozilla.org/en-US/docs/Web/API/MediaDevices
Does someone know How to route the Bluetooth audio A2DP into the audio device MediaStream ?
Web Bluetooth supports GATT aka "Bluetooth Low Energy" aka "Bluetooth Smart". A2DP is a legacy profile not supported in Web Bluetooth.

Does the HC-05 bluetooth device support AVRCP commands?

I am trying to control the android music player from an Arduino with an HC-05 Bluetooth module. I have successfully paired them in serial mode but have been unable to find any means to connect them with the AVRCP profile. Is there a library that I can load into a sketch to do this?
The HC-05 supports SPP only. In order to get any other BlueTooth profile on there, you would have to create and flash different firmware for the Broadcom BC417143.

Does the content stream from WiFi directly to Chromecast, or from WiFi to Android to Chromecast?

Does the content stream from WiFi directly to Chromecast, or from WiFi to Android (or any other device) to Chromecast?
I know that the other devices can be used to control the Chromecast, but I just want to know whether say you can stream directly from your mobile due say to battery life.
The mobile device is only used for the initial content discovery phase where the user selects a video stream to watch. Once playback is initiated, the Chromecast device connects to the internet over WiFi and downloads the stream data without requiring the mobile device to be turned on.
More details available on the official Chromecast developer site.

Resources