DV hotspots – Pi-Star

By Toshen, KEØFHS – last updated Feb 2018
- · -     ·     - - - - -     · · - ·     · · · ·     · · ·

Playing with Pi-Star

Pi-Star Digital Voice

Updated for Pi-Star 3.4.9, Dashboard 20180214

After I heard some good things about Pi-Star from another D-STAR enthusiast, I decided to give it a try. After playing around with it for a while, I found that I really like it, so much so that as of Nov 2017, Pi-Star became my default hotspot software for the two digital radio modes I use: D-STAR and DMR. It also handles YSF and even P25 (when used with a multimode digital voice modem like the ZUMspot). If only it would do the dishes and take out the trash, too!

Pi-Star dashboard

Andy Taylor, MWØMWZ, the driving force behind Pi-Star, has this to say on the Pi-Star website:

Pi-Star can be what ever you want it to be, from a simple single mode hotsport running simplex providing you with access to the increasing number of Digital Voice networks, up to a public duplex multimode repeater!

1) Learning about Pi-Star

Pi-Star is relatively easy to set up as a personal hotspot, so don't be put off by the length of this page. To get quickly up and running, just follow the easy steps outlined in the Pi-Star initial setup video by Craig, W1MSG.

Even though I was able to get Pi-Star working quickly, I wanted to understand more about its rich set of configuration options and other features, so I continued researching and writing this article as a personal reference based on what I'm learning.

1b) Other good resources for learning about Pi-Star

2) Downloading Pi-Star

First things first: grab the latest Pi-Star image designed for your hotspot from Pi-Star Downloads.

At this time, I'm using Pi-Star with a ZUMspot mounted on a Raspberry Pi. Initially, I used it with a DVMEGA-DUAL mounted on a Raspberry Pi. (They're both great combinations, though the ZUMspot has the advantage of simultaneous multi-mode capability.) So I use the RPi image.

Pi-Star downloads page

In addition to the RPi image, there are Pi-Star images available for FriendlyARM NanoPi and NanoPi Air, Hardkernel ODROID, and Xunlong Software Orange Pi.

3) Flashing Pi-Star

Unzip the Pi-Star image zip file you downloaded, and then flash the image file itself (the one with the .img extension) to a microSD card. I did this using, for the first time, Etcher SD Card Imager ¹.

Etcher for Windows

[1] Etcher SD Card Imager is an open source project by resin.io available for Mac, Linux, and Windows with a modern design that is totally easy to use. Thanks resin.io team for bringing SD card imaging into the 21st century!

3a) Adding WiFi settings

After you have finished flashing the image to a microSD card, add your initial WiFi settings to the root folder so they'll auto-install on first boot up:

  1. Create a wpa_supplicant.conf file with your WiFi setting(s):
  2. Copy the wpa_supplicant.conf file to the microSD card's Boot volume.

4) Booting up Pi-Star

Insert the microSD card into your RPi and power it on (takes a minute or so, and a bit longer when using a RPi Zero W). On another Windows, Mac, or Linux-based computer connected to the same network, open a browser window and go to: http://pi-star.local/. The first time you do this, you'll be greeted by a "No Mode Defined" screen.

Note: If you have a display attached to your Raspberry Pi, you optionally can watch the Raspbian Jessie Linux startup process until it displays a login prompt; however, do NOT log in via that RPi.

No Mode Defined

At this point, you can either click the Configuration link or wait 10 seconds to be automatically redirected. The Configuration view requires authentication: the factory default user name is pi-star and the password is raspberry.

Authentication Required

Note: An important security step that should be part of your initial configuration of Pi-Star is changing that default password, which is discussed below: 5j) Remote Access Password.

5) Performing initial Pi-Star configuration

After authentication, the Configuration view is displayed. The first sets of options cover the Control Software, MMDVMHost Configuration (if you have MMDVMHost enabled), and General Configuration.

5a) Control Software

Basic configuration settings - Control Software

5b) MMDVMHost Configuration

Basic configuration settings - MMDVMHost Configuration

5c) General Configuration

Basic configuration settings - General Configuration

If any changes made, click Apply Changes.

Radio/Modem Type do-over

When I saved after making changes in General Configuration section, I received a WARNING message: "The Modem selection section has been updated, Please re-select your modem from the list." I presume this was because new or revised items had been added to the list. After re-selecting the radio/modem type and re-applying changes, everything was fine.

Digital mode configuration settings

5d) DMR Configuration

Digital mode configuration settings - DMR

[2] See also the notes:

If any changes made, click Apply Changes.

5e) D-STAR Configuration

Digital mode configuration settings - D-STAR

[3] X-Reflectors using either the older Dextra protocol or the FreeStar protocol (for example, XRF720, a Colorado statewide reflector) require port forwarding in order for Pi-Star to connect to them. This doesn't apply to X-Reflectors running the newer Dextra Enhanced protocol (for example, the XRF002 reflector). If 1) your router doesn't support uPNP, 2) you don't want to enable the "Use DPlus for XRF" option, and 3) you want to manually set up port forwarding, see the note: Port forwarding.

If any changes made, click Apply Changes.

5f) Yaesu System Fusion Configuration

Digital mode configuration settings - YSF

If any changes made, click Apply Changes.

5g) P25 Configuration

Digital mode configuration settings - P25

If any changes made, click Apply Changes.

Additional configuration settings

5h) Firewall Configuration

Used for accessing the dashboard remotely, from outside your network. Per Andy Taylor in the Pi-Star Users Support Group: "These settings tell the uPNP daemon to request port forwards from your router. If you don't use uPNP, they have NO effect."

Additional configuration settings - Firewall Configuraiton

If any changes made, click Apply Changes.

5i) Wireless Configuration

Additional configuration settings - Wireless Configuraiton

To modify your WiFi settings, click Configure WiFi.

You can scan for open networks, find the one you want, and click Connect. Alternatively, for example, if the scan doesn't find the network you want to use, you can add a network manually:

  1. Click Add Network to open the options to manually add a WiFi network.
    WiFi configuration
    Add WiFi network
  2. Type the SSID (wireless network name).
  3. Type the PSK (password to access the wireless network).
  4. Click Save (and connect).
    Note: This step tripped me up initially. After saving, Pi-Star basically froze waiting to reconnect. I had to shut down and power off my DVMEGA + RPi, disconnect the network cable from the RPi, and also shut down the Pi-Star dashboard and power off my computer, before restarting everything. After that, it all started working smoothly (and wirelessly).
  5. Optionally, you can add additional wireless network connections.

5j) Remote Access Password

Used both for accessing the Pi-Star Admin and Configuration settings, and for SSH access.

Remote Access Password configuration

Strongly recommended: In order to protect your settings and network, change the password from the default to something stronger and more challenging to hack. It can be a scary world out there!

6) Running Pi-Star

Once you've done the initial configuration, running Pi-Star is easy peasy. Just start your hotspot or modem and give the Pi-Star RPi image a minute or two to fully boot up. As long as you have your radio set up correctly, you should be able to start using your radio for digital voice mode activity.

Optionally, you can browse to http://pi-star.local/ on any computer connected to your network to open the Pi-Star dashboard. You'll see the mode(s) you've configured to run enabled (green), and you can monitor activity.

Important! If you're using D-STAR, you must set up your radio correctly in order to use Pi-Star successfully. It doesn't work to use DV mode; instead, you must set up RPT1, RPT2, and a zero offset (either +/−0.000). Sometimes, this is referred to as Duplex mode; for the TH-D74A, this is called D-STAR Repeater (DR) mode.

Craig, W1MSG, has another short video that addresses this: D-STAR on the Pi-Star image. And if you want more detailed info, see my write-up, Programming the TH-D74A for D-STAR. While my doc is specific to the Kenwood TH-D74A, much of the info applies to any D-STAR radio.

6a) Dashboard view

Here's what the dashboard looks like with D-STAR and DMR modes enabled after it's been running for a while linked to D-STAR REF0001 C and DMR TG 310 (TAC310).

Pi-Star dashboard

6b) Admin view

You can switch to the Admin view (requires authentication) to see more info, like Gateway Hardware Information and Service Status. This can be helpful for troubleshooting, though I haven't had to do much of that yet.

If you're running D-STAR mode, you also have the option of changing the reflector and linking/unlinking directly from the Pi-Star Admin page.

Pi-Star Admin console

6c) Live Logs view

From the Admin view, you can select the Live Logs view, which starts a more detailed live logging process that can be useful for troubleshooting.

6d) Changing active mode(s)

If you want to change which modes are active, just hop over to the Configuration view, switch modes on and off in the MMDVMHost Configuration section as wanted, and then apply the changes.

MMDVMHost Configuration settings

7) Backing up or restoring Pi-Star

After you've done all the work of setting up Pi-Star just the way you want, it's a good idea to back it up.

In Admin view, click the Backup/Restore link.

Pi-Star Backup/Restore link

In the Backup/Restore view, click Download Configuration, and then choose a location to safely tuck your work away so that you can easily restore if things ever go sideways, for example, if you decide to play around in the Expert Editor (discussed below) and muck things up totally.

Initiating a Pi-Star configuration backup or restore

8) Rebooting or shutting down Pi-Star

Pi-Star provides a graceful way to reboot or shut down your hotspot. In Admin view, click the Power link.

Pi-Star Power link

In the Power view, click Reboot or Shutdown. Give your hotspot or modem a couple minutes to complete rebooting or powering down.

Initiating a Pi-Star reboot or shutdown

9) Updating Pi-Star

One of the nice things about Pi-Star is that it's updated on a regular basis to add new features and options, including MMDVMhost updates.

Per Andy Taylor in the Pi-Star Users Support Group: " just for info here, MMDVMHost is updated reasonably often, Pi-Star will pull in the updates over night after I release them, or you can press update on the dashboard to pull in the updates if you want it before the nightly pull. I don't update the binaries daily, but I do try and track the upstream source reasonably often."

Running Pi-Star Update updates the dashboard and binaries. The update process doesn't upgrade the operating system, services, and packages (there's a manual process for that outlined further below). Upgrades are released less frequently.

If you don't leave Pi-Star running overnight or you want to manually launch an update, in the Admin view, click Update. (Alternatively, you can run the update via SSH, which is discussed below.)

Update Pi-Star

In the Update view, you'll see the process running. Let it run until it's totally finished.

Pi-Star updating process

10) Advanced Pi-Star configuration (Expert Editor)

Thanks to Janos, YO6GZI, for sharing this hint about Pi-Star with me: you can access a set of "Expert Editor" tabs by appending the admin URL with "/expert." You'll see a **WARNING** message:

Pi-Star Expert Editor

"Please keep in mind when making your edits here, that these config files can be updated by the dashboard, and that your edits can be over-written. It is assumed that you already know what you are doing editing the files by hand, and that you understand what parts of the files are maintained by the dashboard."

The Expert Editor provides access to the built-in SSH Access window, as well as advanced configuration options for:

See the Pi-Star notes page for some advanced configuration notes.

[4] The PiStar-Remote Config File is designed for the Pi-Star Keeper remote control system, which gives repeater keepers an RF KillSwitch for their repeaters. It also provides access to some basic remote control ability via RF. For more info, see 15) Watchdogs, Keepers, and Remote RF commands on the Pi-Star notes page.

11) Upgrading Pi-Star

To upgrade the operating system, services, and packages, you need to SSH into Pi-Star and run an upgrade (you can run this in the default read-only mode). You can use an SSH (Secure Shell) app like Termius or PuTTY, or you can use Pi-Star's built in SSH tool: Expert Editor > SSH Access.

  1. SSH into Pi-Star and log in.
    Hint: In my experience, the update script log sometimes hangs in Pi-Star's built-in SSH Access window, even though the update script usually finishes anyway, if you give it enough time (but it's guesswork as to how much time is enough). At the bottom of the built-in SSH window, there is an optional link for a "fullscreen SSH client." For some reason, it seems like the update script log runs better in the fullscreen SSH client, never hanging.
    Pi-Star Expert Editor
  2. Begin with an update of the dashboard and binaries:
    sudo pistar-update
    Allow the update process to run until you see:
    Updates complete, sleeping for a few seconds before making the disk Read-Only
    Finished
  3. Next, upgrade the operating system, services, and packages:
    sudo pistar-upgrade
  4. Run the process as many times as needed until the system reports you are on the most recent version:
    Detected Pi-Star #.#.# running on RPi hardware, attached to dvmpid modem...
    You are already running the latest version...
    Sleeping a few seconds before making the disk Read-Only...
    Finished

To view the upgrade changes, visit the Pi-Star Downloads page and scroll down to Change Log.

12) Pi-Star – Summary thoughts

Two thumbs up!

I really like Pi-Star!

As of Nov 2017, it became my default hotspot software for the two digital radio modes I use: D-STAR and DMR. It also handles YSF and even P25 (when used with an MMDVM-capable modem like the ZUMspot).

At this time, I'm using Pi-Star with a ZUMspot mounted on a Raspberry Pi. Initially, I used it with a DVMEGA-DUAL mounted on a Raspberry Pi. They're both great combinations, though the ZUMspot has the advantage of simultaneous multi-mode capability.

Pi-Star connected to X-Reflector

12a) The dashboard is great

I'm actually surprised by how much I like the dashboard. I thought it would be a "nice-to-have" feature, but it turns out that it's great to be able to watch the activity on a reflector, especially during a net. It's also nice to be able to easily look up people's QRZ pages.

12b) Actively developed and supported

Another thing I really appreciate is how actively and enthusiastically Andy Taylor and team are developing and supporting Pi-Star; they're really responsive to the community of Pi-Star users.

12c) Totally won over

The moment I became totally won over was when Andy documented a method for updating the DVMEGA firmware via Pi-Star while it's mounted on the RPi. That was a pain point for me—having to take apart my hotspot and mount the DVMEGA-DUAL on my BlueStack board every time I wanted to update its firmware—so I really appreciate this much easier method. Thanks, Andy and team! (You also can update the ZUMspot's firmware via Pi-Star.)

My appreciation was further solidified when, as of version 3.4.8, a new "Use DPlus for XRF" setting was introduced in the D-STAR Configuration section for people like me who don't have a router that supports automatic uPNP port forwarding and who don't want to manually set up port forwarding. The new setting enables linking to X-Reflectors that run either older versions of their operating software or the FreeStar operating software (like XRF720, a Colorado statewide reflector I like to connect to). Thanks to Adrian Fewster, VK4TUX, a helpful member of the Pi-Star Users Support Group, for originally coming up with this solution, which was subsequently incorporated into a Pi-Star upgrade.

12d) A base station and a mobile hotspot

Paired with a ZUMspot RPi UHF Hotspot board, Pi-Star is a great solution for a base station and a mobile hotspot.

ZUMspot, Pi-Star, DMR, in mobile mode

For more info, see:

12e) Worth supporting

Obviously, Andy and team are pouring a lot of energy, intelligence, and heart into creating Pi-Star, which they're giving away freely to digital hams. There's also a robust community of hams contributing to helping Pi-Star users via the Pi-Star Users Support Group. Per Andy:

And now to you dear reader, you are probably reading this because you already run Pi-Star, or you are about to start. Without you, this project wouldn't be where it is today, a shining beacon of what can be when a few like-minded people with similar interests are prepared to set monetary gain aside and just give away their work. You might not be a coder, you might not feel that you understand digital radio enough to give anything back, but that time will come. Enjoy the hobby, tell your friends what we got right with Pi-Star, and tell us when it does something it shouldn't.

TX some support!

If you end up appreciating Pi-Star as much as I do, consider supporting this work by contributing to the Pi-Star Users Support Group or by sending some monetary support their way toward the running costs of the server / build / test environments that they're using to make Pi-Star what it is. For more info, see Pi-Star – How can I help?.

Thanks for creating a really nice solution, Andy and team!

Notes »

⇄ Give me a holler!

You've got mail
ke0fhs at toshen.com