Repository navigation
feat: record the clock with each session, and the first latency result - #11
Merged
Merged
Conversation
invigil start writes clock.json into the logger session with the laptop's offset from NTP, and invigil stop adds a second measurement, so every latency figure can be checked and corrected later.
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
10 minutes on unit N1 with the laptop clock checked against NTP: every message within 1.11 s, nothing dropped, send window at most 118 ms. The README and firmware docs point to it.
This branch was successfully deployed
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.
What this changes
invigil startwritesclock.jsoninto the logger session: the laptop clock's offset from NTP when the recording starts.invigil stopadds a second measurement when it ends.laptop_minus_ntp_mscan be subtracted fromrx_ts - ts, so every latency figure can be checked and corrected later.docs/setup.mddescribes it.docs/results/2026-10-26-latency/report.md: the first latency and window-timing result. 10 minutes on unit N1 with the laptop clock checked against NTP: every message reached the laptop within 1.11 s (BLE p95 989 ms, spectrum p95 96 ms, status p95 104 ms), 0 dropped, 0 rejected, 0 send overruns, send window at most 118 ms of 300.tx_in_scanwas 2, 291 s apart, both sweeps discarded.How it was tested
python -m pytest: 120 passed, including a new test forclock.json.clock.json, and the unit's 60 summary lines from USB serial. Only aggregates are in the report.Checklist
python -m pytestfeat:,fix:,docs:,test:,chore:)