Commit Graph
5 Commits
Author SHA1 Message Date
David YoungandClaude Opus 5.5 d910982ea7 Set up older Yaesus with radio configure --model, without asking them
The FT-817, FT-818, FT-857 and FT-897 have no ID command, and take every
five bytes they're sent as a command, so radio doesn't probe them: --model
sets one up on its only serial port, at the CAT rate it comes with
(baud= in radios.conf), or --baud's. Where nothing answered, radio says so.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-29 13:06:27 -07:00
David YoungandClaude Opus 5.5 4794c186ee Recognise the IC-7851, IC-7600, IC-9100, Xiegus and the Lab599 TX-500
Their Hamlib models, CI-V addresses or ID; replies and flrig names, from
Hamlib 4.7.2 and flrig 2.0.12. Xiegus share their addresses with Icoms, and
the TX-500 answers as a TS-2000 does, so a probe lists both.

The probe takes a CI-V ID of two bytes, as some Xiegus answer, and
`radio probe` capitalises "One of".

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-29 12:55:10 -07:00
David YoungandClaude Opus 5.5 81c6e0b73f Tell Elecraft radios apart by their option modules
The K3, K3S, KX2, KX3 and K4 all answer ID; with ID017;, so radio listed
them all. When a radio answers ID017;, the probe now asks OM; too, and
radio reads the model from its option modules as Hamlib 4.7's
elecraft_open() does: 0 then 1 or 2 last for a KX2 or KX3, S and 4 for
a K4, R for a K3S, else a K3. radios.conf's new elecraft= field names
each, and narrows the radios the answer could be. A radio that doesn't
answer OM; (a TS-570) is still listed as one of several.

radios.conf gets the K3S (Hamlib 2043), which flrig drives with its K3
driver.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-28 14:15:02 -07:00
David YoungandClaude Opus 5.5 53e748ccb9 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>
2026-11-28 13:39:00 -07:00
David YoungandClaude Opus 5.5 6c76f94ac6 Add radio, which finds radios on USB, and put you in the uucp group
check / lint-and-test (push) Successful in 2m2s
check / packages (push) Successful in 23s
`radio` lists each radio plugged into USB: its serial ports, the sound
card that came with it (the same USB device, or behind the radio's own
hub), and its model and Hamlib model number. Icoms are recognised by
their USB serial number. `radio detect --probe` asks the others with the
CAT ID; command or Icom's CI-V transceiver ID, at the usual baud rates,
on ports no other program has open; `radio probe PORT` asks one port.
It drops DTR and RTS as soon as a port opens. The radios it knows are
in radios.conf.

update.sh links ~/.local/bin/radio to the clone, unless a different
radio is already there, and adds you to uucp, which owns serial ports on
Arch. hampackremove removes the link, and takes you out of uucp only if
HamPack put you in.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-28 12:12:31 -07:00