diff --git a/CLAUDE.md b/CLAUDE.md index cc80b6f..aa371fc 100644 --- a/CLAUDE.md +++ b/CLAUDE.md @@ -10,7 +10,7 @@ pair — lives in `../terra-view/docs/tmi-stack.md`, which is also loaded as --- -## Where things stand (updated 2026-09-26) +## Where things stand (updated 2026-10-14) Read this first when picking the project back up. @@ -22,14 +22,39 @@ Read this first when picking the project back up. firmware) or `0x03` (Thor firmware) rather than `0x10`, and the data length is a **uint16 BE at `payload[8:10]`** (as a byte it under-reads `SUB 0x1A` by 47x). Read path, event chain, setups, scheduler, monitoring control and - per-event delete are all mapped; **the inbound call-home session is the only - protocol unknown left.** + per-event delete are all mapped — **and as of 2026-10-14 so is the inbound + call-home session.** There are no protocol unknowns left. ⚠ **No command has ever been originated against a unit by this project.** Every write was performed by THOR while we recorded. That line is worth keeping. - ⚠ `micromate/` still has **no live client** — it is codec-only. The - `minimateplus/` stack (transport/framing/protocol/client) has no Series-4 - counterpart yet. `minimateplus.transport` is protocol-agnostic and reusable. +- **✅ `micromate/` HAS a live client (2026-10-02).** `framing.py`, + `protocol.py`, `client.py` + models, **119 tests**, mirroring the + `minimateplus/` stack and reusing its `transport.py` unchanged. Connect over + TCP or serial, identify a unit, read state/clock/battery/memory, list setups, + walk the event chain and download + decode events. **Read-only** — every + write remains mapped-but-unimplemented, deliberately. + Verified on hardware across **both firmware lines** (UM12947 `11.0CB`, + UM20147 `11.0BD`) and **both transports** (USB CDC-ACM and an RX55 over + cellular), byte-identical. + ⚠ **The gap is config decoding**, not the protocol: `0x1A` (2,103 B) has + about a dozen fields read; `0x2C`, `0x2E`, `0x08`, `0x01` are fetched and + undecoded. Finishing it needs a bench session varying one setting at a time, + as was done for Series III — not desk work. +- **🔑 ACH / call-home, captured end to end (2026-10-14).** A Micromate signals + `RADIO RING`; **two paths exist and timing decides which**: if anything + already holds the modem's single TCP session the ring rides that connection, + otherwise the modem dials out to a listener. THOR's `UnitWatchDogTimer` + reconnects continuously, so THOR usually holds that slot — which is why + probes and relays see silence. That is contention, not a fault. + ⚠⚠ **`SUB 0xA2` ends a call-home on Series IV and is CONFIRM ERASE on + Series III** — same opcode, same `0x5D` response, opposite consequence. + `minimateplus` and `micromate` share a transport; dispatch on series before + that byte reaches a wire. + ⚠ **"Monitor While Calling Home" silently blocks erase**, and THOR reports + the session successful anyway. A receiver therefore **cannot rely on erase to + manage storage** — the server-side high-water mark is load-bearing. + ⚠ `bridges/mm_ach_server.py` implements the listener path only; it needs to + also hold outbound connections and watch for the ring. - **Bench tooling for device diagnosis (2026-09-25).** `bridges/mm_probe.py` distinguishes the four faults THOR reports identically as "disconnected" (refused / connect timeout / **connected but no reply** / replied) and names