|
|
Subscribe / Log in / New account

FOSS for amateur radio

September 7, 2021

This article was contributed by Sam Sloniker

Amateur ("ham") radio operators have been experimenting with ways to use computers in their hobby since PCs became widely available—perhaps even before then. While many people picture hams either talking into a microphone or tapping a telegraph key, many hams now type on a keyboard or even click buttons on a computer screen to make contacts. Even hams who still prefer to talk or use Morse code may still use computers for some things, such as logging contacts or predicting radio conditions. While most hams use Windows, there is no shortage of ham radio software for Linux.

Utilities

HamClock, as its name implies, has a primary function as a clock, but it has several other features as well. It shows a world map, and the user can click anywhere on the map to see the current time and weather conditions at that location. It also shows radio-propagation predictions, which indicate the probability that a ham's signals will be received at any particular location on Earth. These predictions are available in numerical form and as map overlays. In addition to propagation predictions, HamClock provides graphs and images indicating solar activity such as sunspots, which strongly affect radio propagation.

[HamClock]

Most hams keep logs of all contacts they have made over the radio; this was (and still may be) required by law in some countries. Historically, hams have kept logs on paper, but many now use electronic logging programs. There are several Linux-based, FOSS logging programs, such as FLLog (documentation/download) and Xlog. One logging-related program that is designed to work with other logging software is TQSL, which cryptographically signs confirmations of contacts and sends them to the Logbook of the World (LoTW). The American Radio Relay League (ARRL) uses LoTW verification to issue awards for certain achievements, such as contacting 100 countries or all 50 US states, which previously required submitting postcards (called QSL cards) received from the person contacted from each country or state. Collecting QSL cards is still popular, and they can still be used for awards, as LoTW is completely optional.

Communication tools

Traditionally, in order to communicate, hams have used either continuous wave (CW) to send Morse code or any of a variety of "phone" (voice) modes. The different phone modes all allow two or more radio operators to talk to each other, but they convert audio signals to radio waves in different ways. However, many hams now use digital modes. One of the main benefits of these modes is that they can be decoded from weak signals, allowing more reliable long-range communication compared to CW or phone.

FT8 is the most popular digital mode for ham radio. It is used for structured contacts, typically exchanging call signs, locations, and signal strength reports. FT8 sends short, encoded messages such as "CQ KJ7RRV CN72". In that message, CQ means "calling all stations", KJ7RRV is my call sign, and CN72 is my location on the southern Oregon coast, encoded using the Maidenhead Locator System.

FT8 is much slower than most other digital modes—sending the message above takes about 13 seconds—but its slow speed allows it to be extremely reliable, even under poor radio conditions. Radio propagation conditions over the last few years have been relatively poor (although they are currently improving) due to a minimum in the 11-year solar cycle. FT8 has been usable under all but the worst conditions, though it is certainly easier to make contacts when conditions are good. WSJT-X, the original and most popular program for FT8, is FOSS and is available for Linux.

Fldigi is another program used for digital modes. Unlike FT8, most of the modes in fldigi can transfer free-form text. The most popular mode included, PSK31, is designed for conversational contacts over long distances. Some other modes are primarily used for transferring files, which is supported well by fldigi. Flamp is a separate program that connects to fldigi; it is used to transfer files over radio by encoding them into a plain-text format that can be decoded by flamp on another computer. If an error occurs in transmission, flamp can detect the error and determine which portion of the file it is in, so the sender can resend only the portion that failed.

Flmsg is a program that allows email-like forms to be used with fldigi and (optionally) flamp. A form allows structured spreadsheet-like data to be transferred efficiently, by avoiding the need to transmit common information with every message. Many forms are intended for disaster response; for example, there is an "ICS-216 MEDICAL PLAN" form which is specifically designed for sending information about available ambulances, hospitals, and other emergency medical care resources. Some other forms, such as "ICS-213 GENERAL MESSAGE," mostly contain free-form text and are intended for use when no more-specific form is available.

Fldigi, flamp, and flmsg (with its forms), along with a few related programs, are all available at W1HKJ's web site or from SourceForge.

Radio modems

WSJT-X and fldigi use modems that are completely software-based; they use a computer's sound card to transmit and receive audio signals. These signals are sent and received by a radio using a special device called a radio-sound-card interface. There are schematics available online for these interfaces, although most hams purchase a pre-built one. The SignaLink USB is a popular model that also has a built-in USB sound card, allowing the user to continue using the computer's internal sound card for other purposes. Although the manufacturer does not officially support Linux, many people have successfully used the device without needing to install extra drivers.

Another digital mode that is commonly used is packet radio. Most packet networks use AX.25, which is a modified version of X.25 that is designed to be used over ham radio. Linux works well for packet radio, because the kernel's networking stack has native support for AX.25. Although external hardware modems can be used, it is now common to use a computer sound card for packet radio. Dire Wolf, a FOSS packet-radio program for Linux, includes a sound-card modem, as well as some routing features that are not provided by the kernel.

Winlink, which is a radio-based email system, is another popular digital radio system. Pat is a Linux-compatible, FOSS Winlink client with a web-based GUI. The sound-card modem for Amateur Radio Digital Open Protocol (ARDOP), which is one of the modes for connecting to Winlink, is available for Linux. Winlink can also be used (over shorter distances) with packet radio. There are other modes for Winlink, as well, but most of them are either deprecated or proprietary, and some are Windows-only.

FreeDV is a new digital mode with a different purpose than the ones previously mentioned, most of which transfer text in some form. FreeDV is a digital voice mode. It requires two sound cards; as the user speaks into a microphone connected to one, FreeDV uses an open codec called Codec 2 to compress the digital audio, then uses a sound-card modem on the second one to transmit the encoded audio signal over the radio. At the receiver, the same process runs in reverse. FreeDV, under many circumstances, allows more reliable communication than traditional analog phone modes. With analog voice, a weak signal can still be heard, but is difficult to understand. With digital voice, the signal is either clearly audible and intelligible, or it is not heard at all. This means that when a signal is neither strong nor weak, digital voice will usually be clearer and easier to understand.

One radio-related device that works with Linux is the RTL-SDR. This is a low-cost software-defined radio receiver, which can be used to receive most radio signals, including some AM broadcast stations, most ham radio signals, shortwave radio stations, marine and aviation communications, many police radios, and more. (Some digital signals can also be received, but most of those outside the ham bands are encrypted.) Some RTL-SDRs cost less than $15, but it is worth spending around $30-40 for a good-quality device. I recommend the ones available at RTL-SDR.com, because some others may not be able to receive AM broadcast, shortwave, and certain ham signals.

Becoming a ham

For many, getting a ham license is a good way to learn about and experiment with radio technology. At least in the US, any licensed ham can design their own digital mode and use it on the air, as long as it meets certain restrictions and is publicly documented. For others, becoming a ham is a way to help with disaster response. Organizations like the American Red Cross depend on ham radio for communication when internet and cellular infrastructure fails. Yet another reason is simply as a way to meet new people. While the possibility for this is somewhat limited with modes like FT8, which are more "computer-to-computer" than "person-to-person", many hams do publish their email addresses on sites such as QRZ.com, and most are happy to receive emails from people they have contacted on the air.

For those interested in getting a ham radio license, there are several resources available. The ARRL's Licensing, Education, and Training web page would be a good place to start if you live in the US. HamStudy.org is an excellent resource for both studying for the test and finding an exam session; it provides study guides for the US and Canadian tests, though its exam finder only lists US sessions. Finally, an Internet search for "ham radio club in [your city/town]" will most likely find a club's web site, which will probably either have contact information or more info on getting a license, or both.


Index entries for this article
GuestArticlesSloniker, Sam


to post comments

FOSS for amateur radio

Posted Sep 8, 2021 18:20 UTC (Wed) by willy (subscriber, #9762) [Link] (1 responses)

Another area where ham radio enthusiasts are important is helping organise outdoor events such as adventure races, ultramarathons, orienteering and rogaining. These events often go far into the wilderness where there is no permanent conventional radio connectivity. Hams provide updates from aid stations for those monitoring the progress of participants, and can call in medical aid if needed.

The hams get to practise their hobby while helping others practise theirs.

FOSS for amateur radio

Posted Sep 8, 2021 20:32 UTC (Wed) by KJ7RRV (subscriber, #153595) [Link]

Yes, that is definitely another good use for ham radio!

FOSS for amateur radio

Posted Sep 9, 2021 8:46 UTC (Thu) by metan (subscriber, #74107) [Link] (1 responses)

There are also other very interesting FOSS projects out there for instance the firmware for NanoVNA as well as TinySA are both released under apache license and both are build on the top of ChibiOS. These two device already made a small revolution in the radio amateur world since everyone can have quite capable vector analyzer and spectrum analyzer for a very cheap price. Before these two appeared you either couldn't easily measure or you had to ask someone who had the equipment. Now you can carry a vector analyzer in your pocket and even measure antenna out in the field.

FOSS for amateur radio

Posted Sep 9, 2021 15:44 UTC (Thu) by KJ7RRV (subscriber, #153595) [Link]

Yes, those are definitely good examples of FOSS go ham radio! I have a NanoVNA and it works very well.

FOSS for amateur radio

Posted Sep 9, 2021 15:13 UTC (Thu) by downey (subscriber, #117086) [Link] (1 responses)

It's not software, but a related good resource I've found for tracking new and existing software and related FOSS development in amateur radio is the "Linux in the Ham Shack" podcast and website: https://lhspodcast.info/

FOSS for amateur radio

Posted Sep 9, 2021 15:46 UTC (Thu) by KJ7RRV (subscriber, #153595) [Link]

Thank you for that link! It does look like a good resource.

FOSS for amateur radio

Posted Sep 9, 2021 15:45 UTC (Thu) by jebba (guest, #4439) [Link] (1 responses)

There's also the somewhat related, 100% awesome project, SatNOGS. Lots of hams involved with that, afaict:

https://satnogs.org/

FOSS for amateur radio

Posted Sep 9, 2021 15:48 UTC (Thu) by KJ7RRV (subscriber, #153595) [Link]

Wow, that looks really interesting! I'll definitely do some research on that.

FOSS for amateur radio

Posted Sep 10, 2021 0:06 UTC (Fri) by pabs (subscriber, #43278) [Link] (10 responses)

Much of the software discussed is available in Debian's ham radio blend for easy installation:

https://www.debian.org/blends/hamradio/
https://wiki.debian.org/DebianHams

FOSS for amateur radio

Posted Sep 10, 2021 5:27 UTC (Fri) by KJ7RRV (subscriber, #153595) [Link] (9 responses)

That looks interesting! I run Arch on my laptop, but I might try that in a VM.

FOSS for amateur radio

Posted Sep 10, 2021 6:42 UTC (Fri) by pabs (subscriber, #43278) [Link] (1 responses)

Note that the live images are very outdated, so you probably want a regular Debian install and then install hamradio-all or one of hamradio-* with apt.

FOSS for amateur radio

Posted Sep 10, 2021 17:07 UTC (Fri) by KJ7RRV (subscriber, #153595) [Link]

Okay, I'll do it that way.

FOSS for amateur radio

Posted Sep 10, 2021 23:39 UTC (Fri) by gerdesj (subscriber, #5446) [Link] (6 responses)

I took a quick look at the Debian lists and tried a few searches using yay -Ss. The AUR seems well populated with hamradio packages so why not stay local for now.

Failing that, whip the compiler out and install random stuff to /usr/local!

FOSS for amateur radio

Posted Sep 11, 2021 1:07 UTC (Sat) by KJ7RRV (subscriber, #153595) [Link] (5 responses)

I tried to install WSJT-X with paru, and it tried to recompile gcc.

FOSS for amateur radio

Posted Sep 11, 2021 3:21 UTC (Sat) by KJ7RRV (subscriber, #153595) [Link] (4 responses)

I did install Fldigi on it, but I couldn't find Flmsg or Flamp in any repos. I'll probably try to figure out how to add them to the AUR.

I might also try to write some kind of HamClock installer and put it in the AUR. (HamClock has its own update system, so I don't think directly adding it as a package would work.)

FOSS for amateur radio

Posted Sep 11, 2021 4:56 UTC (Sat) by pabs (subscriber, #43278) [Link] (3 responses)

Debian generally deals with internal updater systems by disabling them, so they don't stop packaging from being added.

HamClock has another weird thing according to Debian folks; you have to compile a new binary for each display resolution you want.

FOSS for amateur radio

Posted Sep 11, 2021 6:09 UTC (Sat) by KJ7RRV (subscriber, #153595) [Link] (1 responses)

I will probably get around the size issue by packaging each size separately. I'll probably make them all conflict with each other to prevent confusing situations with multiple HamClocks.

FOSS for amateur radio

Posted Sep 13, 2021 19:29 UTC (Mon) by KJ7RRV (subscriber, #153595) [Link]

HamClock is now in the AUR. The packages are hamclock, hamclock-big, hamclock-bigger, and hamclock-huge.

FOSS for amateur radio

Posted Sep 13, 2021 5:19 UTC (Mon) by LtWorf (subscriber, #124958) [Link]

Maybe the authors would accept patches to fix this insanity?

FOSS for amateur radio

Posted Sep 17, 2021 2:28 UTC (Fri) by N0NB (guest, #3407) [Link] (1 responses)

Not specifically mentioned but relied upon by many of the fine projects listed is Hamlib. Due to time constraints I have moved away from patch integration and such which has been ably taken over by Mike, W9MDB. I do handle releases and we just released Hamlib 4.3.1 earlier this week.

Truly, it's kind of hard to grasp that I've been with the project for over 20 years! The project itself was started by Frank Singleton, VK3FCS, in July 2000 and shortly thereafter Stephane Fillod, F8CFE, joined the project who did much development work in the early days. Hamlib is the result of many contributors around the globe. While not nearly to the scale of the Linux kernel, in fact there has been very little vendor support except for publicly available documentation (in fact many polite requests for additional information have been quietly ignored and in other cases have been outright refused while proprietary projects appear to receive such documentation), the collaborative ethos put in place by the kernel project has been a successful model for Hamlib, thanks to many hams willing to tinker with their radios.

Another project that scratches another itch of mine is Tlf, a contest logger. No, it is not at the level of N1MM, but it does boast some impressive capability that I learned a bit more about by recently editing its manual page. Tom, DL1JBE is the Tlf project lead. Work continues in an effort to allow Tlf to be used for more events--ham radio contest organizers are certainly inventive, especially state QSO parties! More users and more contributors are always welcome.

The email Linus sent just over 30 years ago may have seemed almost an afterthought at the time. Over the three decades since the shock wave it created continues to reverberate throughout the computing landscape. As important as the Linux kernel is technically, Linus also showed us the way toward collaborative development. The bazaar, indeed.

FOSS for amateur radio

Posted Sep 22, 2021 3:02 UTC (Wed) by KJ7RRV (subscriber, #153595) [Link]

Yes, Hamlib is definitely a good example!

Tlf looks interesting. I've been looking for a good Linux-based logger, so I'll probably try Tlf.

73 de KJ7RRV


Copyright © 2021, Eklektix, Inc.
Comments and public postings are copyrighted by their creators.
Linux is a registered trademark of Linus Torvalds