merge: group B in the protocol reference (D.6.9), #50 retracted
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01ALX2R8pghDaZuti9U7mEE9
This commit is contained in:
commit
19719bdd96
3 files changed
+47
-14
No files matched your search
@@ -45,9 +45,10 @@ Read this first when picking the project back up.
|
||||
- **Byte layouts** of every field read from the file:
|
||||
`docs/instantel_protocol_reference.md` Appendix **D.6**.
|
||||
|
||||
**Where the decoder stands on `dev`** (2026-11-03, run `20261103-140229`):
|
||||
**28 of 88 fields match on every event**, up from about 6 before v0.33.0.
|
||||
The five `dev` fixes below share one release and one backfill.
|
||||
**Where the decoder stands on `dev`** (2026-11-03, run `20261103-180306`):
|
||||
**34 of 88 fields match on every event**, up from about 6 before v0.33.0.
|
||||
The six `dev` fixes below share one release and one backfill. Group B
|
||||
(histogram interval detail, reference D.6.9) is done, which also fixed #50.
|
||||
- ✅ **Match on every event:**
|
||||
- sample rate, record time, pre-trigger, notes and event type (v0.33.0)
|
||||
- geophone range, job number, event times (6,524 / 6,524) and histogram
|
||||
@@ -88,8 +89,8 @@ Read this first when picking the project back up.
|
||||
(a carve-out to prove)
|
||||
- ⬜ **Not read yet, in the order proposed** (2026-11-03):
|
||||
- ~~**A. Setup fields**~~ ✅ done on `dev`.
|
||||
- **B. Histogram interval detail:** per-interval frequencies (#50: they
|
||||
assume 1024 sps), per-interval PVS, interval size, stop time.
|
||||
- ~~**B. Histogram interval detail**~~ ✅ done on `dev`. Frequencies (#50),
|
||||
per-interval PVS, interval size, stop.
|
||||
- **C. #51 timing:** start time, per-interval times, peak times.
|
||||
- **D. Blastware's waveform calculations:** ZC frequency, acceleration,
|
||||
displacement, time of peak.
|
||||
|
||||
@@ -632,7 +632,7 @@ Implementation steps (concrete):
|
||||
3. flip ingest so reports are kept only for checking (retire the overlay)
|
||||
4. stop the watchers forwarding reports
|
||||
|
||||
**Done so far: 28 of 88 report fields match on every DL2 event.**
|
||||
**Done so far: 34 of 88 report fields match on every DL2 event.**
|
||||
- In v0.33.0: setup fields, notes, event type, histogram PVS, mic.
|
||||
- On `dev`:
|
||||
- the geophone range
|
||||
@@ -640,10 +640,10 @@ Implementation steps (concrete):
|
||||
- histograms that decoded wrongly
|
||||
- the footer: no more day-late histograms; every waveform time exact
|
||||
- serial, version, calibration, battery, trigger source and levels, stop mode, mic type
|
||||
- histogram interval detail: frequencies (#50 fixed), per-interval PVS, interval size, stop
|
||||
- A Blastware report's dB/psi is its PC's preference, not anything in the event file: a carve-out.
|
||||
|
||||
**Next:**
|
||||
- histogram interval detail: frequencies (#50), per-interval PVS, interval size, stop time
|
||||
- histogram start times (#51)
|
||||
- the values Blastware computes itself: ZC frequency, acceleration, displacement, time of peak
|
||||
- the sensor check results
|
||||
|
||||
@@ -11,6 +11,7 @@
|
||||
|
||||
| Date | Section | Change |
|
||||
|---|---|---|
|
||||
| 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-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. |
|
||||
@@ -3860,21 +3861,51 @@ That holds on 6,524 / 6,524 waveforms.
|
||||
- **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 Not read from the file yet
|
||||
#### D.6.9 Histogram interval detail ✅ 2026-11-03
|
||||
|
||||
*Updated 2026-11-03. 28 of 88 report fields now match on every DL2 event.*
|
||||
**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 Not read from the file yet
|
||||
|
||||
*Updated 2026-11-03. 34 of 88 report fields now match on every DL2 event.*
|
||||
- **Fields not read yet:**
|
||||
- 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)
|
||||
- histogram start times are 1 s early (#51), and so are 58 stop times
|
||||
- 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
|
||||
@@ -3882,6 +3913,7 @@ That holds on 6,524 / 6,524 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)
|
||||
|
||||
---
|
||||
|
||||
|
||||
Reference in new issue
Block a user