How to send Canned Audio Data over an SCO Connection? #560
Replies: 1 comment 2 replies
-
The reason this doesn't work is that the USB transport implementation here doesn't yet support sending/receiving SCO packets to the controller (the main reason for this is that SCO over HCI is not supported by all controllers, since usually the audio exchanged for HFP gets routed from a separate line from the controller to some audio subsystem on the host, typically i2s). |
Beta Was this translation helpful? Give feedback.
-
Hello Bumble dev's,
I am trying to edit the
bumble\examples\run_hfp_handsfree.py
file to send HFP audio to a paired (bonded+connected) HFP Gateway (AG) device, but I can't seem to get it to work.Here's what I'm attempting to do:
I pair the AG to the HF, connect them, start a WiFi call using Google Meet between the AG and a secondary phone, and then see that the SCO connection is established. I've edited the example code to then read from a .wav file, encode the data as an HCI_SynchronousDataPacket , and send the encoded packet from the HF using Host.send_hci_packet() . But I always get the following warning from the USB transport:
It then continues to attempt to send SCO packets but I do not see anymore of the above warnings and I never hear anything on the secondary phone (receiver on the WiFi call).
From these logs, I'm unable to determine if (1) I'm encoding the SCO packets incorrectly, (2) I'm using send_hci_packet() incorrectly, or (3) bumble does not support sending SCO packets via HCI.
Could someone please let me know if sending SCO packets via HCI is supported or not? If so, then is there an example that I can reference for how to do so? I've been referencing the
run_hfp_gateway.py
example, because it seems to send SCO packets via HCI using a .wav file.My configuration is:
OS: Windows 11
HFP HF device
HW: Intel Wireless Bluetooth (built-in to my laptop).
Drivers: WinUSB v6.17600.16385.
HFP AG device
HW: Samsung Galaxy A51
OS: Android 13
I've attached a HFP_HF.log for additional context as needed. Thanks in advance!
Beta Was this translation helpful? Give feedback.
All reactions