Add JSON serial interface and screen-free analyzers - #1346
Open
0xsys wants to merge 1 commit into
Open
Conversation
Adds a small machine-readable (JSON) command set on top of the existing USB serial CLI so any host program can parse device data reliably instead of scraping human-formatted text, plus a way to run the graphical analyzers with no screen attached. - New commands: jsoninfo (handshake/caps), jsonstatus (poll-friendly state), jsonlist <a|s|c|i|p|t> (NDJSON list rows + a closing end line), jsonmode (toggle streaming). Every machine line is prefixed with "@j " and is one self-contained JSON object with a "t" type tag. - New analyzer [-t wifi|bt|chan] CLI command starts the Channel/BT/Channel Activity analyzers without any screen interaction. Sample computation and emit now run independent of HAS_SCREEN; only the on-device chart drawing and touch buttons stay screen-gated. - Additive and board-neutral: existing CLI behaviour is unchanged, and continuous streaming is opt-in (gated behind JSON mode) so a plain serial monitor is never flooded with "@j" lines. See JSON_SERIAL_INTERFACE.md for the full protocol and usage.
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.
Adds a small machine-readable (JSON) command set on top of the existing USB serial CLI so any host program can parse device data reliably instead of scraping human-formatted text, plus a way to run the graphical analyzers with no screen attached.
See JSON_SERIAL_INTERFACE.md for the full protocol and usage.