Series-3 compliance 'stable anchor' is really pre-trigger + stop mode: decode likely fails in Auto stop mode #48

Open
opened 2026-10-26 17:14:15 -04:00 by serversdown · 1 comment
Owner

Summary

The Series-3 compliance decoder (_decode_compliance_config_into) finds its fields by searching for a 6-byte "stable anchor", be 80 00 00 00 00. Measured: those bytes are not constant. They are the pre-trigger (−0.25 s as float32) plus the stop mode (Fixed). Inferred: on a unit in Auto stop mode, or with any other pre-trigger, the anchor is missing, and record mode, sample rate, histogram interval and record time all go undecoded. Or a coincidental match elsewhere gives wrong values.

Measured (2026-10-26, BE9441)

The logical compliance image Blastware wrote (#46; same recording) has exactly the Series-4 0x1A layout. It matches the Compliance Setup screen field for field:

bytes field value
[0:2] length N 0x082A = 2090 (as Series 4)
[5] record mode 03 Histogram
[6:8] sample rate 4096
[8:10] histogram interval, s 900, then 2
[12:16] pre-trigger, f32 −0.25
[17] stop mode 0 (Fixed)
[18:22] record time, f32 20.0

So the anchor be 80 00 00 00 00 = [12:18] = pre-trigger, [16] and the stop mode. This turns the 🔶 inference in CLAUDE.md ("Possible Series III bug", 2026-10-17) into a measured layout. Only the failure on a unit in Auto mode remains inferred.

Also seen: the image's last two bytes [2090:2092] were 0c e9 in both sends, though the content changed. So Blastware does not recompute them, as THOR omits Series 4's CRC on write. Whether Series-3 reads end in a CRC-16/AUG-CCITT, as Series 4's do, is unchecked.

To settle

  • Either one Blastware capture of a unit set to Auto stop mode (or a different pre-trigger),
  • or decode from fixed offsets in the logical image. compliance_raw keeps the parser's escape pairs, which is presumably why an anchor was used. Un-escape first, then read by offset as Series 4 does.

Found on feat/series4-sfm-parity (8acb951).

## Summary The Series-3 compliance decoder (`_decode_compliance_config_into`) finds its fields by searching for a 6-byte "stable anchor", `be 80 00 00 00 00`. **Measured: those bytes are not constant.** They are the pre-trigger (−0.25 s as float32) plus the stop mode (Fixed). **Inferred:** on a unit in **Auto stop mode, or with any other pre-trigger**, the anchor is missing, and record mode, sample rate, histogram interval and record time all go undecoded. Or a coincidental match elsewhere gives wrong values. ## Measured (2026-10-26, BE9441) The logical compliance image Blastware wrote (#46; same recording) has exactly the **Series-4 `0x1A` layout**. It matches the Compliance Setup screen field for field: | bytes | field | value | |---|---|---| | `[0:2]` | length N | `0x082A` = 2090 (as Series 4) | | `[5]` | record mode | `03` Histogram | | `[6:8]` | sample rate | 4096 | | `[8:10]` | histogram interval, s | 900, then 2 | | `[12:16]` | pre-trigger, f32 | −0.25 | | `[17]` | stop mode | 0 (Fixed) | | `[18:22]` | record time, f32 | 20.0 | So the anchor `be 80 00 00 00 00` = `[12:18]` = pre-trigger, `[16]` and the stop mode. This turns the 🔶 inference in CLAUDE.md ("Possible Series III bug", 2026-10-17) into a measured layout. Only the failure on a unit in Auto mode remains inferred. Also seen: the image's last two bytes `[2090:2092]` were `0c e9` in both sends, though the content changed. So Blastware does not recompute them, as THOR omits Series 4's CRC on write. Whether Series-3 *reads* end in a CRC-16/AUG-CCITT, as Series 4's do, is unchecked. ## To settle - Either one Blastware capture of a unit set to **Auto** stop mode (or a different pre-trigger), - or decode from fixed offsets in the *logical* image. `compliance_raw` keeps the parser's escape pairs, which is presumably why an anchor was used. Un-escape first, then read by offset as Series 4 does. Found on `feat/series4-sfm-parity` (`8acb951`).
serversdown added the Kind/Bug
Status
Need More Info
2
Priority
Medium
3
labels 2026-10-26 17:14:15 -04:00
Author
Owner

What the DL2 event files add (measured 2026-11-02). They do not settle this issue.

Every Blastware event file carries a copy of the recording setup. The block is found by 1c 08 + the setup name; k is the name's first byte. It has this issue's layout:

  • sample rate at k − 42 (anchor − 6)
  • pre-trigger f32 at k − 36 (where the anchor sits)
  • 00 00 at k − 32
  • record time at k − 30 (anchor + 6)

So the file confirms where the anchor sits, as this issue describes.

Why the files can't answer the live-1A question

  • In a file, the pre-trigger is each event's own value, not the unit's setting.
    • 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 / −0.2471 are 256 / 255 / 254 / 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.
  • The anchor bytes therefore appear in a file only when that event's pre-trigger is exactly −0.25 s: 3,886 / 6,541 DL2 waveforms. They are absent from the other 2,655 waveforms and from all 63,500 histograms, which store 0.0.
    • The live 1A holds the setting, not an event's length, so this says little about whether the live read loses its anchor.
    • It does break any file parser that searches for the anchor. Reference Appendix D's DLE-shift note does that, and is now flagged. SFM's file decoder finds the block by setup name, so it is unaffected.
  • Stop mode: k − 32 : k − 30 is 00 00 on all 70,041 DL2 files. 🔶 If [17] is the stop mode, as in this issue's layout, no DL2 event was recorded in Auto stop mode. The archive cannot test that case.

Cheapest way to settle it (proposed, not done)

  1. On a bench unit, use the keypad to set the stop mode to Auto, or a pre-trigger other than −0.25 s.
  2. Run SFM's read-only compliance read (1A) against it.
  3. See whether the anchor is found and what record mode, sample rate and record time decode to.

No write is involved.

Details are in docs/instantel_protocol_reference.md D.6.2 (dev a30cf47).

**What the DL2 event files add (measured 2026-11-02). They do not settle this issue.** Every Blastware event file carries a copy of the recording setup. The block is found by `1c 08` + the setup name; `k` is the name's first byte. It has this issue's layout: - sample rate at `k − 42` (anchor − 6) - pre-trigger f32 at `k − 36` (where the anchor sits) - `00 00` at `k − 32` - record time at `k − 30` (anchor + 6) So the file confirms where the anchor sits, as this issue describes. ### Why the files can't answer the live-1A question - **In a file, the pre-trigger is each event's own value, not the unit's setting.** - 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 / −0.2471 are 256 / 255 / 254 / 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`. - **The anchor bytes therefore appear in a file only when that event's pre-trigger is exactly −0.25 s:** 3,886 / 6,541 DL2 waveforms. They are absent from the other 2,655 waveforms and from all 63,500 histograms, which store 0.0. - The live 1A holds the setting, not an event's length, so this says little about whether the live read loses its anchor. - It does break any *file* parser that searches for the anchor. Reference Appendix D's DLE-shift note does that, and is now flagged. SFM's file decoder finds the block by setup name, so it is unaffected. - **Stop mode:** `k − 32 : k − 30` is `00 00` on all 70,041 DL2 files. 🔶 If `[17]` is the stop mode, as in this issue's layout, no DL2 event was recorded in Auto stop mode. The archive cannot test that case. ### Cheapest way to settle it (proposed, not done) 1. On a bench unit, use the keypad to set the stop mode to Auto, or a pre-trigger other than −0.25 s. 2. Run SFM's **read-only** compliance read (`1A`) against it. 3. See whether the anchor is found and what record mode, sample rate and record time decode to. No write is involved. Details are in `docs/instantel_protocol_reference.md` D.6.2 (dev `a30cf47`).
Sign in to join this conversation.