feat(decode): the monitor log line from the file's footer (group F)
Blastware prints one Monitor Log line per event: the footer's start and stop, then words for the footer's flag word [18:20] -- 69,983 / 69,983 DL2 lines, character for character (2026-11-08): 0x0001 Event Recorded 0x0010 Timer Stop 0x0002 Keyboard Exit 0x0020 Modem Exit 0x0004 Remote Exit 0x0200 Battery Low Exit 0x0008 Selfcheck Passed 0x0800 Memory Full Exit One line sets Modem and Timer and prints Modem, so the higher bit wins (the order of the others is inferred). Footer [20:22] is the event record's trigger source again (69,983 / 69,983); [22:24] is zero; [24:26] is not a common CRC-16 or sum. Event.monitor_log: MonitorLogLine(start, stop, flags, description), read only when the file's record chain is whole, which proves the footer. The checker compares it. 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
4402753e70
commit
b6309027b3
13 files changed
+595
-4
No files matched your search
@@ -416,3 +416,18 @@ def test_sensor_check_results_match_blastware(path):
|
||||
assert res[f].verdict == "match", (f, res[f])
|
||||
checked += 1
|
||||
assert checked >= 4
|
||||
|
||||
|
||||
# ── Group F: the monitor log (2026-11-08) ───────────────────────────────────
|
||||
_ML = FIX.parent / "monitor-log-11-08-26"
|
||||
|
||||
|
||||
@pytest.mark.parametrize("path", [
|
||||
FIX / "R352HIUI.F40W", FIX / "T004JTRF.ME0H", FIX / "M529L4XQ.R30H",
|
||||
_US / "K440HJCN.AS0W", _US / "O117I1NK.R70W",
|
||||
_ML / "T189INWA.060H", _ML / "K559HCQ7.IU0H", _ML / "T192JWEL.0Y0H", _ML / "T189JZY7.L60H",
|
||||
])
|
||||
def test_the_monitor_log_matches_blastware(path):
|
||||
ref = parse_xml_report_file(path.with_name(path.name.replace(".", "_", 1) + "_XML.XML"))
|
||||
res = {r.field: r for r in compare(sfm_side(path.read_bytes()), ref, CARVEOUTS)}
|
||||
assert res["MonitorLog"].verdict == "match", res["MonitorLog"]
|
||||
Reference in new issue
Block a user