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>
139 lines
8.0 KiB
Markdown
139 lines
8.0 KiB
Markdown
# 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
|
|
|
|
1. On a machine where you're not in uucp (`groups` doesn't list it), run `update`.
|
|
It should say it added you to the uucp group and that you need to log out.
|
|
2. Before logging out, plug in a radio and run `radio probe /dev/ttyUSB0`. It
|
|
should say to log out and back in, not to run `usermod`.
|
|
3. Log out and back in. `groups` lists uucp, and `radio probe` can open the port.
|
|
4. Run `update` again. It doesn't add you a second time.
|
|
5. 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:
|
|
|
|
1. Put it on a dummy load or an antenna, and switch it on. Quit anything that
|
|
uses its port (WSJT-X, flrig, rigctld, fldigi).
|
|
2. Run `radio`. Check the serial ports and sound card it lists are the
|
|
radio's. Compare with `ls -l /dev/serial/by-id/`, `lsusb -t` and
|
|
`cat /proc/asound/cards`.
|
|
3. 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.
|
|
4. Check the model and Hamlib model number are right, and note the baud rate
|
|
it answered at.
|
|
5. If it was recognised, mark its values in `radios.conf` `# verified`. If not,
|
|
note what `radio detect --probe` printed.
|
|
|
|
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:
|
|
|
|
1. Run `radio configure`. It should name the radio, its by-id port and a baud
|
|
rate, and say what it did for each program.
|
|
2. `systemctl --user status hampack-rigctld` is running, and
|
|
`rigctl -m 2 -r 127.0.0.1:4532 f` prints the radio's frequency.
|
|
3. 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 configure` writes 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 names
|
|
`radio configure` printed), and the waterfall shows the band.
|
|
4. 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.
|
|
5. In Pat, `pat connect ardop:///...` (or the web UI) changes the radio's
|
|
frequency through rigctld.
|
|
6. 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.
|
|
7. 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.
|
|
8. 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.
|
|
9. 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.
|
|
10. 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 configure` saved 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.
|
|
11. 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.
|
|
12. Run `radio configure` again: each program is "already set up", and
|
|
rigctld restarts.
|
|
13. Quit everything, run `radio configure --flrig`, and start flrig. It opens
|
|
on the radio, on its by-id port at the baud rate `radio` found, with PTT
|
|
by CAT, and shows the radio's frequency. `rigctl -m 2 -r 127.0.0.1:4532 f`
|
|
shows 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. Then run
|
|
`radio configure` without --flrig, and check rigctld has the radio's port
|
|
again. The settings were checked against flrig 2.0.12's source and FLTK
|
|
1.4.5's preferences format.
|
|
14. With a rig set by hand in WSJT-X, `radio configure` leaves it alone, and
|
|
`--force` replaces it. The `.bak-` copy has the old settings.
|
|
15. Unplug the radio, plug it in again, and check rigctld reconnects within
|
|
a few seconds. Reboot and check it starts at login.
|
|
|
|
| Date | Commit | Radio | rigctld | WSJT-X | JS8Call | Pat | fldigi | Dire Wolf | not1mm | QLog | POTACAT | Graywolf | flrig | 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. `radio` only 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 |
|
|
|------|--------|-------|--------|
|
|
| | | | |
|