Skip to content

Software to turn a Raspberry Pi into a production grade μMPX decoder

License

Notifications You must be signed in to change notification settings

oszuidwest/rpi-umpx-decoder

Repository files navigation

rpi-umpx-decoder

This repository contains the MicroMPX setup for ZuidWest FM in the Netherlands. It is compatible with Raspberry Pi 4 or 5 and uses a HiFiBerry DAC2 Pro XLR for MPX output. The repository facilitates downloading the latest version of the MicroMPX decoder from Thimeo, which systemd manages as a service.

How to Prepare the Raspberry Pi

  • Install Raspberry Pi OS Lite 12 (Bookworm).
  • Ensure you are root by executing sudo su.
  • Download and execute the installation script with the command: /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/oszuidwest/rpi-umpx-decoder/main/setup.sh)".
  • After rebooting, MicroMPX should be accessible at http://{{ip}}:8080.

A Few Words About the Raspberry Pi 5

MicroMPX and HiFiBerry boards are compatible with the Raspberry Pi 5. Currently, there is a firmware bug that necessitates manually editing the /boot/firmware/config.txt file. Add ,slave to the dtoverlay line for the HiFiBerry, such as dtoverlay=hifiberry-dacplus,slave.

Optional Heartbeat Monitoring

Optionally, heartbeat monitoring can be integrated. In this configuration, the Pi will execute wget --spider on a specified URL every minute to serve as a heartbeat. This can be any URL, but testing was conducted with Uptime Robot. Note that a paid Uptime Robot account is required for heartbeat monitoring.

Opinionated Modifications

This script introduces several modifications to the default MicroMPX behavior, which we believe enhance the setup:

  1. Logs are automatically deleted after 7 days instead of the default 30 days in MicroMPX. A cron job is set up to manage this.
  2. To preserve the SD card from excessive writes, logs are written to a RAM disk instead of the SD card. MicroMPX logs can be quite verbose, and without this modification, we have experienced failures with some SD cards.
  3. The HDMI audio output is disabled, allowing the analog output to be used for signal monitoring. Therefore, we recommend using a Raspberry Pi 4, as it still offers an analog output.

License

This project is licensed under the GPLv3 License - see the LICENSE file for details.

For bugs, feedback, and ideas, please contact us at techniek@zuidwesttv.nl or file a pull request with your idea.

About

Software to turn a Raspberry Pi into a production grade μMPX decoder

Topics

Resources

License

Stars

Watchers

Forks

Contributors 3

  •  
  •  
  •  

Languages