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:
co-authored by
Claude Opus 5.5
parent
e71f1e59c2
commit
eddd363e86
@@ -6,21 +6,27 @@ keeps the record. Checks that need real radios are in `TEST.md`.
|
||||
## Radio autoconfiguration
|
||||
|
||||
Find the radios plugged into USB and set up HamPack's programs for them.
|
||||
Done in 6c76f94: `radio detect` and `radio probe`, `radios.conf`, and adding
|
||||
you to the uucp group.
|
||||
Done: `radio detect` and `radio probe`, `radios.conf`, adding you to the uucp
|
||||
group (6c76f94), and the start of `radio configure`.
|
||||
|
||||
- [ ] Run `TEST.md` against real radios, and mark the `radios.conf` values
|
||||
they confirm `# verified`. Fix or remove the ones they don't
|
||||
- [ ] Tell Elecraft's radios apart. The K3, KX3, KX2 and K4 all answer `ID017;`,
|
||||
so `radio` lists all four. Find an Elecraft command whose reply names
|
||||
the model
|
||||
- [ ] `radio configure`: one rig controller, everything else pointed at it.
|
||||
Write a rigctld systemd user service for the radio, using its
|
||||
`/dev/serial/by-id` port, Hamlib model and the baud rate it answered at.
|
||||
Then point each program at rigctld (localhost:4532) and at the radio's
|
||||
sound card: WSJT-X, JS8Call, fldigi, flrig, Dire Wolf, Pat, QLog,
|
||||
not1mm, POTACAT and Graywolf. Only fill in settings that are empty,
|
||||
keep a `.bak` of each file changed, and test against sample config files
|
||||
- [ ] `radio configure`, the rest. Started: it writes the rigctld user
|
||||
service and points WSJT-X, JS8Call and Pat at it. Still to do:
|
||||
- [ ] fldigi (Hamlib NET rigctl model 2 at 127.0.0.1:4532), Dire Wolf
|
||||
(`PTT RIG 2 localhost:4532`), QLog, not1mm (its rigctld setting in
|
||||
`not1mm.json`), POTACAT and Graywolf
|
||||
- [ ] Sound cards. Each program saves its sound device under a name from
|
||||
its audio backend (WSJT-X saved "pipewire" here), so find what each
|
||||
saves for a USB codec on a real machine before writing it
|
||||
- [ ] flrig can't use rigctld, so it can't run alongside it. Say so, or
|
||||
offer flrig as the controller instead
|
||||
- [ ] More than one radio at once: a rigctld for each, on its own port
|
||||
- [ ] rigctld retries every 5 seconds while the radio is off or unplugged.
|
||||
Start it when the radio is plugged in instead (see hotplug below)
|
||||
- [ ] PTT through a CM108 sound card (Digirig, AIOC, SignaLink-style
|
||||
interfaces): a udev rule so you can open its `hidraw` device, for
|
||||
Dire Wolf and others
|
||||
|
||||
Reference in New Issue
Block a user