docs(reference): the event footer ends in a CRC-16/AUG-CCITT
Footer [24:26] is CRC-16/AUG-CCITT (poly 0x1021, init 0x1D0F), stored big-endian, over the footer record from its length prefix 00 1a through footer [0:22] -- 24 bytes; the zero word [22:24] is not covered. 70,041 / 70,041 DL2 files. Found by the .MLG session, verified here. Retracts 2026-11-08's 'no common CRC-16 fits' (D.3.3, in place, and the footer comment in event_file_io): every attempt had started at the footer itself and missed the length prefix. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01ALX2R8pghDaZuti9U7mEE9
This commit is contained in:
1 parent
8c6cad681c
commit
8544e9c7e2
2 files changed
+12
-2
No files matched your search
@@ -1528,7 +1528,8 @@ def decode_blastware_bytes(raw: bytes, *, name: Optional[str] = None) -> Event:
|
||||
# [10:18] ts2 (stop) BE 8B
|
||||
# [18:20] the monitor log's flag word (_monitor_log)
|
||||
# [20:22] the trigger source, as in the event record [22:24] 00 00
|
||||
# [24:26] not identified (no common CRC-16 or 16-bit sum fits)
|
||||
# [24:26] CRC-16/AUG-CCITT, BE, over the record's length prefix `00 1a`
|
||||
# and [0:22]: 70,041 / 70,041 DL2 files (2026-11-11)
|
||||
ts1 = _bw._decode_ts_be(footer[2:10])
|
||||
ts2 = _bw._decode_ts_be(footer[10:18])
|
||||
|
||||
|
||||
Reference in new issue
Block a user