docs(series4): the 0x1A field map from a keypad pass -- a CRC, an edit buffer, and three mic blocks that are not channels

47 snapshots of UM20147 while settings were changed on its own keypad, one
at a time.  Every byte that moved is accounted for; nothing outside 0x1A
moved.

MEASURED (operator named setting + values): record mode [5] (01 Waveform,
02 Manual, 03 Histogram, 04 Combo -- S3's encoding, one byte later than the
S3 analogy put it), sample rate [6:8], histogram interval [8:10] s,
pre-trigger [12:16] f32 negative s (all four values), stop mode [17], record
time [18:22] f32, auto-stop [23], active-sensor and trigger-source bitmasks
[25]/[29], trigger level at channel +30 (geo in/s, mic psi).

MEASURED: the trailer is CRC-16/AUG-CCITT over content[0:2088] -- 47/47 and
a second unit.  Thor's write omits it, so it is read-side integrity, not a
write obligation.

MEASURED: blocks 1-3 are geophones, block 4 is the ACTIVE mic (a byte copy
of 5 or 6), 5 and 6 are the stored linear / SLM mic setups.  No separate
mic-type byte; block 4's +4:8 code is the type.  Promotes the 10-15 "+4
channel type" guess; retracts "+46:48 is a trigger-source flag" in place.

MEASURED: 0x1A reads the keypad's edit buffer live; discard reverts;
commit timing differs by widget (list / spinner / sub-window).

INFERRED, Series III: the 6-byte "stable anchor" sits exactly where Series
IV keeps pre-trigger (-0.25 s) + stop mode (Fixed).  An S3 unit in Auto
stop mode would lose it and decode no mode/rate/interval/record time.  Not
measured on S3; noted in instantel_protocol_reference.md, code untouched.

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-17 02:22:00 -04:00
1 parent 75cbe23214
commit 56b8aac4cb
3 files changed
+212 -28

No files matched your search

+168
View File
@@ -1292,12 +1292,25 @@ residual is S3's rounded display value, not a real difference).
- that `+46:48` is a per-channel enable or trigger-source flag. It is the only
byte separating three otherwise identical blocks, which is suggestive and
nothing more.
> ⚠ **2026-10-17: not trigger source, and not enable.** Trigger sources are a
> bitmask at `content[29]` and active sensors one at `content[25]`; neither
> change moved `+46:48`, nor did anything else in a 47-snapshot pass. Its
> purpose is unknown.
**GUESSED — do not build on these:**
- `+4` as a uint32 "channel type" (reads 1 / 1 / 1 / 2 / 2 / 9 across the six).
Six observations from a single setup, correlating with channel kind. That is
the entire basis.
> ✅ **2026-10-17: promoted, with one asymmetry.** Switching Mic Type to Sound
> Level rewrote block 4's code `2 → 9` and nothing else in the config moved, so
> the mic type has no byte of its own: this field *is* it. Geophone blocks
> read `0` while the geophones are deactivated. ⚠ Deactivating the mic did
> **not** zero block 4's code. See *The `0x1A` field map from a keypad pass*.
- ⚠ **2026-10-17: "six channels" is itself wrong.** Blocks 1–3 are the
geophones, **block 4 is the active mic**, and blocks 5 and 6 are the stored
settings of the linear and sound-level mic respectively. `LMic` and `SMic`
are not channels.
- `+8:24` as eight uint16 BE values. Geo reads 74, 10, 40, 21, 1275, 525, 3, 0;
mic reads 200, 50, 10, 10, 1500, 500, 5, 0. Field boundaries unverified — the
uint16 split is an assumption, not a reading.
@@ -1306,6 +1319,161 @@ residual is S3's rounded display value, not a real difference).
see which of these offsets moves. A field whose purpose is guessed and which
never moves when the matching setting changes is simply wrong.
### The `0x1A` field map from a keypad pass (UM20147, 2026-10-17)
Method: `scratch/mm_config_diff.py watch` polling all six blocks every 2 s while
settings were changed on the unit's **own keypad**, one at a time. **47
snapshots. Every byte that moved is accounted for by a named setting, and
nothing outside `0x1A` moved at all.** Snapshots:
`scratch/mm_config_snaps/UM20147/s1017-watch-*` and `watch-1017-0150-*`.
⚠ **Grades.** "Measured" below means: the operator named the setting and its
before/after value, and the bytes moved accordingly. Two attributions made
*before* the operator confirmed what was pressed were wrong, and were retracted
in the session — the mode enum and the sensors mask both briefly carried the
wrong label. A diff tells you which bytes moved, never which setting moved them.
Offsets are into **content** (`data[11:]`, 2,092 bytes).
| offset | field | encoding | grade |
|---|---|---|---|
| `[0:2]` | length echo, `0x082a` = 2090 = content minus the CRC | u16 BE | inferred (arithmetic); Thor zeroes it on write |
| `[2:5]` | `64 00 00` | — | unknown, never moved |
| `[5]` | **record mode** | `01` Waveform · `02` Waveform Manual · `03` Histogram · `04` Histogram Combo | **measured**, all four, screen-confirmed |
| `[6:8]` | **sample rate**, sps | u16 BE | **measured** (1024 → 2048) |
| `[8:10]` | **histogram interval**, seconds | u16 BE | **measured** (2…11, 30, 300; `01 2c` settles the width) |
| `[10:12]` | `00 00` | — | unknown, never moved |
| `[12:16]` | **pre-trigger**, *negative* seconds | f32 BE | **measured**, all four: `be80`=−0.25 `bf00`=−0.5 `bf40`=−0.75 `bf80`=−1.0 |
| `[17]` | **record stop mode** | `00` Fixed · `01` Auto Record | **measured**; u8 vs u16 BE `[16:18]` unresolved |
| `[18:22]` | **record time**, seconds | f32 BE | **measured** (10 → 11) |
| `[23]` | **auto stop after**, seconds | u8 (or u16 BE `[22:24]`) | **measured** (3 → 1) |
| `[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 |
| `[2090:2092]` | **CRC** | see below | **measured**, 47/47 + a second unit |
Mode enum ⚠: the **menu** order is Histogram → Combo → Waveform → Manual
(`03 04 01 02`), so the screen order is not the encoding. The values match
Series III's (`01` Continuous, `03` Histogram, `04` Histogram+Continuous) —
**the byte sits one position later than the S3 analogy predicted**, the
encoding does not differ. There is no Single Shot (S3 `00`).
A framing question, answered in passing: `0x03` is ETX, and it
appeared as a literal value twice (record mode `03`, interval 3 s). The block
stayed 2,103 bytes both times — **the Series-4 read path destuffs an escaped
ETX correctly**, which is exactly the case that shifted every later field by
one on Series III.
#### The channel blocks are 3 geophones, 1 active mic, and 2 stored mic setups
`content[1708] + 48n`. The 10-15 section above called these six channels;
**they are not**:
| block | role |
|---|---|
| 1–3 | Tran, Vert, Long |
| **4** | **the active microphone** — a byte-for-byte copy of block 5 or 6 |
| 5 | the linear-mic settings, kept while not selected |
| 6 | the sound-level-mic settings, kept while not selected |
**Measured:** Mic Type → Sound Level copied block 6 into block 4 byte-for-byte;
→ Linear copied block 5 back, **carrying a 140 dB trigger set while Linear was
active** — so block 5 is a store, not a template. Nothing else in the config
moved: **there is no separate mic-type byte**; block 4's `+4:8` code (`2`
linear, `9` sound level) *is* the type.
⚠ **For a decoder: read the mic from block 4 only, and branch on its code.**
Blocks 5 and 6 are the settings of whichever mic is *not* fitted; decoding
either as a channel reports a sensor that is not there.
| offset | field | grade |
|---|---|---|
| `+4:8` | sensor code: `1` geophone, `2` linear mic, `9` sound-level mic, `0` geophone deactivated | measured; ⚠ deactivating the mic left block 4 at `2` |
| `+30` | **trigger level**, f32 BE — geophones **in/s**; mic **psi**, whatever the display unit | **measured** (geo 0.5 → 0.6; mic 131 → 140 dB) |
The keypad has **one** geophone trigger level and writes it to all three blocks;
the per-channel slots exist (Thor may set them separately — untested). A mic
trigger edit writes block 4 **and** its store (block 5).
Mic trigger: `0.0102915 psi` → 70.957 Pa → **130.999 dB** re 20 µPa (screen: 131);
`0.0290064 psi` → **139.9997 dB** (screen: 140). **Reading is solved.** ⚠
**Writing is not:** the textbook conversion of 140 dB is `0.0290075`, 617 ULPs
away, and the implied Pa/psi differs between the two values (6895.29 vs
6895.03), so the firmware's dB → psi rule is not a single constant. A writer
cannot byte-match it yet.
#### Labels and unit strings are cosmetic — keypad saves re-render them
- Block 5's label went `LMic` → `Mic` on a **geophone** trigger-level save.
- All three geophone unit strings went `in.` / `/s.` → `in` / `/s` when Active
Sensors changed. **One-way**: re-activating did not restore the dots.
The same setup reads differently after Thor wrote it and after the keypad saved
it. **Key channels on block position and the `+4:8` code, never on a string.**
Why some saves re-render and others do not is unknown (inferred: the firmware
rebuilds whatever blocks the edited screen owns, in its own spelling).
#### The CRC
```
CRC-16/AUG-CCITT poly 0x1021, init 0x1D0F, refin/refout false, xorout 0
over content[0:2088] (content[2088:2090] = 00 00 is NOT covered)
stored big-endian at content[2090:2092]
```
Identified from a single sample-rate diff by testing all 65,536 polynomials
against `crc(a) ⊕ crc(b)` (linearity makes the range start irrelevant), then
confirmed on absolute values. `0x1021` was the only catalogued polynomial among
~30 chance hits. Equivalent forms — CCITT-FALSE (`init 0xFFFF`) over two zero
bytes plus the content — are the same algorithm; leading zeros only move the
effective init. **Verified: 47/47 snapshots on UM20147, every state predicted
before comparing, and UM12947's 9-24 read (`3cfd`), a different unit and setup.**
Revisiting a state reproduces its trailer exactly — no counter in the block.
⚠ **A writer does not send it.** Thor's `0x71` data is `content[0:2090]`
(aligns at shift 0, 1902/2090 equal) — it stops before the CRC and zeroes the
length echo. The unit computes both. **Its use is read-side integrity:** every
`0x1A` read can now check itself, which on a codec repeatedly bitten by silently
short data is the cheap guard worth wiring in.
#### `0x1A` reads the keypad's EDIT BUFFER, live
**Measured, two independent tests:** a scrolled-to, unsaved record mode appeared
in `0x1A` immediately; backing out with *discard* restored it. A second discard
reverted **two fields at once** (mode and an interval changed 13 times) to a
block byte-identical to the last saved state. Pressing *save* moved no byte.
When an edit reaches the buffer depends on the widget — **measured** per widget:
| widget | reaches `0x1A` | seen on |
|---|---|---|
| list | on **every scroll step** | record mode, active sensors, mic type |
| spinner popup | on **Enter** | histogram interval |
| sub-window | only on back-out → **save to setup file** | Record Time window (pre-trigger, stop mode, auto stop) |
A fast list scroll can pass a value inside one poll; the watcher then never sees
it (Histogram was skipped once). Pause on each value.
⚠ **Consequence:** a `0x1A` read taken while someone is in the setup menu
returns values that may never be committed — and may differ from the `.MMB` file
of the same name. Rare in the field; worth one line wherever SFM reports a
unit's config.
#### Negative results
- **`0x2E` never moved** — not under trigger level, trigger enable, or anything
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.
#### 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
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`.
## The write path — observed end to end (2026-09-24)
⚠ **We have still never sent a write command to a unit.** Thor did every write