Commit Graph
9 Commits
Author SHA1 Message Date
David YoungandClaude Opus 5.5 b2ffaf9592 Set POTACAT's sound card in radio configure
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>
2026-11-28 13:31:11 -07:00
David YoungandClaude Opus 5.5 8020cdc061 Set fldigi's sound card in radio configure
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>
2026-11-28 13:19:04 -07:00
David YoungandClaude Opus 5.5 c2cb2bc2f4 Set not1mm's sound card in radio configure
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>
2026-11-28 13:11:16 -07:00
David YoungandClaude Opus 5.5 4053664d77 Set the radio's sound card in radio configure
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>
2026-11-28 13:06:17 -07:00
David YoungandClaude Opus 5.5 04d973039a Point POTACAT and Graywolf at rigctld in radio configure
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>
2026-11-28 12:56:14 -07:00
David YoungandClaude Opus 5.5 892bfb9df0 Point not1mm and QLog at rigctld in radio configure
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>
2026-11-28 12:43:27 -07:00
David YoungandClaude Opus 5.5 a02fa0cc85 Point fldigi and Dire Wolf at rigctld in radio configure
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>
2026-11-28 12:36:17 -07:00
David YoungandClaude Opus 5.5 eddd363e86 Start radio configure: rigctld for the radio, with WSJT-X, JS8Call and Pat on it
`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>
2026-11-28 12:22:16 -07:00
David YoungandClaude Opus 5.5 e71f1e59c2 Plan radio autoconfiguration, and list the checks that need real radios
check / lint-and-test (push) Successful in 1m55s
check / packages (push) Successful in 23s
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>
2026-11-28 12:14:04 -07:00