docs(series4): loading a setup is an exact replacement -- plus the prefs block, a checksum rule, and the firmware's own unit constants

23 more snapshots of UM20147, keypad-driven.

MEASURED: loading a .MMB replaces the active config byte-for-byte -- three
loads, each moving exactly the fields that differ, the loaded block identical
to the file's saved state, no load marker.  The setup name's spelling
(.MMB/.mmb) depends on whether it was saved or loaded.

MEASURED: job number [40:42], report flags [39] (0x02 job no., 0x08 scaled
distance; 0x01 unknown); distance [30:34] in metres and charge weight
[34:38] in kg, converted bit-exactly with ft / 3.2808 and lb / 2.21 -- the
firmware's own constants, not the textbook ones.  Scaled distance is not
stored.  Location confirmed at [144].

MEASURED: 0x08 is the preferences block (display units at content[31]),
not an event index; switching units moves nothing in 0x1A.  0x1A, 0x08 and
0x2E share one checksum rule (N = content[0:2]; CRC over [0:N-2] at
[N:N+2]); 0x2C has none.  0x2C session timeout is at [118:120], encoding
unknown; modem baud is in none of the six blocks.

CORRECTED IN PLACE: the 9-24 notes-label offset (0x8A -> 0x7A) and
channel-block start (0x06BC -> 0x06AC), both 16-byte slips.

RULE: never write modem baud or modem type remotely -- the remote link is
the modem port.

No codec, store or DB change; no backfill.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01SyJ2ip3Krb6dtdv2cXua44
This commit is contained in:
serversdownandClaude Opus 5.5 committed 2026-10-19 17:30:37 -04:00
1 parent 7c010e42a4
commit a74d3c9b00
2 files changed
+151 -15

No files matched your search

+20 -9
View File
@@ -10,7 +10,7 @@ pair — lives in `../terra-view/docs/tmi-stack.md`, which is also loaded as
---
## Where things stand (updated 2026-10-17)
## Where things stand (updated 2026-10-19)
Read this first when picking the project back up.
@@ -74,14 +74,25 @@ Read this first when picking the project back up.
had been *asked for*, and both were wrong.
Not yet mapped: job number, scaled distance, GPS, aux I/O, SLM options,
four unknown head runs, channel `+46:48`.
**Start here next: load a different setup and diff it.** Brian's
hypothesis: selecting a `.MMB` repopulates the active config, so every
field that differs between the two setups moves at once. Any run that
doesn't land on a mapped field or a text field is an unmapped field, so one
load checks the whole map. Use two setups with *known* differences.
Inferred prediction: the `.MMB` *is* the block (Thor's `0x71` body is 91%
identical to the `0x1A` read), so the trailer after a load should be the
file's own CRC.
**2026-10-19 — setup loading done, plus prefs.** Loading a `.MMB` replaces
the active config **byte-for-byte** (3 loads; only differing fields move, no
load marker). Also measured: job number `[40:42]` + report flags `[39]`
(`0x02` job no., `0x08` scaled distance, `0x01` unknown); distance `[30:34]`
metres and charge weight `[34:38]` kg, **converted with the firmware's own
constants ft ÷ 3.2808 and lb ÷ 2.21** (not 2.2046 — convert back with 2.21 or
45 lb displays as 44.89); notes at `[122+64n]`/`[144+64n]` (the reference's
`0x8A` and `0x06BC` were 16-byte slips, corrected in place).
🔑 **`0x08` is the preferences block, not an event index** — display units
live there (`content[31]`), and switching them moves nothing in `0x1A`.
🔑 **One checksum rule covers `0x1A`, `0x08` and `0x2E`:** `content[0:2]` = N,
CRC-16/AUG-CCITT over `[0:N-2]`, stored at `[N:N+2]`. `0x2C` has none.
`0x2C` session timeout lives at `[118:120]` in an unknown encoding; modem
baud is in none of the six blocks.
⚠ **Never write modem baud or modem type remotely** — the remote link *is*
the modem port; a mismatch strands the unit until a site visit.
"Monitor While Calling Home" is Thor/Blastware-only, so it waits for a THOR
round. Next on config: that THOR round (a many-differences setup + the
`0x2C` fields), or wire the CRC check into `micromate/`.
- **🔑 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,
+131 -6
View File
@@ -373,7 +373,7 @@ Measured on UM20147 (`11.0BD`), four reads back to back with nothing touched:
| `0x1A` compliance | 2,103 B | **0** |
| `0x2C` call home | 137 B | **0** |
| `0x2E` trigger | 39 B | **0** |
| `0x08` event index | 101 B | **0** |
| `0x08` event index (= **preferences**, see 2026-10-19) | 101 B | **0** |
| `0x01` device info | 163 B | **0** |
| `0x1C` monitor status | 59 B | 2 (`content[6]` tick, `content[9]` seconds) |
@@ -1350,6 +1350,12 @@ Offsets are into **content** (`data[11:]`, 2,092 bytes).
| `[25]` | **active sensors** | bitmask: `0x07` geophones, `0x08` mic | **measured**, all three options |
| `[26:28]` | `05 3f` | — | unknown, never moved |
| `[29]` | **trigger sources** | same bits as `[25]` | **measured**, both directions; mic bit screen-confirmed |
| `[30:34]` | **scaled-distance distance**, metres | f32 BE; the keypad converts **ft ÷ 3.2808** | **measured** 10-19 (123 ft → `4215f6a3`, bit-exact, unique among 5 constants) |
| `[34:38]` | **charge weight**, kg | f32 BE; the keypad converts **lb ÷ 2.21** ⚠ not 2.2046 | **measured** 10-19 (45 lb → `41a2e55c`, bit-exact) |
| `[39]` | **report flags** | `0x02` Job Number on · `0x08` Scaled Distance on · `0x01` ? | **measured** 10-19 for `0x02`/`0x08`; `0x01` set throughout, unknown |
| `[40:42]` | **job number** | u16 BE, kept while switched off | **measured** 10-19 (0 → 1 → 1234) |
| `[42:86]` | **setup file name** | ASCII, null-padded | measured; spelling varies, see 10-19 |
| `[122 + 64n]` / `[144 + 64n]` | note label (22 B) / value (42 B), n = 0..3 | ASCII | **measured** 10-19 (Location) |
| `[2090:2092]` | **CRC** | see below | **measured**, 47/47 + a second unit |
Mode enum ⚠: the **menu** order is Histogram → Combo → Waveform → Manual
@@ -1465,14 +1471,127 @@ unit's config.
else. Whatever "trigger" config it holds, these settings are not it.
- `0x08`, `0x01`, `0x2C` never moved. The bit-stability also holds across days:
the 10-17 baseline was byte-identical to 10-15's.
> 2026-10-19: `0x08` and `0x2C` *do* move — under **preferences**, which
> 10-17 never touched. See the next section.
#### Not yet mapped
Location / Client / Company / Notes (already mapped from Thor's 9-24 write —
not re-checked here), Job Number, Scaled Distance, GPS, Aux I/O, the sound-level
~~Location / Client / Company / Notes~~ (Location confirmed 10-19), ~~Job
Number, Scaled Distance~~ (10-19), GPS, Aux I/O, the sound-level
mic's own options (response, weighting, LN1/LN2 — SMic `+8:24` holds `10, 90`,
the manual's example LN1/LN2, **guessed**), the four unknown head runs above,
and `+46:48`.
`[39]` bit `0x01`, and `+46:48`.
### Setup loading, the preferences block, and a checksum rule (UM20147, 2026-10-19)
Same method, same unit, 23 more snapshots (`watch-1019-1642-*`).
#### Loading a setup is an exact replacement
Two keypad-made setups differing in one field (`SWAP2` / `SWAP3`, record time
11 / 5 s), plus `test2`. **Measured, three loads:** each load moved exactly the
fields that differ between the two files, in one poll, and the loaded block was
**byte-identical (all 2,103 B) to that file's state when saved** — no
timestamp, counter or load marker. No other block moved.
So the operator's hypothesis holds: **a `.MMB` load repopulates the active
config wholesale**, and a load of a many-differences setup is a one-step check
of the whole map. 🔶 Inferred, untested: the `.MMB` on flash *is* this block;
reading the file directly (`0x94`) would settle it.
⚠ **The name field's spelling depends on how the setup became active.** After a
keypad save: `test2.MMB`. After loading from the list: `test2.mmb`. A
save-to-current-file flips it back to `.MMB`, moving no other byte. Same file.
**Compare setup names ignoring case and extension** — already noted 2026-10-13
from three commands spelling it three ways; this is a fourth.
Also measured in passing:
- **Hidden settings persist.** Record time is not shown in Histogram mode, and
`[18:22]` kept its value throughout. The UI gates; the block does not.
- **A literal `0x10` (DLE) value reads cleanly.** Sample rate 4096 puts `0x10`
at `content[6]`; length unchanged, CRC ok. This is the Series III "DLE jitter"
case that shifted every later field by one byte there.
- **Save-to-new-file switches the active setup at once**: the name field moved
the moment the file was saved.
- Sub-windows (Job Number, Record Time) commit to the edit buffer when the
window's own Save is pressed; the setup-file save is a separate step.
#### Unit conversions use the firmware's own rounded constants
Distance and charge weight are stored metric whatever the display unit:
| entered | stored | constant that reproduces it **bit-exactly** | textbook |
|---|---|---|---|
| 123 ft | `4215f6a3` = 37.490856 m | **÷ 3.2808** | ÷ 3.28084 / × 0.3048 → `4215f62b` |
| 45 lb | `41a2e55c` = 20.361992 kg | **÷ 2.21** | ÷ 2.20462 → `41a34b1f` |
⚠ **For SFM:** to reproduce what the unit displays, convert back with *its*
constants. `20.362 kg × 2.20462` shows **44.89 lb** for what the operator
typed as 45. The 2.21 makes stored kilograms 0.24% light — the unit is
self-consistent, the metric figure is simply wrong by that much.
**Scaled distance is not stored.** It went 0 → 18.34 on screen (= 123 / √45)
and no byte moved beyond the charge weight.
🔶 Inferred: the mic's psi values not matching the textbook dB conversion (see
above) is probably the same story — a rounded constant of the firmware's own.
Not yet identified.
#### `0x08` is the preferences block, not an "event index"
`0x08` content opens `00 58` = 88, the size of Series III's block of the same
role (written by `0x68`; S3 keeps backlight and power-save there). **Measured:
Measurement Units Imperial ↔ Metric moved `0x08` `content[31]` (`00` / `01`)
and its trailer, and nothing in `0x1A`** — so setup values are stored in fixed
units and a decoder never needs the display preference. The harness and this
document's older tables still call it "event index"; the name is wrong.
#### One checksum rule covers three blocks
| block | `content[0:2]` = N | CRC-16/AUG-CCITT over `[0:N-2]`, stored at `[N:N+2]` | grade |
|---|---|---|---|
| `0x1A` setup | 2090 | ✅ | 72 snapshots, 48 distinct states |
| `0x08` preferences | 88 | ✅ `[0:86]` → `[88:90]` | 2 states |
| `0x2E` | 26 | ✅ `[0:24]` → `[26:28]` | 1 state; fits the same rule |
| `0x2C` call-home | 124 | ❌ `[124:126]` reads `00 00` | — |
In every checked block `[N-2:N]` is `00 00`. 🔶 Inferred: that is the classic
*augmented* CRC — a shift register run over the message plus two zero bytes —
which is exactly what AUG-CCITT is. It changes nothing about how to verify.
#### `0x2C` call-home: Series III's layout, mostly Thor-only
Only three call-home settings are on the keypad (manual §11.4.4): session
timeout, modem type, modem baud. **"Monitor While Calling Home" is set from
Blastware/Thor only**, as are enable, call-after-event and the schedule.
Read from the block, against Series III's map — **inferred** by analogy, except
where marked:
```
[5] 01 enabled (S3 raw[5])
[6:..] "RADIO RING" dial string (S3 raw[6:46])
[87] 01 call after event recorded (S3 raw[87])
[117] 03 number of retries (S3 raw[117..118])
[118:120] 8fab ← MEASURED: tracks session timeout, encoding unknown
[120:122] 00 1e = 30 wait for connection? (S3 raw[121..122])
```
- **Session timeout 5 → 37 min moved only `[118:120]`, `8fab → 096d`; back to 5
returned exactly `8fab`.** Deterministic, but neither value reads as 5/37 in
any width, unit or endianness, and no CRC-16 of the value (6 polys × 4 inits ×
9 encodings) produces it. More points (6, 7, 8) would likely crack it. Low
priority: TMI does not depend on it.
- **Modem baud rate is in none of the six blocks.** 115200 → 230400, saved, and
nothing moved; the link stayed up (no `FAILED`) because the bench connection is
the PC port.
⚠ **Rule for any SFM write path: never write modem baud rate or modem type
remotely.** The remote link *is* the modem port. A baud mismatch with the
RV55, or switching type to USB-to-PC, drops the session mid-command and nothing
remote can undo it — the unit stays dark until a site visit. (We do not know
where either is stored, so this is not a capability we have; it is recorded so
it stays a decision.)
## The write path — observed end to end (2026-09-24)
@@ -1618,10 +1737,16 @@ Twelve differing regions, all accounted for. Offsets are into the `0x71`
**Notes block: four entries on a 64-byte stride**, each `[label: 22][value: 42]`,
labels at `0x008A + 64n`. The labels are `Location`, `Client`, `Company`,
> ⚠ **2026-10-19: the label offset is `0x007A + 64n` (122), not `0x008A`.**
> Measured on UM20147: `Location` at `content[122]`, its value at `content[144]`
> (`0x90`, as the table says), and a keypad edit of Location moved exactly
> `content[144:151]`. `0x8A` contradicts the `[label: 22][value: 42]` layout
> in the same sentence; it is a 16-byte slip, as is `0x06BC` below.
`General Notes` — **not** Series III's `Project:` / `Client:` / `User Name:` /
`Seis Loc:`, and they are fixed-width fields, not `label: value` pairs.
**Channel blocks: six, 48 bytes each**, from `0x06BC` — `Tran`, `Vert`, `Long`,
**Channel blocks: six, 48 bytes each**, from `0x06BC` (⚠ 2026-10-19: **`0x06AC`**
= 1708, where the labels actually sit; the trigger offsets below were right) — `Tran`, `Vert`, `Long`,
`Mic`, `LMic`, `SMic`. Trigger level sits at **label + 30**.
### The geophone scale factor is in the config block — and it confirms our LSB
@@ -1891,7 +2016,7 @@ longer on the Thor line.
| `0x49` state | `0xB6` | `0xFFFF` | 16 | |
| `0x1C` monitor status | `0xE3` | `0xFFFF` | 55 | +4 on `11.0BD` |
| `0x06` storage range | `0xF9` | `0xFFFF` | 47 | |
| `0x08` event index | `0xF7` | `0xFFFF` | 101 | contents unmapped |
| `0x08` event index | `0xF7` | `0xFFFF` | 101 | ⚠ 2026-10-19: it is the **preferences** block (units at `content[31]`, CRC) |
| `0x2E` trigger config | `0xD1` | `0xFFFF` | 39 | |
| `0x1A` compliance | `0xE5` | `0xFFFF` | 2103 | one frame, not Series III's four |
| `0x2C` call-home | `0xD3` | `0xFFFF` | 137 | |