No sound from DAC on RPi 3B+

I’m brand new in this area. I was using Volumio for a while but didn’t like the whole approach, using their interface to try to find and pull from the sources that I want. I want to try the push model instead, from source applications that I already know and use, using mostly AirPlay for now to get to the Balena device. I’ll try aptX HD if need be, down the road. But for now, I am able to connect iTunes to “BalenaSound AirPlay A856”, but getting no audio output. I have Allo Boss hat installed, I’m using BALENA_HOST_CONFIG_dtoverlay with value allo-boss-dac-pcm512x-audio. When I first cranked it up and there was no audio, I looked at AUDIO_OUTPUT, which was set to AUTO. I tried also connecting to the built-in 3.5mm audio jack on the RPi, still no sound. I don’t have a way to test audio over HDMI at my bench, so couldn’t test that. I changed AUDIO_OUTPUT to DAC to see if that would do anything different. No change.

There was a red error line in the log earlier, but it’s not there now, it may have scrolled out? Some kind of “broken pipe” message, usually not a good thing. I’ll download the log to include here, maybe it’ll be there even if not displayed. I can’t think of anything else to tell you. I’ll grant access if need be.

Oh, as a new user, one possibly silly question: Am I not supposed to have a monitor connected to the Raspberry that’s running Balena? The information there doesn’t seem particularly useful to me for ordinary purposes. It’s just constant log messages and service status for the various services. Thanks in advance for help.

I thought I could include an attachment, should I just paste the log in here or do you not need it?

Hi Keith - welcome to balena. :smiley: Thanks for letting us know about the issues you’ve found - we’re really keen to make balenaSound as good as it can be.

Can I first find out how you deployed the project? Was it from hub.balena.io and did you click “Get started” to join the fleet, or “Fork this fleet” to manage the device yourself?
Also, I tried to look up the dtoverlay you should use, but found several version of the Allo Boss HAT. Can you let us know the exact model name for your DAC?

There was a red error line in the log earlier, but it’s not there now, it may have scrolled out? Some kind of “broken pipe” message, usually not a good thing. I’ll download the log to include here, maybe it’ll be there even if not displayed. I can’t think of anything else to tell you. I’ll grant access if need be.

If you can find an error message in the logging, and provide it here, that would be great!

Oh, as a new user, one possibly silly question: Am I not supposed to have a monitor connected to the Raspberry that’s running Balena? The information there doesn’t seem particularly useful to me for ordinary purposes. It’s just constant log messages and service status for the various services.

Yeah, this is a new thing we have recently added. Since we now have fleets on hub, people can added balenaSound devices and let someone else worry about managing updates to the application, and not even require a balenaCloud account. However, this does mean that those users also don’t have anywhere to look for logs or status if for some reason the device doesn’t work. This is why we have added some service status and logging to the screen, should you attach one. It’s not necessary, normally, to attach a screen for balenaSound devices, no.

Great, thanks for the response. It would be very much a relief if it turns out simply to be the wrong overlay! I am brand new to balena and almost as brand new to GitHub, so I’m feeling my way along.

See responses below.

I’ve gone ahead and granted support access for a day, just in case it helps you, but honestly I wouldn’t expect you to go that far with it. If you think it is something I’ve done wrong or can address, let me at it! Thanks so much. Sorry the log is still a bit long even though it’s just an excerpt, but I’m not sure what has value to you there. Thanks again.

Keith Gardner

phil-d-wilson balena team
May 31

Hi Keith - welcome to balena. :smiley:Thanks for letting us know about the issues you’ve found - we’re really keen to make balenaSound as good as it can be.

Can I first find out how you deployed the project? Was it from hub.balena.io and did you click “Get started” to join the fleet, or “Fork this fleet” to manage the device yourself?

Ignore the Application called “BalenaSound”, that was my first attempt which I abandoned. We’re working on the second one, “balena-sound”, which I deployed from the link on the Balena Sound GitHub page marked “Deploy with balena”, which pre-filled some of the details for me.

Also, I tried to look up the dtoverlay you should use, but found several version of the Allo Boss HAT. Can you let us know the exact model name for your DAC?

The HAT says “Boss” and indicates "HW REV 1.7” (SL NO. 44). The barcode on the back of the card has “Boss DAC 9202979”. The box it came in has “B07191SYFH”.

There was a red error line in the log earlier, but it’s not there now, it may have scrolled out? Some kind of “broken pipe” message, usually not a good thing. I’ll download the log to include here, maybe it’ll be there even if not displayed. I can’t think of anything else to tell you. I’ll grant access if need be.

If you can find an error message in the logging, and provide it here, that would be great!

Here’s the tail end of the log file, I’ve suppressed any lines not containing Error, Warn or Notice. Hope this helps!

05.21 19 58 21 (-0400) 2021-05-30 23-58-21.631 [Notice] (init) Settings file “/var/cache/snapcast/server.json”
~/Downloads/balena-sound_patient-tree-30.05.21_21_07_40_(-0400).txt 2140 30.05.21 19 58 21 (-0400) 2021-05-30 23-58-21.633 [Error] (Avahi) Failed to create client Daemon not running
~/Downloads/balena-sound_patient-tree-30.05.21_21_07_40_(-0400).txt 2143 30.05.21 19 58 22 (-0400) 2021-05-30 23-58-22.563 [Notice] (Connection) Connected to 192.168.0.16
~/Downloads/balena-sound_patient-tree-30.05.21_21_07_40_(-0400).txt 2146 30.05.21 19 58 22 (-0400) 2021-05-30 23-58-22.565 [Notice] (StreamServer) StreamServer NewConnection 172.17.0.1
~/Downloads/balena-sound_patient-tree-30.05.21_21_07_40_(-0400).txt 2149 30.05.21 19 58 22 (-0400) 2021-05-30 23-58-22.573 [Warn] (Controller) Unexpected message received, type 4
~/Downloads/balena-sound_patient-tree-30.05.21_21_07_40_(-0400).txt 2155 30.05.21 19 58 23 (-0400) 2021-05-30 23-58-23.552 [Error] (StreamSessionTCP) Error reading message header of length 0 End of file
~/Downloads/balena-sound_patient-tree-30.05.21_21_07_40_(-0400).txt 2158 30.05.21 19 58 23 (-0400) 2021-05-30 23-58-23.551 [Error] (Controller) Failed to send hello request, error Connection timed out
~/Downloads/balena-sound_patient-tree-30.05.21_21_07_40_(-0400).txt 2161 30.05.21 19 58 23 (-0400) 2021-05-30 23-58-23.660 [Error] (Controller) Time sync request failed Connection timed out
~/Downloads/balena-sound_patient-tree-30.05.21_21_07_40_(-0400).txt 2164 30.05.21 19 58 23 (-0400) 2021-05-30 23-58-23.660 [Error] (Connection) Error reading message header of length 0 Operation canceled
~/Downloads/balena-sound_patient-tree-30.05.21_21_07_40_(-0400).txt 2179 30.05.21 19 58 24 (-0400) 2021-05-30 23-58-24.663 [Notice] (StreamServer) StreamServer NewConnection 172.17.0.1
~/Downloads/balena-sound_patient-tree-30.05.21_21_07_40_(-0400).txt 2182 30.05.21 19 58 24 (-0400) 2021-05-30 23-58-24.662 [Notice] (Connection) Connected to 192.168.0.16
~/Downloads/balena-sound_patient-tree-30.05.21_21_07_40_(-0400).txt 2217 30.05.21 19 58 29 (-0400) 2021-05-30 23-58-29.722 [Notice] (Alsa) No chunk received for 5000ms. Closing ALSA.
~/Downloads/balena-sound_patient-tree-30.05.21_21_07_40_(-0400).txt 2229 30.05.21 20 0 34 (-0400) 2021-05-31 00-00-34.150 [Warn] (Alsa) snd_pcm_avail_delay failed Broken pipe (-32), avail 882, delay 3480, using snd_pcm_avail amd snd_pcm_delay.
~/Downloads/balena-sound_patient-tree-30.05.21_21_07_40_(-0400).txt 2232 30.05.21 20 0 34 (-0400) 2021-05-31 00-00-34.152 [Error] (Alsa) XRUN while writing to PCM Broken pipe
~/Downloads/balena-sound_patient-tree-30.05.21_21_07_40_(-0400).txt 2235 30.05.21 20 0 34 (-0400) 2021-05-31 00-00-34.161 [Warn] (Alsa) snd_pcm_avail_delay failed Input/output error (-5), avail 882, delay 0, using snd_pcm_avail amd snd_pcm_delay.
~/Downloads/balena-sound_patient-tree-30.05.21_21_07_40_(-0400).txt 2238 30.05.21 20 0 34 (-0400) 2021-05-31 00-00-34.163 [Warn] (Alsa) snd_pcm_delay failed Input/output error (-5), avail 3528, delay 0
~/Downloads/balena-sound_patient-tree-30.05.21_21_07_40_(-0400).txt 2241 30.05.21 20 0 34 (-0400) 2021-05-31 00-00-34.179 [Warn] (Alsa) snd_pcm_avail_delay failed Input/output error (-5), avail 3528, delay 0, using snd_pcm_avail amd snd_pcm_delay.
~/Downloads/balena-sound_patient-tree-30.05.21_21_07_40_(-0400).txt 2244 30.05.21 20 0 45 (-0400) 2021-05-31 00-00-45.299 [Notice] (Alsa) No chunk received for 5000ms. Closing ALSA.
~/Downloads/balena-sound_patient-tree-30.05.21_21_07_40_(-0400).txt 2267 30.05.21 19 58 24 (-0400) 2021-05-30 23-58-24.663 [Notice] (StreamServer) StreamServer NewConnection 172.17.0.1
~/Downloads/balena-sound_patient-tree-30.05.21_21_07_40_(-0400).txt 2270 30.05.21 20 0 45 (-0400) 2021-05-31 00-00-45.299 [Notice] (Alsa) No chunk received for 5000ms. Closing ALSA.
~/Downloads/balena-sound_patient-tree-30.05.21_21_07_40_(-0400).txt 2285 30.05.21 20 20 21 (-0400) 2021-05-31 00-20-21.770 [Warn] (Alsa) snd_pcm_avail_delay failed Broken pipe (-32), avail 883, delay 3471, using snd_pcm_avail amd snd_pcm_delay.
~/Downloads/balena-sound_patient-tree-30.05.21_21_07_40_(-0400).txt 2288 30.05.21 20 20 21 (-0400) 2021-05-31 00-20-21.772 [Error] (Alsa) XRUN while writing to PCM Broken pipe
~/Downloads/balena-sound_patient-tree-30.05.21_21_07_40_(-0400).txt 2291 30.05.21 20 20 21 (-0400) 2021-05-31 00-20-21.779 [Warn] (Alsa) snd_pcm_avail_delay failed Input/output error (-5), avail 882, delay 0, using snd_pcm_avail amd snd_pcm_delay.
~/Downloads/balena-sound_patient-tree-30.05.21_21_07_40_(-0400).txt 2294 30.05.21 20 20 29 (-0400) 2021-05-31 00-20-29.851 [Notice] (Alsa) No chunk received for 5000ms. Closing ALSA.
~/Downloads/balena-sound_patient-tree-30.05.21_21_07_40_(-0400).txt 2319 30.05.21 20 42 44 (-0400) 2021-05-31 00-42-44.968 [Error] (AlsaStream) Error reading PCM data Broken pipe (code -32)
~/Downloads/balena-sound_patient-tree-30.05.21_21_07_40_(-0400).txt 2322 30.05.21 20 42 44 (-0400) 2021-05-31 00-42-44.970 [Error] (Alsa) ERROR. Can’t wait for PCM to become ready Input/output error
~/Downloads/balena-sound_patient-tree-30.05.21_21_07_40_(-0400).txt 2331 30.05.21 20 42 45 (-0400) 2021-05-31 00-42-44.998 [Error] (AlsaStream) Exception Can’t open device ‘pulse’, error Connection refused
~/Downloads/balena-sound_patient-tree-30.05.21_21_07_40_(-0400).txt 2340 30.05.21 20 42 45 (-0400) 2021-05-31 00-42-44.990 [Error] (Alsa) Exception in initAlsa Can’t open default, error Connection refused
~/Downloads/balena-sound_patient-tree-30.05.21_21_07_40_(-0400).txt 2355 30.05.21 20 42 45 (-0400) 2021-05-31 00-42-45.077 [Error] (Connection) Error reading message header of length 0 End of file
~/Downloads/balena-sound_patient-tree-30.05.21_21_07_40_(-0400).txt 2364 30.05.21 20 42 45 (-0400) 2021-05-31 00-42-45.103 [Error] (Alsa) Exception in initAlsa Can’t open default, error Connection refused
~/Downloads/balena-sound_patient-tree-30.05.21_21_07_40_(-0400).txt 2400 30.05.21 20 42 46 (-0400) 2021-05-31 00-42-46.205 [Notice] (Connection) Connected to 192.168.0.16
~/Downloads/balena-sound_patient-tree-30.05.21_21_07_40_(-0400).txt 2403 30.05.21 20 42 46 (-0400) 2021-05-31 00-42-46.217 [Error] (Connection) Error reading message header of length 0 End of file
~/Downloads/balena-sound_patient-tree-30.05.21_21_07_40_(-0400).txt 2406 30.05.21 20 42 46 (-0400) 2021-05-31 00-42-46.218 [Error] (Connection) Error in socket shutdown Transport endpoint is not connected
~/Downloads/balena-sound_patient-tree-30.05.21_21_07_40_(-0400).txt 2409 30.05.21 20 42 46 (-0400) 2021-05-31 00-42-46.218 [Error] (Connection) Failed to send message, error Bad file descriptor
~/Downloads/balena-sound_patient-tree-30.05.21_21_07_40_(-0400).txt 2412 30.05.21 20 42 46 (-0400) 2021-05-31 00-42-46.218 [Error] (Controller) Time sync request failed Bad file descriptor
~/Downloads/balena-sound_patient-tree-30.05.21_21_07_40_(-0400).txt 2417 30.05.21 20 42 47 (-0400) 2021-05-31 00-42-47.219 [Notice] (Connection) Connected to 192.168.0.16
~/Downloads/balena-sound_patient-tree-30.05.21_21_07_40_(-0400).txt 2420 30.05.21 20 42 47 (-0400) 2021-05-31 00-42-47.228 [Error] (Connection) Error reading message header of length 0 End of file
~/Downloads/balena-sound_patient-tree-30.05.21_21_07_40_(-0400).txt 2423 30.05.21 20 42 47 (-0400) 2021-05-31 00-42-47.228 [Error] (Connection) Error in socket shutdown Transport endpoint is not connected
~/Downloads/balena-sound_patient-tree-30.05.21_21_07_40_(-0400).txt 2426 30.05.21 20 42 47 (-0400) 2021-05-31 00-42-47.229 [Error] (Connection) Failed to send message, error Bad file descriptor
~/Downloads/balena-sound_patient-tree-30.05.21_21_07_40_(-0400).txt 2429 30.05.21 20 42 47 (-0400) 2021-05-31 00-42-47.229 [Error] (Controller) Time sync request failed Bad file descriptor
~/Downloads/balena-sound_patient-tree-30.05.21_21_07_40_(-0400).txt 2438 30.05.21 20 42 48 (-0400) 2021-05-31 00-42-48.217 [Error] (Controller) Failed to send hello request, error Connection timed out
~/Downloads/balena-sound_patient-tree-30.05.21_21_07_40_(-0400).txt 2441 30.05.21 20 42 48 (-0400) 2021-05-31 00-42-48.217 [Error] (Controller) Time sync request failed Connection timed out
~/Downloads/balena-sound_patient-tree-30.05.21_21_07_40_(-0400).txt 2448 30.05.21 20 42 49 (-0400) 2021-05-31 00-42-49.218 [Error] (Connection) Failed to connect to host ‘192.168.0.16’, error Connection refused
~/Downloads/balena-sound_patient-tree-30.05.21_21_07_40_(-0400).txt 2451 30.05.21 20 42 49 (-0400) 2021-05-31 00-42-49.218 [Error] (Controller) Error Connection refused
~/Downloads/balena-sound_patient-tree-30.05.21_21_07_40_(-0400).txt 2454 30.05.21 20 42 49 (-0400) 2021-05-31 00-42-49.218 [Error] (Connection) Error in socket shutdown Transport endpoint is not connected
~/Downloads/balena-sound_patient-tree-30.05.21_21_07_40_(-0400).txt 2457 30.05.21 20 42 49 (-0400) 2021-05-31 00-42-49.228 [Error] (Controller) Failed to send hello request, error Connection timed out
~/Downloads/balena-sound_patient-tree-30.05.21_21_07_40_(-0400).txt 2460 30.05.21 20 42 49 (-0400) 2021-05-31 00-42-49.228 [Error] (Controller) Time sync request failed Connection timed out
~/Downloads/balena-sound_patient-tree-30.05.21_21_07_40_(-0400).txt 2463 30.05.21 20 42 50 (-0400) 2021-05-31 00-42-50.229 [Error] (Connection) Failed to connect to host ‘192.168.0.16’, error Connection refused
~/Downloads/balena-sound_patient-tree-30.05.21_21_07_40_(-0400).txt 2466 30.05.21 20 42 50 (-0400) 2021-05-31 00-42-50.229 [Error] (Controller) Error Connection refused
~/Downloads/balena-sound_patient-tree-30.05.21_21_07_40_(-0400).txt 2469 30.05.21 20 42 50 (-0400) 2021-05-31 00-42-50.229 [Error] (Connection) Error in socket shutdown Transport endpoint is not connected
~/Downloads/balena-sound_patient-tree-30.05.21_21_07_40_(-0400).txt 2472 30.05.21 20 42 51 (-0400) 2021-05-31 00-42-51.230 [Error] (Connection) Failed to connect to host ‘192.168.0.16’, error Connection refused
~/Downloads/balena-sound_patient-tree-30.05.21_21_07_40_(-0400).txt 2475 30.05.21 20 42 51 (-0400) 2021-05-31 00-42-51.230 [Error] (Controller) Error Connection refused
~/Downloads/balena-sound_patient-tree-30.05.21_21_07_40_(-0400).txt 2478 30.05.21 20 42 51 (-0400) 2021-05-31 00-42-51.230 [Error] (Connection) Error in socket shutdown Transport endpoint is not connected
~/Downloads/balena-sound_patient-tree-30.05.21_21_07_40_(-0400).txt 2495 30.05.21 20 42 52 (-0400) 2021-05-31 00-42-52.231 [Error] (Connection) Failed to connect to host ‘192.168.0.16’, error Connection refused
~/Downloads/balena-sound_patient-tree-30.05.21_21_07_40_(-0400).txt 2498 30.05.21 20 42 52 (-0400) 2021-05-31 00-42-52.232 [Error] (Controller) Error Connection refused
~/Downloads/balena-sound_patient-tree-30.05.21_21_07_40_(-0400).txt 2501 30.05.21 20 42 52 (-0400) 2021-05-31 00-42-52.232 [Error] (Connection) Error in socket shutdown Transport endpoint is not connected
~/Downloads/balena-sound_patient-tree-30.05.21_21_07_40_(-0400).txt 2508 30.05.21 20 42 53 (-0400) 2021-05-31 00-42-53.233 [Error] (Connection) Failed to connect to host ‘192.168.0.16’, error Connection refused
~/Downloads/balena-sound_patient-tree-30.05.21_21_07_40_(-0400).txt 2511 30.05.21 20 42 53 (-0400) 2021-05-31 00-42-53.233 [Error] (Controller) Error Connection refused
~/Downloads/balena-sound_patient-tree-30.05.21_21_07_40_(-0400).txt 2514 30.05.21 20 42 53 (-0400) 2021-05-31 00-42-53.233 [Error] (Connection) Error in socket shutdown Transport endpoint is not connected
~/Downloads/balena-sound_patient-tree-30.05.21_21_07_40_(-0400).txt 2517 30.05.21 20 42 54 (-0400) 2021-05-31 00-42-54.234 [Notice] (Connection) Connected to 192.168.0.16
~/Downloads/balena-sound_patient-tree-30.05.21_21_07_40_(-0400).txt 2522 30.05.21 20 42 56 (-0400) 2021-05-31 00-42-56.244 [Error] (Controller) Failed to send hello request, error Connection timed out
~/Downloads/balena-sound_patient-tree-30.05.21_21_07_40_(-0400).txt 2525 30.05.21 20 42 56 (-0400) 2021-05-31 00-42-56.246 [Error] (Controller) Time sync request failed Connection timed out
~/Downloads/balena-sound_patient-tree-30.05.21_21_07_40_(-0400).txt 2528 30.05.21 20 42 56 (-0400) 2021-05-31 00-42-56.246 [Error] (Connection) Error reading message header of length 0 Operation canceled
~/Downloads/balena-sound_patient-tree-30.05.21_21_07_40_(-0400).txt 2543 30.05.21 20 42 57 (-0400) 2021-05-31 00-42-57.247 [Notice] (Connection) Connected to 192.168.0.16
~/Downloads/balena-sound_patient-tree-30.05.21_21_07_40_(-0400).txt 2546 30.05.21 20 42 57 (-0400) 2021-05-31 00-42-57.258 [Error] (Connection) Error reading message header of length 0 End of file
~/Downloads/balena-sound_patient-tree-30.05.21_21_07_40_(-0400).txt 2549 30.05.21 20 42 57 (-0400) 2021-05-31 00-42-57.259 [Error] (Connection) Error in socket shutdown Transport endpoint is not connected
~/Downloads/balena-sound_patient-tree-30.05.21_21_07_40_(-0400).txt 2552 30.05.21 20 42 57 (-0400) 2021-05-31 00-42-57.259 [Error] (Connection) Failed to send message, error Bad file descriptor
~/Downloads/balena-sound_patient-tree-30.05.21_21_07_40_(-0400).txt 2555 30.05.21 20 42 57 (-0400) 2021-05-31 00-42-57.259 [Error] (Controller) Time sync request failed Bad file descriptor
~/Downloads/balena-sound_patient-tree-30.05.21_21_07_40_(-0400).txt 2616 30.05.21 20 43 04 (-0400) 2021-05-31 00-43-04.721 [Notice] (init) Settings file “/var/cache/snapcast/server.json”
~/Downloads/balena-sound_patient-tree-30.05.21_21_07_40_(-0400).txt 2619 30.05.21 20 43 04 (-0400) 2021-05-31 00-43-04.723 [Error] (Avahi) Failed to create client Daemon not running
~/Downloads/balena-sound_patient-tree-30.05.21_21_07_40_(-0400).txt 2628 30.05.21 20 43 04 (-0400) 2021-05-31 00-43-04.771 [Notice] (Server) Server start Can’t open device ‘pulse’, error Connection refused
~/Downloads/balena-sound_patient-tree-30.05.21_21_07_40_(-0400).txt 2631 30.05.21 20 43 04 (-0400) 2021-05-31 00-43-04.772 [Error] (main) Exception Can’t open device ‘pulse’, error Connection refused
~/Downloads/balena-sound_patient-tree-30.05.21_21_07_40_(-0400).txt 2634 30.05.21 20 43 04 (-0400) 2021-05-31 00-43-04.794 [Notice] (main) Snapserver terminated.
~/Downloads/balena-sound_patient-tree-30.05.21_21_07_40_(-0400).txt 2726 30.05.21 20 43 11 (-0400) 2021-05-31 00-43-11.758 [Notice] (Connection) Connected to 192.168.0.16
~/Downloads/balena-sound_patient-tree-30.05.21_21_07_40_(-0400).txt 2741 30.05.21 20 43 11 (-0400) 2021-05-31 00-43-11.758 [Notice] (Connection) Connected to 192.168.0.16
~/Downloads/balena-sound_patient-tree-30.05.21_21_07_40_(-0400).txt 2746 30.05.21 20 43 12 (-0400) 2021-05-31 00-43-12.840 [Error] (Connection) Error reading message header of length 0 Connection reset by peer
~/Downloads/balena-sound_patient-tree-30.05.21_21_07_40_(-0400).txt 2749 30.05.21 20 43 12 (-0400) 2021-05-31 00-43-12.840 [Error] (Connection) Error in socket shutdown Transport endpoint is not connected
~/Downloads/balena-sound_patient-tree-30.05.21_21_07_40_(-0400).txt 2761 30.05.21 20 43 13 (-0400) 2021-05-31 00-43-13.055 [Notice] (init) Settings file “/var/cache/snapcast/server.json”
~/Downloads/balena-sound_patient-tree-30.05.21_21_07_40_(-0400).txt 2764 30.05.21 20 43 13 (-0400) 2021-05-31 00-43-13.056 [Error] (Avahi) Failed to create client Daemon not running
~/Downloads/balena-sound_patient-tree-30.05.21_21_07_40_(-0400).txt 2767 30.05.21 20 43 13 (-0400) 2021-05-31 00-43-13.786 [Error] (Controller) Failed to send hello request, error Connection timed out
~/Downloads/balena-sound_patient-tree-30.05.21_21_07_40_(-0400).txt 2770 30.05.21 20 43 13 (-0400) 2021-05-31 00-43-13.786 [Error] (Controller) Time sync request failed Connection timed out
~/Downloads/balena-sound_patient-tree-30.05.21_21_07_40_(-0400).txt 2773 30.05.21 20 43 14 (-0400) 2021-05-31 00-43-14.788 [Notice] (Connection) Connected to 192.168.0.16
~/Downloads/balena-sound_patient-tree-30.05.21_21_07_40_(-0400).txt 2776 30.05.21 20 43 14 (-0400) 2021-05-31 00-43-14.788 [Notice] (StreamServer) StreamServer NewConnection 172.17.0.1
~/Downloads/balena-sound_patient-tree-30.05.21_21_07_40_(-0400).txt 2785 30.05.21 20 43 19 (-0400) 2021-05-31 00-43-19.907 [Notice] (Alsa) No chunk received for 5000ms. Closing ALSA.
~/Downloads/balena-sound_patient-tree-30.05.21_21_07_40_(-0400).txt 2794 30.05.21 20 43 37 (-0400) 2021-05-31 00-43-37.170 [Warn] (Alsa) snd_pcm_avail_delay failed Broken pipe (-32), avail 1763, delay 3471, using snd_pcm_avail amd snd_pcm_delay.
~/Downloads/balena-sound_patient-tree-30.05.21_21_07_40_(-0400).txt 2797 30.05.21 20 43 37 (-0400) 2021-05-31 00-43-37.172 [Error] (Alsa) XRUN while writing to PCM Broken pipe
~/Downloads/balena-sound_patient-tree-30.05.21_21_07_40_(-0400).txt 2800 30.05.21 20 43 37 (-0400) 2021-05-31 00-43-37.179 [Warn] (Alsa) snd_pcm_avail_delay failed Input/output error (-5), avail 882, delay 0, using snd_pcm_avail amd snd_pcm_delay.
~/Downloads/balena-sound_patient-tree-30.05.21_21_07_40_(-0400).txt 2803 30.05.21 20 56 32 (-0400) 2021-05-31 00-56-32.316 [Notice] (Alsa) No chunk received for 5000ms. Closing ALSA.

Hey @k9gardner

So it looks like your DAC is this one: BOSS I2S DAC v 1.2 (allo.com) which is indeed supported with the dtoverlay you have used. :+1:

I deployed from the link on the Balena Sound GitHub page marked “Deploy with balena”, which pre-filled some of the details for me.

Aha, cool - so you have a balenaCloud account, and you can make changes to your app, which is going to help here. Please could you put the device into standalone SOUND_MODE, and let me know if the sound comes out of the DAC?

Phil

I see you granted support access, that works too but I’ll need you to share your device UUID (privately if you prefer) and extend support access for a few more days.

I see I’ve gotten messages from both phil-d-wilson and from tomas migone on this… thanks to both of you and whomever else comes in.

I did as you suggested, and put the device into standalone sound mode, it didn’t make a difference in terms of being able to play music. Also I’ve noticed that the airplay availability seems to go on and off. It disappears as an option in the list of airplay devices for example on iTunes on my Mac. I’m sure it’ll show up in the log, that I’ve restarted that service a couple of times. That seems to help, temporarily, but then it disappears again. As a test, I’ve connected successfully to other AirPlay devices, so I know that this side of the equation is working OK.

I’ve gone ahead and granted support access again, for a week this time, you’re welcome to take a look if you like, but I really want to play a part in troubleshooting and solving this if possible. If you see something that I’ve done wrong, I would like to know what that is, or if you want me to try something, I’m game. Please keep me posted. Awaiting further instructions. Thanks very much.

Keith

No updates for me? :frowning:

KG

I’m sending new log file excerpts here (notes contained within). The AirPlay issue is a nuisance but not a show-stopper. The Audio issue is the show-stopper; not being able to find the DAC HAT:

AIRPLAY
This section of log shows Airplay dropping out. I restarted the AirPlay service from Dashboard / services at 21:34:00
(I have to figure out how to set the time zone!)

05.06.21 21:20:12 (+0000) airplay Starting AirPlay plugin…
05.06.21 21:20:12 (+0000) airplay Device name: balenaSound AirPlay a856
05.06.21 21:20:33 (+0000) airplay Waiting for audioblock to start…
05.06.21 21:20:38 (+0000) airplay Waiting for audioblock to start…
05.06.21 21:20:43 (+0000) airplay Waiting for audioblock to start…
05.06.21 21:20:43 (+0000) airplay Shairport-sync started. Device is discoverable as balenaSound AirPlay a856
05.06.21 21:20:44 (+0000) airplay fatal error: pa context is not good – the error message “Connection refused”.
05.06.21 21:34:00 (+0000) airplay Starting AirPlay plugin…
05.06.21 21:34:00 (+0000) airplay Device name: balenaSound AirPlay a856
05.06.21 21:34:00 (+0000) airplay Shairport-sync started. Device is discoverable as balenaSound AirPlay a856

I believe it’s a true statement to say that I can never connect via AirPlay without doing a manual restart of AirPlay
even after a reboot of the entire device. It “says” that it’s discoverable… but it isn’t. Until I restart the service.

AUDIO
Here I see why I’m never getting output from the DAC: it’s not being found or recognized. So it’s defaulting to the
built-in headphone jack. I finally discovered that I AM getting audio output via the headphone jack (once I am able
to connect via AirPlay following the above scenario); I didn’t realize I had to select the AirPlay device in iTunes
AND also select the output device in the Volume settings on the Mac. Sorry. Haven’t done AirPlay before.

So yes, I am getting some output through the balena device now, which is a huge step in the right direction. Just not
through the DAC, so not “good” sound.

05.06.21 21:31:09 (+0000) audio 0 bcm2835-jack bcm2835_headphonbcm2835Headphones-bcm2835Headphones
05.06.21 21:31:09 (+0000) audio
05.06.21 21:31:09 (+0000) audio
05.06.21 21:31:09 (+0000) audio - pulseaudio 13.0
05.06.21 21:31:09 (+0000) audio - Pulse log level: NOTICE
05.06.21 21:31:09 (+0000) audio - Default output: DAC
05.06.21 21:31:09 (+0000) audio
05.06.21 21:31:09 (+0000) audio Detected audio cards:
05.06.21 21:31:09 (+0000) audio 0 bcm2835-jack bcm2835_headphonbcm2835Headphones-bcm2835Headphones
05.06.21 21:31:09 (+0000) audio
05.06.21 21:31:09 (+0000) audio
05.06.21 21:31:19 (+0000) audio WARNING: No DAC found. Falling back to PulseAudio defaults.
05.06.21 21:31:19 (+0000) audio Setting audio routing rules…
05.06.21 21:31:19 (+0000) audio Routing ‘balena-sound.input’ to ‘balena-sound.output’.
05.06.21 21:31:19 (+0000) audio Routing ‘balena-sound.output’ to ‘0’.
05.06.21 21:31:19 (+0000) audio OKW: [pulseaudio] main.c: This program is not intended to be run as root (unless --system is specified).
05.06.21 21:31:19 (+0000) audio W: [pulseaudio] server-lookup.c: Unable to contact D-Bus: org.freedesktop.DBus.Error.NotSupported: Unable to autolaunch a dbus-daemon without a $DISPLAY for X11
05.06.21 21:31:19 (+0000) audio W: [pulseaudio] main.c: Unable to contact D-Bus: org.freedesktop.DBus.Error.NotSupported: Unable to autolaunch a dbus-daemon without a $DISPLAY for X11

  • I’ve read that the pulseaudio warnings are just that, and they are not telling me why it’s not working.
    Still, is there a way to get rid of these warnings?

Ok, talk to yourself much, Keith? Why, yes. Yes I do. But look! I’ve solved it. A little history. I started out trying to use the 64-bit version and had some trouble which I don’t remember. But it was in THAT one that I added the dtoverlay for the Allo Boss. That project, however, I abandoned, and started over… except I completely left out the dtoverlay. No wonder it wasn’t seeing the DAC. I wasn’t telling it what to look for. So guys, read your logs carefully, and review your whole configuration. It’s telling you what you need to know.

I am still a little concerned about what’s going on with AirPlay, but I have a feeling I’ll get that sorted as my experience increases. I am VERY happy to say though that I do have music coming out of this thing, and it sounds really good. Thank you guys for helping get me pointed in the right direction. Case closed.

Hey Keith - sorry for the radio silence, it was a manic Friday and then the weekend. :slight_smile:

I’m really glad you got to the bottom of this and have it working!!!

Let us know if you need more help with AirPlay - although I’ll be useless there since I’m an Apple-free household. :smiley:

Phil