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
+1 -1
View File
@@ -117,7 +117,7 @@ EOF
}
check_radio() {
check_keys hamlib usb_serial cat_id civ
check_keys hamlib usb_serial cat_id civ flrig
check_required hamlib
[[ "${CONF[hamlib]}" =~ ^[0-9]+$ ]] || problem "hamlib= should be a Hamlib model number"
[ -n "${CONF[usb_serial]}${CONF[cat_id]}${CONF[civ]}" ] || problem "needs usb_serial=, cat_id= or civ="