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>
This commit is contained in:
David Young
2026-11-28 14:15:02 -07:00
co-authored by Claude Opus 5.5
parent 4cb5ce25ff
commit 81c6e0b73f
6 changed files with 113 additions and 13 deletions
+6
View File
@@ -35,6 +35,12 @@ For each radio:
5. If it was recognised, mark its values in `radios.conf` `# verified`. If not,
note what `radio detect --probe` printed.
An Elecraft radio (K3, K3S, KX2, KX3, K4) answers `ID;` like the others, so
`radio` also asks it `OM;` and reads the model from its option modules, as
Hamlib does. Check `radio detect --probe` names the right one; if not, note
what `echo "OM;" > /dev/ttyUSB0` gets back (with `cat /dev/ttyUSB0` running
in another terminal, at the radio's baud rate).
Interfaces to try, as well as radios with built-in USB: a Digirig (CP2102 and
CM108 behind its own hub, RTS keys PTT), an FTDI CAT cable, and an Icom CI-V
cable.