feat: add native tinySA spectrum analyzer backend - #6
Closed
AlCalzone wants to merge 7 commits into
Closed
Conversation
Add calibrated power-trace acquisition, tinySA serial protocol support, device options, spectrum-only layouts, and optional native SDR build dependencies. Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Resolve the hardware discovery and gain-model refactor, preserve valid layout fallbacks, and make direct sweep setup recoverable. Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Preserve NET feeds, use RateSet for span changes, and keep power-sweep layout and recovery behavior on current upstream main. Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Track explicit cursor jumps and select a surviving trace layout when leaving direct-power sweeps. Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Force analyzer input mode, abort stale continuous scans before probing, and scale scan deadlines with RBW and span. Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Applying new sweep settings no longer changes the user's RX state. Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
AlCalzone
marked this pull request as draft
September 7, 2026 08:56
Contributor
Author
|
Converting to draft, until I'm happy with it. |
Defer device options, native wide sweeps, and optional native-library builds to focused follow-up changes. Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Contributor
Author
|
Superseded by a focused PR stack starting with #7. The concrete tinySA backend and follow-up features will be submitted as dependent draft PRs. |
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
process_block.Protocol
A dedicated worker owns the serial port. Startup aborts stale scans, verifies
versionandinfo, queries the configured zero level and forces analyzer input mode. Acquisition uses countedscanraw START STOP POINTS 1frames with signed little-endian levels. Scan deadlines follow span, RBW, point count and spur settings. Basic and Ultra devices switch RF input paths at their model-specific boundaries.Hardware verification
The backend was tested on a tinySA Ultra ZS405 running
tinySA4_v1.4-236-ge5aa115. The live checks covered discovery, normal and Ultra RF paths, spectrum frames, native wide sweeps, cancellation, point changes and LNA/attenuation coupling. The device was disconnected before the final upstream-main rebase, so the rebased integration was validated through the automated checks below.Validation
collapsible_matchallowance.cargo check --all-targetspasses.cargo package --lockedpasses.This implements the frame-based backend discussed in #5.