Skip to content

radio replay; modem lines in sniffed captures; never write over a capture - #8

Merged
TheAbider merged 1 commit into
masterfrom
radio-replay
Oct 28, 2026
Merged

TheAbider merged 1 commit into
masterfrom
radio-replay

Conversation

@TheAbider

Copy link
Copy Markdown
Owner

The next step toward reading the radio without RPM.

  • quickprs radio replay CAPTURE sends the requests RPM sent in a captured read to the radio again, in order, and compares each answer with the one RPM got. If every answer matches, RPM's requests can become QuickPRS's own read command. If one differs, the session holds something that changes each time, and the replay says where.
    • It stops at the first differing answer (--keep-going sends the rest anyway), when the radio does not answer, and as soon as an answer is longer than RPM's. A radio that keeps talking cannot hold it up.
    • Where RPM got no answer, it keeps RPM's pause before the next request (up to 5 s). It sets DTR/RTS as RPM did.
    • It replays only reads. The radio's answers must hold a personality, RPM's requests must not, and RPM must have sent less than the radio. A write, activate or remove is refused before the port is opened.
  • radio sniff records each side's modem lines (RFCOMM modem status commands) as events. Replay uses them.
  • Fix: probe, relay and sniff wrote over an existing capture. sniff and relay default to session.jsonl, so a second session replaced the first. A capture is now never written over; the next free name is used and printed.

Tests: 5708 pass. The new tests were mutation-checked: 24 mutants, all caught.

…ture

radio replay sends the requests RPM sent in a captured read to the radio
again and compares each answer with the one RPM got: the first test of
reading a radio without RPM. It stops at the first answer that differs
(--keep-going carries on), when the radio does not answer, or as soon
as an answer is longer than RPM's. It keeps RPM's pauses where RPM got
no answer and RPM's DTR/RTS. Only reads are replayed: the radio's
answers must hold a personality, RPM's requests must not, and RPM must
have sent less than the radio; anything else is refused before the port
is opened.

radio sniff records each side's RFCOMM modem status commands as line
events. Capture files are never written over: the next free name is
used (sniff and relay default to session.jsonl, so a second session
replaced the first).
@TheAbider
TheAbider merged commit 54363ed 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