fix(sfm): a monitoring MiniMate's call-home says 'stop monitoring first', not 'unknown(0x6E)'
Measured at the bench 2026-11-03 (BE9441): while monitoring, a MiniMate answers
the 0x2C call-home read with its DEVICE-INFO block ('Instantel', 'MiniMate Plus',
its serial) -- as it answers 1A -- and idle again, minutes later, the call-home
block. SFM writes back only a block it just read, so a monitoring MiniMate's
call-home cannot be changed; the change core already refused (byte 5 read as
'unknown(0x6E)', nothing sent), but said so cryptically.
- minimateplus.protocol.is_call_home_block(raw): the block starts with its own
length 0x7C and is N (or N + 2) bytes unescaped; the device-info block fails it.
- The Series-3 change raises UnitStateUnknown (409) with 'did not return its
call-home settings -- a MiniMate answers the call-home read with its
device-info block while monitoring; stop monitoring first ... nothing sent',
for a dry run too. call_home_state returns enabled = None with that reason.
- The page's callHomeRows shows the reason in place of 'Unknown (byte 5 = ...)'.
A blind write while monitoring stays untested on purpose.
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
9820a5389f
commit
5326e99ac2
5 files changed
+71
-6
No files matched your search
@@ -169,6 +169,17 @@ class ImageRefused(ValueError):
|
||||
"""A write refused before any byte was sent: the image is not a whole block."""
|
||||
|
||||
|
||||
def is_call_home_block(raw: bytes) -> bool:
|
||||
"""Whether a 0x2C reply payload is the call-home block: it starts with its own
|
||||
length N = 0x7C (00 7C DC on every read on record) and is N (or N + 2) bytes
|
||||
unescaped. A MONITORING MiniMate answers the read with its device-info block
|
||||
instead (00 00 00 08 'Instantel' ..., measured 2026-11-03 on BE9441), which
|
||||
fails this."""
|
||||
image = unescape_reply(bytes(raw))
|
||||
n = DATA_LENGTHS[SUB_CALL_HOME]
|
||||
return len(image) >= 3 and int.from_bytes(image[:2], "big") == n and len(image) in (n, n + 2)
|
||||
|
||||
|
||||
def call_home_enabled(raw: bytes) -> Optional[bool]:
|
||||
"""The call-home switch of a `0x2C` reply payload, read UNESCAPED (an escaped
|
||||
byte before it would move the raw index -- bench finding #1's lesson): byte 5,
|
||||
|
||||
Reference in new issue
Block a user