fix(device_access): a start's read-back waits out the sensor check, then wakes the MiniMate with retries
Second start through SFM, BE9441 2026-10-26 23:54:41: acked 0x69, and Brian saw 'starting, performing sensor check, recording' -- but the read-back's single SESSION_RESET + POLL went out 2.3 s after the ack, inside the ~30 s sensor check, and was never answered or re-sent (504 after 120 s, audit ca7b5b42). Brian: every unit is set to sensor-check before monitoring, ~30 s, then 'Recording...'. - MiniMateProtocol.wake(attempt_s, deadline_s): SESSION_RESET + POLL re-sent every attempt_s until the unit answers, then the POLL data step; a named timeout at the deadline. Reads only. MiniMateClient.wake() wraps it. - The Series-3 change: after a START, the first read waits S3_SENSOR_CHECK_S (30 s) before asking; every read then wakes with retries (every 5 s, up to 60 s). A stop is unchanged -- its read-back was confirmed three times tonight. Tests: a unit deaf for 4 probes is asked a 5th time and answers; a unit that never answers ends in the named timeout after ~6 probes; a start's first read waits the sensor check, a stop's does not; every read is preceded by a wake. 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
9886422212
commit
ca5c401c6f
6 files changed
+166
-9
No files matched your search
@@ -1203,6 +1203,12 @@ class MiniMateClient:
|
||||
log.debug("poll: startup handshake")
|
||||
proto.startup()
|
||||
|
||||
def wake(self, attempt_s: float = 5.0, deadline_s: float = 60.0) -> None:
|
||||
"""SESSION_RESET + POLL, re-sent until the unit answers (see
|
||||
MiniMateProtocol.wake) -- for a unit that may be busy, e.g. sensor-checking
|
||||
right after a start."""
|
||||
self._require_proto().wake(attempt_s=attempt_s, deadline_s=deadline_s)
|
||||
|
||||
# ── Monitoring ────────────────────────────────────────────────────────────
|
||||
|
||||
def get_monitor_status(self) -> MonitorStatus:
|
||||
|
||||
Reference in new issue
Block a user