diff --git a/CHANGELOG.md b/CHANGELOG.md index 8376486..e9ab59d 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -167,6 +167,36 @@ All notable changes to seismo-relay are documented here. - ⚠ Operational: they appear after the next release's backfill. - **The decode checker reads the mic's above-range ZC flag under its real name** (`mic_zc_above_range`). A mic ">100" could never match before. +- **An escaped checksum is the checksum, not data (#58; + `fix/escaped-checksum`, merged 2026-11-12).** Measured on every recorded + Series-3 reply. + - **The bug:** a MiniMate sends a checksum of 02, 03 or 04 as `10 X`. + `S3FrameParser` kept that `10` as the reply's last data byte, so the reply + read one byte long. + - **The evidence:** 60 recordings, March to October 2026, three units. + SUM8 of the unescaped payload is the checksum on 7,747 / 7,747 replies; + 272 arrived escaped, and every one checks as an escape pair. + - **What it misread:** + - live status (SUB 1C): battery and memory are counted from the end. 12 of + 760 recorded status replies read 419.84 V and 251,654,656 bytes, for + 6.76 V and 983,026; + - the call-home read (SUB 2C) came out one byte long, and SFM refused the + unit as "monitoring". + - The settings and waveform reads already took only what they asked for + (benched 2026-11-04); those trims stay as guards. + - **The 5A file builder had compensated since April.** With the parser + fixed, that rule would drop a real `0x10` ending a chunk (one A5 chunk in + ten ends in one), so it is removed. The 8 recorded BE9441 events still + build byte for byte as Blastware's own files. + - **`.a5.pkl` frames:** `A5_PICKLE_VERSION` 2. `load_a5` drops the stray + `0x10` from version-1 frames; all 28 pickles on the dev box rebuild + byte-identical. + - **`checksum_valid` now sums the unescaped payload**, and every recorded + reply checks. It had read about a third of good replies as bad; nothing + decides on it. + - Operational: none for stored events (prod's Series-3 events arrive through + `save_imported_bw`, which keeps no frames). No schema change, no + `TOOL_VERSION` bump, no backfill. ### Protocol / Documentation - **Reference D.6.12 (new):**