Moode Audio Player for Raspberry Pi

Ok if anyone else is interesting in building their own hardware dac pcbs the PCM5242 needs to have both i2S and I2C data busses / clocks connected and the chip needs to be put into I2C mode with the mode 1 / mode 2 pins setup for I2C then you can select a PCM5242 board in the moode audio configuration. this works in my prototype lash up so the project continues :)

Screenshots or the project doesn't exist ;-)
 
Hi Jan,

The output of ifconfig in your post shows almost 20% dropped packets for the receive (RX) side of wlan0. Ideally this should be 0%. IME anything over 2% would suggest a network issue, possibly RF interference or some sort of attenuation thats causing poor signal. Adapter driver bugs could also be a factor but these drivers are supplied by the manufacturer to Linux kernel and are out of my control.

I just started a test running on one of my Pi3's thats been up for over a week now. I'll post results after a few hours including any failures that occur.

- Client is an iPod Touch set for no screen timeout
- Pi-3 is using its integrated Wifi adapter
- Associated to SSID Moode (pwd=moodeaudio)
- http: //moode.local
- Playing a radio station

You can also try the cmds below to get more information on the status of AP mode.

pi@moode:~ $ iw dev
phy#0
Interface wlan0
ifindex 3
wdev 0x1
addr b8:27:eb:98:a9:1b
ssid Moode
type AP
pi@moode:~ $

The MAC address in the command below is that of the iPod Touch in my test.

pi@moode:~ $ cat /var/log/syslog | grep "88:1f:a1:e9:07:b5"
May 12 07:50:32 moode hostapd: wlan0: STA 88:1f:a1:e9:07:b5 IEEE 802.11: associated
May 12 07:50:32 moode hostapd: wlan0: STA 88:1f:a1:e9:07:b5 RADIUS: starting accounting session 59063FD0-00000007
May 12 07:50:32 moode hostapd: wlan0: STA 88:1f:a1:e9:07:b5 WPA: pairwise key handshake completed (RSN)
May 12 07:50:36 moode dnsmasq-dhcp[1435]: DHCPDISCOVER(wlan0) 88:1f:a1:e9:07:b5
May 12 07:50:36 moode dnsmasq-dhcp[1435]: DHCPOFFER(wlan0) 172.24.1.131 88:1f:a1:e9:07:b5
May 12 07:50:36 moode dnsmasq-dhcp[1435]: DHCPDISCOVER(wlan0) 88:1f:a1:e9:07:b5
May 12 07:50:36 moode dnsmasq-dhcp[1435]: DHCPOFFER(wlan0) 172.24.1.131 88:1f:a1:e9:07:b5
May 12 07:50:37 moode dnsmasq-dhcp[1435]: DHCPREQUEST(wlan0) 172.24.1.131 88:1f:a1:e9:07:b5
May 12 07:50:37 moode dnsmasq-dhcp[1435]: DHCPACK(wlan0) 172.24.1.131 88:1f:a1:e9:07:b5 Tims-iPod-touch
May 12 08:00:09 moode hostapd: wlan0: STA 88:1f:a1:e9:07:b5 WPA: group key handshake completed (RSN)
May 12 08:10:09 moode hostapd: wlan0: STA 88:1f:a1:e9:07:b5 WPA: group key handshake completed (RSN)
pi@moode:~ $

-Tim

Hi Tim,
I positioned the WiFi adaper 40 cm away of the Raspberry Pi and all seems OK.
Only problem i find is that somtimes the currentsong.txt is not updated is this a known issue. I use this feature to start a python script to print the data to an LCD display.

regards,
Jan Mulder
 
Hi Tim,
I positioned the WiFi adaper 40 cm away of the Raspberry Pi and all seems OK.
Only problem i find is that somtimes the currentsong.txt is not updated is this a known issue. I use this feature to start a python script to print the data to an LCD display.

regards,
Jan Mulder

Hi Jan,

Are u using the LCD updater feature in Moode or does your Python script have its own event loop?

-Tim
 
A strange thing with Edimax EW-7811Un adapter. In my Pi3B it can't connect to hidden network. When I disable network hiding on the router (WNDR3700 with LEDE), it will connect. Tested on Moode 3.6. Built-in adapter don't have that issue.

Hi,

I've not tested this but you might want to try adding the param below to /etc/network/interfaces as suggested by the following link configuration - Configure Wifi (hidden SSID) on Raspbian (EDIMAX Wifi Adapter) - Stack Overflow

wpa-scan-ssid 1

Btw, hiding an SSID does not provide any security. Most Wifi sniffers can easily obtain the names of hidden SSID's.

-Tim
 
Hi Tim,

I understand that stopping and starting can be initalized by these coomands, but can this be done in a python script and how to do this? Is it an os.system() command in python ? I was looking in the file system but could not find the right file.

best regards
Jan Mulder

Hi Jan,

Don't know too much about Python coding but the cmd below will show the path to mpc.

which mpc

-Tim
 
Hi Tim,

I understand that stopping and starting can be initalized by these coomands, but can this be done in a python script and how to do this? Is it an os.system() command in python ? I was looking in the file system but could not find the right file.

best regards
Jan Mulder

Hi, Jan. I suggest you use the python subprocess module. I just ran the following from the command line to stop and then play the radio station I was listening to.

Code:
pi@moode-rpi3b:~ $ python
Python 2.7.9 (default, Mar  8 2015, 00:52:26) 
[GCC 4.9.2] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import subprocess
>>> subprocess.call(["mpc","stop"])
volume: 15%   repeat: off   random: off   single: off   consume: off
0
>>> subprocess.call(["mpc","play"])
Groove Salad: a nicely chilled plate of ambient beats and grooves. [SomaFM]: Alex Cortiz - Beatnik schmooz
[playing] #33/78   0:00/0:00 (0%)
volume: 15%   repeat: off   random: off   single: off   consume: off
0
>>>

Regards,
Kent
 
Screenshots or the project doesn't exist ;-)

Lol, difficult to do screen shots when its still in my designspark pcbs cad software. did the lash up testing with pi 3 & odroid pcm5242 hat. as i stated before the pcbs is 80% designed and now I know the core components will work its game on. Chips are on order through digikey. once the design is finished it will take about 2 weeks to get my PCBs from china. patience is the name of this game.

However see below an image of one of my two project scopulous full dual differential mono block power amps below. there are only two in the whole wide world and they sound awesome. build cost £1200 each and countless late nights slaving away ;-)
 

Attachments

  • 20170430_191509.jpg
    20170430_191509.jpg
    992.2 KB · Views: 260
Last edited:
Hi @soldeed,

Referring to issue #42, the author is proposing a new feature and not asking for help to fix a problem with MPD.

If its only a few files out of the collection, you might want to try deleting the coverart then re-embedding it. Really huge sized images are to be avoided. Its also possible that the files, metadata or file headers are corrupt.

-Tim
 
Screenshots or the project doesn't exist ;-)

Prototype lashups using existing boards before I put my money where my mouth is lol :) My finished PCB's to follow.........at......some.......t...i....m...e.....i....n......t..h...e......f.u..t..u..r..e
 

Attachments

  • 20170512_220329.jpg
    20170512_220329.jpg
    969.5 KB · Views: 254
  • 20170512_221642.jpg
    20170512_221642.jpg
    1,001.7 KB · Views: 242
Last edited:
Prototype lashups using existing boards before I put my money where my mouth is lol :) My finished PCB's to follow.........at......some.......t...i....m...e.....i....n......t..h...e......f.u..t..u..r..e

Nice! The essence of DIY :)

When (at some time in the future) you get the board finished and give a cool name I'll add it to MoOde device database.

-Tim
 
MoOde 3.6 on RPI 3 with BOSS DAC and WD Mybooklive as NAS.

If I start my MoOde without the NAS drive available, then obviously songs from my library won't play. But then if I start the NAS and wait for it to be fully ready and then restart MoOde or shutdown and then power on the RPI, the songs still do NOT play.
I always need to go to the Configure Sources screen and update MPD.

This is painful when I forget to switch on the NAS before turning on my RPI (and that happens quite often) :(

Second question:
I have a lot of songs on my Windows desktop. Is there a way for me to 'cast' these songs on MoOde described in the setup above?
I have a single network at home and all devices are on the same network.
Currently I have DLNA turned off in MoOde (I think it is the default setting).
 
MoOde 3.6 on RPI 3 with BOSS DAC and WD Mybooklive as NAS.

If I start my MoOde without the NAS drive available, then obviously songs from my library won't play. But then if I start the NAS and wait for it to be fully ready and then restart MoOde or shutdown and then power on the RPI, the songs still do NOT play.
I always need to go to the Configure Sources screen and update MPD.

This is painful when I forget to switch on the NAS before turning on my RPI (and that happens quite often) :(

Second question:
I have a lot of songs on my Windows desktop. Is there a way for me to 'cast' these songs on MoOde described in the setup above?
I have a single network at home and all devices are on the same network.
Currently I have DLNA turned off in MoOde (I think it is the default setting).

I have suffered with this, my library sits on a mac server and i found that implementing NFS services worked much better than Samba based file shares.

Chris