Hi,
We are using Raspberry Pi4 with Zero Pi Codec. We are getting audio from a stereo mic and want to transmit this audio to Bluetooth headphones. The program works fine until we want to connect it to Bluetooth. It connects for 5 seconds but it disconnects. We are using the code in Python and using Alsa API. Is it something you can help with?
This is the error we get:
Running ['vc4hdmi0', 'vc4hdmi1', 'Zero']
HFPDevice class is initialised, using 00:14:BE:65:46:CA
Starting HSP/HFP found on RFCOMM channel 10
HSP/HFP service level connection is established
> AT+BRSF=955 < +BRSF: 0
< OK > AT+CIND=? < +CIND: ("service",(0,1)),("call",(0,1))
< OK >
AT+CIND?
< +CIND: 1,0 <
OK > AT+CMER=3, 0, 0, 1
< OK Read loop start Audio connection is established, mtu = 64
> AT+VGS=10 < ERROR > AT+VGM=00
< ERROR > AT+BTRH? < ERROR >
AT+XAPL=0012-000-0100,3 < ERROR > AT+IPHONEACCEV=2,1,9,2,0
< ERROR > AT+IPHONEACCEV=2,1,9,2,0 < ERROR > AT+BIA=0,1,0
ERROR Capture audio failed Read loop stop Service level connection disconnected: [Errno 103] Software caused connection abort
And we we run the "sudo systemctl status bluetooth" on the consol, we get the error
We are using Raspberry Pi4 with Zero Pi Codec. We are getting audio from a stereo mic and want to transmit this audio to Bluetooth headphones. The program works fine until we want to connect it to Bluetooth. It connects for 5 seconds but it disconnects. We are using the code in Python and using Alsa API. Is it something you can help with?
This is the error we get:
Running ['vc4hdmi0', 'vc4hdmi1', 'Zero']
HFPDevice class is initialised, using 00:14:BE:65:46:CA
Starting HSP/HFP found on RFCOMM channel 10
HSP/HFP service level connection is established
> AT+BRSF=955 < +BRSF: 0
< OK > AT+CIND=? < +CIND: ("service",(0,1)),("call",(0,1))
< OK >
AT+CIND?
< +CIND: 1,0 <
OK > AT+CMER=3, 0, 0, 1
< OK Read loop start Audio connection is established, mtu = 64
> AT+VGS=10 < ERROR > AT+VGM=00
< ERROR > AT+BTRH? < ERROR >
AT+XAPL=0012-000-0100,3 < ERROR > AT+IPHONEACCEV=2,1,9,2,0
< ERROR > AT+IPHONEACCEV=2,1,9,2,0 < ERROR > AT+BIA=0,1,0
ERROR Capture audio failed Read loop stop Service level connection disconnected: [Errno 103] Software caused connection abort
And we we run the "sudo systemctl status bluetooth" on the consol, we get the error
Attachments
-
192.1 KB Views: 3