A udev rule starts the hampack-radio-plugged user service when a USB serial port appears, and it runs `radio configure --auto`. That sets up a radio recognised by its USB serial number, unless the radio set up already is plugged in, and says what it did in a desktop notification. It never asks a radio what it is, since that may key the transmitter, and never asks for sudo, so a running Graywolf is skipped. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
13 KiB
Manual tests
Checks that need real hardware or a real login, which the bats tests' fakes
can't do. make test covers the rest; the smoketest covers installs on a VM.
Record each result in the tables below, with the date and the HamPack commit.
The uucp group
- On a machine where you're not in uucp (
groupsdoesn't list it), runupdate. It should say it added you to the uucp group and that you need to log out. - Before logging out, plug in a radio and run
radio probe /dev/ttyUSB0. It should say to log out and back in, not to runusermod. - Log out and back in.
groupslists uucp, andradio probecan open the port. - Run
updateagain. It doesn't add you a second time. - Run
hampackremove.groups(after logging in again) no longer lists uucp. Repeat on a machine where you were in uucp before HamPack: you stay in it.
| Date | Commit | Result |
|---|---|---|
Finding radios
For each radio:
- Put it on a dummy load or an antenna, and switch it on. Quit anything that uses its port (WSJT-X, flrig, rigctld, fldigi).
- Run
radio. Check the serial ports and sound card it lists are the radio's. Compare withls -l /dev/serial/by-id/,lsusb -tandcat /proc/asound/cards. - Run
radio detect --probe. Watch the radio's TX indicator: probing should not key it. If it does, even for a moment, note the interface. - Check the model and Hamlib model number are right, and note the baud rate it answered at.
- If it was recognised, mark its values in
radios.conf# verified. If not, note whatradio detect --probeprinted.
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.
| Date | Commit | Radio | Interface | Recognised by | Right model? | Sound card paired? | Baud | Keyed TX? | Notes |
|---|---|---|---|---|---|---|---|---|---|
radio configure
With the radio on a dummy load or an antenna, and WSJT-X, JS8Call, Pat, fldigi, Dire Wolf, not1mm, QLog and POTACAT quit:
- Run
radio configure. It should name the radio, its by-id port and a baud rate, and say what it did for each program. systemctl --user status hampack-rigctldis running, andrigctl -m 2 -r 127.0.0.1:4532 fprints the radio's frequency.- Open WSJT-X. Settings > Radio shows "Hamlib NET rigctl", 127.0.0.1:4532
and PTT by CAT. "Test CAT" turns green, and "Test PTT" keys the radio.
Note whether WSJT-X kept the PTT setting, which
radio configurewrites in Qt's own format; if it shows VOX, that format is wrong. Settings > Audio shows the radio's sound card for input and output (the PipeWire namesradio configureprinted), and the waterfall shows the band. - The same in JS8Call. Its sound card is matched by PipeWire's node name, which is what Qt 6.12 calls the device's id; if it shows another card, note what JS8Call.ini's SoundInId says after you pick the right one.
- In Pat,
pat connect ardop:///...(or the web UI) changes the radio's frequency through rigctld. - Open fldigi (after running it once, so it has settings). Configure > Rig Control > Hamlib shows rig control on, "Hamlib NET rigctl", 127.0.0.1:4532 and "PTT via Hamlib command". The frequency follows the radio, and T/R keys it. Configure > Soundcard > Devices shows PortAudio, with the radio's card for capture and playback (PipeWire's names, under "JACK Audio Connection Kit devices", if PipeWire's JACK support is installed), and the waterfall shows the band. The settings were checked against fldigi 4.1's source; Arch has 4.2, so note anything it doesn't pick up.
- Run Dire Wolf with
direwolf -c ~/.local/state/HamPack/conf.d/direwolf.conf. It should open plughw:CARD=...,DEV=0 and not complain about "PTT RIG 2 127.0.0.1:4532". If it says RIG needs hamlib support, its build didn't find Hamlib. Send a beacon and check it keys the radio. - Open not1mm (after running it once). Its settings show rigctld at 127.0.0.1:4532, and the frequency follows the radio. Its sound device is the radio's card, by PipeWire's name ("... Analog Stereo") if PipeWire's JACK support is installed, or else ALSA's ("...: USB Audio (hw:N,0)"). Open and OK its settings dialog, and check the sound device is still the radio's afterwards. In a phone contest, a voice macro keys the radio and plays through it.
- Open QLog (after running it once, so it has a log). Settings > Equipment > Rig has a "HamPack" profile (Hamlib, NET rigctl, 127.0.0.1:4532), it's the one selected, and connecting shows the radio's frequency. The profile was written straight into QLog's log, with the values QLog 0.54.2's own form gives a new profile, so check that QLog shows and saves it without complaint, and that your QSOs are all still there.
- Open POTACAT (after running it once). My Rigs has "... (HamPack's
rigctld)" as a rigctld Network rig at 127.0.0.1:4532, it's the active rig,
and the frequency follows the radio. If you have an operator profile, check
POTACAT doesn't say the connection belongs to another rig. The rig's audio
shows the radio's card for input and output:
radio configuresaved them by name only, and POTACAT's log should say it followed each "by name" when it started. If they're blank, note the names POTACAT lists for the card, since radio assumed Chromium shows PipeWire's descriptions. - With no channels in Graywolf, run
radio configure(it asks for sudo to stop Graywolf). Graywolf's web UI shows a channel named after the radio, on plughw:CARD=...,DEV=0 for input and output, 1200 baud APRS, with PTT rigctld, 127.0.0.1:4532. Graywolf is running again, its audio meter moves with the band, and "Test rigctld" in its PTT page passes. Send a beacon and check it keys the radio. Graywolf warns that plughw: fails on some cheap USB chips where only hw: works; note if this is one. - Run
radio configureagain: each program is "already set up", and rigctld restarts. - Quit everything, run
radio configure --flrig, and start flrig. It opens on the radio, on its by-id port at the baud rateradiofound, with PTT by CAT, and shows the radio's frequency.rigctl -m 2 -r 127.0.0.1:4532 fshows the same frequency, through rigctld and flrig. WSJT-X's "Test CAT" and "Test PTT" still work. Quit flrig: rigctld loses the radio, and gets it back within a few seconds of starting flrig again. Log out and back in: flrig starts by itself (GNOME's Settings > Apps > flrig shows it set to start at login), and WSJT-X reaches the radio. Then runradio configurewithout --flrig, check rigctld has the radio's port again, and that flrig no longer starts when you log in. The settings were checked against flrig 2.0.12's source and FLTK 1.4.5's preferences format. - With a rig set by hand in WSJT-X,
radio configureleaves it alone, and--forcereplaces it. The.bak-copy has the old settings. - Unplug the radio (or switch it off, if that takes its USB away):
systemctl --user status hampack-rigctldshows it stopped. Plug it in again: rigctld is running again within a few seconds, withoutradio configure. Log out with the radio unplugged, log in, and plug it in: rigctld starts then. Log in with it plugged in: rigctld starts at login. If rigctld doesn't start on its own, checksystemctl --user list-units --type=device | grep seriallists the radio's port: rigctld is started by that device unit.
| Date | Commit | Radio | rigctld | WSJT-X | JS8Call | Pat | fldigi | Dire Wolf | not1mm | QLog | POTACAT | Graywolf | flrig | Notes |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
PTT through a CM108 sound card
With a Digirig, an AIOC or another CM108-family interface plugged in, after
update has installed /etc/udev/rules.d/70-hampack-cm108.rules:
-
ls /dev/hidraw*andudevadm info /dev/hidrawNfind the interface's hidraw device (its idVendor is 0d8c, 0c76 or 1209). -
getfacl /dev/hidrawNgives you rw, through an ACL ("user:YOU:rw-"), without being in the audio group. -
Dire Wolf's
cm108tool lists the device with "**" and you can run it without sudo. WithPTT CM108in direwolf.conf, a beacon keys the radio. -
A C-Media USB headset that isn't CM108-compatible gets no ACL.
-
radiolists the interface: with a radio's serial port (a Digirig), as that radio's "CM108 PTT: /dev/hidrawN"; without one (an AIOC, a CM108 cable), under "USB sound cards with no serial port", as "PTT through CM108 on /dev/hidrawN". A SignaLink USB is listed there with "PTT by VOX", and a webcam isn't listed at all. -
With a handheld (or any radio, on a dummy load) on an AIOC or CM108 cable,
radio configure N(N fromradio's list) says "with no CAT: PTT through its sound card's CM108 pin". WSJT-X's "Test PTT" keys the radio, through rigctld, and so does a beacon from Dire Wolf. -
On a Digirig,
radio configure --no-cat --ptt rts(or cm108, whichever your Digirig keys with): "Test PTT" keys the radio. Unplug the Digirig: rigctld stops; plug it in: rigctld starts.
| 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 |
Setting up a radio when it's plugged in
After update has installed /etc/udev/rules.d/70-hampack-radio.rules and
~/.config/systemd/user/hampack-radio-plugged.service, with an Icom that
radio recognises by its USB serial number (an IC-7300, say), on a dummy
load or an antenna:
- Move
~/.local/state/HamPack/radioaside, if it's there, so no radio is set up. Quit WSJT-X and the rest, and plug the radio in. Within a few seconds a notification says "HamPack set up the Icom IC-7300", andjournalctl --user -u hampack-radio-pluggedshowsradio configure's output, including the radio's sound card by PipeWire's name. If it says PipeWire didn't list the card, note it: it waited up to 10 seconds. systemctl --user status hampack-rigctldis running, and WSJT-X's "Test CAT" works.- Unplug the radio and plug it in again: the journal says it stays set up, and there's no notification.
- With WSJT-X running, and Graywolf running, move the state file aside and plug in again: the notification says WSJT-X and Graywolf were skipped, and nothing asked for a password.
- Plug in a Yaesu or a Digirig instead: nothing is set up, and the radio's TX indicator never lights.
- Log in with the radio plugged in and not set up: note whether it's set up at login, too (systemd may only act on the rule when the port appears).
systemctl --user mask hampack-radio-plugged, then plug in: nothing happens.systemctl --user unmask hampack-radio-pluggedafterwards.
| Date | Commit | Radio | Set up | Notification | Left alone when set up | Notes |
|---|---|---|---|---|---|---|
Pairing radios with sound cards
- Two radios plugged in at once: each gets its own sound card.
- A radio plugged in through an external USB hub, with other devices on that
hub: note whether the sound card is still paired.
radioonly pairs a port and a sound card on a hub that has nothing else on it, so it shouldn't be. - A USB sound card on its own, plugged in next to a serial-only radio: it shouldn't be paired with the radio.
| Date | Commit | Setup | Result |
|---|---|---|---|