Know twin interfaces by their USB socket, and say so
check / lint-and-test (push) Failing after 4m13s
check / packages (push) Successful in 25s

Two interfaces with the same vendor, product and serial number (none, often)
share a /dev/serial/by-id name, which udev points at whichever came last, so
their serial ports are named by /dev/serial/by-path instead. radio and
radio configure say when an interface has a twin, and that its sound card
goes by the order the two came up.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
David Young
2026-11-29 13:41:06 -07:00
co-authored by Claude Opus 5.5
parent d910982ea7
commit 7697a785d3
5 changed files with 100 additions and 9 deletions
+7
View File
@@ -178,6 +178,13 @@ With a Digirig, an AIOC or another CM108-family interface plugged in, after
your Digirig keys with): "Test PTT" keys the radio. Unplug the Digirig:
rigctld stops; plug it in: rigctld starts.
With two interfaces of the same kind plugged in (two CM108 cables, or two
CH340 cables): `radio` says each has a twin, and `radio configure` names the
serial port by `/dev/serial/by-path`. Note whether `/dev/serial/by-id` had one
link for the two. Reboot a few times with both plugged in, and note whether
their ALSA card ids (`cat /proc/asound/cards`) and PipeWire names ever swap.
Check whether two AIOCs have serial numbers, which would make them no twins.
| Date | Commit | Interface | ACL | Keys the radio | Notes |
|------|--------|-----------|-----|----------------|-------|
| 2026-11-28 | 1cccdcd | C-Media USB Audio Device, 0d8c:0012, no radio attached | Yes, but from another rule (60-xara-ptt.rules); HamPack's rule not yet installed here | Not tried | Steps 1, 3 and 5 pass: `radio` lists it as "PTT through CM108 on /dev/hidraw3" and leaves out a Logitech BRIO webcam; Dire Wolf's `cm108` marks it `**`. Hamlib 4.7.2 `rigctl -m 1 -p /dev/input/by-id/...-if03-hidraw -P CM108 T 0` opens the by-id link, detects it as CM108-compatible and sets GPIO3, with no error. Getting PTT state (`t`) gives "Feature not implemented", which is Hamlib's CM108 support, and doesn't matter to the programs |