test(s3): SFM's call-home write equals Blastware's, frame for frame -- opens the live send
Ground truth: Blastware changing BE11529's call-home settings on 2026-04-20 (Remote Access -> Setup Unit), paired raw files of what it sent and what the unit answered: the read, the enable (read 0x00 -> wrote 0x01), the disable (read 0x01 -> wrote 0x00). From the unit's own read before each write, SFM's 0x7E frame (call_home_image + build_bw_write_frame) is Blastware's byte for byte -- nothing but byte 5 differs from the read -- and the 0x7F confirm too. Mutation-checked: inverting the byte SFM writes fails the test. S3_CALL_HOME_FRAME_VERIFIED is now True; the gate stays tested shut by monkeypatch, and a test pins that its comment names this proof. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01SyJ2ip3Krb6dtdv2cXua44
This commit is contained in:
1 parent
8612cd9df7
commit
453d42e32a
9 files changed
+76
-4
No files matched your search
@@ -33,9 +33,11 @@ S3_MODES = {0x00: "Single Shot", 0x01: "Continuous", 0x03: "Histogram", 0x04: "H
|
||||
S3_EVENT_TIMEOUT = 120.0 # what the legacy event-download routes use
|
||||
|
||||
# A MiniMate call-home write goes out only once SFM's 0x7E / 0x7F frames are
|
||||
# reproduced from Blastware's own (tests/test_s3_call_home_bw_frames.py). Until
|
||||
# then a live change is refused before any connection; a dry run still works.
|
||||
S3_CALL_HOME_FRAME_VERIFIED = False
|
||||
# reproduced from Blastware's own; shut, a live change is refused before any
|
||||
# connection (a dry run still works). OPEN since 2026-11-02:
|
||||
# tests/test_s3_call_home_bw_frames.py rebuilds Blastware's enable and disable
|
||||
# writes (BE11529, 2026-04-20) byte for byte from the unit's own reads.
|
||||
S3_CALL_HOME_FRAME_VERIFIED = True
|
||||
|
||||
# The 0x1C flag byte (section[1]): the only values ever measured. 0x10 is
|
||||
# BE11529 monitoring (2026-04-08); 0x0B is BE9441 recording a histogram,
|
||||
|
||||
Reference in new issue
Block a user