Repository navigation
QuickPRS 1.2.0 - #4
Merged
Merged
Conversation
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.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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
Import and export
template = Xis written only for an exact match. The README says what a config file keeps compared with JSONCommands
idenandp25convsets can be renamed. Adding a set under a name its type already uses is refusededit,fleet,clone-personality)GUI
Testing