docs: #58 in the reference and CLAUDE.md; unescape_reply's 748 were replies
Reference row 2026-11-06: an escaped checksum is the checksum, measured on 7,747 / 7,747 recorded replies, with what the stray byte misread. CLAUDE.md's phase-5 warning marked fixed, and the reply rule widened. Corrects 89c5234's unescape_reply docstring: the 2026-10-26 recording's 748/748 was measured on its replies (it also has 748 requests); I had called them Blastware's requests. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01SyJ2ip3Krb6dtdv2cXua44
This commit is contained in:
1 parent
47da0ddef0
commit
7b45647b23
3 files changed
+21
-14
No files matched your search
@@ -340,9 +340,12 @@ Read this first when picking the project back up.
|
||||
- ⚠ **A MiniMate's open setup menu wins:** a change sent while it is open is
|
||||
lost when the operator presses Cancel or Save (the menu writes its whole-block
|
||||
copy back). The preview warns; nobody in the menus while the office sends.
|
||||
- ⚠ An escaped checksum byte leaves a stray `0x10` in a Series-3 reply's data
|
||||
(about 1 frame in 85). The settings and waveform reads take exactly what they
|
||||
asked for; other reads are unaudited for it.
|
||||
- ~~⚠ An escaped checksum byte leaves a stray `0x10` in a Series-3 reply's data
|
||||
(about 1 frame in 85).~~ **Fixed in the parser (#58, 2026-11-06, measured):**
|
||||
a checksum of 02/03/04 arrives as `10 X`, and that `10` is never data (7,747 /
|
||||
7,747 recorded replies check). It had misread 1C battery/memory (419.84 V) and
|
||||
the 2C call-home read; the 5A file builder's own compensation is gone with it,
|
||||
and pre-fix `.a5.pkl` frames are converted on load (pickle version 2).
|
||||
- ⚠ The Micromate scheduler switch is not in any block SFM reads, so a leftover
|
||||
schedule blocks a change even with the scheduler Off.
|
||||
**Ring path measured the same night:** with THOR's watchdog off, a call-home
|
||||
@@ -475,9 +478,11 @@ Read this first when picking the project back up.
|
||||
retracted 5A model: SUB 71's "offset 0x1004" reads as length 0x0400 escaped, and
|
||||
Blastware escapes `03` in write data. A write whose payload holds a bare
|
||||
02/03/04/10 may be malformed. One Blastware config-write capture settles it.
|
||||
🔑 **Replies follow the same rule (measured, 748/748):** every 02/03/04/10 escaped,
|
||||
checksum = SUM8 of the unescaped payload. The "S3 checksums frequently fail" belief
|
||||
is `S3FrameParser` summing its output with the `10` of `10 02/03/04` still in it.
|
||||
🔑 **Replies follow the same rule (measured, 748/748; 7,747 / 7,747 across every
|
||||
recording, #58):** every 02/03/04/10 escaped, the checksum too, and checksum = SUM8
|
||||
of the unescaped payload. The "S3 checksums frequently fail" belief was
|
||||
`S3FrameParser` summing its output with the `10` of `10 02/03/04` still in it
|
||||
(fixed 2026-11-06: `checksum_valid` holds on every recorded reply).
|
||||
~~**⚠ KNOWN BUG — the 5A walk breaks once a unit's buffer crosses 64 KB.**~~
|
||||
`parse_strt_end_offset()` returns only `(end_key[2] << 8) | end_key[3]`,
|
||||
discarding the key's page byte. An event starting at `0x0111F2A2` and ending
|
||||
@@ -2026,7 +2031,8 @@ A re-analysis in the prior session incorrectly concluded `section[1]` is always
|
||||
and is device-specific. The 2026-04-09 re-analysis confirms `section[1]` was right.
|
||||
|
||||
**IMPORTANT — `frame.data` has checksum already stripped** by `S3FrameParser._finalise()`
|
||||
(`raw_payload = body[:-1]`; `data = raw_payload[5:]`). There is NO trailing checksum byte in
|
||||
(`raw_payload` = the body less its checksum, and less the `10` of an escaped one since #58;
|
||||
`data = raw_payload[5:]`). There is NO trailing checksum byte in
|
||||
`section`. All relative-from-end offsets must account for this.
|
||||
|
||||
Battery and memory fields are present in **both** states:
|
||||
|
||||
Reference in new issue
Block a user