- DMRHub
- External software
- Overview
External software
On this page
These pages tell how to connect other DMR programs to DMRHub. Each page tells what the program is, gives a configuration that worked, tells what to set in DMRHub, and tells how to check that the connection works.
Every page comes from a run of the program against a local DMRHub (main at 569c6e70) on 2026-10-27, with all programs and DMRHub on 127.0.0.1 in a network namespace that has only loopback. The Pi-Star page comes from a real Pi-Star hotspot on 2026-10-28 instead. A page that we could not run says why and is marked Untested.
The example IDs, callsigns and passwords are not real. Replace them with your own.
Programs
| Program | What it does | DMRHub listener | Result |
|---|---|---|---|
| MMDVMHost | Runs the modem of a hotspot or repeater | none (through DMRGateway) | Worked |
| DMRGateway | Connects MMDVMHost to one or more DMR networks | MMDVM, UDP 62031 | Worked |
| Pi-Star | Hotspot image with MMDVMHost, DMRGateway and a dashboard | MMDVM, UDP 62031 | Worked through DMRGateway, on a real hotspot. Direct mode not run. |
| DroidStar | DMR client app for phones and desktops | MMDVM, UDP 62031 | Worked |
| HBlink3 | DMR server and bridge in Python | MMDVM, UDP 62031, and OpenBridge, UDP 62035 | Worked |
| HBlink4 | New DMR server and bridge in Python | MMDVM, UDP 62031, and OpenBridge, UDP 62035 | Worked |
| FreeDMR | DMR network server | OpenBridge, UDP 62035 | Worked |
| MMDVM_Bridge | DVSwitch bridge between DMR and other modes | MMDVM, UDP 62031 | Worked |
| Analog_Bridge | DVSwitch bridge between digital voice and analog audio | none (through MMDVM_Bridge) | Worked |
| YSF2DMR | Bridge from System Fusion to DMR | MMDVM, UDP 62031 | Login worked |
| ipsc2mmdvm | Bridge from a Motorola IPSC repeater to MMDVM networks | MMDVM, UDP 62031 | Login worked |
| AMBE servers | Convert calls between AMBE and Codec2 for transcoding | none (DMRHub is the client) | Worked |
The protocol
Hotspots, repeaters and servers connect to DMRHub with the MMDVM network protocol. This is the protocol that DMRGateway speaks to the masters of other DMR networks. DMRHub also accepts logins in the form of the HomeBrew Repeater Protocol specification (HBRP), but none of the programs on these pages uses that form. HBlink3 and HBlink4 call themselves HomeBrew servers, but they log in to DMRHub with the MMDVM protocol.
DMRHub shows the protocol of a connected repeater as Protocol on its page, <siteurl>/repeaters/<repeater ID>, and as dialect in GET <siteurl>/api/v1/repeaters/<repeater ID>. In every run on these pages, it was MMDVM.
Servers also link to DMRHub with OpenBridge, on its own port. DMRHub accepts OpenBridge version 1, as HBlink uses it, and the enhanced OpenBridge of FreeDMR.
What to set in DMRHub
For a program that logs in as a hotspot or repeater:
- Go to
<siteurl>/repeaters/new, enter the ID in DMR Radio ID and click Save. See Connect a hotspot. - Copy the password that DMRHub shows. DMRHub shows it only once.
- Pick the talkgroups. You can set static talkgroups on the repeater page, or let the program send them in its options text. See Options text.
For a server that links with OpenBridge, an admin adds a peer at <siteurl>/admin/peers/new and then adds its rules with the API. A peer with no rules carries no traffic. See OpenBridge peers.
The admin must turn on the listeners that a program needs. The MMDVM listener is always on. OpenBridge (dmr.openbridge.enabled) and IPSC (dmr.ipsc.enabled) are off by default. See Configuration.
Options text
DMRGateway, DroidStar, HBlink4, MMDVM_Bridge and other clients can send an options text after they log in, such as TS1=91;TS2=3100;. DMRHub reads it as FreeDMR does:
TS1=andTS2=set the static talkgroups of each timeslot, as a list with commas, such asTS1=91,3100;. They replace the static talkgroups of the repeater. When the text sets one timeslot, DMRHub clears the static talkgroups of the other timeslot. A text with noTS1orTS2key leaves the static talkgroups as they are.- DMRHub uses only talkgroups that exist on DMRHub. It skips the others.
DIAL=links a talkgroup as the dynamic talkgroup.DIAL=0unlinks it.- DMRHub logs and ignores the other FreeDMR options, such as
TIMERandVOICE.
MMDVMHost with Duplex=0 (a simplex hotspot) uses only timeslot 2. In our runs, it did not play calls on timeslot 1, though DMRHub sent them. Put the talkgroups of such a hotspot on TS2. DroidStar showed calls on both timeslots.
Check that a program works
Open
<siteurl>/repeaters/<repeater ID>. Last Connected and Last Ping must show the current time. Software ID and Package ID show the program that logged in.
Make a call on a talkgroup of the repeater from another radio or hotspot. The program must log the call, and the call must show in Last Heard.
For an OpenBridge peer, make a call on a talkgroup that the peer carries, and check the log of the server.
Run the programs yourself
hack/external/setup.sh fetches and builds the programs on these pages at the commits that we tested, into ${XDG_CACHE_HOME:-~/.cache}/dmrhub-ext or the directory you give it:
hack/external/setup.sh
hack/external/setup.sh -d /srv/dmrhub-ext hblink3 dmrgatewayIt writes PINS.md in the directory with each program and commit. The directory is the one that the external client tests use:
DMRHUB_STRESS_EXT_DIR=~/.cache/dmrhub-ext DMRHUB_STRESS_AREAS=transports hack/stress.sh
hack/freedmr-test.sh ~/.cache/dmrhub-ext/freedmr ~/.cache/dmrhub-ext/venv/bin/python
hack/droidstar-test.sh ~/.cache/dmrhub-ext/droidstar/build/DroidStarSome of these programs download ID lists from public hosts when they start. Run them in a network namespace with only loopback (unshare -r -n) when you test, as the test scripts do.