Thank you for your donation!


Cloudsmith graciously provides open-source package management and distribution for our project.


Dropouts under a very weird condition
#11
I ran the ping test, about a 1/2 hour after the network reboot. The Pi was powered up, with no music playing. Network config was reporting 70% qual / -61dBm.

1813 pkts sent
1810 pkts received
0.1654% loss

min 0.845ms
avg 4.245ms
max 85.289ms
mdev 2.168ms

Network config reported 71% qual / -60dBm

Test #2 was with music playing for the full 1/2 hour while pinging:

1817 pkts sent
1817 pkts received
0% loss

min 0.834ms
ave 4.382ms
max 117.558ms
mdev 3.429ms

FYI: The music was playing into AVR, but the amp was off (wife doing things), so do not know if any dropouts occured.

The ave and mdev compare to Tims, but the max numbers are higher and had some pkt loss.

I'll try the iPad next.
Reply
#12
(04-01-2025, 02:28 PM)TheOldPresbyope Wrote: @SerbJ

You didn't say in your first post whether the dropouts you experienced occurred when you were playing local files from the attached USB thumbdrive or when you were streaming audio from a remote source. I assumed it was with local files when I read it.

The first thing which comes to mind when I hear of a "dropout" is the momentary silencing which occurs when MPD experiences an underrun error. These errors get logged to the file /var/log/mpd/log. Off the top of my head, I don't recall if the MPD log level has to be pushed to "verbose" to see them. That setting can be found in the m> Config > Audio > MPD settings subpanel of the moOde webUI.

Mind you, the logs fill up from normal information and are cleared periodically so you may not easily catch unicorn events that way.

Regards,
Kent

USB drive only.  I have not tried any streaming including radio stations.

The MPD file was huge!   It had all the DB regen in it!   I did find where it was playing the album that the dropout occured on (didn't record which song), but no errors or warnings.  

Latter on when I realized that the "*" was not performing random album selection, went into preferences and set from default to clear/play and saved.  On the very next press of the "*", the album loaded but MPD crashed and msg popped up.  A few addition presses of play, and more error msgs.  Rebooted Pi, and worked every time after that.  Those errors I did find in the MPD log.  Unrelated to dropout issue.
Reply
#13
(04-01-2025, 03:04 PM)Tim Curtis Wrote:
(04-01-2025, 02:28 PM)TheOldPresbyope Wrote: @SerbJ

You didn't say in your first post whether the dropouts you experienced occurred when you were playing local files from the attached USB thumbdrive or when you were streaming audio from a remote source. I assumed it was with local files when I read it.

The first thing which comes to mind when I hear of a "dropout" is the momentary silencing which occurs when MPD experiences an underrun error. These errors get logged to the file /var/log/mpd/log. Off the top of my head, I don't recall if the MPD log level has to be pushed to "verbose" to see them. That setting can be found in the m> Config > Audio > MPD settings subpanel of the moOde webUI.

Mind you, the logs fill up from normal information and are cleared periodically so you may not easily catch unicorn events that way.

Regards,
Kent

Oops I think it was file from a locally attached USB drive. In that case audio glitches are not network related.

Yes, look at MPD log for XRUNs.

OK, that doesn't sound good.  Sad   There wasn't any in the MPD log.  Does "verbose" need to be set?
Reply
#14
(04-01-2025, 03:12 PM)the_bertrum Wrote: Could it be as simple as a loose USB socket?  I have a thumb drive that will dip out and back in again, just enough to bork a file transfer but not enough to unmount and I put this down to the fact it is less "snug" in the socket than any other drives I have.

I don't think so.  The dropout yesterday was with a new Pi4B and different USB drive.
Reply
#15
(04-01-2025, 03:31 PM)SerbJ Wrote:
(04-01-2025, 03:04 PM)Tim Curtis Wrote:
(04-01-2025, 02:28 PM)TheOldPresbyope Wrote: @SerbJ

You didn't say in your first post whether the dropouts you experienced occurred when you were playing local files from the attached USB thumbdrive or when you were streaming audio from a remote source. I assumed it was with local files when I read it.

The first thing which comes to mind when I hear of a "dropout" is the momentary silencing which occurs when MPD experiences an underrun error. These errors get logged to the file /var/log/mpd/log. Off the top of my head, I don't recall if the MPD log level has to be pushed to "verbose" to see them. That setting can be found in the m> Config > Audio > MPD settings subpanel of the moOde webUI.

Mind you, the logs fill up from normal information and are cleared periodically so you may not easily catch unicorn events that way.

Regards,
Kent

Oops I think it was file from a locally attached USB drive. In that case audio glitches are not network related.

Yes, look at MPD log for XRUNs.

OK, that doesn't sound good.  Sad   There wasn't any in the MPD log.  Does "verbose" need to be set?

No I don't think verbose needs to be set but you might want to reboot and then post the moode startup log just in case there is some sort of config issue that shows in that log.

moodeutl -l

If you want to have a clean MPD log before doing a test then run the command below.

sudo truncate /var/log/mpd/log --size 0
Enjoy the Music!
moodeaudio.org | Mastodon Feed | GitHub
Reply
#16
Code:
20250401 122825 worker: --
20250401 122825 worker: -- Start moOde 9 series
20250401 122825 worker: --
20250401 122825 worker: Daemonize:     complete
20250401 122825 worker: Linux startup: complete
20250401 122825 worker: Boot config:   ok
20250401 122825 worker: Boot folder:   ok
20250401 122825 worker: Radio table:   ok
20250401 122826 worker: PHP session:   cleaned
20250401 122826 worker: PHP session:   loaded
20250401 122828 worker: Package locks: applied
20250401 122829 worker: File check:    complete
20250401 122829 worker: Log to RAM:    on
20250401 122829 worker: Debug logging: off
20250401 122829 worker: --
20250401 122829 worker: -- System
20250401 122829 worker: --
20250401 122830 worker: Host name:     moode2
20250401 122830 worker: RPi model:     Pi-4B 1.5 4GB
20250401 122830 worker: moOde release: 9.3.0 2025-03-21
20250401 122830 worker: RaspiOS:       12.10 Bookworm 64-bit
20250401 122830 worker: Linux Kernel:  6.6.74 64-bit
20250401 122830 worker: MPD version:   0.24.2
20250401 122830 worker: User id:       serbanie
20250401 122830 worker: Home folder:   /home/serbanie
20250401 122830 worker: Time zone:     America/New_York
20250401 122830 worker: Kbd layout:    us
20250401 122830 worker: HDMI ports(s): on
20250401 122830 worker: HDMI-CEC:      off
20250401 122831 worker: Sys LED0:      on
20250401 122831 worker: Sys LED1:      on
20250401 122831 worker: Reduce power:  n/a
20250401 122831 worker: Fan control:   n/a
20250401 122831 worker: CPU governor:  ondemand
20250401 122831 worker: --
20250401 122831 worker: -- Network
20250401 122831 worker: --
20250401 122831 worker: Eth0
20250401 122831 worker: Ethernet: adapter exists
20250401 122831 worker: Ethernet: timeout off
20250401 122831 worker: Ethernet: address not assigned
20250401 122831 worker: Wlan0
20250401 122831 worker: Wireless: adapter exists
20250401 122831 worker: Wireless: country US
20250401 122831 worker: Wireless: SSID    BigMapleOak
20250401 122831 worker: Wireless: other   MAPLEOAK
20250401 122831 worker: Wireless: timeout up to 90 secs
20250401 122831 worker: Wireless: connect to BigMapleOak
20250401 122831 worker: Wireless: method  dhcp
20250401 122831 worker: Wireless: address 192.168.0.186
20250401 122831 worker: Wireless: netmask 255.255.255.0
20250401 122831 worker: Wireless: gateway 192.168.0.1
20250401 122831 worker: Wireless: pri DNS 192.168.0.1
20250401 122831 worker: Wireless: domain  none found
20250401 122831 worker: mDNS
20250401 122831 worker: Discover: IPv4 and IPv6
20250401 122831 worker: --
20250401 122831 worker: -- File sharing
20250401 122831 worker: --
20250401 122831 worker: SMB file sharing:  off
20250401 122831 worker: SMB password:      none
20250401 122831 worker: NFS file sharing:  off
20250401 122831 worker: DLNA file sharing: off
20250401 122831 worker: --
20250401 122831 worker: -- Special configs
20250401 122831 worker: --
20250401 122831 worker: Plexamp:          not installed
20250401 122831 worker: RoonBridge:       not installed
20250401 122831 worker: Allo Boss 2:      not detected, OLED script ok
20250401 122831 worker: Allo Piano 2.1:   not detected
20250401 122831 worker: IQaudIO DigiAMP+: not detected
20250401 122831 worker: RPi DigiAMP+:     not detected
20250401 122831 worker: Bluetooth:        session vars ok
20250401 122831 worker: --
20250401 122831 worker: -- ALSA debug
20250401 122831 worker: --
20250401 122831 worker: Cards:  0:DSD             1:vc4hdmi0        2:vc4hdmi1        3:empty          
20250401 122831 worker:         4:empty           5:empty           6:empty           7:empty          
20250401 122831 worker: Mixers: 0:(HIFI DSD)      1:none            2:none            3:none            
20250401 122831 worker:         4:none            5:none            6:none            7:none            
20250401 122831 worker: --
20250401 122831 worker: -- Audio configuration
20250401 122831 worker: --
20250401 122831 worker: Audio device:  0:HIFI DSD
20250401 122831 worker: ALSA card:     has not been reassigned
20250401 122831 worker: MPD config:    update not needed
20250401 122831 worker: ALSA output:   USB
20250401 122831 worker: ALSA mode:     Default (plughw)
20250401 122832 worker: ALSA mixer:    HIFI DSD
20250401 122832 worker: ALSA volume:   100% (0.00dB)
20250401 122832 worker: ALSA maxvol:   100%
20250401 122832 worker: ALSA loopback: off
20250401 122832 worker: MPD mixer      Software
20250401 122832 worker: Integ audio:   vc4-kms-v3d
20250401 122832 worker: Audio formats: S16_LE, S32_LE, SPECIAL, DSD_U32_BE
20250401 122832 worker: CamillaDSP:    off
20250401 122832 worker: CDSP volume:   0dB
20250401 122832 worker: CDSP volrange: 60dB
20250401 122832 worker: --
20250401 122832 worker: -- MPD startup
20250401 122832 worker: --
20250401 122832 worker: MPD service:        started
20250401 122832 worker: MPD port 6600:      accepting connections
20250401 122832 worker: MPD ALSA Default:   on
20250401 122832 worker: MPD ALSA Bluetooth: off
20250401 122832 worker: MPD HTTP Server:    off
20250401 122833 worker: MPD volume:         94
20250401 122833 worker: Saved MPD vol:      -1
20250401 122833 worker: Saved SRC vol:      0
20250401 122833 worker: MPD crossfade:      off
20250401 122833 worker: MPD ignore CUE:     no
20250401 122833 worker: MPD CDSP volsync:   off
20250401 122833 worker: --
20250401 122833 worker: -- Music sources
20250401 122833 worker: --
20250401 122833 worker: USB drive:      52D1-2149 (vfat)
20250401 122833 worker: NVMe drives:    none
20250401 122833 worker: SATA drives:    none
20250401 122833 worker: NAS sources:    none
20250401 122833 worker: --
20250401 122833 worker: -- Feature availability
20250401 122833 worker: --
20250401 122833 worker: Input select:    available, Source: MPD, Output: HIFI DSD
20250401 122833 worker: Bluetooth:       available, PIN: Set, ALSA/CDSP maxvol: 100%/0dB, ALSA outmode: Standard
20250401 122833 worker: AirPlay:         started
20250401 122833 worker: Spotify Connect: available
20250401 122833 worker: Deezer Connect:  available
20250401 122833 worker: Squeezelite:     available
20250401 122833 worker: UPnP client:     available
20250401 122833 worker: Plexamp:         not installed, ALSA maxvol: 100%
20250401 122833 worker: RoonBridge:      not installed
20250401 122833 worker: Multiroom:       available
20250401 122833 worker: GPIO buttons:    available
20250401 122833 worker: Stream recorder: n/a
20250401 122833 worker: --
20250401 122833 worker: -- Security
20250401 122833 worker: --
20250401 122833 worker: Web SSH server:    on
20250401 122833 worker: XSS detection:     off
20250401 122833 worker: HTTPS mode:        available
20250401 122833 worker: --
20250401 122833 worker: -- Peripherals
20250401 122833 worker: --
20250401 122834 worker: Local display:   off
20250401 122834 worker: Chromium ver:    126.0.6478.164-rpt1
20250401 122834 worker: Chromium cfg:    directory ok
20250401 122834 worker: Screen blank     600
20250401 122834 worker: On-screen kbd:   off
20250401 122834 worker: Disable GPU:     off
20250401 122834 worker: HDMI orient:     landscape
20250401 122834 worker: HDMI 4K 60Hz:    off
20250401 122834 worker: DSI scn type:    none
20250401 122834 worker: DSI port:        1
20250401 122834 worker: DSI brightness:  255
20250401 122834 worker: DSI rotate:      0
20250401 122834 worker: Rotary encoder:  off
20250401 122834 worker: Triggerhappy:    off
20250401 122834 worker: LCD updater:     off
20250401 122834 worker: --
20250401 122834 worker: -- Miscellaneous
20250401 122834 worker: --
20250401 122834 worker: Software update:   Automatic check on
20250401 122834 worker: Software update:   Checking for available update...
20250401 122835 worker: Software update:   Software is up to date
20250401 122835 worker: Auto-CoverView:    off
20250401 122835 worker: CoverView timeout: Never
20250401 122835 worker: Auto-shuffle:      off
20250401 122835 worker: Auto-play:         off
20250401 122835 worker: Maintenance task:  360 mins
20250401 122835 worker: Current view:      reset to Playback
20250401 122835 worker: Active flags:      all false
20250401 122835 worker: Reset flags:       skipped
20250401 122835 worker: Session check:     ok
20250401 122835 worker: --
20250401 122835 worker: -- Startup complete
20250401 122835 worker: --
20250401 122835 worker: Mount monitor:    started
20250401 122835 worker: Radio monitor:    off
20250401 122835 worker: Watchdog monitor: started
20250401 122835 worker: Responsiveness:   Default
20250401 122835 worker: Ready
Startup file.  I went thru a few and didn't see anything.  

Not that it matters now, but pinging the ipad from the Pi:

min 22.003ms
ave 56.265ms
max 137.92ms
mdev 39.254ms

Only ran for a few minutes.  When the iPad goes to sleep, pings stop.
Reply
#17
Well, I had a chance to sit down and do some listening. Low and behold, on the 5th track I got up, and the dropout occurred. Paused playback. I checked the MPD log and looks OK. It shows the first four tracks played. Finished playing that song and paused on next. MPD shows the 5th track completed. No other msgs.

Before I go on, are there any other logs I should look at?
Reply
#18
good morning,
getting up should be supported by the Douk DDC.
I'm guessing an issue related to the external vs. USB power and/or which of the two powers first.
Reply
#19
I went on and did some "jump" tests.  Literally jumping up and down, along with shaking the cabinet.  Checking to see if a loose connection/usb might be causing it.  Didn't fail.  Also brought the iPad in close proximity to the Pi, DDC, and AVR, without any dropouts.
Reply
#20
(04-01-2025, 06:22 PM)Snoil Wrote: good morning,
getting up should be supported by the Douk DDC.
I'm guessing an issue related to the external vs. USB power and/or which of the two powers first.

The Pi and the DDC power are plugged into a powerstrip, which I use to cycle both on.  The DDC is up almost instantly while Pi is going thru its bootup. If the Pi beat the DDC, think that would show up in the start-up log. I can change the DDC to get power from the USB bus.  I have run it like that in the past, and honestly don't hear any differances.  The old Peachtree X-1 is powered by USB only.  The new DDC that is coming, uses a newer generation of XMOS, XU316.  It draws about 1/2 the power of the XU208 in the Douk.  It is USB powered only.
Reply


Forum Jump: