Skip to content

QuickPRS 1.2.0 - #4

Merged
TheAbider merged 22 commits into
masterfrom
fixes-1.1.1
Oct 28, 2026
Merged

TheAbider merged 22 commits into
masterfrom
fixes-1.1.1

Conversation

@TheAbider

@TheAbider TheAbider commented Oct 28, 2026 •

Copy link
Copy Markdown
Owner

Summary

QuickPRS 1.2.0: fixes for the problems left open after 1.1.0, plus a few found on the way. Details per item in CHANGELOG.md.

Radio data

  • Templates: FRS, GMRS 8-14, MURS 1-3 and the public safety simplex channels are narrowband, as the FCC requires (47 CFR 95.573, 95.1773, 95.2773, 90.209(b)(5)); marine channel 70 (DSC only) is out of the marine template
  • New analog channels get the values RPM writes in every channel it creates (two fields of 85, a flag set); QuickPRS wrote zeros
  • Validation checks the XG-100P's bands (136-174, 380-520, 762-870 MHz) instead of 30-960 MHz, and no longer warns about things RPM itself writes (a trunk set and a talkgroup set sharing a name, the PTCT switch function)

Import and export

  • CHIRP: different TX and RX tones, RX-only tones and DCS pairs export as Cross mode instead of losing the TX tone; NFM, Skip and Duplex off are written and read back. The Uniden export uses the tone expected on the receive frequency
  • RadioReference paste: DPL codes and NACs are no longer read as CTCSS tones; FMN is narrowband; P25 channels go to a P25 conventional set with their NAC; DMR, NXDN, AM and the like are left out and counted. The cache keeps conventional channels, categories and color codes
  • JSON: an unedited export imports to the same bytes (all 36 RPM-saved test files); sets, channels and talkgroups stay editable
  • Config files: channel lines keep narrowband, TX off and scan off (a seventh field), and template = X is written only for an exact match. The README says what a config file keeps compared with JSON
  • CSV templates: inject and fleet skip the templates' comment lines (they failed on them before)

Commands

  • compare: a changed channel, talkgroup, trunk frequency, IDEN element, P25 conventional channel, system setting, radio option or personality field no longer reads as "Files are identical" with exit code 0
  • merge: copies systems and their sets exactly (names, system IDs, home unit IDs, ECC, IDEN reference, WAN entry, P25 conventional systems) and reports set name clashes
  • Renaming a set renames the references to it (systems, a P25 conventional set's talkgroup set); a name in use is refused; iden and p25conv sets can be renamed. Adding a set under a name its type already uses is refused
  • Personality name and user are set in both places the file stores them (edit, fleet, clone-personality)
  • wizard --modify adds to the file instead of ignoring it; the wizard asks before replacing an output file and keeps a backup

GUI

  • With the search filtering rows, editing or moving a trunk channel changed another channel
  • Export to CSV on a P25 conventional set wrote an empty file
  • The NAC editor and IDEN delete spliced raw sections (IDEN delete left a stale count); the RadioReference fetch thread called Tk; deleting a set names the systems that use it

Testing

  • Full suite locally with the RPM-saved test files: 5,642 passed, 5 skipped (CI does not have those files and skips the tests that need them).
  • Each regression test was run against the code before its fix and fails there, or was checked by putting the bug back (mutation runs). Guard tests that pass on both are noted in their docstrings. Four tests that passed for the wrong reason were found and fixed (a wizard test that passed because the old wizard crashed, two compare tests that added a duplicate set instead of a talkgroup, a template example test built on a wrong premise).
  • JSON round trip byte for byte on all 36 RPM-saved files; the README's config example builds and keeps its flags.

FRS (all channels, 47 CFR 95.573), GMRS 8-14 (the 467 MHz interstitials,
95.1773), MURS 1-3 (11.25 kHz, 95.2773) and the public safety simplex
channels (Part 90 VHF/UHF since 2013, 90.209(b)(5)) were programmed as
25 kHz channels. Marine channel 70 carries DSC only, and voice is not
allowed on it. The GMRS docstring called channels 8-14 repeater inputs.
… RX tone

CHIRP's TSQL mode sends and expects cToneFreq, so a channel whose TX and
RX tones differ lost its TX tone; an RX-only tone came out as TX and RX,
and DCS ignored the RX side. Export now uses Cross mode (CrossMode,
RxDtcsCode) for any pair TSQL or DTCS cannot hold, and import reads it.
Narrowband channels export as NFM (always FM before), scan off as Skip S
and TX off as Duplex off, and import reads all three back.

A scanner listens on the receive frequency, so the Uniden export now
uses the tone the radio expects there instead of the one it sends.
The Tone column parser read '754 DPL' as tone 754 and a P25 NAC
('293 NAC') as tone 293, and every channel went into an analog set as
wide FM whatever its mode. Now DPL codes become DCS tones, NACs are kept,
FMN channels are narrowband, P25 channels go to a P25 conventional set
with their NACs, and modes neither set carries (DMR, NXDN, AM...) are
left out and counted. Both GUI importers use one injection path.
compare matched conventional sets by channel count, talkgroups by ID and
trunk channels by receive frequency only, and never looked at P25
conventional sets, system settings or radio options, so a changed
frequency, tone, name, flag, NAC or system ID came out as 'Files are
identical' with exit code 0. Items are now matched by key and compared
field by field (the change line names the item and the fields), P25
conventional sets are compared, and the two archive trees (data without
tags or counts) are compared so anything else that differs is reported.
Import rebuilt a personality from the readable fields on top of a blank
one: it duplicated the blank's conventional set, never imported P25
conventional sets or systems or the radio options, packed IDEN elements
into the first slots (the control channel names an IDEN by its slot),
set system IDs to 0 unless a WAN entry gave one, and dropped every
channel and talkgroup field without a readable key (power, squelch,
audio profile, flags).

Each channel, talkgroup and set now carries all of its fields after the
readable ones (bytes as hex), IDEN elements carry their slot, and an
'archive' block carries everything else (systems, option objects,
personality fields, options XML). An unedited export imports to the
same bytes: all 36 RPM-saved test files do. Edits to sets, channels and
talkgroups apply. A JSON without the archive block is built from a
blank whose set lists and systems it replaces, with P25 conventional
systems, system IDs, home unit IDs and the options XML.
Two blanks saved under different names came out as 'header fields
differs'; compare now lists the file name, saved-by, save time,
personality name and user name that changed.
Systems find their sets by name, but adding a set under a name already
in use went through silently (validation then warned that RPM may
confuse the two). The add functions now refuse it.

That showed merge creating such duplicates. It also walked systems the
1.0 way, one class header and every config block after it, so every
system was named after the first of its class; it rebuilt P25 systems
from defaults (system ID 0 unless a WAN entry gave one, no home unit
ID, flags or ECC entries, an IDEN set guessed from the name) and left
P25 conventional systems out. merge now copies each system object and
the sets it names from the archive tree as they are, with its WAN
entry, and skips (and reports) a system whose set name the target holds
with other contents.

Tests that meant to add a talkgroup or frequency to an existing set
added a second set with the same name; they now add to the set.
wizard --modify FILE printed 'Modifying: FILE', then built a new
personality and wrote it to the output name without reading FILE. It
now adds the systems, channels and options it collects to FILE and
saves it in place by default. The wizard also wrote over an existing
output file without asking and without a backup, bypassing the save
checks; it now asks, and writes through write_prs (backup, structure
check).
…odes

The cache saved a hand-picked list of fields, so a system loaded from it
had no conventional channels and no categories (the GUI's category
filter came up empty) and its frequencies lost their color codes. Save
and load every field of the data classes instead.
The personality name and user name are stored in the CPersonality header
and again among the document fields after the options; RPM writes the
same values in both (all 36 test files). edit --name/--author, fleet
unit names and clone-personality --name changed only the header. A name
too long for the header's one-byte-length block is now a clear error
instead of struct.error.
template-csv writes '#' comment lines under each header, and inject and
fleet read them as data: frequencies and units failed ('could not
convert string to float: # Example: 806.0125') and the comment became a
channel. The readers for these files now skip '#' lines and blank lines
(exported CSVs, whose names may start with '#', are read as before).
The channels example now says which frequency is the repeater input.
Frequencies were checked against 30-960 MHz, so a channel at 220, 300 or
900 MHz passed although the radio tunes only 136-174, 380-520 and
762-870 MHz; the band edges were in the limits table but unused, and the
error message called 30-960 MHz the XG-100P's range.
export-config wrote inline channels without narrowband, TX-off or
scan-off, so PAWSOVERMAWS's FURRY NB set came back from build as 25 kHz
channels, and it wrote 'template = X' for any set with a template's
frequencies, so a MURS set programmed wide (WA WIDE) would build
narrowband with the template's names. Inline channel lines take an
optional seventh field of flags (nb, rxonly, noscan), and a set is
written as a template only when the template builds it back exactly.
RPM writes 85 in both tone address fields and sets the flag QuickPRS
calls tone mode in every analog channel it creates, with or without
tones (280 of the 285 channels in the test files; the other five are a
set QuickPRS 1.0 made). QuickPRS wrote 0, 0 and off. What the fields
mean is not known, so new channels now match RPM's.
Validation warned about a trunk set and a talkgroup set sharing a name,
which is how RPM names them (four such pairs in PAWSOVERMAWS), and about
PTCT, RPM's default 2-position switch function (33 of the 36 test
files). Duplicate names are now reported within one set type only, and
PTCT is a known switch function.

README: the inline channel flags, and what a config file keeps compared
with JSON. Format notes: the analog channel fields RPM always sets.
With the search in filter mode, rows that do not match are detached, so
a trunk channel row's place among its visible siblings is not the
channel's place in its set. Inline frequency edits, Move Up/Down and the
context menu used that place, so they changed or moved another channel
(the first one, when the row was not found). Trunk channel rows now
carry their channel index, as conventional channel rows already did.
Systems find their trunk, talkgroup, IDEN and channel sets by name, and
a P25 conventional set may name a talkgroup set. The rename functions
changed only the set, so edit --rename-set (which validation suggests
for duplicate names) and the GUI's rename left the system naming a set
that no longer existed. One rename on the archive tree now changes the
set and every reference, refuses a name already in use, and covers IDEN
and P25 conventional sets too (edit --rename-set iden|p25conv).

GUI: Export to CSV on a P25 conventional set wrote an empty file; it
writes P25_CONV_SET.csv. The NAC editor and IDEN set delete spliced raw
sections the 1.0 way; they use the archive helpers. Deleting a set now
names the systems that use it before asking.
The API fetch ran in a worker thread that scheduled its result with
winfo_toplevel().after(), a Tk call from outside the main thread, which
Tk does not allow. The worker now leaves its result in a queue that the
main thread polls.
@TheAbider TheAbider changed the title Fix templates, CHIRP, RadioReference paste, compare, JSON, merge and wizard --modify QuickPRS 1.2.0 Oct 28, 2026
@TheAbider
TheAbider merged commit aead294 into master Oct 28, 2026
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant