
DMR, WPSD & DMRGateway
Table of Contents
Introduction to WPSD and DMRGateway
If you’ve been running a DMR hotspot for a while, you’ve probably run into the frustrating choice between networks.
Do you connect to Brandmeister? DMR+? TGIF?
With W0CHP-PiStar-Dash (WPSD) and a properly configured DMRGateway, you don’t have to choose — you can run them all at the same time.
This guide walks through setting up WPSD and configuring DMRGateway for multi-network operation on a Pi-Star-based hotspot.
What is WPSD?
WPSD (W0CHP-PiStar-Dash) is a modern fork of Pi-Star, maintained by W0CHP. It brings a refreshed dashboard, more frequent updates, and better support for newer hardware and software components including MMDVMHost. If you’re already on Pi-Star, migrating to WPSD is relatively painless and gives you a more actively maintained platform to build on.
Key improvements over vanilla Pi-Star include:
- a cleaner web interface,
- rolling updates via a proper package manager,
- improved logging, and
- better compatibility with DMRGateway.

What is DMRGateway and Why Does It Matter?
DMRGateway is a software layer that sits between MMDVMHost and multiple DMR networks. Without it, your hotspot can only connect to a single network at a time. With DMRGateway in the chain, you can route traffic across several networks simultaneously based on talkgroup rules.
The practical advantages are significant:
Access to more talkgroups. Different networks host different communities. Brandmeister has strong worldwide coverage. TGIF is popular for specific interest groups. DMR+ has solid European infrastructure. Rather than picking one, you get them all.
Talkgroup routing. You define rules that tell DMRGateway which talkgroup should be routed to which network. TG 91 might go to Brandmeister, while a local TG goes to DMR+. The routing is transparent to your radio.
Fallback and redundancy. If one network has an outage, you can still operate on the others without reconfiguring anything.
No mode switching. Once set up, everything happens automatically based on which talkgroup you select on your radio.
Prerequisites
Before you start, you’ll need:
- A working MMDVM or compatible hotspot (ZUMspot, MMDVM_HS, SharkRF openSPOT, etc.)
- WPSD installed and running — grab the latest image from w0chp.net
- Your DMR ID registered at radioid.net
- Credentials or hostmaster keys for any networks you want to join (Brandmeister, TGIF, DMR+, etc.)
By default the DMR config is set to Brandmeister (even if you don’t want to use Brandmeister):

Additional DMR configuration, notice the talkgroup prefixes

So when configuring your codeplug for various networks heed the talkgroup prefix:
- Freestar 4
- TGIF 5
- DMR+/FreeDMR 8
- Custom 9
so when wanting to configure Freestar in your radio codeplug 23426 would become:
- 4023426
when wanting FreeDMR Chat-1 or UK-wide-1 2351 it should become:
- 8002351
Info
With DMRGateway, every talkgroup is 7 digits, so you may need zeros between the prefix and the talkgroup number.
So with a suitable codeplug in your radio, you can easily navigate multiple networks and talkgroups!
Step 1: Flash and Initial WPSD Setup
If you’re starting fresh, flash the WPSD image to your SD card using Balena Etcher or Raspberry Pi Imager. On first boot, connect to the WPSD-Setup WiFi network and follow the web-based wizard to configure your call sign, DMR ID, and WiFi credentials.
Once online, access the dashboard at http://wpsd.local or the hotspot’s IP address.
Step 2: Enable DMRGateway in WPSD
Navigate to Admin → Expert → DMR GW. This is where you’ll find the raw DMRGateway configuration file. Before editing, make sure DMRGateway is actually selected as your DMR mode.
In the main Configuration page:
- Set DMR Mode to DMRGateway
- Apply and let the hotspot restart
You’ll now see a new section in Expert settings specifically for DMRGateway configuration.
Step 3: Configure DMRGateway
The DMRGateway config file controls everything — which networks you connect to, what credentials you use, and how talkgroups are routed. Here’s a practical starting point you can adapt.
[General]
Callsign=M0XYZ
Id=1234567
Timeout=10
RptProtocol=MMDVM
LocalAddress=127.0.0.1
LocalPort=62031
RemoteAddress=127.0.0.1
RemotePort=62032
Debug=0
[Log]
DisplayLevel=1
FileLevel=1
FilePath=/var/log/pi-star
FileRoot=DMRGateway
[Voice]
Enabled=1
Language=en_GB
Directory=/usr/share/DMRGateway/audio
[DMR Network 1]
Enabled=1
Name=BrandMeister
Address=bm.hamradio.world
Port=62031
Password=passw0rd
Location=1
Debug=0
Id=1234567
[DMR Network 2]
Enabled=1
Name=DMR+
Address=94.198.196.128
Port=8880
Password=passw0rd
Options=
Debug=0
[DMR Network 3]
Enabled=1
Name=TGIF
Address=tgif.network
Port=62031
Password=
Debug=0
[DMR Network 4]
Enabled=0
Name=FreeDMR
Address=
Port=62031
Password=
Debug=0
[XLX Network]
Enabled=0
[Rules]
; Route talkgroups to specific networks
; Format: TG=,TS=,Net=
; Example rules below — adjust to your needs
A note on passwords: Brandmeister uses your BM hotspot password from the self-care portal. TGIF typically requires no password. DMR+ may require a hostmaster password depending on the server.
Step 4: Writing Your Routing Rules
The [Rules] section is the heart of DMRGateway. This is where you define which talkgroup goes to which network.
[Rules]
; TS1 - Wide area / international via Brandmeister
TGRewrite=1,91,1,91,1 ; TG91 Worldwide -> BM
TGRewrite=1,9990,1,9990,1 ; Parrot/Echo -> BM
; TS2 - TGIF
TGRewrite=2,31665,3,31665,2 ; TGIF UK calling -> TGIF (Net 3)
; TS2 - DMR+ regional
TGRewrite=2,23500,2,23500,2 ; UK DMR+ -> DMR+
The format for TGRewrite is:
TGRewrite=
Where <network> corresponds to the numbered DMR Network blocks in your config. Keep rules as simple and targeted as possible — overlapping rules can cause unexpected routing behaviour.
Step 5: Verify and Monitor
After saving your configuration, restart DMRGateway via the WPSD dashboard or via SSH:
sudo systemctl restart dmrgateway
Check the log to confirm all networks connect successfully:
tail -f /var/log/pi-star/DMRGateway-*.log
You should see lines like BrandMeister Network Connected and DMR+ Network Connected for each enabled network. If a network fails to connect, double-check the address, port, and password, and confirm you have an active internet connection from the hotspot.
The WPSD dashboard’s live traffic view will show which network incoming traffic is arriving from, which is a quick sanity check that routing is working as expected.
MW0AXD DMR Gateway config
It may just be easier to copy my Gateway config (contains routing updates for Brandmeister & Freestar networks)
[General]
RptAddress=127.0.0.1
RptPort=62032
LocalAddress=127.0.0.1
LocalPort=62031
RuleTrace=0
Daemon=1
Debug=0
RFTimeout=20
NetTimeout=20
Suffix=R
Primary=1
[Log]
DisplayLevel=0
FileLevel=1
FilePath=/var/log/pi-star
FileRoot=DMRGateway
[Voice]
Enabled=1
Language=en_US
Directory=/usr/local/etc/DMR_Audio
[Info]
Enabled=0
RXFrequency=431062500
TXFrequency=431062500
Power=1
Latitude=51.658
Longitude=-3.688
Height=0
Location="Swansea"
Description="Wales"
URL=https://w0chp.radio
[XLX Network]
Enabled=1
Startup=942
File=/usr/local/etc/XLXHosts.txt
Port=62030
Password=passw0rd
ReloadTime=60
Slot=2
TG=6
Base=64000
Relink=60
Debug=0
Id=2357162
UserControl=1
Module=D
[DMR Network 1]
Enabled=0
Address=2341.master.brandmeister.network
Port=62031
PassAllPC0=1
PassAllTG0=1
PassAllPC1=2
PassAllTG1=2
Password="zx9xw7gU2j4Gc6N"
Id=235716202
Debug=0
Location=1
Name=BM_2341_United_Kingdom
TGRewrite0=2,9,2,9,1
PCRewrite0=2,94000,2,4000,1001
TypeRewrite0=2,9990,2,9990
SrcRewrite0=2,4000,2,9,1001
[DMR Network 2]
Enabled=0
Address=usacentral.ddns.net
Port=62031
TGRewrite0=2,8,2,9,1
PCRewrite0=2,84000,2,4000,1001
Password="passw0rd"
Id=2357162
Debug=0
Location=0
Name=FreeDMR_USA-Central
PCRewrite1=1,8009990,1,9990,1
PCRewrite2=2,8009990,2,9990,1
PCRewrite3=1,8000001,1,1,999999
PCRewrite4=2,8000001,2,1,999999
TypeRewrite1=1,8009990,1,9990
TypeRewrite2=2,8009990,2,9990
TGRewrite1=1,8000001,1,1,999999
TGRewrite2=2,8000001,2,1,999999
SrcRewrite1=1,9990,1,8009990,1
SrcRewrite2=2,9990,2,8009990,1
SrcRewrite3=1,1,1,8000001,999999
SrcRewrite4=2,1,2,8000001,999999
[DMR Network 3]
Enabled=0
Name=HBLink
Address=1.2.3.4
Port=5555
TGRewrite=2,11,2,11,1
Password="PASSWORD"
Location=0
Debug=0
#Id=specific_id
TGRewrite0=2,11,2,11,1
[DMR Network 4]
Enabled=0
Address=tgif.network
Port=62031
PCRewrite0=1,4009990,1,9990,1
PCRewrite1=1,5009990,1,9990,1
TypeRewrite0=1,4009990,1,9990
TypeRewrite1=1,5009990,1,9990
TGRewrite0=1,4000001,1,1,999999
TGRewrite1=1,5000001,1,1,999999
SrcRewrite0=1,9990,1,4009990,1
SrcRewrite1=1,9990,1,5009990,1
SrcRewrite2=2,9990,2,5009990,1
SrcRewrite3=1,1,1,5000001,999999
Password="passw0rd"
Location=1
Name=TGIF_Network
Debug=0
#Id=specific_id
PCRewrite2=2,5009990,2,9990,1
TypeRewrite2=2,5009990,2,9990
TGRewrite2=2,5000001,2,1,999999
SrcRewrite4=2,1,2,5000001,999999
[GPSD]
Enable=0
Address=127.0.0.1
Port=2947
[APRS]
Enable=0
Address=127.0.0.1
Port=8673
Suffix=D
Description=APRS for DMRGateway
Symbol="/r"
[Dynamic TG Control]
Enabled=1
Port=3769
[Remote Control]
Enable=1
Port=7643
Address=127.0.0.1
[DMR Network 5]
Location=0
Debug=0
Id=2357162
Address=apollo.dmr.uk.pe
Password="passw0rd"
Port=62031
Name=SystemX_Apollo
TGRewrite0=2,4,2,9,1
PCRewrite0=2,44000,2,4000,1001
PCRewrite1=1,4009990,1,9990,1
PCRewrite2=2,4009990,2,9990,1
PCRewrite3=1,4000001,1,1,999999
PCRewrite4=2,4000001,2,1,999999
TypeRewrite1=1,4009990,1,9990
TypeRewrite2=2,4009990,2,9990
TGRewrite1=1,4000001,1,1,999999
TGRewrite2=2,4000001,2,1,999999
SrcRewrite1=1,9990,1,4009990,1
SrcRewrite2=2,9990,2,4009990,1
SrcRewrite3=1,1,1,4000001,999999
SrcRewrite4=2,1,2,4000001,999999
Enabled=1
Options="TS2=23426;TIMER=3;"
[DMR Network Custom]
Id=2357162
Enabled=0
Location=0
Debug=0
Tips for Stable Multi-Network Operation
Keep your talkgroup list focused. The more networks and talkgroups you activate, the more RF traffic you may hear. Route only the talkgroups you actually use.
Use static IDs where possible. On Brandmeister, dynamic talkgroups (activated by keying up) can cause conflicts with gateway rules. Where possible, use static TG assignments in your BM self-care portal for talkgroups you monitor regularly.
Set appropriate timeouts. The Timeout value in [General] controls how long an idle talkgroup connection is held open. A value of 10 seconds is a reasonable default — lower if you want faster channel clearing.
Keep WPSD updated. WPSD receives regular updates that often include DMRGateway compatibility improvements. Update via the dashboard under Admin → Update or via SSH with sudo wpsd-update.
Wrapping Up
DMRGateway transforms a single-network hotspot into a flexible, multi-network station. Combined with WPSD’s clean interface and active maintenance, it’s a solid platform for serious DMR operation. Once your rules are tuned, the whole thing runs transparently — you simply dial a talkgroup on your radio and the gateway handles the rest.
If you’re moving from a basic Pi-Star setup, expect to spend an hour or two getting your routing rules right, but once dialled in it’s remarkably reliable. Happy operating, 73.

