Start radio configure: rigctld for the radio, with WSJT-X, JS8Call and Pat on it

`radio configure` asks the radio what it is and the baud rate it answers
at, then runs rigctld for it as the hampack-rigctld systemd user service
on 127.0.0.1:4532, using the port's /dev/serial/by-id name. WSJT-X (the
Flatpak) and JS8Call get Hamlib NET rigctl with PTT by CAT; Pat gets a
"hampack" rig, used by ARDOP and VARA where they had none. Rig settings
you've set are left alone unless --force, each file is backed up first,
and programs that are running are skipped. With several radios, give the
number `radio` now lists; --model sets the Hamlib model for a radio it
can't tell apart from others. Sound cards are left for you to choose.

hampackremove stops and removes the service. PLAN.md lists the programs
still to do; TEST.md has the checks on a real radio.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
David Young
2026-11-28 12:22:16 -07:00
co-authored by Claude Opus 5.5
parent e71f1e59c2
commit eddd363e86
7 changed files with 627 additions and 92 deletions
+26
View File
@@ -43,6 +43,32 @@ cable.
|------|--------|-------|-----------|---------------|--------------|--------------------|------|-----------|-------|
| | | | | | | | | | |
## radio configure
With the radio on a dummy load or an antenna, and WSJT-X, JS8Call and Pat quit:
1. Run `radio configure`. It should name the radio, its by-id port and a baud
rate, and say what it did for each program.
2. `systemctl --user status hampack-rigctld` is running, and
`rigctl -m 2 -r 127.0.0.1:4532 f` prints the radio's frequency.
3. Open WSJT-X. Settings > Radio shows "Hamlib NET rigctl", 127.0.0.1:4532
and PTT by CAT. "Test CAT" turns green, and "Test PTT" keys the radio.
Note whether WSJT-X kept the PTT setting, which `radio configure` writes in
Qt's own format; if it shows VOX, that format is wrong.
4. The same in JS8Call.
5. In Pat, `pat connect ardop:///...` (or the web UI) changes the radio's
frequency through rigctld.
6. Run `radio configure` again: each program is "already set up", and
rigctld restarts.
7. With a rig set by hand in WSJT-X, `radio configure` leaves it alone, and
`--force` replaces it. The `.bak-` copy has the old settings.
8. Unplug the radio, plug it in again, and check rigctld reconnects within
a few seconds. Reboot and check it starts at login.
| Date | Commit | Radio | rigctld | WSJT-X | JS8Call | Pat | Notes |
|------|--------|-------|---------|--------|---------|-----|-------|
| | | | | | | | |
## Pairing radios with sound cards
- Two radios plugged in at once: each gets its own sound card.