Brings the checker's file-only decode work onto the parity branch so the phase-5 bench runs on the code that will ship. One conflict, the CRLF Series-III reference changelog: both kept, phase 5's row numbered '2026-11-03 (5)' above dev's (4)/(3)/(2). test_event_ingest's live- histogram dedup test asserted the stored row sits a second off the 0C time -- the #51 bug, fixed on dev -- so its premise now reads the event's own second; the dedup it tests still holds. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01SyJ2ip3Krb6dtdv2cXua44
This commit is contained in:
commit
f24913189b
31 files changed
+9577
-127
No files matched your search
@@ -11,7 +11,10 @@
|
||||
|
||||
| Date | Section | Change |
|
||||
|---|---|---|
|
||||
| 2026-11-03 | SUB 1A / 71 / 69 (settings read and write) | **The settings block, read and written as content (measured, BE9441's 10-26 recording and BE11529's 2026-04-20 captures).** **Read:** unescape each 1A data frame and take `data[11:]`; every frame but the last starts with one `00` that is not content; dropped, the frames join into **2,090 bytes headed by N = 2090: Series IV's `0x1A` content layout** (12 / 12 reads, Blastware's 4 × 512 + 42 and SFM's 1024 + 1024 + 42). The old "stable anchor" `be 80 00 00 00 00` is content `[12:18]` (pre-trigger −0.25 + stop mode Fixed). **Round trip:** the read after each of Blastware's two 10-26 writes equals the image it had just written, all 2,090 bytes (2 / 2). While monitoring, the read returns the device-info block (`0e 'BE9441' …`, 5 / 5). **`[26:28]`:** Blastware writes `00 00` on all 11 writes; the unit reads `01 7f` after a monitoring session (BE9441 10-26, BE11529 4-20 15:19) and sets it by itself; meaning unknown. **The two bytes after the block** (`[2090:2092]` of the 0x71 image) are Blastware's own per-unit constant -- `7c ea` on all nine of BE11529's writes, `0c e9` on both of BE9441's -- not the block's CRC-16/AUG, and in no reply of BE9441's three-hour session; SFM sends `00 00`. **`0x09` `[200:202]`:** Blastware echoed the unit's `8c 76` on all nine April writes; on 10-26 it read `17 17` and wrote `78 76` (read back so); meaning unknown. **Blastware re-renders the mic trigger level:** on BE11529's first write (4-20 15:19) the unit read 0.005 and 0.01 psi in its two `MicL` channel blocks (3 and 7; Series 3 carries 8 channel blocks of 48 bytes from `[1708]`, the second four prefixed `0x32`) and Blastware wrote 0.004983 and 0.010058 -- the same levels to its 0.1 dB; every other write left them alone. **Every one of the 11 Blastware writes reproduces** from the block before it with only the fields Blastware changed (plus that re-render and, on 10-26, the mic bit of `[25]`). Code: `minimateplus.protocol.assemble_compliance_content`, `read_compliance_content`, `micromate.setup_fields`; tests `tests/test_s3_settings_read.py`, `tests/test_setup_fields.py`. |
|
||||
| 2026-11-03 (5) | SUB 1A / 71 / 69 (settings read and write) | **The settings block, read and written as content (measured, BE9441's 10-26 recording and BE11529's 2026-04-20 captures).** **Read:** unescape each 1A data frame and take `data[11:]`; every frame but the last starts with one `00` that is not content; dropped, the frames join into **2,090 bytes headed by N = 2090: Series IV's `0x1A` content layout** (12 / 12 reads, Blastware's 4 × 512 + 42 and SFM's 1024 + 1024 + 42). The old "stable anchor" `be 80 00 00 00 00` is content `[12:18]` (pre-trigger −0.25 + stop mode Fixed). **Round trip:** the read after each of Blastware's two 10-26 writes equals the image it had just written, all 2,090 bytes (2 / 2). While monitoring, the read returns the device-info block (`0e 'BE9441' …`, 5 / 5). **`[26:28]`:** Blastware writes `00 00` on all 11 writes; the unit reads `01 7f` after a monitoring session (BE9441 10-26, BE11529 4-20 15:19) and sets it by itself; meaning unknown. **The two bytes after the block** (`[2090:2092]` of the 0x71 image) are Blastware's own per-unit constant -- `7c ea` on all nine of BE11529's writes, `0c e9` on both of BE9441's -- not the block's CRC-16/AUG, and in no reply of BE9441's three-hour session; SFM sends `00 00`. **`0x09` `[200:202]`:** Blastware echoed the unit's `8c 76` on all nine April writes; on 10-26 it read `17 17` and wrote `78 76` (read back so); meaning unknown. **Blastware re-renders the mic trigger level:** on BE11529's first write (4-20 15:19) the unit read 0.005 and 0.01 psi in its two `MicL` channel blocks (3 and 7; Series 3 carries 8 channel blocks of 48 bytes from `[1708]`, the second four prefixed `0x32`) and Blastware wrote 0.004983 and 0.010058 -- the same levels to its 0.1 dB; every other write left them alone. **Every one of the 11 Blastware writes reproduces** from the block before it with only the fields Blastware changed (plus that re-render and, on 10-26, the mic bit of `[25]`). Code: `minimateplus.protocol.assemble_compliance_content`, `read_compliance_content`, `micromate.setup_fields`; tests `tests/test_s3_settings_read.py`, `tests/test_setup_fields.py`. |
|
||||
| 2026-11-03 (4) | Appendix D.6.10 (NEW), D.6.11 | ✅ **Histogram timing from its own event record (#51).** `00 28 05 00` `04 00` `fe f5` [start][stop]: Blastware's Histogram Start and Stop on 63,490 / 63,490 each; exactly one per histogram, start 0–1 s after the footer's ts1. Interval time = its end (start + (i + 1) × interval, capped at the stop), 2,308,524 / 2,308,524 rows; a peak's date/time = its interval's. Retracted: "histograms stay on ts1" (it held only while SFM's events were unique on serial + time; now unit + time + type). 47 of 88 report fields match on every DL2 event. |
|
||||
| 2026-11-03 (3) | Appendix D.6.9 (NEW), D.6.10 | ✅ **Histogram interval detail.** Interval size = uint16 seconds at `k − 40`; stop = footer ts2. Frequency = (sample rate / 2) / half-period, 527,915 / 527,915 cells at 1024 sps and 1,725 / 1,725 at 2048 — **#50 retracted** (a fixed 512 halved 2048-sps frequencies). Blastware's words: `N/A` (half-period 0), `>100` / `>200` (≤ 5 samples), `<1.0`. Per-interval vector sum √PVS²: 63,497 histograms; `OORANGE` when over range with a clamped channel, 17 / 17. 34 of 88 report fields now match on every DL2 event. |
|
||||
| 2026-11-03 (2) | Appendix D.6.6, D.6.8 (NEW), D.6.9 | ✅ **Identity, battery and trigger, from the file.** **D.6.8:** the identity block before the setup name is SUB FE's (serial `k − 202`, firmware `k − 147`, DSP `k − 138`, calibration `k − 132` + by `k − 128`, model `k − 72`; battery uint16 /100 at `k − 190`); all 70,042 / 70,042. The embedded event record's two unknown bytes are the **trigger source** bitmask (6,524 / 6,524). Trigger sources `k − 19`, stop mode `k − 31`, per-channel trigger level float32 at label + 30, mic type at MicL + 4 (Series IV's code). **D.6.6:** recorded data vs report units vs unit peaks, with the manual sections; a Blastware report's dB/psi is the PC's preference. 🔶 `9c 06 00 42` (the histogram "terminal tail") looks like `9c 06 00` + the serial's `B`. 28 of 88 report fields now match on every DL2 event. |
|
||||
| 2026-11-03 | Appendix D.3.3, D.6.1, D.6.3, D.6.5, D.6.7, §8 | ✅ **File-only decode, second pass (on `dev`).** **D.3.3:** the footer is the file's last 26 bytes (70,041 / 70,041); an earlier stop-time record fooled the first-match search on 14 files, making histograms a day late. Its `[18:24]` is **not** fixed (retracted). **D.6.1:** STRT[18] now picks the codec; the waveform codec had claimed 2018 5 s histograms. **D.6.3:** the job number (flags `k − 9` bit `0x02`, uint16 at `k − 8`; 2,997 / 2,997). **D.6.5:** the PVS² high word is non-zero above 1.28 in/s (retracted "reads 0000"), so the layout check now uses peak ≤ PVS ≤ √3·peak (34,502,955 / 34,502,955); Blastware's "Number of Intervals" is the monitoring time ÷ the interval. **§8:** where the 1995 default-clock events come from. 18 of 88 report fields now match on every DL2 event. |
|
||||
| 2026-11-03 | call home (SUB 2C / 7E / 7F) | **SFM's call-home write, measured both ways.** SFM's 0x7E image (`write_image` of the 0x2C read with byte 5 set, framed ONCE) and its 0x7F confirm reproduce Blastware's 2026-04-20 enable and disable writes byte for byte (BE11529; `tests/test_s3_call_home_bw_frames.py`). Live on BE9441, idle: a no-op, on and off were all acked (0x81 / 0x80) and read back, and the unit's menu agreed. Only byte 5 changes: no unit-maintained field, unlike Series 4's `[118:120]`. Byte 5 is read from the UNESCAPED block. ⚠ Unescaping is not idempotent, so a built image must never pass through `write_image` again: a call-in time of 16:02-16:04 is `10 02`-`10 04` in the image. ⚠ **While monitoring, the unit answers the 0x2C read with its DEVICE-INFO block** ('Instantel', 'MiniMate Plus', its serial), as it answers 1A. Idle again, minutes later, it returns the call-home block. So a monitoring unit's call-home cannot be read-modify-written; SFM refuses with 'stop monitoring first'. A blind write while monitoring stays untested on purpose. |
|
||||
| 2026-11-02 | Appendix D.3.1, D.6 (NEW), §15 | ✅ **Event fields SFM reads from the file alone (v0.33.0, plus the range on `dev`).** New D.6 records the bytes and the DL2 verification for each field: the record type `STRT[18]`, the recording-setup block (sample rate, pre-trigger, record time, the four notes), the geophone range (label + 29 in the setup's channel blocks), each histogram interval's PVS², and the mic scale (one count = 0.25 Pa). **Retracted in place:** D.3.1's `STRT[20]` = record time (it is `00` on every DL2 file; the "70 s" SFM used to report was `STRT[18]`, the record-type byte), and the 2026-08-26 reading of sub-minute histogram records as little-endian (big-endian from byte 5 since v0.32.0, #47/#49). **For #48:** the file's copy of the block puts the pre-trigger where the 1A "stable anchor" `be 80 00 00 00 00` sits. In the file, though, it is each event's own pre-trigger, which varies on the same unit on the same day (253–256 samples at 1024 sps), and Blastware reports it per event. So the file says little about whether the live 1A loses its anchor, and #48 stays open. |
|
||||
@@ -3800,28 +3803,156 @@ Each interval stores its peak vector sum **squared**:
|
||||
- **Verified:** interval psi mismatches fell from 42,783 to 26, and mic peak mismatches from 345
|
||||
to 40.
|
||||
|
||||
#### D.6.7 Not read from the file yet
|
||||
**Three things share the word "units". Keep them apart** (2026-11-03):
|
||||
|
||||
*Updated 2026-11-03. 18 of 88 report fields now match on every DL2 event.*
|
||||
| Name | What it is | Its units are set by | Where it shows |
|
||||
|---|---|---|---|
|
||||
| **Recorded data** | the mic samples and interval peaks in the event file | nothing: they are raw counts | the event file |
|
||||
| **Report units** | dB(L) or psi(L) in a report | Blastware's report: the PC's preference (Blastware manual 714U0301 Rev 22 §4, Preferences → Units and Channel). SFM's report: SFM's own fixed choice (PDF PSPL in dB(L), plot in psi) | a Blastware report, an SFM report |
|
||||
| **Unit peaks** | the peaks the unit works out for its own summary | the unit's Microphone Units setting: psi(L), dB(L) or Pa(L), on the keypad (Right Arrow + Setups) or from Compliance Setup → Special Setups (MiniMate Plus manual 716U0101 Rev 15 §3.9.7) | the unit's screen, Blastware's event list, the 0C record on a live download |
|
||||
|
||||
- A Blastware report converts the recorded counts in its PC's preference. That is why DL2's
|
||||
reports flip dB ↔ psi fleet-wide, in 61 clean runs by report-write time. The decode checker's
|
||||
`units-is-a-display-preference` carve-out covers it.
|
||||
- 🔶 **Where the unit stores its own setting, and its unit peaks, is not measured.** Blastware's
|
||||
event list must read the unit peaks from somewhere, so they are probably in the event file,
|
||||
perhaps near the embedded event record.
|
||||
- **To settle it (proposed, not done):** on a bench unit, change Microphone Units on the keypad,
|
||||
then diff a read-only `1A` read and a short recorded event.
|
||||
|
||||
#### D.6.8 Identity, battery and trigger ✅ 2026-11-03
|
||||
|
||||
**The identity block** sits before the setup name. It is what the live read gets from SUB FE
|
||||
(`DeviceInfo`); offsets are from `k`:
|
||||
|
||||
| Offset | Content | DL2 |
|
||||
|---|---|---|
|
||||
| `k − 202` | serial number, NUL-terminated | 70,042 / 70,042 |
|
||||
| `k − 193` | firmware minor (`0x11` = 17), as SUB EA | — |
|
||||
| `k − 190` | battery, uint16 BE, hundredths of a volt | 70,042 / 70,042 (Blastware rounds half up: 6.25 → "6.3 Volts") |
|
||||
| `k − 147` | firmware, `"S338.17"` | |
|
||||
| `k − 138` | DSP version, `"10.72"` | Version 70,042 / 70,042 as `V {DSP}-{firmware after "S33"} {model}`; only `10.72-8.17` occurs, so the rule is proven for that alone |
|
||||
| `k − 132` | calibration date, `dd mm yyyy` (BE year) | Calibration 70,042 / 70,042 as `{Month} {d}, {yyyy} by {k − 128}` |
|
||||
| `k − 128` | calibrated by, `"Instantel"` | |
|
||||
| `k − 94` | manufacturer, `"Instantel"` | |
|
||||
| `k − 72` | model, `"MiniMate Plus"` / `"BlastMate III"` | |
|
||||
|
||||
- `k − 180 … k − 149` hold eight float32s (1.0, 8.0, then 1.0s). Not identified.
|
||||
- 🔶 **Inferred, not measured:** the three bytes before the serial are `9c 06 00`. With the
|
||||
serial's `B` (0x42) that makes `9c 06 00 42`, the histogram codec's "terminal tail". It looks
|
||||
like the start of this record rather than the end of a block. Every serial starts with B
|
||||
(BE… / BA…).
|
||||
|
||||
**The trigger source** is in the embedded event record (§7.8.9). The two bytes between its lead
|
||||
`00 28 05 00` and `fe 80`, a uint16 BE bitmask, were "unknown" until now:
|
||||
|
||||
| Value | Blastware's Trigger |
|
||||
|---|---|
|
||||
| `0x0001` | Tran |
|
||||
| `0x0002` | Vert |
|
||||
| `0x0004` | Long |
|
||||
| `0x0008` | MicL |
|
||||
| `0x0200` | Manual |
|
||||
|
||||
That holds on 6,524 / 6,524 waveforms.
|
||||
|
||||
**Trigger settings,** in Series IV's `0x1A` layout:
|
||||
|
||||
| Offset | Content | DL2 |
|
||||
|---|---|---|
|
||||
| `k − 19` | trigger sources: `0x07` geophones, `0x08` mic (`0x80` seen once, not identified) | — |
|
||||
| `k − 23` | active sensors, `0x0f` (all four) | 69,975, `0x07` on 8 mic-less files |
|
||||
| `k − 31` | stop mode: 0 = Fixed | 6,524 / 6,524, the only value in DL2 |
|
||||
| channel label + 30 | float32 trigger level: geophones in/s, mic psi | geo 6,484 / 6,484, mic 4,412 / 4,412 |
|
||||
| MicL + 4 | mic type code: 2 = Linear Weighting, as Series IV | 70,034 / 70,034, the only value |
|
||||
|
||||
- **Blastware prints a trigger level only when its channel is a trigger source** and the event
|
||||
was not Manual.
|
||||
- **For the mic level in dB, Blastware converts with 6895 Pa per psi.** That gives 4,272 / 4,272;
|
||||
the exact 6894.757 gives 4,271, failing one boundary case (0.01 psi → "130.8 dB(L)").
|
||||
- **The file's channel block is the 1A's, 4 bytes earlier.** Compare the 1A's scale constant at
|
||||
+28 and range at +33 with the file's +24 and +29.
|
||||
|
||||
#### D.6.9 Histogram interval detail ✅ 2026-11-03
|
||||
|
||||
**Interval size** is a uint16 count of seconds at `k − 40` (Series IV `[8:10]`): 2, 5, 15, 60 or
|
||||
300. It matches Blastware's IntervalSize ("1 minute", "5 seconds", …) on 63,518 / 63,518 DL2
|
||||
histograms. **The stop** is the footer's ts2: 63,460 / 63,518. The other 58 are Blastware a
|
||||
second earlier, the #51 family.
|
||||
|
||||
**Each interval's frequency** comes from its half-period in samples:
|
||||
`frequency = (sample rate / 2) / half-period`. That matches 527,915 / 527,915 printed cells at
|
||||
1024 sps and 1,725 / 1,725 at 2048.
|
||||
- ⚠ **RETRACTED (#50):** "frequency = 512 / half-period". 512 is half the sample rate at
|
||||
1024 sps only; at 2048 sps it halved every frequency.
|
||||
|
||||
Blastware prints these words instead of a number, on ~3.1 M DL2 cells:
|
||||
|
||||
| half-period / frequency | printed |
|
||||
|---|---|
|
||||
| half-period 0 | `N/A` |
|
||||
| half-period ≤ 5 samples | `>100` at 1024 sps, `>200` at 2048 |
|
||||
| below 1 Hz | `<1.0` |
|
||||
| below 10 Hz (20 at 2048) | one decimal |
|
||||
| otherwise | a whole number |
|
||||
|
||||
All four channels match every DL2 histogram.
|
||||
|
||||
**Each interval's vector sum** is √PVS² (D.6.5) at the event's range: 63,497 histograms match.
|
||||
- Blastware prints `OORANGE` for an interval's vector sum above the range when it also clamped
|
||||
a channel in that interval: 17 / 17 cells. The decode checker's saturation carve-out covers
|
||||
it.
|
||||
- 4 cells sit about 4e-6 past a rounding boundary. Blastware's arithmetic is a hair lower; they
|
||||
stay counted as mismatches.
|
||||
|
||||
#### D.6.10 Histogram timing — the histogram's own event record ✅ 2026-11-03 (#51)
|
||||
|
||||
**A histogram carries an embedded event record like a waveform's** (§7.8.9):
|
||||
|
||||
00 28 05 00 04 00 fe f5 [start 8 B] [stop 8 B]
|
||||
lead source marker dd mm yyyy 00 hh mm ss (as the footer)
|
||||
|
||||
- **Source `04 00`** sits where a waveform's trigger-source bitmask goes (D.6.8).
|
||||
- **The start is Blastware's Histogram Start Time** on 63,490 / 63,490 DL2 histograms, and the
|
||||
stop is its Stop Time on 63,490 / 63,490.
|
||||
- On all 63,500 there is exactly one such record. Its start is 0 or 1 s after the footer's ts1
|
||||
(1 s on 61,645), and its stop 0 or 1 s before the footer's ts2 (1 s on 57).
|
||||
- That makes the footer's start a second early on 97%. #51 had read it as SFM's error; it is
|
||||
the footer's own convention.
|
||||
|
||||
**What follows from the start:**
|
||||
|
||||
| Field | Blastware's rule | DL2 sample |
|
||||
|---|---|---|
|
||||
| Each interval's printed time | its end: start + (i + 1) × interval, capped at the stop | 2,308,524 / 2,308,524 rows |
|
||||
| Each peak's date and time (Tran, Vert, Long, vector sum, mic) | those of the interval holding its first maximum | 2,000 / 2,000 each |
|
||||
|
||||
> ⚠ **RETRACTED 2026-11-03:** "histograms stay on ts1". That held only while SFM's events
|
||||
> table was unique on (serial, timestamp). A waveform and its histogram share a second in
|
||||
> Blastware's timing (209 times in prod's 2026-09-30 store). SFM's events are now keyed on
|
||||
> unit + time + type.
|
||||
|
||||
#### D.6.11 Not read from the file yet
|
||||
|
||||
*Updated 2026-11-03. 47 of 88 report fields now match on every DL2 event.*
|
||||
- **Fields not read yet:**
|
||||
- trigger source and levels, stop mode, mic type, display units, firmware version, serial
|
||||
number, calibration, battery
|
||||
- per-interval frequencies (#50: they assume 1024 sps), per-interval PVS, interval size,
|
||||
histogram stop time
|
||||
- extended notes
|
||||
- the values Blastware computes: ZC frequency, acceleration, displacement, time of peak
|
||||
- sensor check results
|
||||
- monitor log
|
||||
- **Open cases:**
|
||||
- histogram start times are 1 s early (#51)
|
||||
- about 20 one-minute histograms with a mic peak an interval or two off
|
||||
- Blastware prints `OORANGE` when the vector sum alone exceeds the range (a carve-out still to
|
||||
prove)
|
||||
- Blastware prints `OORANGE` when an event's vector sum alone exceeds the range, with no
|
||||
clamped channel (a carve-out still to prove; the interval version is proven, D.6.9)
|
||||
- **Resolved on `dev`, 2026-11-02 → 03:**
|
||||
- the 37 histograms that decoded wrongly (D.6.1, D.6.5)
|
||||
- the 26 histogram start dates a day off (D.3.3; 17 of them were the same 5 s files, timed
|
||||
as waveforms)
|
||||
- the job number (D.6.3)
|
||||
- identity, battery, trigger source and trigger settings (D.6.8); Units is Blastware's
|
||||
preference (D.6.6)
|
||||
- histogram interval detail: frequencies (#50), vector sums, interval size, stop (D.6.9)
|
||||
- histogram start, stop, interval and peak times (#51, D.6.10)
|
||||
|
||||
---
|
||||
|
||||
|
||||
Reference in new issue
Block a user