I have an existing project for detecting bats which produces a sonogram and audio output to a local speaker. This is based on a PiZero2 and Bullseye32. As an extension to this I wanted to send the audio to a second Pi so that it can form the soundtrack to parallel video recordings. I have therefore been trying to set up a Bluetooth link between the two. I initially reconfigured the bat system to mirror the audio to the bluetooth system and tested this with a pair of earbuds, which worked very well.
Stage 2 was to set up a Pi3b using Bookworm64 to run PiCam-streamer video recorder. I then followed one of the various guides for configuring the bluetooth on this box as a wireless speaker - which again works very well - I can stream and record audio from my Android phone with no issues. In principle it should therefore be easy to pair and connect the two devices and establish the audio feed - but this is where the problems arise.
Whereas pairing either box to other Bluetooth devices is straightforward, initiating pairing of the two from either system is very hit and miss and takes at least 10x as long as normal before the other box is detected. Once detected however, a connection can be established, but this does not include a A2DP sink service on the video box. It includes A2DP sink service on the other box but that is of no use....
Having familiarised myself with pipewire/wireplumber as used by Bookworm I found Qpwgraph very useful to graphically show the available audio devices. Once a bluetooth connection is established, I can see an audio sink appear in the graph (at the remote end) , along with a local monitor port which automatically gets connected to the default audio card - but no sign of a local audio sink.
(For comparison, connecting my Android phone creates a local sink and automatically connects it to the default audio output).
Looking at the bluetooth setup process in more detail using bluetoothctl, scanning and pairing is more rapid, but there are frequent authentication errors reported before pairing finally takes place. I don't have sufficient knowledge of the bluetooth system to debug this. I have also tried changing a couple of config files in /etc/bluetooth/ to try and force only sinks at my video end, but with no change to the resulting connections.
Are there any Bluetooth experts out there who can help resolve this?
Stage 2 was to set up a Pi3b using Bookworm64 to run PiCam-streamer video recorder. I then followed one of the various guides for configuring the bluetooth on this box as a wireless speaker - which again works very well - I can stream and record audio from my Android phone with no issues. In principle it should therefore be easy to pair and connect the two devices and establish the audio feed - but this is where the problems arise.
Whereas pairing either box to other Bluetooth devices is straightforward, initiating pairing of the two from either system is very hit and miss and takes at least 10x as long as normal before the other box is detected. Once detected however, a connection can be established, but this does not include a A2DP sink service on the video box. It includes A2DP sink service on the other box but that is of no use....
Having familiarised myself with pipewire/wireplumber as used by Bookworm I found Qpwgraph very useful to graphically show the available audio devices. Once a bluetooth connection is established, I can see an audio sink appear in the graph (at the remote end) , along with a local monitor port which automatically gets connected to the default audio card - but no sign of a local audio sink.
(For comparison, connecting my Android phone creates a local sink and automatically connects it to the default audio output).
Looking at the bluetooth setup process in more detail using bluetoothctl, scanning and pairing is more rapid, but there are frequent authentication errors reported before pairing finally takes place. I don't have sufficient knowledge of the bluetooth system to debug this. I have also tried changing a couple of config files in /etc/bluetooth/ to try and force only sinks at my video end, but with no change to the resulting connections.
Are there any Bluetooth experts out there who can help resolve this?
Statistics: Posted by dickh768 — Sat Oct 12, 2024 12:28 pm