The K3, K3S, KX2, KX3 and K4 all answer ID; with ID017;, so radio listed
them all. When a radio answers ID017;, the probe now asks OM; too, and
radio reads the model from its option modules as Hamlib 4.7's
elecraft_open() does: 0 then 1 or 2 last for a KX2 or KX3, S and 4 for
a K4, R for a K3S, else a K3. radios.conf's new elecraft= field names
each, and narrows the radios the answer could be. A radio that doesn't
answer OM; (a TS-570) is still listed as one of several.
radios.conf gets the K3S (Hamlib 2043), which flrig drives with its K3
driver.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
`radio` now lists, after the radios, the USB sound cards that no serial
port goes with and that both play and record (not a webcam's
microphone): interfaces such as a SignaLink, an AIOC or a CM108 cable,
for a radio keyed by VOX or a PTT line. They aren't numbered, so
`radio configure`'s numbers don't change. A CM108-compatible card, alone
or as a radio's (a Digirig), is shown with the hidraw device it keys the
radio through, and whether you can open it. With only sound cards
plugged in, `radio` lists them rather than saying nothing was found.
radio's list of CM108-compatible devices is the udev rule's, and a test
keeps them the same.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
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>
systemd makes a device unit for each USB serial port and its
/dev/serial/by-id link, so rigctld's user service is now wanted by and
bound to the radio's port: it starts when the radio is plugged in or
switched on (or at login if it's there already) and stops when it goes,
instead of retrying every 5 seconds. reenable clears the login link
earlier versions of the unit had. With --flrig, rigctld talks to flrig
rather than the port, so it still starts at login.
PLAN.md drops running more than one radio at once, for now.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
--flrig adds an autostart entry, ~/.config/autostart/hampack-flrig.desktop,
so flrig is running before the programs that reach the radio through
rigctld and it. If an autostart entry of yours already runs flrig, none
is added: two flrigs would fight over the port. Running it without
--flrig removes the entry, since flrig would take the port from rigctld
at login, and so does hampackremove. Both remove it only if it carries
HamPack's mark (X-HamPack).
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
flrig can't reach a radio through rigctld, and the two can't share its
port, so `radio configure` leaves flrig alone and says why. With --flrig,
flrig gets the radio, its by-id port, the baud rate it answered at and
PTT by CAT, and rigctld runs Hamlib's FLRig backend (model 4) against
flrig's XML-RPC port, so every other program still talks to rigctld.
Running it again without --flrig gives the port back to rigctld.
flrig's settings are FLTK preferences files: flrig.prefs names the
radio, and <radio>.prefs (which flrig reads only with a version in it)
has its port, baud rate (as its place in flrig's list) and PTT. Long
values carry on in lines starting with +, as FLTK writes them. A
different radio or port you set is left alone unless --force.
radios.conf gets flrig's names for the radios, from flrig 2.0.12.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
POTACAT keeps Chromium's device ids, which only it can see, with each
device's name beside it, and when a saved id matches no device it takes
the one device of that name when it starts (lib/audio-device-heal.js).
So HamPack's rig gets PipeWire's names for the radio's card as those
names, which is how Chromium names PipeWire's devices, and placeholder
ids that match nothing. Only HamPack's rig gets a sound card; one you
chose on it is left alone unless --force, which now keeps the rig's
other settings.
Every program that uses the radio's sound card now gets it.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
fldigi gets PortAudio as its audio system, with the radio's card for
capture and playback. It opens devices by name, so radio lists PortAudio's
devices through the system library, as fldigi does, and picks PipeWire's
names for the card (through PortAudio's JACK support) where just one
device has them, or else ALSA's, with the card's number. Devices that are
unset, a default, or the same card under an old number are replaced; a
device you chose, or fldigi on PulseAudio or OSS, is left alone unless
--force.
not1mm now uses the same device list, instead of asking its own Python's
sounddevice, which reads the same library. POTACAT is the only program
whose sound card is left for you to choose.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
not1mm's voice keyer gets the radio's sound card, named exactly as the
sounddevice library in not1mm's own Python lists it: its settings dialog
finds the device by exact name, and falls back to the first one listed.
PipeWire's name for the card, through PortAudio's JACK support, comes
first, since it stays the same from boot to boot. Without it, or with two
cards of the same name, it's ALSA's, which has the card's number in it;
a number radio wrote before is updated when the card's number changes.
The closing message now leaves only fldigi and POTACAT for you to set.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
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>
POTACAT gets a "rigctld Network" rig at 127.0.0.1:4532 in My Rigs, made
the active rig, with the connection written where POTACAT reads it: the
global settings, or the operator's profile once there is one. It's left
alone if it has a radio set up, unless --force.
Graywolf's web API needs its password, so its database gets the change:
PTT through rigctld on each channel that transmits and has none. It's
checked first without writing; only if something changes is Graywolf
stopped with sudo, its database backed up through SQLite, and Graywolf
started again. If sudo is refused, or no channel transmits, it says what
to set in the web UI instead.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
not1mm gets rigctld at 127.0.0.1:4532, with flrig and TCI off, unless it
has rig control set up already.
QLog keeps rig profiles in its log database, so it gets a "HamPack"
profile there (Hamlib NET rigctl, 127.0.0.1:4532), selected, with the
values QLog 0.54.2's own form gives a new profile. It's added only if
there are no profiles yet, or with --force, and only when QLog isn't
running and its log has the columns it needs. The log is backed up first
through SQLite, so the backup includes what's still in qlog.db-wal.
The probe tests' python3 stub now fakes only the probe, so QLog's step
runs against a real SQLite log.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
fldigi gets Hamlib rig control through rigctld (NET rigctl at
127.0.0.1:4532) with PTT by Hamlib, and its other rig control modes
turned off, unless it has rig control set up already. It's skipped until
fldigi has made its settings, so its first-run wizard still appears.
Dire Wolf gets PTT RIG 2 127.0.0.1:4532 and the radio's sound card as
plughw:CARD=...,DEV=0, replacing only the values HamPack ships with.
Settings you've changed are left alone unless --force.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
`radio configure` asks the radio what it is and the baud rate it answers
at, then runs rigctld for it as the hampack-rigctld systemd user service
on 127.0.0.1:4532, using the port's /dev/serial/by-id name. WSJT-X (the
Flatpak) and JS8Call get Hamlib NET rigctl with PTT by CAT; Pat gets a
"hampack" rig, used by ARDOP and VARA where they had none. Rig settings
you've set are left alone unless --force, each file is backed up first,
and programs that are running are skipped. With several radios, give the
number `radio` now lists; --model sets the Hamlib model for a radio it
can't tell apart from others. Sound cards are left for you to choose.
hampackremove stops and removes the service. PLAN.md lists the programs
still to do; TEST.md has the checks on a real radio.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
PLAN.md lists what's left: checking radios.conf against real radios,
telling Elecraft's radios apart, `radio configure`, CM108 PTT, the
Flatpaks' serial access, and dropping graywolf's unused dialout group.
TEST.md lists the checks the fakes can't do, with tables for results:
the uucp group, finding each radio, and pairing radios with sound cards.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>