Measured (BE9441, bench 2026-11-04): the first live SUB 1A settings read's frame B arrived one byte long (1,026 bytes after the 11-byte header instead of 1,025), ending in a lone 0x10. SFM's assembled block was then 2,091 bytes, so it refused the unit as "monitoring" though it was idle. Dropping that byte gave exactly the right block: it decoded as the old decoder read the same reply.
Reproduced offline against the parser: when a reply's checksum byte is 02, 03 or 04, the unit escapes it as 10 X. S3FrameParser keeps both bytes as data (as it does for any kept escape), and _finalise (minimateplus/framing.py, raw_payload = body[:-1]) strips only X as the checksum. The data gains one trailing 0x10. A checksum of 0x10 (10 10, collapsed) or any other value is unaffected. Expected rate is roughly 3 frames in 256 (computed, not counted; seen once live). The 12 recorded 1A reads in the fixtures never hit it.
Mitigated so far (on dev, parity merge 5b342b4):read_compliance_content and read_waveform_data_raw take exactly the length they asked for, and drop that one stray byte.
Still exposed: any S3 read that isn't sliced by length.
read_call_home_raw fails closed, with a misleading "a MiniMate answers this way while monitoring" refusal.
To check: the 5A bulk-download file assembly, which builds Blastware files from A5 frame data byte for byte. An A5 frame with an escaped checksum may carry the stray byte into the file body.
Proposed fix: in _finalise, when the body ends in 10 followed by 02, 03 or 04, treat the pair as the escaped checksum (data = body[:-2], checksum = the last byte). Pin it with:
the offline reproduction (a synthetic reply with each checksum value);
the 5A byte-perfect tests (the BW captures and BE9441's page-crossing events).
Then the two length trims can stay as belt and braces, or go.
Bench notes: ~/bench-logs/2026-11-04-sfm-settings/notes.md; reference row 2026-11-04 in docs/instantel_protocol_reference.md.
**Measured** (BE9441, bench 2026-11-04): the first live SUB 1A settings read's frame B arrived one byte long (1,026 bytes after the 11-byte header instead of 1,025), ending in a lone `0x10`. SFM's assembled block was then 2,091 bytes, so it refused the unit as "monitoring" though it was idle. Dropping that byte gave exactly the right block: it decoded as the old decoder read the same reply.
**Reproduced offline against the parser:** when a reply's checksum byte is 02, 03 or 04, the unit escapes it as `10 X`. `S3FrameParser` keeps both bytes as data (as it does for any kept escape), and `_finalise` (`minimateplus/framing.py`, `raw_payload = body[:-1]`) strips only `X` as the checksum. The data gains one trailing `0x10`. A checksum of 0x10 (`10 10`, collapsed) or any other value is unaffected. Expected rate is roughly 3 frames in 256 (computed, not counted; seen once live). The 12 recorded 1A reads in the fixtures never hit it.
**Mitigated so far (on dev, parity merge 5b342b4):** `read_compliance_content` and `read_waveform_data_raw` take exactly the length they asked for, and drop that one stray byte.
**Still exposed:** any S3 read that isn't sliced by length.
- `read_call_home_raw` fails closed, with a misleading "a MiniMate answers this way while monitoring" refusal.
- **To check:** the 5A bulk-download file assembly, which builds Blastware files from A5 frame data byte for byte. An A5 frame with an escaped checksum may carry the stray byte into the file body.
**Proposed fix:** in `_finalise`, when the body ends in `10` followed by 02, 03 or 04, treat the pair as the escaped checksum (data = body[:-2], checksum = the last byte). Pin it with:
- the offline reproduction (a synthetic reply with each checksum value);
- the 5A byte-perfect tests (the BW captures and BE9441's page-crossing events).
Then the two length trims can stay as belt and braces, or go.
Bench notes: `~/bench-logs/2026-11-04-sfm-settings/notes.md`; reference row 2026-11-04 in `docs/instantel_protocol_reference.md`.
Fixed on dev (merge ff705eb, changelog 745aab4); ships in the next release.
The parser now takes 10 02/03/04 at the end of a reply as the escaped checksum. Measured on every recorded reply: 7,747 / 7,747 check, 272 with an escaped checksum, every one an escape pair.
Also fixed: the 1C status battery/memory misread (419.84 V on 12 of 760 recorded status replies) and the 2C call-home read.
The 5A file builder's own compensation is removed. Pre-fix .a5.pkl frames are converted on load (A5_PICKLE_VERSION 2).
checksum_valid now sums the unescaped payload.
The 1A / 09 length trims stay as guards.
Fixed on dev (merge ff705eb, changelog 745aab4); ships in the next release.
- The parser now takes `10 02/03/04` at the end of a reply as the escaped checksum. Measured on every recorded reply: 7,747 / 7,747 check, 272 with an escaped checksum, every one an escape pair.
- Also fixed: the 1C status battery/memory misread (419.84 V on 12 of 760 recorded status replies) and the 2C call-home read.
- The 5A file builder's own compensation is removed. Pre-fix `.a5.pkl` frames are converted on load (A5_PICKLE_VERSION 2).
- `checksum_valid` now sums the unescaped payload.
- The 1A / 09 length trims stay as guards.
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
Measured (BE9441, bench 2026-11-04): the first live SUB 1A settings read's frame B arrived one byte long (1,026 bytes after the 11-byte header instead of 1,025), ending in a lone
0x10. SFM's assembled block was then 2,091 bytes, so it refused the unit as "monitoring" though it was idle. Dropping that byte gave exactly the right block: it decoded as the old decoder read the same reply.Reproduced offline against the parser: when a reply's checksum byte is 02, 03 or 04, the unit escapes it as
10 X.S3FrameParserkeeps both bytes as data (as it does for any kept escape), and_finalise(minimateplus/framing.py,raw_payload = body[:-1]) strips onlyXas the checksum. The data gains one trailing0x10. A checksum of 0x10 (10 10, collapsed) or any other value is unaffected. Expected rate is roughly 3 frames in 256 (computed, not counted; seen once live). The 12 recorded 1A reads in the fixtures never hit it.Mitigated so far (on dev, parity merge
5b342b4):read_compliance_contentandread_waveform_data_rawtake exactly the length they asked for, and drop that one stray byte.Still exposed: any S3 read that isn't sliced by length.
read_call_home_rawfails closed, with a misleading "a MiniMate answers this way while monitoring" refusal.Proposed fix: in
_finalise, when the body ends in10followed by 02, 03 or 04, treat the pair as the escaped checksum (data = body[:-2], checksum = the last byte). Pin it with:Then the two length trims can stay as belt and braces, or go.
Bench notes:
~/bench-logs/2026-11-04-sfm-settings/notes.md; reference row 2026-11-04 indocs/instantel_protocol_reference.md.Fixed on dev (merge
ff705eb, changelog745aab4); ships in the next release.10 02/03/04at the end of a reply as the escaped checksum. Measured on every recorded reply: 7,747 / 7,747 check, 272 with an escaped checksum, every one an escape pair..a5.pklframes are converted on load (A5_PICKLE_VERSION 2).checksum_validnow sums the unescaped payload.