Let you key a radio through a CM108 sound card's PTT line

Dire Wolf, Graywolf and others key a radio through a CM108-family sound
card (a Digirig, an AIOC) by setting a GPIO pin through its hidraw
device, which only root can open otherwise. Dire Wolf's own rule gives
it to the audio group, which most Arch users aren't in, and shouldn't
need to be. udev/70-hampack-cm108.rules tags those devices uaccess
instead, so whoever is at the desktop can use them, as they can the
sound card. It matches the devices Dire Wolf 1.8 treats as
CM108-compatible, and no other C-Media devices.

update.sh installs it in /etc/udev/rules.d when it changes, and reloads
and re-applies udev's rules; hampackremove removes it.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
David Young
2026-11-28 13:54:42 -07:00
co-authored by Claude Opus 5.5
parent fee5ce341a
commit 5f15ff3821
10 changed files with 112 additions and 4 deletions
+1 -1
View File
@@ -61,7 +61,7 @@ Graywolf's web UI is at http://localhost:8080 and, by default, can only be reach
`radio` lists the radios plugged into USB: each one's serial port, the sound card that came with it, and its model and Hamlib model number when it recognises it. Most Icoms are recognised from their USB serial number alone. For other radios, run `radio detect --probe`. This asks each one what it is (the CAT `ID;` command, or Icom's CI-V equivalent) over every serial port no other program is using. `radio probe /dev/ttyUSB0` asks a single port.
Controlling a radio means opening its serial port, and on Arch only members of the `uucp` group can. HamPack adds you to it when it installs. Log out and back in once afterwards for it to take effect. `hampackremove` takes you out of the group again, unless you were already in it before HamPack.
Controlling a radio means opening its serial port, and on Arch only members of the `uucp` group can. Keying a radio through the PTT line on a CM108-family sound card (a Digirig, an AIOC) means opening the card's `hidraw` device, which normally only root can; HamPack installs a udev rule, `/etc/udev/rules.d/70-hampack-cm108.rules`, that lets whoever is logged in at the desktop use it, as they can the sound card. HamPack adds you to it when it installs. Log out and back in once afterwards for it to take effect. `hampackremove` takes you out of the group again, unless you were already in it before HamPack.
Probing opens the port, which raises its DTR and RTS lines for a moment before `radio` drops them. Interfaces that key the transmitter with DTR or RTS may key it briefly, so probe with the radio on a dummy load or an antenna.