I’ve been playing with Pi-Star now for a while and I finally got my IPSC2-Brandmeister dual-setup working.

I’m using the beta version v4 because I read somewhere, that DUAL-HATS won’t work properly with the older v3 firmware—but I never really tested the v3. Instead I went for v4 straight away as it seemed pretty stable anyway.

Now, I began with a very simple IPSC2-only setup in the first place. I then made a backup and changed all settings to be used for Brandmeister only. Another backup of the Brandmeister setup and I moved on to using DMRGateway.

It was a bit tricky at the beginning, because I was not used to the configuration of such devices in any kind. After a few hours of research and testing I finally got the DMR-GW setup ready.

Those pages helped me a lot when I researched for this topic. There might be more but…

There are plenty of instructions on how to setup different things like DVMEGA, Openspots, Jumbospots etc. Even code plugs can be downloaded. The website is maintained by the Austrian DMR team, the Austrian amateur radio leage ÖVSV and Michi OE8VIK. Just read along, there is a shitload of information.
This is the youtube channel of Michi OE8VIK / HB3YZE with tons of information about digital amateur radio.
The youtube channel of Winters Huang BI7JTA. He writes also on his blog. If you want a nice duplex hotspot with fancy acrylic “L” case and nextion display you want to have a look at his shop.
Update Dezember 2021
Please note, that some of the links above are outdated and may not work any more. You might find tons of information on the webpages of Michi: http://dmraustria.at, http://dstaraustria.at and http://c4fmaustria.at.

The first thing I did on Pi-Star

Setup the keyboard and language on the console. I mostly type in german and I know most of the characters on an en_US or en_UK keyboard, but I still prefer a german layout ;-)

Before we start, we have to make the filesystem writable. Do this with the command alias rpi-rw either in a console or in the SSH-Access tab on the dashboard (Configuration -> Expert -> SSH Access). The login details for SSH are the same as on the dashboard.

Now you got the filesystem writable, so start the keyboard configuration:

1$ sudo dpkg-reconfigure keyboard-configuration

I then usually go for the 105-key PC one. Choose German (Austria) and go for the default keyboard layout with no compose key—except you have other needs.

Then start generating the locales for your environment.

1$ sudo dpkg-reconfigure locales

Choose the locales that you need or want. My setup looks like this:

locales setup

If you don't know what to choose, go with your language and the UTF-8 version.

I also create my ssh-keys for passwordless login as well as some comfortable aliases. I usually use the ZSH shell, but on Pi-Star I just leave it as it was. I add my aliases to .bash_aliases—this is the file that gets sourced via .bashrc in the default pi-star setup.

Quick and dirty—my current .bash_aliases on my Pi-Stars looks like this:

 1# File: "~/.bash_aliases"
 2DATE=$(date +%Y-%m-%d)
 8[ -x /usr/bin/pydf ] && alias df='/usr/bin/pydf' || alias df='df -h'
10alias digg='dig +noall +answer'
11alias dt='dmesg | tail'
13alias mm="multitail ${DMRGW} ${MMDVM}"
14alias mmdmr="multitail ${DMRGW}"
15alias mmdv="multitail ${MMDVM}"
16alias mmdap="multitail ${DAPNET}"
18# Screen and Tmux alike
19alias sc='screen -DR Screen_A'
20alias tm='tmux -u new-session -A -s Tmux_A'
22# ls
23alias l='ls -1A'
24alias la='ls -lah'
25alias lc='lt -c'
26alias lk='ll -Sr'
27alias ll='ls -lh'
28alias lad='ls -lah|more'
29alias lld='ls -lh|more'
30alias lm='la | "$PAGER"'
31alias ln='nocorrect ln -i'
32alias lni='nocorrect ln -i'
33alias locate='noglob locate'
34alias lr='ll -R'
35alias ls='ls --group-directories-first --color=auto'
36alias lt='ll -tr'
37alias lu='lt -u'
38alias lx='ll -XB'
40alias ducks='du -cks * | sort -rn | head'
42alias confcat="sed -e 's/#.*//;/^\s*$/d' "[email protected]""


More software that comes in handy from time to time.

1$ sudo apt-get install htop lsof nmap arping vim pydf multitail git ldnsutils
an example output of `pf`

`pydf` in combination with the alias from above displays a short and colored output when you list your diskspace with `df`

If you intent to install and use vnstat, you need to set it up

The installation of vnstat is useful, if you let your pi-star run 24/7 as the database gets cleared on every reboot!

1$ sudo apt-get install vnstat

Add the following line to your /etc/fstab file. I assume that you still have the filesystem writable—if not, run rpi-rw.

1# file: "/etc/fstab"
2tmpfs  /var/lib/vnstat  tmpfs nodev,noatime,nosuid,mode=1777,size=4m  0  0

If you run cat /etc/fstab it should look similar to this:

 1# file: "/etc/fstab"
 2#File System    Mountpoint              Type  Options                                   Dump  Pass
 3proc            /proc                   proc  defaults                                  0     0
 4/dev/mmcblk0p1  /boot                   vfat  defaults,ro                               0     2
 5/dev/mmcblk0p2  /                       ext4  defaults,noatime,ro                       0     1
 6tmpfs           /run                    tmpfs nodev,noatime,nosuid,mode=1777,size=32m   0     0
 7tmpfs           /run/lock               tmpfs nodev,noatime,nosuid,mode=1777,size=5m    0     0
 8tmpfs           /sys/fs/cgroup          tmpfs nodev,noatime,nosuid,mode=1755,size=32m   0     0
 9tmpfs           /tmp                    tmpfs nodev,noatime,nosuid,mode=1777,size=64m   0     0
10tmpfs           /var/log                tmpfs nodev,noatime,nosuid,mode=0755,size=64m   0     0
11tmpfs           /var/lib/sudo           tmpfs nodev,noatime,nosuid,mode=1777,size=16k   0     0
12tmpfs           /var/lib/dhcpcd5        tmpfs nodev,noatime,nosuid,mode=1777,size=32k   0     0
13tmpfs           /var/lib/vnstat         tmpfs nodev,noatime,nosuid,mode=1777,size=4m    0     0
14tmpfs           /var/lib/logrotate      tmpfs nodev,noatime,nosuid,mode=0755,size=16k   0     0
15tmpfs           /var/lib/nginx/body     tmpfs nodev,noatime,nosuid,mode=1700,size=1m    0     0
16tmpfs           /var/lib/php/sessions   tmpfs nodev,noatime,nosuid,mode=0777,size=64k   0     0
17tmpfs           /var/lib/samba/private  tmpfs nodev,noatime,nosuid,mode=0755,size=4m    0     0
18tmpfs           /var/cache/samba        tmpfs nodev,noatime,nosuid,mode=0755,size=1m    0     0
19tmpfs           /var/spool/exim4/db     tmpfs nodev,noatime,nosuid,mode=0750,size=64k   0     0
20tmpfs           /var/spool/exim4/input  tmpfs nodev,noatime,nosuid,mode=0750,size=64k   0     0
21tmpfs           /var/spool/exim4/msglog tmpfs nodev,noatime,nosuid,mode=0750,size=64k   0     0

Normally, vnstat creates /var/lib/vnstat and starts the vnstat service. We now delete the freshly created databases (they are nearly empty anyway) and re-create them when we have mounted the ramdisk.

1$ sudo rm /var/lib/vnstat/*
2$ sudo mount -a
3$ sudo systemctl restart vnstatd

Now run vnstat to display network interface statistics. It’s output could look similar to this one:

1                      rx      /      tx      /     total    /   estimated
2 eth0: Not enough data available yet.
3 wlan0:
4       Jän '20     39,23 MiB  /   39,10 MiB  /   78,33 MiB  /  106,00 MiB
5         today     39,23 MiB  /   39,10 MiB  /   78,33 MiB  /     138 MiB

It takes time to gather enough information. Get back to this in a few days and you will get more useful information. Because we save the databases in the ramdisk, we will save the sdcards lifetime, but also we loose the statistics when we reboot the raspberry pi.

If you want to save them forever, you won’t have to create a ramdisk like above, but you also have to make sure that PiStar does not mount the volumes read-only!

Make the filesystem read-only again

Once you finished your setup, make the filesystem read-only again.

1$ rpi-ro

Start setting up your Pi-Star MMDVM

The MMDVM services restart every time you hit the Apply Changes button. So when hitting the button wait a few seconds – this takes some time to complete ;-)

Talkgroup setup

This setup uses some talk groups from IPSC2/DMR+ and the rest from Brandmeister. Specifically these talkgroups are:

  • Timeslot 1
    • TG 1 - TG 7
    • TG 10 - TG 89
    • TG 100 - TG 199
  • Timeslot 2
    • DMR+ reflectors with TG 9
    • TG 232
    • TG 8181 - TG 8189
    • TG 8191 - TG 8199
  • GPS data sent as private calls to 9057

All other talkgroups are routed to the Brandmeister network. Private calls are also routed to Brandmeister.

Simplex or Duplex?

This is where we actually start. At the first start either connect your Raspberry Pi to an ethernet port or look out for a WiFi network called Pi-Star Setup.

Control Software configuration

Make sure to use Duplex Repeater in order to use different RX and TX frequencies.


MMDVMHost configuration

Choose the modes that you want to use. I only use DMR and POCSAG for now.

General information about the station

general information

Put in your own callsign and your DMR-ID---~~register your callsign~~ if you don't have one yet. Select appropriate frequencies and make sure they are at least a few MHz apart from each other. I used the common shift that we use in Austria on 70cm (-7,6 MHz).

The URL above is outdated. ham-digital.org was the european version of radioid.net—those two were merged together and you can apply for your personal DMR-ID over here at radioid.net.

DMR configuration

Now, setup IPSC2 only or Brandmeister only if you are unsure about the DMRGateway setup. Make yourself comfortable with both of the systems but only one system at a time and move over to DMRGateway when you feel confident enough. The rewrite rules can be sometimes a bit tricky to set up.
DMR configuration

Choose the Brandmeister master server you want to connect to. Also set a password in Brandmeisters SelfCare for Hotspot Security. That makes sure, that only you can add a Hotspot with your callsign. Also select the IPSC2 server of your choice and set the wanted options. I go with these for now:


In this scenario I want to statically link the two talk groups 232 and 8189 on timeslot 2. I also allow UserLink which allows users to link to different reflectors. The default reflector is 4197 and this gets relinked if nobody presses PTT for 15 minutes. If you need talkgroups from timeslot 1 you would probably write something like this:


That will also include talk group 20 from timeslot 1. I thought you can statically link up to 5 talkgroups, but I’m not sure if this information is up to date (I haven’t tried this yet, but you can do that on your own very easy).

Actually, you can link 9 talkgroups on every slot.

Move over to the expert configuration tab

Quick edit

Whenever you feel comfortable with DMRGateway, head over to the expert settings page and select MMDVMHost. I’ve adjusted the Jitter settings “a bit”, although this should run smooth with a setting of 1000 too—I’m still a bit of experimenting with this. I read a lot of times that 1000 should be fine with slower networks—but you should definitely experiment yourself a bit with this setting.

As of today, I’d probably set Jitter to something around 0-300.
DMR jitter configuration

Now let’s have a look at the DMR Gateway configuration. Navigate to the DMR GW expert settings. Choose DMR GW of the upper line (Quick Edit).

DMR Network 1 configuration
DMR Network 2 configuration

Don’t forget to save the settings.

Full edit

When you have saved that, go to the expert settings again and choose again DMR GWbut this time, choose the one from the lower line (Full Edit).

This configuration file is split into paragraphs. Look out for the [DMR Network 1] block.

 1[DMR Network 1]

Our next block is called [DMR Network 2].

 1[DMR Network 2]

Read along here if you want to know more about the different rewrite rules.

POCSAG configuration

The following frequency is used in Austria. Please refer to your local amateur radio club for information about the used frequencies in your country. You may use 439.987.500 in Germany. Look here for more frequencies.
POCSAG configuration

Read more on https://hampager.de and on https://support.hampager.de. You need to create an account to bind your callsign to a RIC. You also need a second account for your transmitter—that is when you get your AuthKey.

That’s it—images and videos

I suppose this gets easier from time to time—depending on how often I have to install this stuff on a Pi :-)

My Raspberry Pi 3 B

my raspberry pi 3

And this is the admin page of the dashboard

If you want to use the Brandmeister Manager you need to set the api key. Go to expert settings and choose BM API in the lower line. It is somewhat in the middle of the page. To get an api key visit the Brandmeister API Keys page.

Dashboard - Admin view

There are some more handy links for Brandmeister:

PiStar Remote

Restart the PiStar services with RF power from your HT.

Or reboot the whole Raspberry Pi.

To make use of PiStar Remote you need to set it up. Go to Configuration -> Expert and choose PiStar Remote (in the Full Edit line).

 2# Is the Pi-Star Remote Enabled? (true|false)
 7# TG commands

Final words

I think this whole article is a work in progress—I just always find things that I do different now and I cannot always change these things in this article too; some aren’t even wrong, they just fit better.

I think this page is a good thing to look back to start a fresh configuration – even if I have made different configuration backups from within PiStar. Addidionally I made one-to-one copies of the used sdcards—just in case ;-)

Initially I wrote this for myself, but I think this might be helpful for others too so enjoy the content and feel free to mail me if you find errors or have to add some notes on that topic.