A recording of Blastware downloading all 8 of BE9441's events (three crossing a 64 KB page; tests/fixtures/minimate-bench-10-26-26-blastware/) settles it: every one of its 748 requests is the standard 16-byte payload with a SUM8 checksum and every 02 / 03 / 04 / 10 byte DLE-escaped -- 748/748 re-encode byte-identically. A 5A request is not a special frame: it is that payload with a 2-byte LENGTH (0x0200 per chunk, the remainder for TERM) and a 4-byte linear ADDRESS. The walk is the event's start, +0x200 at a time carrying into the page byte, then TERM at the next boundary for exactly the remainder. What the old model misread: the fixed 'offset 0x1002' is length 0x0200 escaped (10 02 00); the first event's 'metadata pages at 0x1002/0x1004' are its chunks at 0x0200 and 0x0400; the 16-bit counter could not leave the key's page. - build_bw_frame escapes the four values (was 0x10 only); new s3_stuff(). - build_5a_request(address, length); parse_strt_end_key() -> the full 32 bits. - read_bulk_waveform_stream: one linear walk, no event-1 special case; strict mode keeps every refusal; an end at or before the start is refused as a corrupt STRT (a page crossing is no longer refused -- it downloads). Tests: all 540 Blastware 5A requests and all 208 others rebuilt byte for byte; SFM's walks for events 0, 1, 3 and 7 send exactly Blastware's requests and, fed Blastware's recorded replies, build whole events. In-page requests are byte-identical to before. No codec, store or DB change. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01SyJ2ip3Krb6dtdv2cXua44
1.5 KiB
Blastware downloading all 8 events from BE9441, recorded (2026-10-26)
BE9441 (S338.17, single shot, 4096 sps) on the dev box's serial port, shared on TCP by
bridges/mm_link.py; Blastware connected over TCP, listed the events and copied all 8
to disk. Both directions, raw:
| file | direction | size |
|---|---|---|
blastware_requests.bin |
Blastware → unit (748 requests, each after a 41 03 SESSION_RESET) |
17,757 B |
unit_replies.bin |
unit → Blastware | 364,972 B |
Events (key → end), from Blastware's 5A walks. Three cross a 64 KB page:
| event | start key | end (STRT) | 5A requests |
|---|---|---|---|
| 0 | 01110000 | 01118a2c | 70 |
| 1 | 01118a2c | 011216c4 | 71 (crosses into page 0x12) |
| 2 | 011216c4 | 0112a0b6 | 69 |
| 3 | 0112a0b6 | 011329d2 | 69 (crosses into 0x13) |
| 4 | 011329d2 | 0113b072 | 68 |
| 5 | 0113b072 | 01143046 | 64 (crosses into 0x14) |
| 6 | 01143046 | 0114b0b2 | 65 |
| 7 | 0114b0b2 | 01152f0e | 64 (crosses into 0x15) |
What it settled (measured): every request is the standard 16-byte payload, SUM8 checksum,
and every 02 / 03 / 04 / 10 byte DLE-escaped (748/748 re-encode byte-identically). The 5A
"offset" is a length (0x0200 per chunk, the remainder for TERM), followed by a 4-byte linear
address; a walk is start, start+0x200, ... carrying into the page byte, then TERM at the next
boundary for exactly the remainder. The first event's "metadata pages at 0x1002/0x1004" are
its chunks at 0x0200 and 0x0400, escaped (10 02 00, 10 04 00).