WSJT-X and JS8Call get the radio's sound card as PipeWire names it: radio
asks pactl for the input and output nodes on the radio's ALSA card.
WSJT-X (Qt 5, through Qt's PulseAudio plugin) keeps the node names in
SoundInName and SoundOutName; JS8Call (Qt 6) keeps them in SoundInId and
SoundOutId, with PipeWire's descriptions, quoted as Qt writes them, in
SoundInName and SoundOutName. A setting that's empty or a default
("default", "pipewire") is replaced; a device you chose is left alone
unless --force.
If Graywolf has no channels, it gets input and output devices on
plughw:CARD=...,DEV=0 and a channel named after the radio, with its
defaults (1200 baud AFSK, APRS) and PTT through rigctld, in the same
stop and start as the PTT change.
fldigi, not1mm and POTACAT name sound cards in ways radio can't write,
so the closing message names them and says which card to choose.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2.4 KiB
2.4 KiB
Plan
What's left to do in HamPack. Delete an item once it's done; git history
keeps the record. Checks that need real radios are in TEST.md.
Radio autoconfiguration
Find the radios plugged into USB and set up HamPack's programs for them.
Done: radio detect and radio probe, radios.conf, adding you to the uucp
group (6c76f94), and radio configure for each of HamPack's programs that
control a radio.
- Run
TEST.mdagainst real radios, and mark theradios.confvalues they confirm# verified. Fix or remove the ones they don't - Tell Elecraft's radios apart. The K3, KX3, KX2 and K4 all answer
ID017;, soradiolists all four. Find an Elecraft command whose reply names the model radio configure, the rest. It writes the rigctld user service and points WSJT-X, JS8Call, Pat, fldigi, Dire Wolf, not1mm, QLog, POTACAT and Graywolf at it. Still to do:- Sound cards for fldigi, not1mm and POTACAT. fldigi (PortAudio) and not1mm (sounddevice) name a card with its number, as in "USB Audio CODEC: - (hw:1,0)", which can change between boots; a sounddevice name can match part of a name, so not1mm might take "USB Audio CODEC". POTACAT keeps browser device ids, which only it can see. WSJT-X, JS8Call, Dire Wolf and Graywolf are done
- flrig can't use rigctld, so it can't run alongside it. Say so, or offer flrig as the controller instead
- More than one radio at once: a rigctld for each, on its own port
- rigctld retries every 5 seconds while the radio is off or unplugged. Start it when the radio is plugged in instead (see hotplug below)
- PTT through a CM108 sound card (Digirig, AIOC, SignaLink-style
interfaces): a udev rule so you can open its
hidrawdevice, for Dire Wolf and others - Check that the WSJT-X and QLog Flatpaks can open serial ports
(
--device=all), inhampackcheckor the smoketest - List USB sound cards with no serial port (SignaLink USB, VOX-keyed
interfaces).
radioshows only devices with a serial port, so these don't appear - Later: run
radio configurewhen a known radio is plugged in (a udev rule starting a systemd user unit)
Other
- Graywolf's setup (
install_graywolf_serviceinupdate.sh) creates adialoutgroup, which nothing on Arch uses. Its service runs as you, so it already has your uucp membership. Drop thegroupadd