For their next Zoom meeting, the Atlanta Radio Club is having a “show us your shack” session so I thought I would use this time to share mine along with some detail on what’s there. For ease I have numbered many items and linked to more information where I can.
Let’s start from the top left: (1) Photo & Certificate: The photo is the cover of QST Magazine from August 2011 and a copy below of the short article and a photo from the Coca-Cola 125th Special Event Station the Atlanta Radio Club put on. The certificate is my Volunteer Examiner certification, it lets me be part of a testing team for new ham radio licenses issued by the FCC.
(2) Part of my microphone collection, along with a couple of other odds and ends. (2a) is the Heil Sound Classic Microphone which I added the call letters to in this YouTube video. (2b) is the Shure 55SH which inspired my N4BFR Vision logo.
(3) is the brass and wooden Watch Stand I made back in July. Next to it is an old Western Union sounder that would summon someone to your shop to pick up a telegram.
(4a & b) are JBL Control 2P speakers. I’ve had these 2 years now and I really recommend them, they sound great. Not shown, but for PC audio I use the Schiit Modi 3 DAC and I can really tell the difference a better Digital to Audio converter makes.
(5) is my lighted call-sign sign I bought to celebrate 10+ years in Amateur Radio. It’s made by Gifts4Hams.com which does a lot of very nice laser engraving. I have a QSL card chest from them as well. Under the sign is the Heath GC-1000 “Most Accurate Clock” which was part of my 24 Hours of Clocks YouTube experiment. Between that and the speaker is a Ducati desk mic I found at an estate sale.
(6) is more of a memory wall than anything else. The panels are by Wall Control and I liked them so much I ended up redoing my workbench with them as well.
(7) is one of Ham Radio stations I have in the room. When I designed this 8+ years ago this was set up to be a contest shack that we could run Morse and Voice in at the same time and we even worked a third station in for digital. This station is named “Edison”. The radio is an Elecraft K3 with a Panadapter. This station uses a Raspberry Pi 4 4GB for logging, digital modes, and just about anything I need.
(8) is a Tivo Mini, I can repurpose one of the Edison monitors for TV and run the audio through the JBL speakers for watching news and weather.
(9) are antenna controllers. On top is the SteppIR SDA2000 Controller for my SteppIR Urban Beam antenna, and below it is a Yaesu G450A rotor controller that I put an add-on board in for control from my PC.
(10) Are the Wright and Sputnik monitors where I monitor things of interest. Wright is on the top and I think of these two as a dashboard, it shows Local and UTC time, temperature inside and at KPDK, my ADSB receiver so I can track planes in the neighborhood and I manually keep antenna configuration displayed. On the bottom is Sputnik which tracks the International Space Station via a program called GPredict. Since my 70 Amp Astron 12 Volt power supply is not where I can see it, I use a Raspberry Pi Zero W as a Web Cam to see the status dynamically. I also keep a text log of states I need to complete my ARRL Worked All States awards and the web interface for my PiStar hotspot which gives me DMR access. Wright and Sputnik are powered by separate Raspberry Pi 3’s in Kiosk mode.
(11) My handhelds for DStar and DMR. Currently using a Kenwood D74A for DStar and APRS, and a used Motorola XPR6550 for DMR.
(12) starts the big “Tesla” work station where I spend a lot of my time. I have gone through different monitors but I expect these LG 27UD68P 4K HDR monitors to last me a while. Not shown but they are powered by an ASUS ROG Gaming PC I picked up a few years ago.
(13) is my Flex Radio 6500 HF Radio. This is a terrific radio, a big step up over the Elecraft K3 (which is a wonderful radio in it’s own right). 4 tuners, covers DC through 6 meters, plenty of expandability and integration. I also have the (13a) Flex Radio Maestro for listening and operating around the house or the neighborhood via Wifi. I am really glad I got on this system early on. I am thinking of upgrading to a 6700 for even a few more features, but I haven’t pulled the trigger yet.
(14) For VHF / UHF and D-Star I have the ICOM ID-5100 radio, which I liked so much I bought 2. One for the shack and one for the car so I don’t have to learn 2 different radios and I can share programming in-between them with SD Memory cards.
(15) Mixes 6 different audio sources including the radios and PC plus and Alexa and the TV. It’s the Behringer Eurorack Pro and it’s just what I need. I tried a fancier PC controlled mixer for about 6 months and for simplicity of being able to reach up and turn the knobs or mute something quickly, it can’t be beat. By the way, the Flex and Mixer are mounted in 2 wooden stands I custom made. Just below the mixer is a 7-Segment clock I made with a Raspberry Pi (are you getting a theme here?). Under that is an eInk display I use to track when future SpaceX launches are. Yes that is powered by a Pi as well.
I think that wraps it up. I would love to get questions on any of this or have discussions or even give support. Check me out on Social Media at https://www.facebook.com/N4BFRVision or https://twitter.com/N4BFR_vision.
Disclosure: All of the items above were chosen by me and comments are my personal opinion, I received no special discounts or materials. Some of the links above go to Amazon.com. If you purchase through those links I may receive a commission.
Had one of those weird things that occurs where one of my Pi’s had a corrupted password. Ugh! So, a quick Google Search for “Forgot Password on a Pi” popped the answer right to the top!
I’ve used Github quite a bit to source either partial or complete code for many of my Raspberry Pi projects. Github is a code sharing platform that makes it easy to get and keep software updated on devices like Raspberry Pi’s.
When I first created my Pi-clocks I made one with an LCD display that showed local and UTC time. You can see it in this leap second video from 2015.
Five years later that clock has been long out of commission as I do upgrades and other clock projects, but I missed having the LCD clock. So as I worked on the Chrony project I decided to rebuild one as an LCD clock. This has taken me deep into the world of Python and I am sure when someone looks at it there will be comments like “it’s clunky” or “why didn’t you do it this way.” All valid I am sure, but I made it work and even built in some error handling so I feel pretty good for a start.
Starting with the basic Chrony build, the LCD screen gets added from Adafruit. In the last 5 years they have evolved to a version of python called “Circuit Python” to drive many of their devices, so I went with this as the base code to drive the display.
sudo pip3 install adafruit-circuitpython-charlcd
As part of the new design, instead of using this to be a UTC clock (i have plenty of those), I wanted the clock to display variables. The first one I chose was to display the Stratum of the clock. This assures me if I see “Stratum: 1” that I am getting the time from the satellite data. I get that by running a CRON job to output that data to a text file, then I read that from the text file with the Python program. The CRON line that runs every 2 minutes is:
The second variable is the current IP address of the clock. Always helpful if you want to do some quick editing. That’s a standard python variable, so no additional libraries were needed.
The third variable is the current GPS position. To grab that data I use the gps3 python client to pick up the location of the clock. While this generally won’t change, I might take this on the road in the future to a ham fest or Field Day. There are a bunch of variables I could have pulled, but Lat/Long is just what I needed.
sudo pip3 install gps3
The last variable is a vanity card. I created a file called “msg4.txt” that can be used to display any message in the last 14 second window. Maybe in the future I might make it a YouTube follower counter.
Time to share what I am watching, hope it inspires you to watch something new.
Simone Giertz The queen of shitty robots is awesome. In her most recent video she makes a “proud parent” machine and uses a bunch of dirty words. Which is awesome in so many ways.
Fran Lab Fran has a very similar taste in projects to me. I found a Heathkit GC1005 clock to refurbish at the Orlando Hamcation, back before we had to social distance. Come to find out Fran had recently refurbished one which really helped me. Mine is still in progress but check out Fran’s here.
Mythbusters Jr. I didn’t really jump into this because I was put off by the non-Adam version that they tried to reboot through a reality show. Lots of fun builds here. I was really hyped to find a Breaking Bad episode.
Whose Line Is It Anyway Cocktail Hour Every Monday the cast from Whose Line gets together to preview the show and basically talk s#!t. It’s fun to watch with your feet up. Here’s the video from Monday 4/20.
I have a YouTube Channel too I talk about clocks, ham radio and other nerdy stuff. I just added a video of the Chronometer Raspberry Pi clock I built this week. As they say, please Like, Comment and Subscribe!
I came across a Reddit post by u/rothman857 that made a Raspberry Pi Clock he calls Chronometer with a really unique view of time. They bring in a bunch of different formats like Solar Time and Metric Time. Since I like time and I’m interested in those views, I thought this would be a fun build.
As a net time to make this, it only took me a few hours to get going. I recommend using the screen he specified which is a quick Amazon order. I tried this with another screen I had and it just didn’t work out. Most of that time was learning two functions I haven’t explored before, changing the video settings and console fonts. A few notes on those items if you are building.
Setting Pi Screen Resolution The display uses a unique setting of 480×320 which I couldn’t seem to drive with a default setup. So using the Raspberry Pi Documentation, I made a custom configuration.
sudo nano /boot/config.txt
I commented out all the existing video settings and added these to the end, which worked for me:
Setting a fixed console font My first try was to use this article at stevencombs.com which in hindsight may have worked if I had specified the Latin and VGA font I wanted, but when I went with the instructions as written it didn’t take the way I wanted. As a follow-up I experimented with several of the suggestions in this StackExchange thread. The “.profile” change didn’t work for me, so I tried Eric Woodward’s suggestion of changing in console-setup.
sudo nano /etc/default/console-setup
#custom for Chronometer
CODESET="Lat15"
FONTFACE="VGA"
FONTSIZE="8x14"
That’s it. Install and run the chronometer.py program and run it. You’re good to go.
Final thoughts. I like this kind of project because I learn more about the inner workings of Pi and I feel like it’s something I can go in and tweak later. For instance, I would like to make one of the time displays be similar to the Union Square Metronome. I will share progress if I get there on my project list. Obligatory video below.
I’ve been a fan of having a Stratum 1 time server on my LAN ever since I first read GM8ARV’s page. One of my first ones can be seen in the background on my YouTube video about Leap Second tracking.
I found an article last week where Facebook has been doing analysis on time server software and has come to the recommendation that the Chrony software is better than NTP for performance. I’ve actually been using NTPSEC for a couple of years now, but I am open to change so I’m setting up a Chrony server.
I have been heavily into the YouTube thing over the last few months, and I have some old and new favorites. Enjoy this week’s nerd-heavy list of things to watch.
SpaceX
Want to watch cool rocket stuff regularly? SpaceX is about to become the first American company to send american Astronauts to the ISS in over 10 years. Plus their launching an internet satellite constellation and working on this little “trip to Mars” thing.
The Modern Rogue
This has a “Mythbusters meets Magic and other Scams” vibe as two “Professional Idiots” do things like making homemade thermite to cook steaks, play with RFID, discuss everyday carry items and even a little ham radio.
The Lockpicking Lawyer
The Lockpicking Lawyer has an artists touch. His videos are super basic, pretty much a camera and a lock, but he gives you a lot of different insights on build quality and how some things are safer than others (avoid TSA locks). Great way to get under the mechanics of how these things work in our daily lives.
Techmoan
I think he’s most well known for his camera reviews, but I really get into all the retro-tech items that he covers. This particular video shows a German 8-track style record player, but he’s covered old computers, hi-fi and phones as well.
TWIT
I feel like Leo Laporte is my older “brother from another mother.” He’s successfully put together a podcast network, TWIT, that covers tech news, photography, internet security, Apple, Android and more every week. I greatly enjoy his Tech Guy radio show podcasts every Saturday and Sunday.
And a plug for me
Part photography, part ham radio and Raspberry Pi tech, part cat videos, Space stuff, just what interests me that day. I’m having fun sharing and making new stuff, so please subscribe just to see what the hell I am going to do next.
Two weeks ago I published a blog post detailing the creation of a Raspberry Pi based APRS tracker and Pi-Star hot spot. I’ve made a couple of enhancements since then and I thought I would share an update.
Going with a dedicated 4G connection
I had planned on using my mobile phone as my WiFi connection for getting packets into and out of the unit. During my testing, getting in and out of the car and having the Pi reconnect to the Wifi hotspot was not as seamless as I would like. So I added a 4G connection with a Netgear LB2120 4G Modem.
“Jim, why didn’t you get a Wifi modem?”
– Me to myself.
Why didn’t I? Well, I did want something I could directly connect to, and I though the device I purchased had wifi. But it didn’t so I made the most of it. I knew I wanted something with Ethernet so in the future this could go on my LAN so all is not lost.
Pi as a Wifi Hotspot
Another part of having a 4G connection was to have diversity of networks as I travel. I had a breakdown on the Blue Ridge Parkway last year and my Verizon phone had marginal coverage when I really needed it. I put this on the TMobile network, so I could make a quick Wifi call if I had to in a pinch.
Since the Netgear does not have Wifi, I added Wifi Hotspot functionality to the Raspberry Pi. It’s not what I would use every day for a Wireless Router, but it will work to do some configuration or make a quick call. I bounced around to different instructions as I customized this, so I don’t have one clear place to point to for a “how to” but you can start at RaspberryPi.org.
Which Digital? Why not D-Star and DMR?
I did a lot of programming of my radios to get the ready with the latest D-Star reflectors, and believe me http://www.dstarinfo.com/ is my go-to site. While that is ready to rock, I thought I might want some DMR along as well. Instead of turning them both on at the same time, I configured 2 SD cards. One will boot up with D-Star configured on the Pi-Star, the other with DMR.
I am hopeful that this will make it easy to switch on the fly at the next stop I make without too many hassles.
And a Big Battery
While I was wandering around the half-empty shelves of my local Fry’s Electronics I found a nice deal on a 20K mAh battery. I also dug in to Amazon to find a 5V to 12V upconverter for the Netgear device.
The two devices combined draw less than 1 amp, so I’ve had this running for >12 hours with battery to spare. I intentionally did not mount the battery on the board to make it hot -ish- swap-able if needed.
I don’t expect to polish much more on this before I depart in 10 days but always open to suggestions on changes. Connect with me at the links via the site.
In the next few weeks I have planned a 5,000 mile road trip across the American South and West and I decided that I wanted a tool that would allow me to hop on DStar from wherever I am, since my car has an ICOM ID-5100 already in it. In general, that is easy because there are several DV Dongle and the like out there. In addition, since I will be driving long stretches by myself I thought it would be great for my friends to be able to click a link and check my location. That’s where the APRS Tracker comes in. This blog post documents the custom, single Pi solution I’ve built by merging Pi-Star and Direwolf onto one Raspberry Pi 3B.
Base Hardware and Software
Pi-Star Zum Radio Hotspot I have owned a Zum-Spot for about a year and I am familiar with the configuration so I picked this as the base of my build. It will allow me to do D-STAR and if I wanted to take a DMR radio, it would give me that option too (and a couple of others). So I picked up a new one with a cute little OLED screen and had it running pretty quickly on it’s own. It comes with the Pi-Zero and SD card, making it fairly plug and play. In the US you can get these at Ham Radio Outlet for about $130.
Direwolf Rasperry Pi APRS Tracker with USB GPS Receiver. I’ve been glad to have an IGate at my home running Direwolf for years, so I am very familiar on the general setup and excellent documentation that WB2OSZ puts together. The tracker was new to me though, and it was pretty straight forward to set up with the specific instructions provided.
Running Both on Separate Pi’s
As I mentioned, the ZumSpot / Pi-Star / Pi Zero unit was easy to get online and easy to pair with my phone to make it mobile. Connected to DMR and made several QSO’s in addition to pretty consistent testing on Parrot.
Similarly, I had a Pi Zero W on hand and picked up a $19 GPS puck on Amazon. Ran this in the car for a few days, with the puck just sitting on the passenger seat of the car and it seemed to track me very well. When paired to my phone’s hotspot it simply sent tracking points into the APRS network as I drove around doing errands. The Smart Beaconing feature worked well too. Sample Below.
Level of complexity = clunky.
For hardware, the decisions were easy. I chose a Pi3B+ because I had one on hand, I wanted extra power and additional USB ports that the Zero didn’t offer. The ZumSpot moved over from the Zero and on to the GPIO slot and the USB dongle was easy to connect up. The case required 2 little mods for the antenna and the ZumSpot, I cover that in the video at the end.
The software side of the build is where the real complexity comes in and frankly, it felt clunky overall. I needed to start with one of the two options, Pi-Star or Direwolf as the base, and add the other. I chose the Pi-Star build as the base, not because I thought it was the best option, but I didn’t see an easy way to add that to the Direwolf software. The level of difficulty is high here, because the builds of Pi-Star software for Raspberry Pi (I used Pi-Star Dev Build 4.1.0 as my base) are very very scaled down and a lot of the “basic” pi functionality is removed. I get it, bandwidth costs money and why include something you don’t need, but it made the build more challenging. So while I was able to quickly set up Direwolf on a basic Buster build, the activity of restoring and de-customizing the Pi-Star build to add modules like GPSD required most of the additional work, which I will noted below.
Starting the install process – Hardware and Base Build
Move the ZumSpot from a Pi Zero to a Pi-3B+. I had the spare and I wanted the extra USB ports for the project.
Download the latest beta version from the Pi-Star website: https://www.pistar.uk/downloads/ I used the January 20, 2020 Beta which is based on the Buster version of Raspberry Pi software.
Do the voodoo you need to do to put the .img file on a MicroSD card. Plenty of tutorials online for that so I won’t go into it.
Boot the card to the Pi and discover the IP address. I am a command line guy, so I SSH’d into the Pi and did the following:
Change from the default password of “raspberry” by using the passwd command
Add IPv6 to the Pi-Star: open /etc/modules for editing: sudo nano /etc/modules and add ipv6 to the end. But I don’t use IPv6 you say. It’s a dependency for using the GPSD module that get’s installed in the next few steps.
Reboot
Next – Install the Direwolf tracker software
I used the Direwolf Git Hub Docs, specifically the Raspberry Pi APRS Tracker document to guide me.
Step 1: Get the system code for GPS installed.
sudo apt-get install gpsd If you get any errors, go back and make sure you did the IPv6 step above.
sudo apt-get install gpsd-clients python-gps
sudo apt-get install libgps-dev
Step 2: Setting up the GPS software I love the little GPS dongles from Adafruit and others and I regularly used them on Stratum 1 Clocks that I build, but I chose a USB version for two reasons. 1) Hard to get at the GPIO pins with the Zum Spot Hat using it, and 2) I wanted something a little more hardened for the car. So, assuming you go my way:
cat /dev/ttyACM0 will show you if the GPS is sending data into the system
Reboot
cgps -s should show you the position data from your GPS. Don’t worry if this takes 15-20 minutes the first time. It needs to download some software from the satellites first.
The Direwolf documentation says to do some testing with the GPSD daemon here. I didn’t find the need to do that. Your mileage may vary.
Here’s another one of those changes you need to make because of the way Pi-Star is setup. Part of the disk is mounted as read only, so if you try to make changes to the GPSD config file without this step, you get errors. sudo mount -o remount,rw /
Now, edit the GPSD config file so it has at least this info (some may already exist) sudo nano /etc/default/gpsd
Exit and then type sudo systemctl restart gpsd to update the system with the changed config.
While we have the system set to Read/Write, we need to re-enable the on-board sound card which is disabled in the Pi-Star Beta build. Enter sudo nano /boot/config.txt. Scroll down to the section # Enable audio and un-comment the line dtparam=audio=on by removing the #. It should look like this when you are done. Exit and save the file and reboot.
Step 3: (Optional!) Getting GPS time I like having the onboard NTP process being fed from the GPS since the satellites have super accurate time. This configuration is similar to the lines from from the Direwolf Documentation, but I have found that the SatSignal.eu recommendations for ntp.conf have served me well. My GPS device does not feed PPS signals, but I left it in should someone need it.
Edit ntp.conf with sudo nano /etc/ntp.conf Add the following lines near the list of servers
server 127.127.22.0 minpoll 4 maxpoll 4 fudge 127.127.22.0 refid PPS
Let’s tell the NTP server to restart and pick up the new config file: sudo /etc/init.d/ntp restart
Now, give it a minute or so and check ntpq -p and you will see something like this:
I stopped and made a backup of my MicroSD card here. Not a required step, but if I break something in the next few steps, I don’t want to go all the way back to start.
Step 4: Now we actually get to install Direwolf! So the Raspberry PI APRS Tracker instructions we have been following for Direwolf assume you already have the core software installed. We don’t. So let’s hop over to the Direwolf Doc files again and chose the Raspberry Pi APRS instructions. Or just enter the code below if you trust me and don’t need the docs.
We’re picking up in that document at Step 2 in the docs because we’ve completed some of the pre-work. (August 2017 version, page 11) Let’s get some more dependencies! sudo apt-get install libasound2-dev libudev-dev
Finally we get to download the actual program! cd ~ (this puts you back in your home directory) git clone https://www.github.com/wb2osz/direwolf cd direwolf
OK, we’re done with those instructions and back to step 5 of the Tracker document. Let’s build the software:
make clean
make This will take a few minutes. Make sure it ends clean. If you see an error for GPSD go back!
sudo make install You don’t need to run make install-conf when this is done as the prompt says, we’ll take care of that next. If you did, don’t worry, it doesn’t hurt anything.
All of the customization for Direwolf comes in the config file, so we’ll make one. Major credit to WB2OSZ for his extremely well documented configs. They have always made things super easy for me. However, there are many many items we don’t need for this, so I reduced it to the basics. cd .. nano direwolf.conf (you don’t need sudo in your home directory) and enter the code below.
So let’s breakdown what all that means because you will need to make some changes for your situation
#N4BFR Modified - Minimal Config File This is a comment since it starts with #
ADEVICE and ACHANNELS This is a placebo command that points to a fake audio device, it goes back to the fact that Direwolf has its roots as a digipeater. If you were going to also send packets to RF this would be important, but not in this application. So don’t change this.
MYCALL UR1CALL-## This is where you tell the APRS system the call sign or name of your tracker and SSID. Replace UR1CALL with the ham radio call sign you will use and -## with your SSID. Info on choosing an SSID number is here.
GPSD this tells Direwolf to get position data from GPSD
TBEACON EVERY=4 symbol="car" comment="My Tracker" SENDTO=IG This is a key line. TBEACON tells Direwolf to use it’s tracker functionality to send a beacon containing the GPS Location. EVERY=4 sets the interval to beacon in minutes. The symbol=”car” sets your icon on the APRS maps. The comment field can say what you want. Then SENDTO=IG tells it to send the packet to the Internet Gateway (IG). There are other options for this packet, but these are the ones I chose. Check the Direwolf documentation around TBEACON and PBEACON for more info.
SMARTBEACONING ... this is how you can adjust the frequency of how often a beacon is sent to the gateway.
MODEM 1200 is another legacy code.
IGSERVER... The server set is the one for North America. Set yours locally.
IGLOGIN... you need one. Find out more on the Internet.
IGTXLIMIT... sets the top end of 6 beacons in 10 minutes so you don’t hog the gateway.
When you get it the way you want it, close and save.
Step 5 – Testing Direwolf You should still be in the Direwolf directory but if not type cd~/direwolf to get there. We’re ready to test with this command direwolf -d t This will start the tracker with position debugging information. If successful, it will look something like this on your pi screen (location obscured).
Pat yourself on the back. Then, shut down the Pi and make a backup. Call your elmer and tell him the good news while you wait for the backup to finish.
Now, what about that Pi-Star thing?
The good news is that with all the functionality I needed to add back in to the Pi so Direwolf could run didn’t seem to clobber anything important for the Pi-Star side. Let’s go through the default set-up method for Pi-Star just to be sure.
Open a web browser and go to the Pi-Star home page. (For me it was http://10.0.1.xx, your network may vary). Because I am using a Pi3 with Ethernet, I just use the same address I was using to SSH into the device. The Base Pi-Star build also sets up it’s own Wifi hotspot. Check the Pi-Star site for more info if needed.
When I opened up the page for the first time it kicked-off a configuration script and then sent me to the configuration page. When prompted for a password it wanted the default password (raspberry), not the one we changed to earlier. You can reset it at the bottom of the Configuration page.
I won’t detail all the Pi-Star configuration steps because there are so many. I will throw in a couple of recommendations:
What frequency to use? I have picked from the list of Simplex Cross-band frequencies on the Southeastern Repeater Association (list). The big thing here is to avoid interference with repeaters or satellite activity.
Change your host name from the default. Tech people I trust have told me there’s a risk here, so why not change it.
DMR: Most of my friends in the Atlanta area find DMR Master 3002 to function well if you are choosing one in the Southeast US
You will go through a couple of rounds of configuration as you progress through the web tool and it pulls in things like an updated list of ZumSpot style modems.
I used the tool to reset the password for the admin page to the same one I was using for SSH for consistency.
The setup seemed to go normally. Here’s a view of part of my configuration page.
And here’ a view of the dashboard:
One last set-up item, Start the Tracker on Boot
In section 6 of the current Direwolf Documentation for the Raspberry Pi, (Currently Raspberry-Pi-APRS.pdf) there are instructions on how to enable automatic startup. WB2OSZ includes a nice script, dw-start.sh that can be modified to handle this. Here’s how I do it.
While in the direwolf directory, we’ll copy the stock start-up script to the mail home directory (/home/pi-star) with the command cp dw-start.sh ~/ This will keep a copy of the original file in case you want it in the future.
Change back into your home directory with cd ~ and then open the file for editing with nano dw-start.sh. Here’s are the changes I made:
RUNMODE=CLI This was auto, but since I know I will only be using this as a client, I set this to be the default.
DIREWOLF="direwolf" I didn’t need to change this.
Start up command: I chose #1 because we are not running with an SDR attached, so DWCMD="$DIREWOLF" Because we’re not really running an audio channel, I didn’t see the need to print audio stats so I removed that option.
You shouldn’t need to change anything below this. Save the file and close the editor.
Test it out with the command ./dw-start.sh. You should see this after about 30 seconds:
Your Direwolf APRS Tracker is now running in the background. To see the program in action use the command: screen -D -r "direwolf"
You can watch this as long as you like, but if you would like to return it to running in the background type Ctrl-a and then the letter “d” to put it back in the background. I found more on the Screen command on the RasPi.TV site.
Last step before the finish line. We have a script, it works and not only will it start the Tracker, it will monitor it and restart it as needed. All we need to do is tell the Pi to run the script. I am using the the crontab program that handles scheduling for things like this on the Pi. In your home directory type crontab -e. If this is the first time you have run crontab on this machine you will be prompted to choose an editor. I use nano, but use what you like.
Scroll down to a blank line and type this: * * * * * /home/pi-star/dw-start.sh >/dev/null 2>&1 This will run once per minute to check that your Tracker is running. If it isn’t the script will restart it. If you’re following along with the instructions on the Direwolf site note the path you want to use in this case is /home/pi-star/ vs /home/pi/ because of the way pi-star is setup. When successful it should say crontab: installing new crontab with no other messages.
Congratulations!
You are finished! Before you go set this up in the truck or wherever else you might want to put it, shutdown your Pi and make a backup of the SD card. Now if you want to experiment more, you can always roll back to a good working version.
I’m not going to get into how to connect it in your mobile unit since there are too many variables. I am currently powering it with an Anker power bank and using my phone’s Wifi hotspot. If you want a look at the finished product, watch my YouTube video below.
Expected Questions
I’m avoiding calling this “Frequently Asked Questions” but it could become that later. Some things I thought of that you may be wondering about.
Q: Are you going to publish an IMG file? A: I don’t plan to. I am making this for a specific use, and I don’t expect to have time to track updates against multiple authors in the future.
Q: You said you were going to use this for D-Star but it’s configured for DMR in your sample, is that right? A: Yes, this was just a quicker way to check configuration because I have a known-good Pi-Star with DMR already set up.
Q: Should I run “Update” on this? A: I made sure I started with the most recent beta of PiStar and the latest version of Direwolf. I did run sudo apt-get update prior to any installation, and I ran the update function in the Pi-Star dashboard without issue. Backup first and see what happens, but I generally recommend keeping things updated regularly.
Q: Would this work on a different Pi? (Zero, 4, etc) A: Probably. Give it a try!
Q: Can I modify this by doing….? A: Go crazy! This is just one idea. I hope it inspires someone. The CPU load is very low, less than 2% even when on DMR, so there are resources available.
Q: How big of a SD card did you use? A: 16 GB. I prefer 8 GB but they are harder to come by and right now 16 seems to be the sweet spot of price and availability.
Q: Can you integrate administration into the Pi-Star Expert Configuration section? A: I was able to use the SSH tool to make basic changes to the config file and kick off the program during my testing. I’m not planning on any other integration at this time.
Q: How do I contact you because I have a problem with… A: I can’t give any support for this, but there are great tools like Google and Bing that you can put the error into and probably figure out an answer.
Q: How can I email you and share a success story or a fun anecdote? A: Best way to reach me is use my call sign @arrl.net or one of the links at the bottom of the page.