merge: the file's pre-trigger is the event's -- corrects today's #48 note

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01ALX2R8pghDaZuti9U7mEE9
This commit is contained in:
serversdownandClaude Opus 5.5 committed 2026-11-02 14:23:33 -05:00
commit a30cf47825
2 files changed
+35 -20

No files matched your search

+6 -5
View File
@@ -47,11 +47,12 @@ Read this first when picking the project back up.
(a carve-out to prove)
- ⬜ **Not read yet:** job number, ZC frequency, acceleration, displacement,
time of peak, sensor check, battery, calibration, units, monitor log.
- 🔶 **#48, measured on files only:** the 1A "stable anchor"
`be 80 00 00 00 00` is the setup's pre-trigger −0.25 s followed by
`00 00`. It appears only on the 3,886 / 6,541 DL2 waveforms recorded at
exactly −0.25 s, and on no histogram. Whether the live 1A read breaks the
same way is still unmeasured (reference D.6.2).
- 🔶 **#48 is still open.** The event file's setup 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**, not the setting: 253–256 samples at
1024 sps, alternating on the same unit on the same day, and reported that
way by Blastware. So the files say little about whether the live 1A read
loses its anchor (reference D.6.2).
- **The Series-4 LIVE wire protocol is reverse-engineered end to end
(2026-09-25).** `docs/micromate_protocol_reference.md` is the Series-4
Rosetta Stone, sibling to `instantel_protocol_reference.md`. **A Micromate
+29 -15
View File
@@ -11,7 +11,7 @@
| Date | Section | Change |
|---|---|---|
| 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 (measured on files only):** the 1A "stable anchor" `be 80 00 00 00 00` is the file's pre-trigger −0.25 s followed by `00 00`. It appears only on the 3,886 / 6,541 DL2 waveforms recorded at exactly −0.25 s, and on no histogram. |
| 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. |
| 2026-10-26 (5) | §7.8.9 | ✅ **The embedded event record: the instrument's trigger time, inside the 5A stream.** Every Blastware waveform file carries `00 28 05 00 ?? ?? fe 80 [trigger 8 B][stop 8 B]`, times as `dd mm yyyy(BE) 00 hh mm ss`. The trigger equals Blastware's report 1,320/1,320, the filename 7,935/7,935 and the unit's 0C record 10/10. It occurs once in the unit's own A5 payloads (8/8 events) and in SFM-only downloads (2/2): instrument data, not Blastware's. The footer's `ts2 - record time` is only an estimate, a second off on ~19%. Decoder rule, validation and an open case (3 waveform-named files the codec does not recognise) in §7.8.9. 🔶 The §7.5 `0C` "sub_code" timestamp variants look like the same 8-byte form read with its escapes. |
| 2026-10-17 | §7.6.1 | 🔶 **OPEN — the 6-byte "stable anchor" may be two settings at their defaults, not a constant.** Series IV's `0x1A` has the same field order as the S3 compliance block, and a keypad diff pass on a Micromate (UM20147) measured the bytes in the anchor's position: `[f32 BE pre-trigger, negative seconds][record stop mode, 00 00 = Fixed]`. `be 80 00 00` is exactly −0.25 s. If S3 matches — **inferred, not measured on S3** — then any S3 unit set to Record Stop Mode = Auto (a basic Blastware Compliance Setup option) or a non-default pre-trigger loses the anchor, and `client.py` silently decodes no recording mode / sample rate / interval / record time and skips them on write. No S3 capture has ever been taken in Auto stop mode (see the 2026-03-09 Auto Window rows), which would explain why the anchor never broke. To settle: one BW capture with Record Stop Mode = Auto. See `docs/micromate_protocol_reference.md` → *The `0x1A` field map from a keypad pass*. |
| 2026-08-26 | S7.6.2, S15 | **MULTI-INTERVAL HISTOGRAM BLOCKS - sub-minute intervals pack several per block.** ⚠ *Corrected 2026-11-02: the records are big-endian from byte 5, not little-endian (v0.32.0, #47/#49), and the "2-word tail" is the interval's PVS². See D.6.5.* The device always writes one minute of data per block, so a shorter histogram interval means more intervals packed into a longer block: 1 min -> 1 (the standard 32-byte block), 15 s -> 4 (stride 92), 2 s -> 30 (stride 612), with `stride = 12 + n * 20`. Each 20-byte record holds 8 x uint16 **little**-endian values (peak/half-period per channel) plus a 2-word tail whose first word is `0000` on every real interval. The standard block is big-endian - the variant is not. This recovers **415 files** (216 on BE18193 at 2 s, 199 on BE9440 at 15 s) that previously decoded to nothing, and before that were being accepted by the WAVEFORM codec and returning garbage up to 400x the device-reported PPV. |
@@ -3586,8 +3586,8 @@ observed) and does NOT follow the AB0T formula.
**DLE-shift offset note for reading recording_mode from N00/9T0 body:**
> ⚠ **2026-11-02:** this note finds the block by the 6-byte anchor. In an event file that anchor
> exists only when the pre-trigger is exactly −0.25 s: 3,886 / 6,541 DL2 waveforms, and no
> histogram. Find the block by its setup name instead (D.6.2).
> exists only when the event's own pre-trigger is exactly −0.25 s: 3,886 / 6,541 DL2 waveforms,
> and no histogram. Find the block by its setup name instead (D.6.2).
The compliance block in the file body has been through `_strip_inner_frame_dles`. The 0x10 constant at logical `anchor−7` (between recording_mode and sample_rate_HI) gets stripped when sample_rate_HI = `0x04` (1024 sps), because `0x10` precedes `0x04 ∈ {0x02,0x03,0x04}`. After stripping, the anchor shifts left by 1, so:
@@ -3640,7 +3640,7 @@ Offsets are from `k`, the first byte of the setup name:
| Offset | Type | Field | Notes |
|---|---|---|---|
| `k − 42` | uint16 BE | sample rate | 1024 / 2048 / 4096 |
| `k − 36` | float32 BE | pre-trigger | seconds, ≤ 0: `−0.25` is a quarter second before the trigger |
| `k − 36` | float32 BE | pre-trigger | seconds, ≤ 0: `−0.25` is a quarter second before the trigger. **This event's own length, not the unit's setting** (below) |
| `k − 32` | 2 bytes | — | `00 00` on 70,041 / 70,041 files |
| `k − 30` | float32 BE | record time | seconds |
@@ -3650,17 +3650,31 @@ Offsets are from `k`, the first byte of the setup name:
- Sample rate, record time and pre-trigger match Blastware on every DL2 event that reports them
(#44, #45).
⚠ **The 1A "stable anchor" sits on the pre-trigger (measured on files, 2026-11-02).**
- This is the 1A compliance layout: sample rate at anchor − 6 and record time at anchor + 6
(§7.6.1) put the anchor at `k − 36`.
- The 6-byte `be 80 00 00 00 00` is the pre-trigger −0.25 s (`be 80 00 00`) followed by the
`00 00` at `k − 32`.
- It occurs in a file only when the pre-trigger is exactly −0.25 s: 3,886 / 6,541 waveforms.
The other 2,655 waveforms (−0.249, −0.248, −0.2471, 0.0 and others) and all 63,500
histograms contain it nowhere.
- 🔶 **The live 1A read is not measured.** This supports #48 but does not prove it. Live 1A
captures in Histogram mode did show the anchor, while histogram files store 0.0, so the file
and the 1A differ in at least this field.
⚠ **The file's pre-trigger is the event's, not the setting (measured 2026-11-02).**
- **It varies from event to event on the same unit, often on the same day.** BE18193 has both
−0.25 and −0.248 on 2026-08-21.
- At 1024 sps the common values −0.25, −0.249, −0.248 and −0.2471 are 256, 255, 254 and 253
samples.
- At 4096 sps, BE18193's events range from −0.002 to −0.249 s.
- **Blastware reports the same per-event value** as `Pre-triggerLength`, for example
`-0.094 sec` for `T193KMX5.4Z0W`.
- 🔶 Inferred: the unit's setting stays fixed while the captured length falls short of it. Why it
falls short is unknown.
**What this means for #48 (the 1A "stable anchor"):**
- This is the 1A compliance layout. Sample rate at anchor − 6 and record time at anchor + 6
(§7.6.1) put the anchor at `k − 36`, so the 6-byte `be 80 00 00 00 00` is a pre-trigger of
−0.25 s followed by the `00 00` at `k − 32`.
- **In a file**, the anchor bytes appear only when that event's pre-trigger is exactly −0.25 s:
3,886 / 6,541 waveforms, and no histogram (histogram files store 0.0). A file parser that
searches for the anchor breaks on the rest. SFM's file decoder finds the block by its setup
name instead.
- **The live 1A read holds the setting, not an event's length.** So these files say little about
whether the live read loses its anchor; #48 is still unsettled.
- `k − 32 : k − 30` is `00 00` on all 70,041 files. 🔶 If `[17]` is the stop mode, as on
Series IV, no DL2 event was recorded in Auto stop mode, so the archive cannot test that case.
- The two blocks differ in at least one field. A live 1A in Histogram mode showed the anchor
(−0.25 s), but histogram files store 0.0.
#### D.6.3 Notes — four label/value pairs after the name ✅