feat(micromate): a config diff harness -- and the blocks turn out to be bit-stable
The Series III config map was built by changing one setting and seeing which bytes moved. Whether that method transfers to Series IV depended on an unmeasured question: how much of a config block moves ON ITS OWN. If a block carries a clock or a counter, every diff arrives polluted and there is no way to tell the real answer from the noise in a single pair. MEASURED ON UM20147 (11.0BD), FOUR READS BACK TO BACK, NOTHING TOUCHED: 0x1A compliance 2103 B 0 bytes moved 0x2C call home 137 B 0 0x2E trigger 39 B 0 0x08 event index 101 B 0 0x01 device info 163 B 0 0x1C monitor status 59 B 2 (and those two are explained below) Every config block held every byte still, so the method transfers directly and needs no noise floor subtracted. That was the open question. scratch/mm_config_diff.py drives it: `volatile` establishes the floor, `snap` saves a labelled read of all five blocks, `diff` reports changed runs with each plausible field interpretation (u8/u16be/u32be/f32be) and reports any volatile bytes separately rather than silently hiding them. CORRECTION TO content[6] OF 0x1C, long recorded only as "NOT the hour": it is a sub-second tick, ~4020 counts/second in steps of exactly 4, wrapping at 256 -- about a 64 ms period, consistent with the low 6 bits of a millisecond counter. Consequence worth knowing: a 0x1C block is never byte-identical to itself, so any "has the status block changed?" check answers yes ~15 times a second. Compare named fields, never whole blocks. I nearly recorded that byte wrong, and the trap is cheap enough to document: sampled once per second it reads as a smooth monotonic counter at ~16/s with a 16-second wrap. Twelve consecutive samples supported it. It is aliasing -- a 64 ms counter read once a second is noise that happens to look tidy. Measure a counter back to back before trusting any rate from spaced samples. Also: the settings do not have to be changed from THOR. The unit's own keypad works, which needs no Windows VM and does not contend for the modem's single TCP session. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Ru8Lg9HkkYvX9VWWo65SmL
This commit is contained in:
1 parent
4c29820831
commit
711277131a
4 files changed
+301
-1
No files matched your search
@@ -346,6 +346,49 @@ certainly per-channel calibration/scale factors, by analogy with Series III's
|
||||
The battery reading independently corroborates: Thor's own event reports for
|
||||
these units print `BatteryLevel : 3.8 volts`.
|
||||
|
||||
**⚠ `content[6]` is a sub-second tick, not a status field (UM20147, 2026-10-15).**
|
||||
Long recorded only as "NOT the hour". Read back to back it advances
|
||||
**~4,020 counts/second in steps of exactly 4, wrapping at 256** — a period of
|
||||
about **64 ms**, consistent with the low 6 bits of a ~1 kHz millisecond counter
|
||||
scaled by 4.
|
||||
|
||||
⚠ **Practical consequence: a `SUB 0x1C` block is never byte-identical to itself.**
|
||||
Any check of the form "has the status block changed?" answers *yes* on every
|
||||
read, roughly 15 times a second. Compare named fields, never whole blocks.
|
||||
`content[9]` (seconds) is the only other byte that moves on an idle unit.
|
||||
|
||||
⚠ **How this was nearly recorded wrong, because the trap is cheap to fall into.**
|
||||
Sampled once per second it looks like a smooth, monotonic counter advancing
|
||||
~16 per second with a 16-second wrap — a clean, plausible, entirely false
|
||||
reading, because once-per-second sampling of a 64 ms counter is aliased. Twelve
|
||||
consecutive samples supported it. **Measure a counter back to back before
|
||||
believing any rate derived from spaced samples.**
|
||||
|
||||
### The config blocks are bit-stable — which is what makes a diff loop viable
|
||||
|
||||
Measured on UM20147 (`11.0BD`), four reads back to back with nothing touched:
|
||||
|
||||
| block | size | bytes that moved on their own |
|
||||
|---|---|---|
|
||||
| `0x1A` compliance | 2,103 B | **0** |
|
||||
| `0x2C` call home | 137 B | **0** |
|
||||
| `0x2E` trigger | 39 B | **0** |
|
||||
| `0x08` event index | 101 B | **0** |
|
||||
| `0x01` device info | 163 B | **0** |
|
||||
| `0x1C` monitor status | 59 B | 2 (`content[6]` tick, `content[9]` seconds) |
|
||||
|
||||
Every config block held every byte still. **So the Series III method applies
|
||||
directly: change exactly one setting, re-read, and any byte that moved is that
|
||||
setting.** No noise floor to subtract and no repeat-sampling needed to
|
||||
distinguish a field from a counter — which was the open question about whether
|
||||
this approach would work at all here.
|
||||
|
||||
Harness: `scratch/mm_config_diff.py` (`volatile` / `snap` / `diff`), read-only.
|
||||
|
||||
⚠ The settings do **not** have to be changed from THOR. They can be changed on
|
||||
the unit's own keypad, which avoids contending with anything for the modem's
|
||||
single TCP session and needs no Windows VM.
|
||||
|
||||
**`SUB 0x2C` — call-home config.** Contains the ASCII string `RADIO RING`.
|
||||
Worth flagging: that is the *exact* string seen in the RV50 `ALEOS_SERIAL`
|
||||
debug during the BE12599 incident —
|
||||
|
||||
Reference in new issue
Block a user