Data2G and Ragtime nativ with Raspberry Pi 5


In the world of amateur radio HF digital modes, there is a lot of exciting development happening off the beaten path: with Data2G (by Andrew Rodland, KC2G) and Ragtime (by Jeff Baitis, AG7EW), two modern, completely open-source tools are available that enable high-speed data transfer, group chat, file transfers, and even compressed voice messages over HF—without proprietary drivers or Windows emulation.

On my Raspberry Pi 5 iPad USB-C Gadget running Raspberry Pi OS Trixie (64-bit), both applications run natively on ARM64. The Raspberry Pi 5 easily provides more than enough processing power, allowing even Data2G’s demanding OFDM and LDPC signal processing to run smoothly with plenty of headroom to spare.

What Are Data2G and Ragtime?

Both programs work hand in hand using a modular client-server architecture:

  • Data2G (The Modem): Data2G is a modern open-source HF data modem capable of delivering up to 6,400 bits/s net throughput depending on bandwidth (2400 Hz or narrowband 500 Hz) and band conditions. It utilizes OFDM, QC-LDPC forward error correction, Hybrid-ARQ, and a small neural network for automatic rate adaptation (Intelligent Rate Shifting). Data2G provides both a VARA-compatible TNC interface (for clients like Pat Winlink) and extended KISS ports for group broadcasts.
  • Ragtime (The Chat & File Client): Ragtime is the dedicated graphical client for Data2G (and also supports standard KISS TNCs like Mercury). Beyond group broadcast chats and direct peer-to-peer QSOs, Ragtime supports file transfers with automatic repair rounds for missing blocks, progressive image transfers (JPEG 2000 / Cool-Chic), short compressed voice clips, and a world globe display (Globus) plotting worked stations.

1. Install Data2G (v0.6.1) for ARM64

For Data2G, the developer provides precompiled Linux ARM64 binaries directly on GitHub, eliminating the need to compile it from source. Create a ~/data2g directory on your Raspberry Pi 5, download the release archive (v0.6.1), and extract it:

mkdir -p ~/data2g && cd ~/data2g
wget https://github.com/arodland/Data2G/releases/download/v0.6.1/data2g-0.6.1-linux-aarch64.tar.gz
tar -xzf data2g-0.6.1-linux-aarch64.tar.gz
rm data2g-0.6.1-linux-aarch64.tar.gz

Since the archive extracts into an inner data2g subfolder, move its contents one level up directly into ~/data2g/:

mv ~/data2g/data2g ~/data2g/_tmp && mv ~/data2g/_tmp/* ~/data2g/ && rmdir ~/data2g/_tmp

Run a quick command-line check to verify that the binary launches cleanly:

~/data2g/data2g --help

2. Install Dependencies and Compile Ragtime

While Ragtime does not yet offer prebuilt ARM64 releases on GitHub, its source code compiles cleanly on Raspberry Pi OS Trixie 64-bit in just a few minutes. All required libraries (wxWidgets 3.2, Hamlib, PipeWire, and image codecs) are readily available in the standard Debian/Raspberry Pi OS repositories:

sudo apt update && sudo apt install -y \
  build-essential cmake pkg-config git \
  libwxgtk3.2-dev libgtk-3-dev libhamlib-dev libpipewire-0.3-dev \
  libopenjp2-7-dev libwebp-dev libheif-dev libheif-plugin-libde265

Next, clone the repository and build the Release binary across all four CPU cores of the Raspberry Pi 5:

cd ~ && git clone https://github.com/baitisj/ragtime.git
cd ~/ragtime
cmake -S . -B build -DCMAKE_BUILD_TYPE=Release
cmake --build build -j$(nproc)

On the Pi 5, the build finishes in roughly two to four minutes, placing the compiled executable at ~/ragtime/build/app/ragtime.


3. Create Application Menu Shortcuts

To launch both programs comfortably via touch on the iPad display from the Raspberry Pi OS application menu under the Ham Radio category, create two .desktop launcher entries:

mkdir -p ~/.local/share/applications

cat << 'EOF' > ~/.local/share/applications/data2g.desktop
[Desktop Entry]
Type=Application
Name=Data2G
Comment=HF Data Modem (VARA-compatible ARQ & KISS)
Exec=/home/pi/data2g/data2g
Path=/home/pi/data2g
Icon=audio-card
Terminal=false
Categories=HamRadio;Network;
EOF

cat << 'EOF' > ~/.local/share/applications/ragtime.desktop
[Desktop Entry]
Type=Application
Name=Ragtime
Comment=Data2G & KISS Chat and File Transfer Client
Exec=/home/pi/ragtime/build/app/ragtime
Path=/home/pi/ragtime/build/app
Icon=network-wireless
Terminal=false
Categories=HamRadio;Network;
EOF

update-desktop-database ~/.local/share/applications/

4. Configure FLRig, Data2G, and Ragtime to Work Together

Both Data2G and Ragtime include native support for FLRig. Because FLRig exposes its CAT control server locally on TCP port 12345, both applications can connect to it simultaneously while handling clearly separated tasks:

Step A: Start FLRig

First, launch FLRig as usual to control your transceiver (in my setup, an Elecraft KX2 connected via a LiNK500 interface).

Step B: Configure Data2G (Audio & PTT)

Since Data2G acts as the actual modem generating audio tones and keying the transmitter, configure your sound card and PTT control here:

  1. Launch Data2G from the application menu (Ham Radio → Data2G).
  2. Select Audio Devices: Choose your interface’s USB sound card (e.g., LiNK500 / USB Audio Codec) for both input and output.
  3. Configure Hamlib / Rig Control: Select FLRig (default address 127.0.0.1:12345) and set PTT Method to CAT. By default, Data2G opens local Command port 8300 and KISS port 8100.

Step C: Configure Ragtime (Modem Connection & Frequency Readout)

Ragtime does not access the sound card directly; instead, it exchanges frames with Data2G over TCP. However, connecting Ragtime to FLRig as well allows it to read your live VFO frequency, filter bandwidth, and S-meter level for the waterfall display (The Ear) and station path logs:

  1. Launch Ragtime from the application menu (Ham Radio → Ragtime).
  2. Open Settings → Station:
    • My Call: Enter your callsign (e.g., DL1GKK) and Maidenhead grid square.
    • Host / Modem: Select Data2G on 127.0.0.1 using Command Port 8300 and KISS Port 8100.
  3. Open Settings → Rig:
    • Select FLRig (or Hamlib model FLRig on 127.0.0.1:12345).

Once saved, Ragtime immediately displays your transceiver’s live VFO frequency next to the waterfall and confirms its connection to Data2G. The full signal chain is now up and running: Ragtime handles chat, file transfers, and frequency tracking; Data2G handles OFDM modulation and audio; and FLRig reliably manages CAT and PTT.

Ragtime mit Data2G