feat(micromate): read the schedule file (read-only)
MicromateProtocol.read_file: 0x94 + path, then 0x48 pages to an all-zero reply -- THOR's frames byte for byte (UM12947, 2026-09-24), including params[3] = 1 on 0x94 and params[7] = 1 on the first 0x48. micromate.schedule parses the 260-byte records (two- and five-entry schedules from THOR's captures) and names the scheduled starts that would load a setup other than the active one, ignoring case. The client gains the raw (unstripped) active-setup name and the prefs / trigger / setup content reads a setup push sends back. 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
5ba72740dd
commit
d0335dbbbd
6 files changed
+281
-1
No files matched your search
@@ -1925,6 +1925,15 @@ at `payload[3:5]`:
|
||||
| 2nd | `0x0002` | 535 B | the file body |
|
||||
| 3rd | `0x0000` | 11 B | all zeros = **end of file** |
|
||||
|
||||
✅ **SFM reads the schedule this way, read-only (2026-11-03, phase 5)** --
|
||||
`MicromateProtocol.read_file` / `MicromateClient.read_schedule`, frames equal to
|
||||
THOR's byte for byte (`tests/test_micromate_schedule.py`). Two details the table
|
||||
above leaves out: the `0x94` request carries **`params[3] = 1`**, and the **first**
|
||||
`0x48` carries **`params[7] = 1`** (the later ones all-zero params); both `0x48`
|
||||
offsets are `0xFFFF`. A long file is **written** in 1,024-byte `0x8E` pieces
|
||||
(the five-entry *actioncheck* schedule went as 1,024 + 280). ⚠ Unmeasured: what
|
||||
`0x94` / `0x48` return for a unit with no schedule file.
|
||||
|
||||
⚠ This is the single most consequential find of the session, because it is not
|
||||
specific to the scheduler. **`callhome.MMB` is a file too**, and the call-home
|
||||
config is the last unsolved piece of the project. Reading it should be a
|
||||
|
||||
Reference in new issue
Block a user