Repository navigation
radio replay; modem lines in sniffed captures; never write over a capture - #8
Merged
Merged
Conversation
…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).
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.
The next step toward reading the radio without RPM.
quickprs radio replay CAPTUREsends 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.--keep-goingsends 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.radio sniffrecords each side's modem lines (RFCOMM modem status commands) as events. Replay uses them.probe,relayandsniffwrote over an existing capture.sniffandrelaydefault tosession.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.