balenaSound blueooth audio on Raspberry Pi 3: Sound skipping, dropping

I have balenaSound running on a Raspberry Pi 3. When I stream audio to it over Bluetooth from any device (even with my phone right next to the raspberry pi) the audio very regularly skips a bit, and about once every minute or two will cut out for 1 second or so.

I used balena-cloud-audiopi-raspberrypi3-2.43.0+rev1-v10.2.2.img and pushed the latest 0.4.4 balenaSound project from a Linux Machine. The bluetooth-audio, spotify and airplay downloaded and installed OK.

Is this bluetooth audio issue a common problem with the rpi3 and can it be fixed? If not, does the rpi4 have these problems also, or should I consider an upgrade?

Since you don’t want to have Wifi active, you can try disabling the interface at a hardware level. The Pi 3 has issues with Wifi/Bluetooth interfering with each other, so this might help and I would love to hear back if it does. You would need to set an application config variable in the balenaCloud dashboard for RESIN_HOST_CONFIG_dtoverlay and you want to set it to disable-wifi.

Thanks. I’ve set the variable and will report back after I test it.

I’ve set the variable and rebooted, but it seems the device is still visible as Online in the dashboard?

I’ve confirmed that dtoverlay=disable-wifi line exists in the config.txt, but Wifi is still connecting? (BT audio problem still exists)

OK - It’s weird that the Wifi wasn’t disabled, so I am going to ask a collegue to confirm this is something we directly support in balenaOS

Could you try setting the value to pi3-disable-wifi as it may be that our kernel is older than the one the RPi foundation has documented. Please report back if that kills the wifi interface :+1:

Thanks. This setting seems to have disabled the Wifi.

I wonder does this setting also disable the Bluetooth HW?

I wasn’t seeing the Bluetooth device any more, so I connected an Ethernet cable to check.

I see the Bluetooth service is restarting on a loop, with this message:

“31.10.19 08:19:14 (+0100) bluetooth-audio /bin/bash: relocation error: /bin/bash: symbol clo3%, version GLIBC_2.4 not defined in file libc.so.6 with link time reference
31.10.19 08:19:33 (+0100) Service exited ‘bluetooth-audio sha256:dccff48d6f76f1d41e97fbe5d386b58f707e2b5146ee35f9c70291e9cbce12e0’
31.10.19 08:19:33 (+0100) Restarting service ‘bluetooth-audio sha256:dccff48d6f76f1d41e97fbe5d386b58f707e2b5146ee35f9c70291e9cbce12e0’
31.10.19 08:19:14 (+0100) bluetooth-audio /bin/bash: relocation error: /bin/bash: symbol clo3%, version GLIBC_2.4 not defined in file libc.so.6 with link time reference
31.10.19 08:19:28 (+0100) bluetooth-audio /bin/bash: relocation error: /bin/bash: symbol clo3%, version GLIBC_2.4 not defined in file libc.so.6 with link time reference
31.10.19 08:19:53 (+0100) Service exited ‘bluetooth-audio sha256:dccff48d6f76f1d41e97fbe5d386b58f707e2b5146ee35f9c70291e9cbce12e0’
31.10.19 08:19:53 (+0100) Restarting service ‘bluetooth-audio sha256:dccff48d6f76f1d41e97fbe5d386b58f707e2b5146ee35f9c70291e9cbce12e0’
31.10.19 08:19:28 (+0100) bluetooth-audio /bin/bash: relocation error: /bin/bash: symbol clo3%, version GLIBC_2.4 not defined in file libc.so.6 with link time reference”

Hi, I am going to run it now and get back to you shortly.
Thanks,
Zahari

Hi, I do not experience any issues when adding pi3-disable-wifi overlay.

What I did is:

  1. cloned the balena-sound repository
  2. pushed it to a freshly created application with balena push
  3. added RESIN_HOST_CONFIG_dtoverlay as pi3-disable-wifi in the dashboard Fleet configuration page
  4. rebooted the device
  5. WiFi interface is not available and everything seems to be working correctly:
Setting output volume to 100%
Connection notify volume is 75%
Restarting bluetooth service
Bluetooth agent registered
Device is discoverable as "balenaSound f7ba"

Did you made some modifications on top of the balena-sound project when receiving those errors? The glibc relocation error does not look related to that change as it indicates something is not installed properly in the container.

Thanks,
Zahari

Hi,

Thanks. I started from scratch as you did, and now have Wifi disabled and bluetooth streaming.

The audio skips and gaps are still there unfortunately. I have ethernet plugged in, and I can see the following from the log:

01.11.19 18:58:24 (+0100)  bluetooth-audio  Setting output volume to 100%
01.11.19 18:58:24 (+0100)  bluetooth-audio  Connection notify volume is 75%
01.11.19 18:58:24 (+0100)  bluetooth-audio  Restarting bluetooth service
01.11.19 18:58:31 (+0100)  bluetooth-audio  Device is discoverable as "balenaSound c88f"
01.11.19 18:58:36 (+0100)  bluetooth-audio  Bluetooth agent registered
01.11.19 18:59:10 (+0100)  bluetooth-audio  AuthorizeService (/org/bluez/hci0/dev_94_65_2D_9C_DD_5C, 0000110d-0000-1000-8000-00805f9b34fb)
01.11.19 18:59:12 (+0100)  bluetooth-audio  /usr/bin/bluealsa: Missing RTP packet: 16 != 15
01.11.19 18:59:15 (+0100)  bluetooth-audio  /usr/bin/bluealsa: SBC decoding error: No such file or directory
01.11.19 18:59:15 (+0100)  bluetooth-audio  /usr/bin/bluealsa: Missing RTP packet: 176 != 175
01.11.19 18:59:15 (+0100)  bluetooth-audio  /usr/bin/bluealsa: SBC decoding error: No such file or directory
01.11.19 18:59:15 (+0100)  bluetooth-audio  /usr/bin/bluealsa: Missing RTP packet: 227 != 226
01.11.19 18:59:18 (+0100)  bluetooth-audio  /usr/bin/bluealsa: Missing RTP packet: 409 != 407
01.11.19 18:59:28 (+0100)  bluetooth-audio  /usr/bin/bluealsa: SBC decoding error: No such file or directory
01.11.19 18:59:28 (+0100)  bluetooth-audio  /usr/bin/bluealsa: Missing RTP packet: 1122 != 1121
01.11.19 18:59:36 (+0100)  bluetooth-audio  /usr/bin/bluealsa: SBC decoding error: No such file or directory
01.11.19 18:59:36 (+0100)  bluetooth-audio  /usr/bin/bluealsa: Missing RTP packet: 1654 != 1651
01.11.19 18:59:36 (+0100)  bluetooth-audio  /usr/bin/bluealsa: SBC decoding error: No such file or directory
01.11.19 18:59:37 (+0100)  bluetooth-audio  /usr/bin/bluealsa: Missing RTP packet: 1675 != 1673
01.11.19 18:59:45 (+0100)  bluetooth-audio  /usr/bin/bluealsa: SBC decoding error: No such file or directory
01.11.19 18:59:45 (+0100)  bluetooth-audio  /usr/bin/bluealsa: Missing RTP packet: 2241 != 2240
01.11.19 19:00:04 (+0100)  bluetooth-audio  /usr/bin/bluealsa: SBC decoding error: No such file or directory
01.11.19 19:00:04 (+0100)  bluetooth-audio  /usr/bin/bluealsa: Missing RTP packet: 3590 != 3589
01.11.19 19:00:09 (+0100)  bluetooth-audio  /usr/bin/bluealsa: SBC decoding error: No such file or directory
01.11.19 19:00:09 (+0100)  bluetooth-audio  /usr/bin/bluealsa: Missing RTP packet: 3932 != 3931
01.11.19 19:00:28 (+0100)  bluetooth-audio  /usr/bin/bluealsa: SBC decoding error: No such file or directory
01.11.19 19:00:28 (+0100)  bluetooth-audio  /usr/bin/bluealsa: Missing RTP packet: 5229 != 5228
01.11.19 19:00:34 (+0100)  bluetooth-audio  /usr/bin/bluealsa: Missing RTP packet: 5665 != 5664
01.11.19 19:01:06 (+0100)  bluetooth-audio  /usr/bin/bluealsa: SBC decoding error: No such file or directory
01.11.19 19:01:06 (+0100)  bluetooth-audio  /usr/bin/bluealsa: Missing RTP packet: 7229 != 7227
01.11.19 19:01:10 (+0100)  bluetooth-audio  /usr/bin/bluealsa: SBC decoding error: No such file or directory
01.11.19 19:01:10 (+0100)  bluetooth-audio  /usr/bin/bluealsa: Missing RTP packet: 7569 != 7568
01.11.19 19:01:16 (+0100)  bluetooth-audio  /usr/bin/bluealsa: SBC decoding error: No such file or directory
01.11.19 19:01:16 (+0100)  bluetooth-audio  /usr/bin/bluealsa: Missing RTP packet: 7961 != 7960
01.11.19 19:01:43 (+0100)  bluetooth-audio  /usr/bin/bluealsa: Unsupported RTP payload type: 0
01.11.19 19:01:43 (+0100)  bluetooth-audio  /usr/bin/bluealsa: Missing RTP packet: 9817 != 9816
01.11.19 19:01:47 (+0100)  bluetooth-audio  /usr/bin/bluealsa: SBC decoding error: No such file or directory
01.11.19 19:01:47 (+0100)  bluetooth-audio  /usr/bin/bluealsa: Missing RTP packet: 10083 != 10081
01.11.19 19:02:06 (+0100)  bluetooth-audio  /usr/bin/bluealsa: SBC decoding error: No such process
01.11.19 19:02:06 (+0100)  bluetooth-audio  /usr/bin/bluealsa: Missing RTP packet: 11416 != 11415
01.11.19 19:02:27 (+0100)  bluetooth-audio  /usr/bin/bluealsa: SBC decoding error: No such file or directory

The audio skips and gaps coincide exactly with the Missing RTP packet and SBC decoding errors.

Hey @outhud9 I’ve been trying to reproduce this on my side. Unfortunately I only have a rpi4 to test with. I have been streaming music to it via bluetooth for the last 30 minutes or so (from my macbook). I haven’t noticed any drop outs and havent got those logs. Lets try figure out what is different in your setup that causes this, some questions from my side:

  1. ) does Airplay and spotify connect functionality work as expected, or is there drop out there too? (trying to determine if its some how network related)
  2. ) Does stopping the airplay and spotify containers improve the audio quality? (trying to determine if its a resource problem)
  3. ) What kinda of SD card are you using with your RPI3? Our team all use Sandisk Extreme Pro SD cards because they are fast and don’t get corrupt. (trying to figure out if possibly related to IO performance)

@outhud9 Also another debugging step would be to get an external usb bluetooth dongle and test that, with the internal bluetooth disabled. However I know not everyone has these dongles :stuck_out_tongue: . From googling around most of the threads related to missing RTP packet end in “I just got an external usb dongle and it all works” …which is not a very satisfying answer :confused:

Hello
I used to play around with balena-sound. Did you enable any bluetooth speakers besides the RaspberryPi ? Other bluetooth speaker devices cause packet loss if they’re too closely placed around I think.

Hi,
I have more or less the same issue, very low volume and mostly dropping every paquet in Bluetooth mode. I have already tried every single solution provided without luck.
I also tried redeploying the app to the rasp 3b+ I am using. Right now I am with a ETH interface only and established the variable to discard wifi usage. SD card is powerfull enough and the device has always plenty of resources.
Thanks in advance if you can supportbalenasound_fragrant-morning-19.02.20_17_48_48_( 0100).log (107.7 KB) 71930c46f85eabf18f2d49fb651d0858_2020.02.19_13.39.51 0000.log (596.8 KB) balenasound_shy-cloud-19.02.20_14_34_24_( 0100).log (102.2 KB)

This is the last log I got, what I am currently experiencing is a really LOW volume for spotify and a very low volume + crippling for normal Bluetooth audio.

19.02.20 18:00:50 (+0100) snapcast-client 2020-02-19 17-00-50 [Info] sleep < -bufferDuration/2: -436 < -15, sleep: -406
19.02.20 18:00:50 (+0100) bluetooth-audio /usr/bin/bluealsa: SBC decoding error: No such file or directory
19.02.20 18:00:50 (+0100) bluetooth-audio /usr/bin/bluealsa: Missing RTP packet: 1139 != 1137
19.02.20 18:00:50 (+0100) snapcast-client 2020-02-19 17-00-50 [Info] sleep < -bufferDuration/2: -406 < -15, sleep: -375
19.02.20 18:00:50 (+0100) snapcast-client 2020-02-19 17-00-50 [Info] sleep < -bufferDuration/2: -375 < -15, sleep: -346
19.02.20 18:00:50 (+0100) snapcast-client 2020-02-19 17-00-50 [Info] sleep < -bufferDuration/2: -346 < -15, sleep: -316
19.02.20 18:00:50 (+0100) snapcast-client 2020-02-19 17-00-50 [Info] sleep < -bufferDuration/2: -316 < -15, sleep: -285
19.02.20 18:00:50 (+0100) snapcast-client 2020-02-19 17-00-50 [Info] sleep < -bufferDuration/2: -285 < -15, sleep: -255
19.02.20 18:00:50 (+0100) snapcast-client 2020-02-19 17-00-50 [Info] sleep < -bufferDuration/2: -255 < -15, sleep: -225
19.02.20 18:00:50 (+0100) snapcast-client 2020-02-19 17-00-50 [Info] sleep < -bufferDuration/2: -225 < -15, sleep: -195
19.02.20 18:00:51 (+0100) snapcast-client 2020-02-19 17-00-51 [Info] sleep < -bufferDuration/2: -195 < -15, sleep: -165
19.02.20 18:00:51 (+0100) snapcast-client 2020-02-19 17-00-51 [Info] sleep < -bufferDuration/2: -165 < -15, sleep: -135
19.02.20 18:00:51 (+0100) snapcast-client 2020-02-19 17-00-51 [Info] sleep < -bufferDuration/2: -135 < -15, sleep: -105
19.02.20 18:00:51 (+0100) snapcast-client 2020-02-19 17-00-51 [Info] sleep < -bufferDuration/2: -105 < -15, sleep: -75
19.02.20 18:00:51 (+0100) snapcast-client 2020-02-19 17-00-51 [Info] sleep < -bufferDuration/2: -75 < -15, sleep: -45
19.02.20 18:00:51 (+0100) snapcast-client 2020-02-19 17-00-51 [Info] sleep < -bufferDuration/2: -45 < -15, sleep: -15
19.02.20 18:00:51 (+0100) snapcast-client 2020-02-19 17-00-51 [Info] sleep < -bufferDuration/2: -15 < -15, sleep: 14
19.02.20 18:00:51 (+0100) snapcast-client 2020-02-19 17-00-51 [Info] Sleep 14, age: 14, bufferDuration: 30
19.02.20 18:00:51 (+0100) snapcast-client 2020-02-19 17-00-51 [Info] Chunk: 147 147 147 147 1 118
19.02.20 18:00:51 (+0100) snapcast-client 2020-02-19 17-00-51 [Info] Sleep 13, age: 13, bufferDuration: 30
19.02.20 18:00:51 (+0100) snapcast-client 2020-02-19 17-00-51 [Info] Sleep 13, age: 14, bufferDuration: 30
19.02.20 18:00:51 (+0100) snapcast-client 2020-02-19 17-00-51 [Info] Sleep 13, age: 13, bufferDuration: 30
19.02.20 18:00:51 (+0100) snapcast-client 2020-02-19 17-00-51 [Info] Sleep 12, age: 12, bufferDuration: 30
19.02.20 18:00:51 (+0100) snapcast-client 2020-02-19 17-00-51 [Info] Sleep 12, age: 13, bufferDuration: 30
19.02.20 18:00:51 (+0100) bluetooth-audio /usr/bin/bluealsa: Missing RTP packet: 1188 != 1186
19.02.20 18:00:51 (+0100) snapcast-client 2020-02-19 17-00-51 [Info] Sleep 12, age: 12, bufferDuration: 30
19.02.20 18:00:51 (+0100) snapcast-client 2020-02-19 17-00-51 [Info] Sleep 11, age: 11, bufferDuration: 30
19.02.20 18:00:52 (+0100) bluetooth-audio /usr/bin/bluealsa: SBC decoding error: No such file or directory
19.02.20 18:00:52 (+0100) bluetooth-audio /usr/bin/bluealsa: Missing RTP packet: 1228 != 1225
19.02.20 18:00:52 (+0100) snapcast-client 2020-02-19 17-00-52 [Info] Chunk: 116 116 116 116 1 119
19.02.20 18:00:52 (+0100) snapcast-client 2020-02-19 17-00-52 [Info] Sleep 10, age: 10, bufferDuration: 30
19.02.20 18:00:52 (+0100) snapcast-client 2020-02-19 17-00-52 [Info] Sleep 9, age: 9, bufferDuration: 30
19.02.20 18:00:52 (+0100) snapcast-client 2020-02-19 17-00-52 [Info] Sleep 9, age: 14, bufferDuration: 30
19.02.20 18:00:52 (+0100) snapcast-client 2020-02-19 17-00-52 [Info] Sleep 9, age: 10, bufferDuration: 30
19.02.20 18:00:52 (+0100) snapcast-client 2020-02-19 17-00-52 [Info] Sleep 9, age: 14, bufferDuration: 30
19.02.20 18:00:52 (+0100) snapcast-client 2020-02-19 17-00-52 [Info] Sleep 9, age: 9, bufferDuration: 30
19.02.20 18:00:52 (+0100) snapcast-client 2020-02-19 17-00-52 [Info] Sleep 8, age: 13, bufferDuration: 30
19.02.20 18:00:52 (+0100) snapcast-client 2020-02-19 17-00-52 [Info] Sleep 8, age: 11, bufferDuration: 30
19.02.20 18:00:52 (+0100) snapcast-client 2020-02-19 17-00-52 [Info] Sleep 8, age: 10, bufferDuration: 30
19.02.20 18:00:52 (+0100) bluetooth-audio /usr/bin/bluealsa: SBC decoding error: No such file or directory
19.02.20 18:00:52 (+0100) bluetooth-audio /usr/bin/bluealsa: Missing RTP packet: 1280 != 1260
19.02.20 18:00:52 (+0100) snapcast-client 2020-02-19 17-00-52 [Info] Sleep 8, age: 14, bufferDuration: 30
19.02.20 18:00:52 (+0100) snapcast-client 2020-02-19 17-00-52 [Info] Sleep 8, age: 9, bufferDuration: 30
19.02.20 18:00:52 (+0100) snapcast-client 2020-02-19 17-00-52 [Info] Sleep 8, age: 8, bufferDuration: 30
19.02.20 18:00:53 (+0100) snapcast-client 2020-02-19 17-00-53 [Info] Chunk: 86 86 86 86 1 110
19.02.20 18:00:53 (+0100) snapcast-client 2020-02-19 17-00-53 [Info] Sleep 7, age: 7, bufferDuration: 30
19.02.20 18:00:53 (+0100) snapcast-client 2020-02-19 17-00-53 [Info] Sleep 6, age: 8, bufferDuration: 30
19.02.20 18:00:53 (+0100) snapcast-client 2020-02-19 17-00-53 [Info] Sleep 6, age: 7, bufferDuration: 30
19.02.20 18:00:53 (+0100) snapcast-client 2020-02-19 17-00-53 [Info] Sleep 6, age: 6, bufferDuration: 30
19.02.20 18:00:53 (+0100) snapcast-client 2020-02-19 17-00-53 [Info] Sleep 4, age: 5, bufferDuration: 30
19.02.20 18:00:54 (+0100) snapcast-client 2020-02-19 17-00-54 [Info] Chunk: 58 58 58 58 1 111
19.02.20 18:00:54 (+0100) snapcast-client 2020-02-19 17-00-54 [Info] Sleep 4, age: 4, bufferDuration: 30
19.02.20 18:00:53 (+0100) bluetooth-audio /usr/bin/bluealsa: Missing RTP packet: 1356 != 1355
19.02.20 18:00:54 (+0100) bluetooth-audio /usr/bin/bluealsa: SBC decoding error: No such file or directory
19.02.20 18:00:54 (+0100) snapcast-client 2020-02-19 17-00-54 [Info] Sleep 3, age: 5, bufferDuration: 30
19.02.20 18:00:54 (+0100) snapcast-client 2020-02-19 17-00-54 [Info] Sleep 3, age: 4, bufferDuration: 30
19.02.20 18:00:54 (+0100) snapcast-client 2020-02-19 17-00-54 [Info] Sleep 2, age: 3, bufferDuration: 30
19.02.20 18:00:54 (+0100) bluetooth-audio /usr/bin/bluealsa: Missing RTP packet: 1386 != 1384
19.02.20 18:00:54 (+0100) snapcast-client 2020-02-19 17-00-54 [Info] Sleep 1, age: 2, bufferDuration: 30
19.02.20 18:00:55 (+0100) snapcast-client 2020-02-19 17-00-55 [Info] Sleep 1, age: 3, bufferDuration: 30
19.02.20 18:00:55 (+0100) snapcast-client 2020-02-19 17-00-55 [Info] Chunk: 32 32 32 32 1 112
19.02.20 18:00:55 (+0100) snapcast-client 2020-02-19 17-00-55 [Info] Sleep 1, age: 2, bufferDuration: 30
19.02.20 18:00:55 (+0100) bluetooth-audio /usr/bin/bluealsa: SBC decoding error: No such file or directory
19.02.20 18:00:55 (+0100) bluetooth-audio /usr/bin/bluealsa: Missing RTP packet: 1440 != 1439
19.02.20 18:00:55 (+0100) snapcast-client 2020-02-19 17-00-55 [Info] Sleep 0, age: 1, bufferDuration: 30
19.02.20 18:00:55 (+0100) snapcast-client 2020-02-19 17-00-55 [Info] Sleep 0, age: 2, bufferDuration: 30
19.02.20 18:00:55 (+0100) snapcast-client 2020-02-19 17-00-55 [Info] Sleep 0, age: 1, bufferDuration: 30
19.02.20 18:00:55 (+0100) snapcast-client 2020-02-19 17-00-55 [Info] Sleep 0
19.02.20 18:00:56 (+0100) snapcast-client 2020-02-19 17-00-56 [Info] Chunk: 13 13 13 13 20 112
19.02.20 18:00:57 (+0100) snapcast-client 2020-02-19 17-00-57 [Info] Chunk: 13 13 13 13 53 113
19.02.20 18:00:58 (+0100) bluetooth-audio /usr/bin/bluealsa: SBC decoding error: No such process
19.02.20 18:00:58 (+0100) snapcast-client 2020-02-19 17-00-58 [Info] Chunk: 13 13 13 13 86 114
19.02.20 18:00:58 (+0100) bluetooth-audio /usr/bin/bluealsa: SBC decoding error: No such process
19.02.20 18:00:58 (+0100) bluetooth-audio /usr/bin/bluealsa: SBC decoding error: No such process
19.02.20 18:00:58 (+0100) bluetooth-audio /usr/bin/bluealsa: Missing RTP packet: 1703 != 1699
19.02.20 18:00:59 (+0100) snapcast-client 2020-02-19 17-00-59 [Info] Chunk: 9 12 13 13 120 115
19.02.20 18:00:59 (+0100) bluetooth-audio /usr/bin/bluealsa: Missing RTP packet: 1734 != 1732
19.02.20 18:00:59 (+0100) bluetooth-audio /usr/bin/bluealsa: SBC decoding error: No such file or directory
19.02.20 18:01:00 (+0100) snapcast-client 2020-02-19 17-01-00 [Info] Chunk: 4 4 13 13 153 115
19.02.20 18:00:59 (+0100) bluetooth-audio /usr/bin/bluealsa: Missing RTP packet: 1765 != 1764
19.02.20 18:01:01 (+0100) snapcast-client 2020-02-19 17-01-01 [Info] Chunk: 2 3 6 12 186 116
19.02.20 18:01:00 (+0100) bluetooth-audio /usr/bin/bluealsa: SBC decoding error: No such file or directory
19.02.20 18:01:00 (+0100) bluetooth-audio /usr/bin/bluealsa: Missing RTP packet: 1826 != 1825
19.02.20 18:01:01 (+0100) bluetooth-audio /usr/bin/bluealsa: SBC decoding error: No such file or directory
19.02.20 18:01:01 (+0100) bluetooth-audio /usr/bin/bluealsa: Missing RTP packet: 1861 != 1859
19.02.20 18:01:01 (+0100) bluetooth-audio /usr/bin/bluealsa: SBC decoding error: No such file or directory
19.02.20 18:01:01 (+0100) bluetooth-audio /usr/bin/bluealsa: Missing RTP packet: 1879 != 1878
19.02.20 18:01:02 (+0100) snapcast-client 2020-02-19 17-01-02 [Info] Chunk: 5 2 3 12 220 117
19.02.20 18:01:03 (+0100) snapcast-client 2020-02-19 17-01-03 [Info] Chunk: 15 30 3 12 253 117
19.02.20 18:01:03 (+0100) bluetooth-audio /usr/bin/bluealsa: Missing RTP packet: 1984 != 1913
19.02.20 18:01:03 (+0100) bluetooth-audio /usr/bin/bluealsa: SBC decoding error: No such file or directory
19.02.20 18:01:04 (+0100) snapcast-client 2020-02-19 17-01-04 [Info] Chunk: 4 15 3 12 286 118
19.02.20 18:01:05 (+0100) snapcast-client 2020-02-19 17-01-05 [Info] Chunk: 22 7 15 12 320 119
19.02.20 18:01:05 (+0100) snapcast-server 2020-02-19 17-01-05 [Info] onStateChanged (default): 1
19.02.20 18:01:06 (+0100) snapcast-client 2020-02-19 17-01-06 [Info] Chunk: 33 27 15 12 353 110
19.02.20 18:01:06 (+0100) snapcast-client 2020-02-19 17-01-06 [Info] Failed to get chunk
19.02.20 18:01:07 (+0100) bluetooth-audio /usr/bin/bluealsa: Missing RTP packet: 2258 != 1985
19.02.20 18:01:07 (+0100) bluetooth-audio /usr/bin/bluealsa: SBC decoding error: No such file or directory
19.02.20 18:01:07 (+0100) bluetooth-audio /usr/bin/bluealsa: Missing RTP packet: 2303 != 2302
19.02.20 18:01:08 (+0100) snapcast-server 2020-02-19 17-01-08 [Info] onResync (default): 2685ms
19.02.20 18:01:08 (+0100) snapcast-server 2020-02-19 17-01-08 [Info] onStateChanged (default): 2
19.02.20 18:01:08 (+0100) snapcast-client 2020-02-19 17-01-08 [Info] age > 200: 1823
19.02.20 18:01:08 (+0100) snapcast-client 2020-02-19 17-01-08 [Info] sleep > bufferDuration/2: 1823 > 15
19.02.20 18:01:08 (+0100) snapcast-client 2020-02-19 17-01-08 [Info] sleep > chunkDuration: 1823 > 26, chunks
19.02.20 18:01:08 (+0100) snapcast-client 2020-02-19 17-01-08 [Info] sleep > chunkDuration: 1824 > 26, chunks: 0, out: 111, needed: 30
19.02.20 18:01:08 (+0100) snapcast-client 2020-02-19 17-01-08 [Info] sleep > chunkDuration: 1824 > 26, chunks: 0, out: 111, needed: 30
19.02.20 18:01:08 (+0100) snapcast-client 2020-02-19 17-01-08 [Info] Sleep -866, age: -873, bufferDuration: 30
19.02.20 18:01:08 (+0100) snapcast-client 2020-02-19 17-01-08 [Info] Chunk: -8739 -8739 -8739 -8739 1 111
19.02.20 18:01:08 (+0100) snapcast-client 2020-02-19 17-01-08 [Info] Failed to get chunk
19.02.20 18:01:08 (+0100) snapcast-client 2020-02-19 17-01-08 [Info] sleep < -bufferDuration/2: -866 < -15, sleep: -843
19.02.20 18:01:08 (+0100) snapcast-client 2020-02-19 17-01-08 [Err] XRUN
19.02.20 18:01:08 (+0100) snapcast-client 2020-02-19 17-01-08 [Info] sleep < -bufferDuration/2: -843 < -15, sleep: -954
19.02.20 18:01:08 (+0100) snapcast-client 2020-02-19 17-01-08 [Info] sleep < -bufferDuration/2: -954 < -15, sleep: -924
19.02.20 18:01:08 (+0100) snapcast-client 2020-02-19 17-01-08 [Info] sleep < -bufferDuration/2: -924 < -15, sleep: -894
19.02.20 18:01:08 (+0100) snapcast-client 2020-02-19 17-01-08 [Info] sleep < -bufferDuration/2: -894 < -15, sleep: -864
19.02.20 18:01:08 (+0100) snapcast-client 2020-02-19 17-01-08 [Info] sleep < -bufferDuration/2: -864 < -15, sleep: -835
19.02.20 18:01:08 (+0100) snapcast-client 2020-02-19 17-01-08 [Info] sleep < -bufferDuration/2: -835 < -15, sleep: -805
19.02.20 18:01:08 (+0100) snapcast-client 2020-02-19 17-01-08 [Info] sleep < -bufferDuration/2: -805 < -15, sleep: -775
19.02.20 18:01:08 (+0100) snapcast-client 2020-02-19 17-01-08 [Info] sleep < -bufferDuration/2: -775 < -15, sleep: -745
19.02.20 18:01:08 (+0100) snapcast-client 2020-02-19 17-01-08 [Info] sleep < -bufferDuration/2: -745 < -15, sleep: -715
19.02.20 18:01:08 (+0100) snapcast-client 2020-02-19 17-01-08 [Info] sleep < -bufferDuration/2: -715 < -15, sleep: -685
19.02.20 18:01:08 (+0100) snapcast-client 2020-02-19 17-01-08 [Info] sleep < -bufferDuration/2: -685 < -15, sleep: -655
19.02.20 18:01:08 (+0100) snapcast-client 2020-02-19 17-01-08 [Info] sleep < -bufferDuration/2: -655 < -15, sleep: -625
19.02.20 18:01:08 (+0100) snapcast-client 2020-02-19 17-01-08 [Info] sleep < -bufferDuration/2: -625 < -15, sleep: -595
19.02.20 18:01:08 (+0100) snapcast-client 2020-02-19 17-01-08 [Info] sleep < -bufferDuration/2: -595 < -15, sleep: -565
19.02.20 18:01:08 (+0100) snapcast-client 2020-02-19 17-01-08 [Info] sleep < -bufferDuration/2: -565 < -15, sleep: -535
19.02.20 18:01:08 (+0100) snapcast-client 2020-02-19 17-01-08 [Info] sleep < -bufferDuration/2: -535 < -15, sleep: -504
19.02.20 18:01:08 (+0100) snapcast-client 2020-02-19 17-01-08 [Info] sleep < -bufferDuration/2: -504 < -15, sleep: -475
19.02.20 18:01:08 (+0100) snapcast-client 2020-02-19 17-01-08 [Info] sleep < -bufferDuration/2: -475 < -15, sleep: -445
19.02.20 18:01:08 (+0100) snapcast-client 2020-02-19 17-01-08 [Info] sleep < -bufferDuration/2: -445 < -15, sleep: -415
19.02.20 18:01:08 (+0100) snapcast-client 2020-02-19 17-01-08 [Info] sleep < -bufferDuration/2: -415 < -15, sleep: -385
19.02.20 18:01:08 (+0100) snapcast-client 2020-02-19 17-01-08 [Info] sleep < -bufferDuration/2: -385 < -15, sleep: -355
19.02.20 18:01:08 (+0100) snapcast-client 2020-02-19 17-01-08 [Info] sleep < -bufferDuration/2: -355 < -15, sleep: -325
19.02.20 18:01:08 (+0100) snapcast-client 2020-02-19 17-01-08 [Info] sleep < -bufferDuration/2: -325 < -15, sleep: -294
19.02.20 18:01:08 (+0100) snapcast-client 2020-02-19 17-01-08 [Info] sleep < -bufferDuration/2: -294 < -15, sleep: -265
19.02.20 18:01:08 (+0100) snapcast-client 2020-02-19 17-01-08 [Info] sleep < -bufferDuration/2: -265 < -15, sleep: -235
19.02.20 18:01:09 (+0100) snapcast-client 2020-02-19 17-01-09 [Info] sleep < -bufferDuration/2: -235 < -15, sleep: -205
19.02.20 18:01:09 (+0100) snapcast-client 2020-02-19 17-01-09 [Info] sleep < -bufferDuration/2: -205 < -15, sleep: -175
19.02.20 18:01:09 (+0100) snapcast-client 2020-02-19 17-01-09 [Info] sleep < -bufferDuration/2: -175 < -15, sleep: -145
19.02.20 18:01:09 (+0100) snapcast-client 2020-02-19 17-01-09 [Info] sleep < -bufferDuration/2: -145 < -15, sleep: -115
19.02.20 18:01:09 (+0100) snapcast-client 2020-02-19 17-01-09 [Info] sleep < -bufferDuration/2: -115 < -15, sleep: -85
19.02.20 18:01:09 (+0100) snapcast-client 2020-02-19 17-01-09 [Info] sleep < -bufferDuration/2: -85 < -15, sleep: -55
19.02.20 18:01:09 (+0100) snapcast-client 2020-02-19 17-01-09 [Info] sleep < -bufferDuration/2: -55 < -15, sleep: -25
19.02.20 18:01:09 (+0100) snapcast-client 2020-02-19 17-01-09 [Info] sleep < -bufferDuration/2: -25 < -15, sleep: 4
19.02.20 18:01:09 (+0100) snapcast-client 2020-02-19 17-01-09 [Info] Sleep 4, age: 5, bufferDuration: 30
19.02.20 18:01:09 (+0100) snapcast-client 2020-02-19 17-01-09 [Info] Chunk: 53 53 53 53 1 114
19.02.20 18:01:09 (+0100) snapcast-client 2020-02-19 17-01-09 [Info] Sleep 4, age: 4, bufferDuration: 30
19.02.20 18:01:09 (+0100) snapcast-client 2020-02-19 17-01-09 [Info] Sleep 3, age: 3, bufferDuration: 30
19.02.20 18:01:09 (+0100) snapcast-client 2020-02-19 17-01-09 [Info] Sleep 2, age: 2, bufferDuration: 30
19.02.20 18:01:10 (+0100) snapcast-client 2020-02-19 17-01-10 [Info] Sleep 2, age: 3, bufferDuration: 30
19.02.20 18:01:10 (+0100) snapcast-client 2020-02-19 17-01-10 [Info] Chunk: 32 32 32 32 1 115

Hi @Alejandro,

Similarly to what Shaun asked @outhud9 , have you been able to replicate this with an external BT USB dongle? These issues do seem to point to the onboard BT setup, and it would be good to rule them

Another question is how far the Pi and streaming machine are away from each other. Obviously if they’re in the same location, you shouldn’t see any problems, but if there’s a significant distance between them (or there are a large number of other BT nodes in the same area) then this will also have a detrimental effect on playback.

Best regards,

Heds

1 Like

Hi Hedss.
Thanks for the fast reply. Out of desperation I ordered a BT donlge yesterday because I really want to give my Pi this role as I think it is neat. Now let’s see if I can make it work, any advice or shold the system just recognize it right away?, the model I chose is TP-Link UB400.

About the distance…every probe I made was just dropping audio from either a laptop or a mobile phone from within 30 to 50 cm.

I have also commented here Unable to Use balenaSound on Raspberry Pi. I uploaded a photo about the product so I do here. I am confident that is not cables or other stuff outside the Pi.

Best.

This is really frustrating. I commited again the build and still no luck after trying every single BT related command out there.

I eventually managed to install the dongle, not much of an issue. What I was not able at all was to deactivate delete the hci0 which is the onboard Rpi3b BT controller, to have the hci1 giving service exclusively.

[bluetooth]# show
Controller B8:27:EB:98:5D:49 (public)
Name: 0c8467c #2
Alias: 0c8467c #2
Class: 0x00000000
Powered: yes
Discoverable: no
DiscoverableTimeout: 0x00000000
Pairable: no
UUID: Generic Attribute Profile (00001801-0000-1000-8000-00805f9b34fb)
UUID: A/V Remote Control (0000110e-0000-1000-8000-00805f9b34fb)
UUID: PnP Information (00001200-0000-1000-8000-00805f9b34fb)
UUID: A/V Remote Control Target (0000110c-0000-1000-8000-00805f9b34fb)
UUID: Generic Access Profile (00001800-0000-1000-8000-00805f9b34fb)
Modalias: usb:v1D6Bp0246d0532
Discovering: no
[bluetooth]# show 00:1A:7D:DA:71:15
Controller 00:1A:7D:DA:71:15 (public)
Name: 0c8467c
Alias: balenaSound 0c84
Class: 0x00040000
Powered: yes
Discoverable: yes
DiscoverableTimeout: 0x00000000
Pairable: yes
UUID: Audio Sink (0000110b-0000-1000-8000-00805f9b34fb)
UUID: Generic Attribute Profile (00001801-0000-1000-8000-00805f9b34fb)
UUID: A/V Remote Control (0000110e-0000-1000-8000-00805f9b34fb)
UUID: PnP Information (00001200-0000-1000-8000-00805f9b34fb)
UUID: A/V Remote Control Target (0000110c-0000-1000-8000-00805f9b34fb)
UUID: Generic Access Profile (00001800-0000-1000-8000-00805f9b34fb)
Modalias: usb:v1D6Bp0246d0532
Discovering: no

root@0c8467c:/# btmgmt
[mgmt]# info
Index list with 2 items
hci1: Primary controller
addr B8:27:EB:98:5D:49 version 7 manufacturer 15 class 0x000000
supported settings: powered connectable fast-connectable discoverable bondable link-security ssp br/edr hs le advertising secure-conn debug-keys privacy static-addr
current settings: connectable discoverable bondable ssp br/edr le secure-conn
name 0c8467c #2
short name
hci0: Primary controller
addr 00:1A:7D:DA:71:15 version 6 manufacturer 10 class 0x040000
supported settings: powered connectable fast-connectable discoverable bondable link-security ssp br/edr hs le advertising secure-conn debug-keys privacy static-addr
current settings: powered connectable discoverable bondable ssp br/edr le secure-conn
name balenaSound 0c84
short name

root@0c8467c:/# bluetoothctl show
[NEW] Controller 00:1A:7D:DA:71:15 0c8467c #2 [default]
[NEW] Device A4:17:31:80:2B:06 HP-G6
[NEW] Controller B8:27:EB:98:5D:49 balenaSound 0c84
[NEW] Device 60:AB:67:0C:67:CD Mi A3
[NEW] Device A4:17:31:80:2B:06 HP-G6

I tried the power on command for example but it does nothing really, though it says the controller is off

I would like someone to explain the way to set the system variable as someone stated something like “pi3-disable-bt” is possible. Any help?
And how do I up the volume to the max?
Thanks

Hi Alejandro,
disabling bluetooth using the overlay should work. I found a post ( https://www.raspberrypi.org/forums/viewtopic.php?f=28&t=146598 ) that claims that pi3-disable-bt-overlay shoud do the job.
To do it in balena you can follow this guide: https://www.balena.io/docs/reference/OS/advanced/#setting-device-tree-overlays-dtoverlay-and-parameters-dtparam
Regards Thomas

Hi samothx,

I regret to confirm that the variable I set following the url notes is not working. I have set the variable as you see, like I did in the beginning to disable the WiFi module

After rebooting I see it clearly and can connect to ir with the mobile phone.

Im very pleased for your help guys, but due to my low spare time I am moving to other project like volumio / Musicbox.
Thanks!

Sorry it didn’t work out Alejandro, hopefully one of those projects works well for you!