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>
This commit is contained in:
David Young
2026-11-29 12:55:10 -07:00
co-authored by Claude Opus 5.5
parent ad57b6b1a4
commit 4794c186ee
5 changed files with 94 additions and 10 deletions
+6 -3
View File
@@ -366,8 +366,9 @@ for baud in sys.argv[2:]:
options = om.group(1).decode() if om else ""
print(baud, "cat_id", found.group(1).decode(), options)
break
# To any address (00) from a computer (E0); the radio answers to E0 from its address
found = re.search(rb"\xfe\xfe\xe0(.)\x19\x00.\xfd", ask(bytes.fromhex("fefe00e01900fd")), re.S)
# To any address (00) from a computer (E0); the radio answers to E0 from
# its address, with its ID: one byte from an Icom, two from some Xiegus
found = re.search(rb"\xfe\xfe\xe0(.)\x19\x00[^\xfd]{1,2}\xfd", ask(bytes.fromhex("fefe00e01900fd")), re.S)
if found:
print(baud, "civ", found.group(1).hex().upper())
break
@@ -599,7 +600,9 @@ probe() {
reason="$(cant_probe "$port")"
[ -z "$reason" ] || { echo "Can't ask: $reason" >&2; return 1; }
if probe_port "$port"; then
echo "$(describe_answer), at $ANSWER_BAUD baud"
local described
described="$(describe_answer)"
echo "${described^}, at $ANSWER_BAUD baud"
elif [ -n "$PROBE_ERROR" ]; then
echo "Can't ask: $PROBE_ERROR" >&2
return 1