Skip to content

feat: record the clock with each session, and the first latency result - #11

Merged
mohanvd merged 2 commits into
mainfrom
feat/session-clock
Oct 26, 2026
Merged

mohanvd merged 2 commits into
mainfrom
feat/session-clock

Conversation

@mohanvd

@mohanvd mohanvd commented Oct 26, 2026 •

Copy link
Copy Markdown
Owner

What this changes

  • invigil start writes clock.json into the logger session: the laptop clock's offset from NTP when the recording starts. invigil stop adds a second measurement when it ends. laptop_minus_ntp_ms can be subtracted from rx_ts - ts, so every latency figure can be checked and corrected later. docs/setup.md describes 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_scan was 2, 291 s apart, both sweeps discarded.
  • The README status and the firmware docs' To measure section point to it.

How it was tested

  • python -m pytest: 120 passed, including a new test for clock.json.
  • The report comes from a real 10-minute run: the logger's CSV files inside the timed window, corrected with that session's clock.json, and the unit's 60 summary lines from USB serial. Only aggregates are in the report.
  • Checked the report for addresses, IPs, network names, the salt and the MQTT password. None are in it.

Checklist

  • Tests pass: python -m pytest
  • No raw data or secrets: no raw captures, MAC addresses, salts, Wi-Fi or MQTT credentials
  • Docs updated where behavior, commands or formats changed
  • Commit messages follow conventional commits (feat:, fix:, docs:, test:, chore:)
  • Nothing in this change makes the unit transmit

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.
@vercel

vercel Bot commented Oct 26, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
invigil-demo Ready Ready Preview Oct 26, 2026 6:35pm UTC

Request Review

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.
@mohanvd mohanvd changed the title feat: record the laptop clock offset with each launcher session feat: record the clock with each session, and the first latency result Oct 26, 2026
@mohanvd
mohanvd merged commit 9eaf3fe into main Oct 26, 2026
7 checks passed
@mohanvd
mohanvd deleted the feat/session-clock branch October 26, 2026 18:41

This branch was successfully deployed

1 active deployment
Preview — 70b68006 Deployed Oct 26, 2026 by vercel[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant