extract_body_bytes() and write_blastware_file() skipped 13 bytes on A5 frames 1 and 2 unconditionally, as if they were the global metadata pages (0x1002, 0x1004). Only the event-1 walk fetches those; a non-first event goes straight from the probe to sample chunks (skip 12), so every non-first event SFM built lost two bytes and decoded truncated (BE9441 event 1: 1,024 / 2,782 / 512 samples instead of 21,504, peaks far low). Frames now say which they are: each A5 reply echoes its address, and both 0x1002 at frame 1 and 0x1004 at frame 2 must match. Rebuilt from the bench's logged bytes, event 1 decodes 21,504 x 3 with peaks equal to the unit's own 0C values. Fixtures: BE9441's raw replies for events 0 and 1 (force-added). Operational: affects only Series-3 files SFM assembled itself (live downloads, bridges/ach_server.py) for non-first events -- not Blastware's own files, which is what the production store ingests. Such files are two bytes short; their .a5.pkl sidecars can rebuild them. No DB or schema change; codec unchanged (TOOL_VERSION not bumped). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01SyJ2ip3Krb6dtdv2cXua44
1015 B
1015 B
MiniMate bench, 2026-10-25 — BE9441 (S338.17, mic disabled), serial cable
Raw unit-to-SFM bytes of two one-event downloads by serial (POST /device/events/download),
taken from the bench frame log in the order received: the whole session (POLL, serial,
config, the event walk, then the 0x5A bulk stream). Parse with S3FrameParser and keep
the 0xA5 frames.
| file | event | key | 0x5A pattern | unit's own 0C peaks (in/s) T / V / L |
|---|---|---|---|---|
BE9441_event0_01110000_rx.bin |
0 (first) | 01110000 |
probe, metadata pages 0x1002 0x1004, samples, TERM |
0.020 / 0.060 / 0.015 |
BE9441_event1_0111646a_rx.bin |
1 | 0111646a |
probe, samples, TERM — no metadata pages | 0.030 / 0.095 / 0.020 |
Both events: single shot, 4096 sps, 5 s record + 1 s pre-trigger = 21,504 samples per channel. Event 1 is the case that showed the body builder skipping 13 bytes on its second and third frames as if they were metadata pages (2 bytes lost, decode truncated at 1,024 / 2,782 / 512).