• Welcome to ASR. There are many reviews of audio hardware and expert members to help answer your questions. Click here to have your audio equipment measured for free!

moOde audio player for Raspberry Pi

IME if something in linux takes restarts to fix, it's not correctly configured and some "randomness" is involved (e.g. alsa card ID order, webserver picking one IP address to bind to, random order of mutually dependent services startup, etc...)
 
So, I'm still not getting the Static IP to work. Here are a couple of screen shots of the configuration page with the (working) DHCP config, and the (non-working) static IP configuration. What caught my eye is the text, in grey, below the "DHCP" and "STATIC" text. In the DHCP case, it displays the correct IP address. In the STATIC case the IP seems to be that of the Pi's hotspot. If that is really what is set up instead of the correct static IP, it isn't a surprise why it wouldn't work...

Is this unexpected behavior?
Thx.

View attachment 500005

Since the config screen only shows 1 IP, it's safe to assume Moode only supports one IP.

What you could try to do is release the DHCP IP (Google the command for that), restart Moode, check the config screen (which now should show the static IP), and finally request a new DHCP IP. If it works, then the question is if Moode will remember this configuration when rebooting.
 
Last edited:
Since the config screen only shows 1 IP, it's save to assume Moode only supports one IP.

What you could try to do is release the DHCP IP (Google the command for that), restart Moode, check the config screen (which now should show the static IP), and finally request a new DHCP IP. If it works, then the question is if Moode will remember this configuration when rebooting.

Yes thats correct. Moode only configures a single IP address (either via DHCP or Static) for a Network interface. System-wide there can be two active interfaces (eth0 and wlan0) each with an IP address but this is only useful when using the Hotspot as gateway to the Internet.

Some info:

1. The settings in moode Network Config screen are wrtten to PiOS NetworkManager .nmconnect files named Ethernet.nmconnect, <SSID>.nmconnect and Hotspot.nmconnect. These files are located in /etc/NetworkManager/system-connections/
2. PiOS NetworkManager is responsible for establishing network connections during Linux/PiOS boot. After boot completes, moode is started and checks eth0 and wlan0 interfaces for an IP address. If none exists after a configurable wait period it automatically starts the Hotspot.
3. NetworkManager has been used since PiOS Bookworm and 2024-05-17 moOde 9.0.0 (Bookworm) release.

Example from one of my systems:

Code:
pi@test:~ $ ls -l /etc/NetworkManager/system-connections/
total 12
-rw------- 1 root root 525 Dec 26 12:09 AirnetN5.nmconnection
-rw------- 1 root root 383 Dec 26 12:09 Ethernet.nmconnection
-rw------- 1 root root 530 Dec 26 23:38 Hotspot.nmconnection

Code:
# DHCP addressing: [ipv4] method=auto

pi@test:~ $ sudo cat /etc/NetworkManager/system-connections/AirnetN5.nmconnection 
#########################################
# This file is managed by moOde          
# Wireless: Configured SSID              
#########################################

[connection]
id=AirnetN5
uuid=21c1e19b-2adc-4f39-8983-a813bf43761f
type=wifi
interface-name=wlan0
autoconnect=true
autoconnect-priority=100
[wifi]
mode=infrastructure
ssid=AirnetN5
hidden=false
[wifi-security]
key-mgmt=wpa-psk
psk=xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
[ipv4]
method=auto
[ipv6]
addr-gen-mode=default
method=auto

Code:
# Static addressing: [ipv4] method=manual

[ipv4]
method=manual
address1=192.168.1.242/24
gateway=192.168.1.1
dns=192.168.1.1;;

Here are some commands that can be used to examine the Network configuration.

Show interface configs
Code:
ifconfig wlan0 && ifconfig eth0
nmcli -o
nmcli device show wlan0
nmcli device show eth0

Show nmconnect files
Code:
sudo cat /etc/NetworkManager/system-connections/
<SSID>.nmconnection
Ethernet.nmconnection
Hotspot.nmconnection

Show moode startup log
Code:
moodeutl -l

Generally if a moode host is not accessible on a network which is quite rare in the field btw, it can be because the DHCP host on the network fails to assign it an IP address for some reason, or for static IP addressing the address is not routable (subnetting), the DNS address is not accessible or the subnet mask is wrong.

Other causes that we have seen over the years include Router mis-configuration: DNS, DHCP, subnetting, network filtering (blocking mDNS traffic on WiFi), WiFI auto-band-switching (Router feature...), stale dynamic DNS cache etc.

And yes, rebooting the Router sometimes solves the problem :)
 
Then please what are the two IPs listed in the non-working screenshot?

That screen shot shows the Hotspot was activated on its default IP address 172.24.1.1

As I mentioned a bit earlier the Hotspot will automatically be activated during moode startup (after the wait period) if there is no IP address on the interface. The command used to check the interface for an IP address is below.

Returns the IP address or nothing if no IP address on the interface
ip addr list wlan0 | grep "inet " | cut -d' ' -f6 | cut -d/ -f1

When the Hotspot auto-activates the two messages below are written to the moode log.
Code:
Wireless: address not assigned
Wireless: Hotspot activating

In any case, static address WiFi worked perfectly on my end but if someone else can repro @dougm issue and provide some insights as to what might be happening I'll be happy to investigate.
 
@dougm: OK, so you have two IP addresses on one interface. Now you want your webserver to respond the same way when accessed from both the addresses? IMO there is the problem - the web server binds to the other address and does not listen on the one you are accessing from. A change in this matter between versions could be possible as it's quite unique to have and likely not intentionally supported - the previous versions worked by coincidence for you. Just 2 cents...
No, I don't believe I have two IP addresses on one interface. That has not been my problem. My understanding/assumption was that the hotspot function only wakened up if the other interfaces were not established. If that's correct, then a working wifi interface (DHCP or static) would suppress the function of the hotspot.

It caught my eye that the web interface showed an IP for the hotspot only the case where I had attempted to set a static IP. I wondered if that might be significant. In contrast Moode version 9.4.3 shows the correct static IP address in that location.

In case you haven't plowed through this part of the thread, the situation is fairly simple to describe: Moode version 9.4.3 worked (and still does) with no problems using a static address in my network. In contrast, I can't get version 10.0.2 to operate with a static address. Note that this is the case even when I power down my 9.4.3 moode, and try the same IP address as it was using, suggesting that it's not a network problem/conflict.
Thx
 
That screen shot shows the Hotspot was activated on its default IP address 172.24.1.1

As I mentioned a bit earlier the Hotspot will automatically be activated during moode startup (after the wait period) if there is no IP address on the interface. The command used to check the interface for an IP address is below.

Returns the IP address or nothing if no IP address on the interface
ip addr list wlan0 | grep "inet " | cut -d' ' -f6 | cut -d/ -f1

When the Hotspot auto-activates the two messages below are written to the moode log.
Code:
Wireless: address not assigned
Wireless: Hotspot activating

In any case, static address WiFi worked perfectly on my end but if someone else can repro @dougm issue and provide some insights as to what might be happening I'll be happy to investigate.
I will try to find some time to dig into this some more using some of the diagnostic commands you've suggested.
 
Moode version 9.4.3 worked (and still does) with no problems using a static address in my network. In contrast, I can't get version 10.0.2 to operate with a static address.
What does actually "does not work" mean? IIUC you talked about the device responding to ping on that address, but the interface did not run (correctly) on that address, right?
 
That screen shot shows the Hotspot was activated on its default IP address 172.24.1.1
That screenshot shows two addresses - 172.24.1.1 (+ hotspot active) and 192.168.2.110. I do not know how the gui works and what it shows, but it would make me think there is a hotspot running on the wireless interface with that IP and also a static IP was assigned to that interface. That would mean the interface has two IPs assigned.
 
What does actually "does not work" mean? IIUC you talked about the device responding to ping on that address, but the interface did not run (correctly) on that address, right?
"does not work" means no response from the static IP address at all. Unfortunately, I had a router hardware failure yesterday and spent a while getting things going again. (The family wanted internet!).

I will get back to this, and I'm curious if a new router affects the behavior.
 
Hi,

moOde 10.0.3 (Trixie) is available in the Media Player OS section of the Raspberry Pi Imager or as a direct download from the Release archive at https://moodeaudio.org. Visit the Forum for more information https://moodeaudio.org/forum/showthread.php?tid=8343&pid=68939#pid68939

moode10-1024x768.png
 
Sorry, I should have been clearer. It does respond to pings, but the web server doesn't respond with anything at all.
Well then that seems to be what I have been talking about - the interface does have the IP address, but the web server does not listen on that address (or does listen, but with a different virtual host - if the webserver being used supports multiple virtual hosts).

The legacy command ifconfig is not recommended mostly for its deficiency in multiple IP address handling (it's an emulation of the old ifconfig using the new ip) - e.g. https://superuser.com/questions/122...rst-ip-of-a-network-interface-configured-with
 
I have a multichannel release of one album, so I was just interested if moode downmixes 5.1 to 2.0.

If the audio device is only capable of 2 channel then downmix to 2 channel should happen assuming the source multichannel format can be decoded by MPD. Below is a list of audio formats supported by MPD in our build.

Code:
pi@test2:~ $ mpd -V

Decoder plugins:
 [mpg123] mp3
 [mad] mp3 mp2
 [vorbis] ogg oga
 [oggflac] ogg oga
 [flac] flac
 [opus] opus ogg oga
 [dsdiff] dff
 [dsf] dsf
 [faad] aac
 [wavpack] wv
 [adplug] amd d00 hsc laa rad raw sa2
 [ffmpeg] 264 265 266 302 3g2 3gp 4xm 669 722 aa aa3 aac aax ac3 ac4 ace acm act adf adp ads adx aea afc aif aiff aix al alias_pix alp amf amr amrnb amrwb ams anm ans apc ape apl apm apng aptx aptxhd aqt argo_asf argo_brp argo_cvg art asc asf asf_o ass ast au avc avi avif avr avs avs2 avs3 bcstm bethsoftvid bfi bfstm bin bink binka bit bitpacked bmp_pipe bmv boa bonk brender_pix brstm c2 c93 caf cdata cdg cdxl cgi cif cine codec2raw concat cri_pipe dash dat data daud dav dbm dds_pipe dfa dff dfpwm dif digi dirac diz dmf dnxhd dpx_pipe dsf dsicin dsm dss dst dtk dtm dts dtshd dv dvbsub dvbtxt dvdvideo dxa ea eac3 ec3 evc exr_pipe f32be f32le f4v f64be f64le fap far ffmetadata film_cpk fits flac flic flm flv frm fsb fwse g722 g723_1 g726 g726le g729 gdm gdv gem_pipe genh gif gif_pipe gsm gxf h261 h263 h264 h265 h266 h26l hca hcom hdr_pipe heic heif hevc hls hnm iamf ice ico idcin idf idx iff ifv ilbc image2 image2pipe imf imx ipmovie ipu ircam ism isma ismv iss it iv8 ivf ivr j2b j2k j2k_pipe jacosub jpeg_pipe jpegls_pipe jpegxl_pipe jv jxl kux kvag laf lc3 libgme lmlm4 loas lrc lvf lxf m15 m2a m4a m4b m4v mac mca mcc mdl med mgsts microdvd mj2 mjpeg mjpg mk3d mka mks mkv mlp mlv mm mmcmp mmf mms mo3 mod mods moflex mov mp2 mp3 mp4 mpa mpc mpc8 mpeg mpegts mpegtsraw mpegvideo mpl2 mpo mptm msbc msf msnwctcp msp mt2 mtaf mtm mtv musx mv mvi mxf mxg nfo nist nsp nst nsv nut nuv obu ogg okt oma omg opus osq paf pam_pipe pbm_pipe pcx_pipe pdv pfm_pipe pgm_pipe pgmyuv_pipe pgx_pipe phm_pipe photocd_pipe pictor_pipe pjs plm pmp png_pipe pp_bnk ppm ppm_pipe psd_pipe psm psp psxstr pt36 ptm pva pvf qcif qcp qdraw_pipe qoa qoi_pipe r3d rco rcv rcwt rgb rka rl2 rm roq rpl rsd rso rt rtp rtsp s16be s24be s24le s32be s32le s337m s3m sami sap sb sbc sbg scc scd sdns sdp sdr2 sds sdx ser sf sfx sfx2 sga sgi_pipe shn sln smi smk smush sol son sox spdif sph srt ss2 st26 stk stl stm stp str sub sunrast_pipe sup svag svg_pipe svs sw swf tak tco tedcaptions thd thp tiertexseq tiff_pipe tmv tta txd txt ty ty+ u16be u24be u24le u32be u32le ub ul ult umx usm uw v v210 vag vb vbn_pipe vc1 vidc viv vividas vmd voc vpk vqe vqf vql vt vtt vvc w64 wa wav way wc3movie webm webm_dash_manifest webp_pipe wma wow wsaud wsd wsvqa wtv wv wve xa xbin xbm_pipe xl xm xmd xmv xpk xpm_pipe xvag xwd_pipe xwma y4m yop yuv yuv10 rtp:// rtsp:// rtsps://
 [pcm]
 
Well then that seems to be what I have been talking about - the interface does have the IP address, but the web server does not listen on that address (or does listen, but with a different virtual host - if the webserver being used supports multiple virtual hosts).

The legacy command ifconfig is not recommended mostly for its deficiency in multiple IP address handling (it's an emulation of the old ifconfig using the new ip) - e.g. https://superuser.com/questions/122...rst-ip-of-a-network-interface-configured-with

Just use nmcli from my earlier post.

In any case with wifi and static ip if the SSID association fails the wlan0 interface won't be assigned the configured static address. The SSID association and ip address assignment process is controlled by NetworkManager and takes place during Linux/PiOS startup. When moode starts up afterwords it checks for an address assigned to wlan0 and if none exists after the default 90 sec timeout period it auto-starts the Hotspot.

Like below. Wlan0 gets only one ip address either the configured address or the Hotspot address

# SSID AirnetN5, static IP 192.168.1.242, association succeeds, static ip address assigned to wlan0
pi@test2:~ $ nmcli device show wlan0
GENERAL.DEVICE: wlan0
GENERAL.TYPE: wifi
GENERAL.HWADDR: 2C:CF:67:59:AA:4C
GENERAL.MTU: 1500
GENERAL.STATE: 100 (connected)
GENERAL.CONNECTION: AirnetN5
GENERAL.CON-PATH: /org/freedesktop/NetworkManager/ActiveConnection/2
IP4.ADDRESS[1]: 192.168.1.242/24
IP4.GATEWAY: 192.168.1.1
IP4.ROUTE[1]: dst = 0.0.0.0/0, nh = 192.168.1.1, mt = 600
IP4.ROUTE[2]: dst = 192.168.1.0/24, nh = 0.0.0.0, mt = 600
IP4.DNS[1]: 192.168.1.1
IP6.ADDRESS[1]: fdc7:b725:29a3:8f40:c244:7590:f63e:1ca5/64
IP6.ADDRESS[2]: fe80::68d7:9d4e:5227:a4a8/64
IP6.GATEWAY: --
IP6.ROUTE[1]: dst = fe80::/64, nh = ::, mt = 1024
IP6.ROUTE[2]: dst = fdc7:b725:29a3:8f40::/64, nh = ::, mt = 600
IP6.ROUTE[3]: dst = fd70:468a:e1dc::/64, nh = fe80::4a:8b77:4e28:fbb9, mt = 605
IP6.ROUTE[4]: dst = fd70:468a:e1dc::/64, nh = fe80::cb1:b664:4ea4:4a86, mt = 605
pi@test2:~ $


# Moode startup log
20251230 070908 worker: Wireless: SSID AirnetN5
20251230 070908 worker: Wireless: Alt none
20251230 070908 worker: Wireless: AP SSID Test2
20251230 070908 worker: Wireless: AP pwd ok
20251230 070908 worker: Wireless: timeout up to 90 secs
20251230 070908 worker: Wireless: connect to AirnetN5
20251230 070908 worker: Wireless: method static
20251230 070908 worker: Wireless: address 192.168.1.242
20251230 070908 worker: Wireless: netmask 255.255.255.0
20251230 070908 worker: Wireless: gateway 192.168.1.1
20251230 070908 worker: Wireless: pri DNS 192.168.1.1
20251230 070908 worker: Wireless: sec DNS not set


# Set a bogus password for SSID AirnetN5, static IP 192.168.1.242
# Association to AirnetN5 failed, Hotspot SSID Test2 on 172.24.1.1 is activated and ip address assigned to wlan0
pi@test2:~ $ nmcli device show wlan0
GENERAL.DEVICE: wlan0
GENERAL.TYPE: wifi
GENERAL.HWADDR: 2C:CF:67:59:AA:4C
GENERAL.MTU: 1500
GENERAL.STATE: 100 (connected)
GENERAL.CONNECTION: Test2
GENERAL.CON-PATH: /org/freedesktop/NetworkManager/ActiveConnection/4
IP4.ADDRESS[1]: 172.24.1.1/24
IP4.GATEWAY: --
IP4.ROUTE[1]: dst = 172.24.1.0/24, nh = 0.0.0.0, mt = 600
IP6.ADDRESS[1]: fe80::2ecf:67ff:fe59:aa4c/64
IP6.GATEWAY: --
IP6.ROUTE[1]: dst = fe80::/64, nh = ::, mt = 256
pi@test2:~ $


# Moode startup log
20251230 072401 worker: Wireless: SSID AirnetN5
20251230 072401 worker: Wireless: Alt none
20251230 072401 worker: Wireless: AP SSID Test2
20251230 072401 worker: Wireless: AP pwd ok
20251230 072401 worker: Wireless: timeout up to 90 secs
20251230 072531 worker: Wireless: address not assigned
20251230 072531 worker: Wireless: Hotspot activating

20251230 072532 worker: Wireless: timeout up to 90 secs
20251230 072532 worker: Wireless: Hotspot activated using SSID Test2
20251230 072532 worker: Wireless: method static
20251230 072532 worker: Wireless: address 172.24.1.1
20251230 072532 worker: Wireless: netmask 255.255.255.0
20251230 072532 worker: Wireless: gateway 0.0.0.0
20251230 072532 worker: Wireless: pri DNS none found
20251230 072532 worker: Wireless: sec DNS not set
 
If the audio device is only capable of 2 channel then downmix to 2 channel should happen assuming the source multichannel format can be decoded by MPD. Below is a list of audio formats supported by MPD in our build.

Code:
pi@test2:~ $ mpd -V

Decoder plugins:
 [mpg123] mp3
 [mad] mp3 mp2
 [vorbis] ogg oga
 [oggflac] ogg oga
 [flac] flac
 [opus] opus ogg oga
 [dsdiff] dff
 [dsf] dsf
 [faad] aac
 [wavpack] wv
 [adplug] amd d00 hsc laa rad raw sa2
 [ffmpeg] 264 265 266 302 3g2 3gp 4xm 669 722 aa aa3 aac aax ac3 ac4 ace acm act adf adp ads adx aea afc aif aiff aix al alias_pix alp amf amr amrnb amrwb ams anm ans apc ape apl apm apng aptx aptxhd aqt argo_asf argo_brp argo_cvg art asc asf asf_o ass ast au avc avi avif avr avs avs2 avs3 bcstm bethsoftvid bfi bfstm bin bink binka bit bitpacked bmp_pipe bmv boa bonk brender_pix brstm c2 c93 caf cdata cdg cdxl cgi cif cine codec2raw concat cri_pipe dash dat data daud dav dbm dds_pipe dfa dff dfpwm dif digi dirac diz dmf dnxhd dpx_pipe dsf dsicin dsm dss dst dtk dtm dts dtshd dv dvbsub dvbtxt dvdvideo dxa ea eac3 ec3 evc exr_pipe f32be f32le f4v f64be f64le fap far ffmetadata film_cpk fits flac flic flm flv frm fsb fwse g722 g723_1 g726 g726le g729 gdm gdv gem_pipe genh gif gif_pipe gsm gxf h261 h263 h264 h265 h266 h26l hca hcom hdr_pipe heic heif hevc hls hnm iamf ice ico idcin idf idx iff ifv ilbc image2 image2pipe imf imx ipmovie ipu ircam ism isma ismv iss it iv8 ivf ivr j2b j2k j2k_pipe jacosub jpeg_pipe jpegls_pipe jpegxl_pipe jv jxl kux kvag laf lc3 libgme lmlm4 loas lrc lvf lxf m15 m2a m4a m4b m4v mac mca mcc mdl med mgsts microdvd mj2 mjpeg mjpg mk3d mka mks mkv mlp mlv mm mmcmp mmf mms mo3 mod mods moflex mov mp2 mp3 mp4 mpa mpc mpc8 mpeg mpegts mpegtsraw mpegvideo mpl2 mpo mptm msbc msf msnwctcp msp mt2 mtaf mtm mtv musx mv mvi mxf mxg nfo nist nsp nst nsv nut nuv obu ogg okt oma omg opus osq paf pam_pipe pbm_pipe pcx_pipe pdv pfm_pipe pgm_pipe pgmyuv_pipe pgx_pipe phm_pipe photocd_pipe pictor_pipe pjs plm pmp png_pipe pp_bnk ppm ppm_pipe psd_pipe psm psp psxstr pt36 ptm pva pvf qcif qcp qdraw_pipe qoa qoi_pipe r3d rco rcv rcwt rgb rka rl2 rm roq rpl rsd rso rt rtp rtsp s16be s24be s24le s32be s32le s337m s3m sami sap sb sbc sbg scc scd sdns sdp sdr2 sds sdx ser sf sfx sfx2 sga sgi_pipe shn sln smi smk smush sol son sox spdif sph srt ss2 st26 stk stl stm stp str sub sunrast_pipe sup svag svg_pipe svs sw swf tak tco tedcaptions thd thp tiertexseq tiff_pipe tmv tta txd txt ty ty+ u16be u24be u24le u32be u32le ub ul ult umx usm uw v v210 vag vb vbn_pipe vc1 vidc viv vividas vmd voc vpk vqe vqf vql vt vtt vvc w64 wa wav way wc3movie webm webm_dash_manifest webp_pipe wma wow wsaud wsd wsvqa wtv wv wve xa xbin xbm_pipe xl xm xmd xmv xpk xpm_pipe xvag xwd_pipe xwma y4m yop yuv yuv10 rtp:// rtsp:// rtsps://
 [pcm]
It's dts, and it works fine, I mean it plays. I see dts in the list, so it's supported. I just can't figure out if it is really downmixed to 2 channels automatically.
 
Back
Top Bottom