SomnoTrace v4.0.0-rc4
๐ ๏ธ Fixes
- โฐ Sessions no longer "lost" or shifted by ~1 hour. A single transient
BLE timeout when fetching clock-drift metadata could bake a zero-drift
correction into every session of the day (seen as therapy ending ~50 min
early and the last session apparently missing).GET_DRIFTnow retries
with backoff, a day that can't get its drift evidence stays pending and
is retried on later sync passes, and the importer defers the day
instead of guessing zero drift. Explicit "no drift data" answers from
the bridge still import immediately with honest zero drift. - ๐ Late-night sessions now reach summaries and exported STR.edf.
The AirSense machine rewrites the current day'sSTR.EDFin place
without changing its file size or timestamp, so new sessions recorded
after the last STR fetch were invisible. Any sync pass that pulls
DATALOG files now forces a content-level STR recheck; the obligation is
persisted across reboots and identical bytes are discarded without
triggering an import pass. Native STR-derived daily summaries refresh
via their own spool, keeping live recordings authoritative. - ๐ Flow & pressure graphs work on v2 sessions. The session-graph
endpoint now understands v2 split files (_flow,_flow_mm,_press)
with v1 (_brp) fallback, decodes the pressure companion file, and
reports an empty pressure array instead of fake zeros when none exists. - ๐ Quieter logs. Repeating "association unknown or conflicting"
warnings for unchanged staged directories are now rate-limited to once
per evidence change, and the per-session "drift is an estimate" warning
is demoted to info level when zero drift is the expected outcome.
๐งช Verification
- Host suite: 37 tests, 0 failures (
edf_import_test+12 checks covering
pending-drift deferral, settled-placeholder import, and STR regrowth
dedup;sb_ble_testcovers the retry policy). - Firmware:
somnotrace.bin0x33c610 โ 19% app partition free.