perf(v5e): SX1262 SPI 125 kHz -> 4 MHz + TCXO wakeup 10 -> 5 ms (1.72x downlink) - #476
Draft
Mikefly123 wants to merge 1 commit into
Draft
perf(v5e): SX1262 SPI 125 kHz -> 4 MHz + TCXO wakeup 10 -> 5 ms (1.72x downlink)#476Mikefly123 wants to merge 1 commit into
Mikefly123 wants to merge 1 commit into
Conversation
The USP LoRa downlink at P4_GFSK_75K was software-limited to ~2.5 kB/s (~27% of PHY): per-frame RAM-trace instrumentation on the HIL bench showed ~31 ms of the ~50 ms non-airtime overhead was onPreTx SPI work (pkt params + 249 B FIFO upload + set_tx) at the 125 kHz bring-up SPI clock, and the radio planner's sleep-after-every-task re-pays the DTS TCXO wakeup delay on every frame. HWIL 2026-07-24 (v5e <-> GRC-USP, 178,704 B //dl200k.bin SD file downlink, 248 B frames, radio-only path): - baseline: 69.8-71.5 s (2500-2562 B/s), 181-214 cycle slips - SPI 4 MHz: 45.79 s (3903 B/s), 1 cycle slip - SPI 4 MHz + TCXO 5 ms: 41.44 s (4312 B/s, 1.72x), 5 cycle slips All downlinked files byte-identical to baseline; bidirectional link, authenticated RF commanding, and profile switching verified at each step. TCXO note: confirm 5 ms against the E22-400M30S TCXO startup spec before flight; the structural fix (lazy radio sleep between back-to-back TX tasks) belongs in the usp radio planner and is tracked separately. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Contributor
|
Important Review skippedDraft detected. Please check the settings in the CodeRabbit UI or the ⚙️ Run configurationConfiguration used: Organization UI Review profile: ASSERTIVE Plan: Pro Plus Run ID: You can disable this status message by setting the Use the checkbox below for a quick retry:
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
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
USP LoRa downlink at P4_GFSK_75K was software-limited to ~2.5 kB/s (~27% of PHY). Per-frame RAM-trace instrumentation on the HIL bench (probes at ComQueue hand-off, UspRadio deferred TX, RAC submit, onPreTx, set_tx, TX_DONE, comStatus) produced this breakdown of the ~97 ms/frame cadence:
* includes the deliberate bounded re-arm-skip wait; overlaps the pipeline hop.
Two board-DTS costs dominate the overhead:
spi-max-frequency = 125000(bring-up value) — ~18 ms/frame of pure SPI time.tcxo-wakeup-time = 10— the radio planner sleeps the radio after every task, so the TCXO restart is paid per frame.Measurements (178,704 B
//dl200k.binSD-file downlink over RF, 248 B frames)Caveats / follow-ups
uspfork change, tracked separately.🤖 Generated with Claude Code