Add radio configure --flrig, which puts flrig in charge of the radio
check / lint-and-test (push) Successful in 3m23s
check / packages (push) Successful in 24s

flrig can't reach a radio through rigctld, and the two can't share its
port, so `radio configure` leaves flrig alone and says why. With --flrig,
flrig gets the radio, its by-id port, the baud rate it answered at and
PTT by CAT, and rigctld runs Hamlib's FLRig backend (model 4) against
flrig's XML-RPC port, so every other program still talks to rigctld.
Running it again without --flrig gives the port back to rigctld.

flrig's settings are FLTK preferences files: flrig.prefs names the
radio, and <radio>.prefs (which flrig reads only with a version in it)
has its port, baud rate (as its place in flrig's list) and PTT. Long
values carry on in lines starting with +, as FLTK writes them. A
different radio or port you set is left alone unless --force.

radios.conf gets flrig's names for the radios, from flrig 2.0.12.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
David Young
2026-11-28 13:39:00 -07:00
co-authored by Claude Opus 5.5
parent b2ffaf9592
commit 53e748ccb9
7 changed files with 265 additions and 20 deletions
+3 -1
View File
@@ -69,7 +69,9 @@ Probing opens the port, which raises its DTR and RTS lines for a moment before `
It also gives WSJT-X, JS8Call, fldigi, Dire Wolf, not1mm's voice keyer and POTACAT the radio's sound card. POTACAT finds it by name the next time it starts. WSJT-X and JS8Call get it as PipeWire names it, so PipeWire must be running. fldigi and not1mm get PipeWire's name for it too where PortAudio lists it (through PipeWire's JACK support), since ALSA's name for it has a card number that can change between boots; if it does, run `radio configure` again. If Graywolf has no channels yet, it gets one on the radio's sound card, for 1200 baud APRS.
`radio configure` only fills in rig and sound settings you haven't set (a sound device of "default" or "pipewire" counts as not set). `radio configure --force` replaces them, and every file it changes is backed up first. With more than one radio plugged in, give the number `radio` lists for it: `radio configure 2`. For a radio it can't tell apart from others, give its Hamlib model number: `radio configure --model 2045`. `radio configure` also says which sound card is the radio's.
`radio configure` only fills in rig and sound settings you haven't set (a sound device of "default" or "pipewire" counts as not set). `radio configure --force` replaces them, and every file it changes is backed up first. With more than one radio plugged in, give the number `radio` lists for it: `radio configure 2`. For a radio it can't tell apart from others, give its Hamlib model number: `radio configure --model 2045`.
flrig can't reach a radio through rigctld, and the two can't share its port, so `radio configure` leaves flrig alone. If you'd rather flrig controlled the radio, run `radio configure --flrig`: flrig gets the radio, and rigctld passes the other programs through it, using Hamlib's FLRig support. Then start flrig before the other programs, and leave it running. `radio configure` also says which sound card is the radio's.
The radios it knows are in `radios.conf`. If your radio isn't recognised, or answers with something `radio` doesn't know, please open an issue with what `radio detect --probe` printed.