Skip to content
AC8LPublic

About

Raspberry Pi Zero 2 W card that runs qFT8's bridge for a ham radio over Wi-Fi

Resources

Stars

3 stars

Watchers

0 watching

Forks

Latest commit

 

History

17 Commits

Folders and files

Repository files navigation

Link705

Link705

A pocket-sized network appliance that puts your HF radio on Wi-Fi,
so you can operate FT8 from an iPhone or iPad with qFT8, anywhere.

Build image Latest image MIT License Raspberry Pi Zero 2 W


Main Wi-Fi Sound qFT8
The Main page: the bridge switched on, the address, password and bridge name to enter in qFT8, and the reboot, shut down and factory reset buttons The Wi-Fi page on the card's own network: the networks found nearby, the card's own network name and password, and the saved networks The Sound page: playback and capture levels of a USB sound device, and qFT8's own transmit level The qFT8 page: the installed version, the latest version available, and the Remove button
Page What it does
Main The bridge's switch and status, the name and password to enter in qFT8, a password or name of your own, reboot, shutdown, and a factory reset that returns the card to the state a fresh install leaves it in, with your login kept, without reflashing. It also removes the logs from before the card became read-only, which can hold a Wi-Fi password set in Imager.
Wi-Fi Join a network nearby, rename the card's own network or change its password, forget saved networks.
Sound Transmit and receive levels of every USB sound device, with defaults for a device you have not saved, kept across reboots.
qFT8 Install, update, go back to an earlier version or remove qFT8, with a progress bar. Shows the installed and the latest version.

Every page answers at http://10.42.0.1 on the card's own network. On another network, use the address the Main page shows for the card (its bridge name, for example http://link705.local on a card whose bridge has not been given a name). docs/pi-setup.md describes them in full.

Why Link705

An iPhone or iPad cannot drive a radio over a USB cable. For field operators that has meant carrying a laptop just to run FT8. Link705 replaces the laptop with a Raspberry Pi Zero 2 W, small enough to tape to the back of a radio, which runs on a few hundred milliamps from the radio's power or a USB power bank:

  iPhone / iPad                 Raspberry Pi Zero 2 W               Radio
 ┌─────────────┐    Wi-Fi     ┌────────────────────────┐    USB    ┌──────────┐
 │    qFT8     │ ◄──────────► │  Link705               │ ◄───────► │ CAT +    │
 │  (the app)  │              │  qFT8 bridge (headless)│           │ audio    │
 └─────────────┘              └────────────────────────┘           └──────────┘
  • Lightweight and field-ready. No laptop, no monitor, no keyboard, no internet. Power it up and it is a network of its own, ready for your device.
  • Made for qFT8 on iOS. The card runs qFT8's own bridge, headless. qFT8 on the iPhone or iPad sees the radio as if it were plugged straight into it: CAT control, receive audio and transmit audio, all over Wi-Fi.
  • Not only for iOS. iPhone and iPad users gain the most, since their devices have no other way to reach a radio. But the bridge works with qFT8 on any platform it runs on: Android phones and tablets, Windows, macOS and Linux: any device with qFT8 can operate the radio over Wi-Fi, with no cable to it.
  • A path to remote operation. The bridge works over an ordinary network connection, so it does not have to be on the same Wi-Fi. With a VPN such as Tailscale integrated into the image, a radio at home or at a remote site can be operated from qFT8 anywhere you have internet, within your licence's rules for remote operation. This is not in the image yet.
  • Nothing to configure on the card. Your radio's type, port and sound device are chosen in qFT8 on your device, as usual. The card passes every radio plugged into it straight through.
  • Managed from a browser. A small web interface handles Wi-Fi, sound levels, the bridge's password, installing and updating qFT8, reboot, shutdown and factory reset.

Standing on the shoulders of giants

qFT8, by Luis Quesada Torres, HB9IPH

None of this would exist without qFT8. Luis has written a remarkable piece of software: a free FT8/FT4/JS8 station with no ads and no account, its decoders and encoders written from scratch, plug and play with well over a hundred radios, running on Android, iOS, Windows, macOS and Linux. Its bridge mode is what makes Link705 possible: one copy of qFT8 runs headless next to the radio, and another, on your device, operates it over the network. Link705 only wraps that bridge in an appliance that is easy to carry and look after.

Thank you, Luis, for the great work and for making it available to the amateur radio community. Please support his project: qft8.com · github.com/lquesada/qFT8.

qFT8 is not part of this repository or of the Link705 image. It is Luis's work, all rights reserved. The card downloads it, from qFT8's own releases, only when you press Install on its qFT8 page.

Inspired by DigiPi

The way the image works is modelled on DigiPi by KM6LYW Radio, a lovely Raspberry Pi data-mode hotspot. Link705 borrows its philosophy:

Read-only file system After its first boot the card runs read-only, with logs and working files in memory. Pulling the power is safe, and the SD card is not worn out by constant writes. sudo remount makes it writable until the next reboot.
Its own Wi-Fi network out of the box On a fresh start with no known network nearby, the card becomes the access point Link-705, so it works in a field with no infrastructure at all.
Web UI for management Everything is done from a browser on any phone, tablet or computer: no SSH, no Mac, no command line needed.

Quick start

You need: a Raspberry Pi Zero 2 W, a microSD card (8 GB or more), a USB OTG adapter, the radio's USB cable, and qFT8 on your iPhone, iPad or other device.

There are three ways to get a Link705 card. The first is the easiest.

Way You need
A Flash the ready image Raspberry Pi Imager
B Install on your own Raspberry Pi OS card A card with Raspberry Pi OS Lite (64-bit) and SSH
C Build the image yourself Docker

A. Flash the ready image

  1. Download link705-<version>.img.xz from the latest release. It is the only image there and already contains Raspberry Pi OS: nothing else to download.
  2. Flash it with Raspberry Pi Imager: Choose device → Raspberry Pi Zero 2 W, Choose OS → Use custom, pick the downloaded file, then your SD card. Raspberry Pi Imager 2 offers no OS customisation for a custom image, and none is needed: the card starts with its own Wi-Fi network and a default login (see Logging in), and you add your home Wi-Fi network from the card's Wi-Fi page. The image's Wi-Fi country is US; for another country, build the image yourself with --wifi-country.
  3. Boot the Pi with the radio plugged into its USB port. The first boot takes a few minutes: the card grows to fill the SD card, makes itself read-only and restarts once by itself.
  4. Carry on with First use.

B. Install on your own Raspberry Pi OS card

  1. Flash Raspberry Pi OS Lite (64-bit) with Raspberry Pi Imager. In its OS customisation set a user, your Wi-Fi network, SSH and a host name.

  2. Boot the Pi, log in over SSH (ssh <user>@<host name>.local), and run this one line:

    curl -fsSL https://raw.githubusercontent.com/AC8L/Link705/main/install.sh | sudo bash

    Or, if you prefer to see what you run, clone the repository and run the installer from inside it:

    sudo apt-get install -y git
    git clone https://github.com/AC8L/Link705.git
    cd Link705
    sudo ./install.sh

    The installer uses only this git repository: the clone it is run from, or a fresh clone of main. It builds Link705's programs on the Pi (if Go is missing or too old, it first installs Go from go.dev, checked against its SHA-256), which takes a few minutes on a Pi Zero 2 W the first time. Then it sets up the card: packages, users, the web pages, the card's own network and the read-only file system. It is safe to run again: the same one line updates a Link705 card and keeps its settings; a card that is already read-only is writable for the run and read-only again after.

  3. sudo reboot. The card comes back read-only. From now on it answers at link705.local, or at <bridge name>.local once the bridge has a name, not at the host name set in Imager (that stays only the name the card gives your router). Carry on with First use.

C. Build the image yourself

All it takes is Docker and git, on macOS or Linux. One line:

git clone https://github.com/AC8L/Link705.git && cd Link705 && ./image/docker-build.sh

The image lands in dist/ as link705-<version>.img.xz; flash it as in A. The build downloads the stock Raspberry Pi OS Lite (64-bit) image from raspberrypi.com, checks it against the SHA-256 pinned in image/base-image.conf, compiles the Go programs, and runs the card's own installer, scripts/install-card.sh, inside the image. On an arm64 machine (Apple Silicon Mac, Raspberry Pi 4/5) it takes a few minutes; on x86-64 the script sets up emulation and it takes longer.

Options pass through to the builder, for example a different Wi-Fi country (the default is US):

./image/docker-build.sh --wifi-country DE

On a Linux machine without Docker, run the builder directly: make build (needs Go), then sudo image/build-image.sh. Its options are described at the top of image/build-image.sh.

First use

  1. Join the card's Wi-Fi on your device: network Link-705, password abcdefgh. (If the card knows a Wi-Fi network that is in range, it joins that instead. Find it there by its address in your router, or, once you have seen it, by the name on its Main page.)
  2. Open http://10.42.0.1, the card's pages.
    • On the Wi-Fi page, change the card's network password first: the shipped one is public.
    • On the qFT8 page, press Install.
    • On the Main page, switch the qFT8 Bridge on. The page shows the bridge's name and password.
  3. In qFT8 on your device: Settings → Device configuration → Radio connection → qFT8 bridge, pick the bridge by its name, enter its password, then choose your radio's type, its port and its sound device. 73 and enjoy!

Logging in (SSH)

You never need to log in to use the card: everything is on its web pages. While the default password below is unchanged, the card's Main page shows a warning. For tinkering, a card flashed from the image (way A or C) has SSH on, with this login:

User Password
pi raspberry
ssh pi@10.42.0.1            # on the card's own network, Link-705
ssh pi@<card's name>.local  # on another network: the address shown on the Main page

Caution

This password is public. Change it before the card joins any network other than its own, since anyone on that network could log in otherwise. The card is read-only, so make it writable first:

sudo remount      # writable until the next reboot
passwd            # choose a new password for pi
sudo reboot       # read-only again

Raspberry Pi Imager 2 offers no OS customisation for a custom image, so this is the login of every card flashed from the image. pi can use sudo. A factory reset keeps the login as it is.

Warning

Lab599 TX-500MP owners: select DIG on the radio by hand, choose radio type TX-500 in qFT8, and never select a CW mode in qFT8: with this setup the radio then transmits continuously. See docs/pi-setup.md, "Client settings".

Tested with

  • Raspberry Pi Zero 2 W, Raspberry Pi OS Lite (64-bit, Debian 13 "trixie")
  • Lab599 TX-500MP with the LiNK500MP MK3 interface (CAT, GPS and audio on one USB cable)
  • QRP Labs QMX+ (receive and transmit)
  • qFT8 3.42 as the bridge on the card, with the qFT8 3.41 app on an iPhone

Other radios that qFT8 supports over USB should work the same way, since the card passes them through untouched. Reports of what works with your radio are very welcome. Other 64-bit Raspberry Pi boards will probably work but have not been tried.

Status

1.0 beta. The qFT8 bridge appliance is the part that is ready. The repository also holds link705d, the start of an Icom IC-705 network emulator that will let apps written for the IC-705 (such as RadioMail for Winlink) use other radios. It is under construction and hidden on the card until it works.

Not yet tried on a real card: install.sh's build of the programs on the Pi (tested only in an arm64 container). Reports are welcome.

How the image is built

Every merge to main builds the image on GitHub Actions and publishes it as a release: one file, the image, with its SHA-256 in the release notes. Every pull request builds it too and attaches it to the run. The workflow uses the same image/build-image.sh as way C.

For development: make test runs the shell, web and Go tests, make build cross-compiles the Go programs, and make card-install PI=<user>@<host> installs the working tree on a card over SSH. See docs/development.md and docs/pi-setup.md.

Repository layout

Path Contents
web/ The card's web pages: a small Flask app, plain files that are easy to change, with their tests
deploy/ systemd units, the helpers behind the pages, radio model files, settings examples
install.sh The one-line installer for a running Raspberry Pi OS card
scripts/ The card installer, the qFT8 installer, and the shell tests
image/ The image builder (docker-build.sh, build-image.sh), the pinned stock image, and the card's first-boot step
cmd/, internal/ Go programs: link705d (IC-705 emulator, in progress), benchprobe (bench tool), capdump (Icom LAN capture decoder)
docs/ Setting up and using the card, and development notes

Contributing

Issues and pull requests are welcome. main is protected: every change reaches it through a pull request, and its image build must pass. Day-to-day development happens on the dev-AC8L branch, which is synced from the maintainer's working tree. Accepted contributions are carried over there, so that the next sync keeps them.

License

Link705 is released under the MIT License.

qFT8 is not included and is not covered by this license: it is © Luis Quesada Torres, all rights reserved, and is downloaded from its own releases by the card when you ask for it. Raspberry Pi OS and the Debian packages in the image are covered by their own licenses.


73 de AC8L

About

Raspberry Pi Zero 2 W card that runs qFT8's bridge for a ham radio over Wi-Fi

Resources

Stars

3 stars

Watchers

0 watching

Forks

Releases

Contributors

Languages