feat(s3): assemble a settings read into the 2,090-byte block

Unescape each 1A data frame, take data[11:], drop the one non-content
byte that starts every frame but the last: 2,090 bytes headed by
N = 2090, Series IV's 0x1A layout.  Measured on BE9441's 10-26
recording (12 reads, both frame patterns); the read after each
Blastware write equals the image written.  read_compliance_content is
strict (a missing frame raises) and unjudged (a monitoring unit's
device-info answer comes back for the caller to recognise).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01SyJ2ip3Krb6dtdv2cXua44
This commit is contained in:
serversdownandClaude Opus 5.5 committed 2026-11-03 21:28:04 -05:00
1 parent e3a77e421d
commit 1bb15573fc
4 files changed
+163

No files matched your search

+15
View File
@@ -1132,6 +1132,21 @@ class MiniMateClient:
read-modify-write (`call_home_image`)."""
return self._require_proto().read_call_home_config()
def read_compliance_content(self) -> bytes:
"""The 1A settings read as the logical 2,090-byte block, unjudged (a
monitoring unit's device-info answer comes back as it is; see
`minimateplus.protocol.is_compliance_content`)."""
return self._require_proto().read_compliance_content()
def read_settings_blocks(self) -> dict:
"""The four blocks a settings write sends back, each as its read returns it:
event index (08), settings (1A, logical), trigger (2E), waveform data (09)."""
proto = self._require_proto()
return {"event_index": proto.read_event_index(),
"compliance": proto.read_compliance_content(),
"trigger": proto.read_trigger_config(),
"waveform": proto.read_waveform_data_raw()}
def write_call_home_image(self, image: bytes) -> None:
"""Send a `0x7E` image (`call_home_image`) and its `0x7F` confirm, each ack
checked -- framed once, never unescaped again. Raises ImageRefused before