docs(changelog): Unreleased -- Series-4 parity in SFM (phases 1-5)
Everything by serial for both series, the audited changes (start/stop, call-home, settings), the MiniMate wire fixes (#46, the 64 KB page, the settings read as content), the legacy config write retired, the benches. Operational: additive schema only (device_commands), no TOOL_VERSION bump, no backfill from this branch. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01SyJ2ip3Krb6dtdv2cXua44
This commit is contained in:
1 parent
5b342b4d7d
commit
75a1d135ee
1 file changed
+100
+100
@@ -7,6 +7,36 @@ All notable changes to seismo-relay are documented here.
|
|||||||
## Unreleased
|
## Unreleased
|
||||||
|
|
||||||
### Fixed
|
### Fixed
|
||||||
|
- ✅ **MiniMate requests and config writes are framed as Blastware frames them
|
||||||
|
(#46; `feat/series4-sfm-parity`).**
|
||||||
|
- Every request escapes 02 / 03 / 04 / 10.
|
||||||
|
- A config write is an ordinary escaped request carrying a whole block (as
|
||||||
|
read, plus two bytes). All four blocks are checked before the first frame.
|
||||||
|
- SFM's frames equal Blastware's in the 2026-04-20 and 2026-10-26 captures.
|
||||||
|
Benched on BE9441 2026-11-04.
|
||||||
|
- ✅ **The 5A walk crosses a unit's 64 KB page.** The walk is 32-bit linear
|
||||||
|
(the CLAUDE.md "KNOWN BUG"); BE9441's page-crossing events rebuild Blastware's
|
||||||
|
own files byte for byte.
|
||||||
|
- A one-event download is whole or an error.
|
||||||
|
- A non-first event's stream has no metadata pages.
|
||||||
|
- **A MiniMate settings read is assembled as content** (measured at the bench
|
||||||
|
2026-11-04).
|
||||||
|
- Unescape each 1A frame and drop the one non-content byte that starts every
|
||||||
|
frame but the last: 2,090 bytes headed by N = 2090.
|
||||||
|
- The read takes exactly the length it asked for. When a reply's checksum
|
||||||
|
byte is itself escaped (about 1 frame in 85), the parser leaves its 0x10 in
|
||||||
|
the data. It hit the first live read; the recordings never had it. The
|
||||||
|
waveform-data read now trims it too.
|
||||||
|
- **A live download is held to its record type (#51):** a same-second
|
||||||
|
waveform / histogram twin is no longer skipped as "already stored". An untyped
|
||||||
|
row at that second still counts as stored.
|
||||||
|
- Smaller wire fixes from the parity benches:
|
||||||
|
- SUB 0x15's serial is cut at its first NUL.
|
||||||
|
- 0x1C reads a histogram run as monitoring.
|
||||||
|
- A MiniMate that boots on connect is waited for.
|
||||||
|
- A start's read-back waits out the sensor check and wakes the unit.
|
||||||
|
- A built call-home image is framed once.
|
||||||
|
|
||||||
- ✅ **#51: events are identified by unit + time + type, and histograms take
|
- ✅ **#51: events are identified by unit + time + type, and histograms take
|
||||||
Blastware's times.**
|
Blastware's times.**
|
||||||
- **The new key.** The events table was `UNIQUE(serial, timestamp)`, one
|
- **The new key.** The events table was `UNIQUE(serial, timestamp)`, one
|
||||||
@@ -135,6 +165,59 @@ All notable changes to seismo-relay are documented here.
|
|||||||
change.
|
change.
|
||||||
|
|
||||||
### Added
|
### Added
|
||||||
|
- **Series-4 parity in SFM: everything by serial, for both series**
|
||||||
|
(`feat/series4-sfm-parity`, merged 2026-11-04; spec
|
||||||
|
`docs/superpowers/specs/2026-10-20-sfm-series4-parity-design.md`).
|
||||||
|
- **One door, `DeviceAccess`.**
|
||||||
|
- A unit is addressed by its serial: UM is Series 4, BE / BA is Series 3.
|
||||||
|
The unit's own answer is checked before anything is sent.
|
||||||
|
- A Micromate's line is held between requests and released when idle or
|
||||||
|
on RADIO RING.
|
||||||
|
- One connection per unit; 423 while busy.
|
||||||
|
- **Reads, both series:** `GET /device/info`, `/device/monitor/status`,
|
||||||
|
`/device/settings`, `/device/events` and `POST /device/events/download`.
|
||||||
|
- A download is stored as the watcher stores it, through the Blastware /
|
||||||
|
IDF import path, typed.
|
||||||
|
- It never overwrites a stored event.
|
||||||
|
- SFM's MiniMate files carry Blastware's W/H type letter.
|
||||||
|
- **Changes, both series, each audited** (a `device_commands` row per
|
||||||
|
attempt), identity-checked, sent once, never retried, read back:
|
||||||
|
- start / stop monitoring;
|
||||||
|
- call-home on / off: `GET /device/call_home/state`,
|
||||||
|
`POST /device/call_home/{enable,disable}`;
|
||||||
|
- **settings**, `POST /device/settings/change`.
|
||||||
|
- **Settings, in detail:**
|
||||||
|
- A preview (dry run) shows old → new and returns a revision; a live
|
||||||
|
change must carry it, covering the unit's block and the changes asked for.
|
||||||
|
- Fields: record mode, sample rate, histogram interval, record time,
|
||||||
|
geophone trigger, the four notes, job number and its report flag, and
|
||||||
|
(MiniMate) range and alarm.
|
||||||
|
- Limits are the units' own, from Instantel's manuals, checked on the
|
||||||
|
block that would result.
|
||||||
|
- Refused before anything is sent: a monitoring unit, a stale preview, a
|
||||||
|
Micromate on its factory setup, or one whose schedule would load another
|
||||||
|
setup. SFM reads `schedule.dat`, read-only.
|
||||||
|
- **One settings codec for both series** (`micromate/setup_fields.py`): a
|
||||||
|
MiniMate's settings block is Series IV's `0x1A` layout. All 11 Blastware
|
||||||
|
compliance writes reproduce from the block before them.
|
||||||
|
- **The page:**
|
||||||
|
- units by serial, with the series badge from the unit's own answer;
|
||||||
|
- the events list and download, start / stop, the Call Home tab;
|
||||||
|
- the Config tab's Preview → Send → "the unit now holds";
|
||||||
|
- page JavaScript in `sfm/static/`, tested through Node (no inline JS).
|
||||||
|
- **Benched on BE9441 and UM20147:** phase 4 on 2026-11-03, phase 5 on
|
||||||
|
2026-11-04. Every change was acknowledged, read back and confirmed on the
|
||||||
|
unit's screen; both units were restored byte for byte.
|
||||||
|
- ⚠ A MiniMate's open setup menu loses a remote change when the operator
|
||||||
|
presses Cancel or Save (the menu writes its whole-block copy back). The
|
||||||
|
preview warns.
|
||||||
|
- ⚠ The Micromate scheduler switch is in no block SFM reads, so a leftover
|
||||||
|
schedule blocks a change even with the scheduler Off.
|
||||||
|
- ⚠ **Operational:** additive schema only. SFM creates `device_commands`, or
|
||||||
|
adds `sent` / `states` to an older one, on first start; this branch does not
|
||||||
|
touch `events`. No `TOOL_VERSION` bump and no backfill from this branch:
|
||||||
|
event decoding is unchanged. Production ingest (the watchers) is untouched;
|
||||||
|
the new device routes are used only from SFM's page and API.
|
||||||
- **A histogram's interval detail: frequencies, vector sums, interval size and
|
- **A histogram's interval detail: frequencies, vector sums, interval size and
|
||||||
stop** (group B of the file-only decode). Measured on DL2 2026-11-03.
|
stop** (group B of the file-only decode). Measured on DL2 2026-11-03.
|
||||||
- **Frequency** = (sample rate / 2) / half-period: 527,915 / 527,915 cells
|
- **Frequency** = (sample rate / 2) / half-period: 527,915 / 527,915 cells
|
||||||
@@ -226,7 +309,24 @@ All notable changes to seismo-relay are documented here.
|
|||||||
backfill (`backfill_sidecars.py` then `backfill_event_shape.py`). The new
|
backfill (`backfill_sidecars.py` then `backfill_event_shape.py`). The new
|
||||||
`.h5` attributes are additive. No schema change, no migration.
|
`.h5` attributes are additive. No schema change, no migration.
|
||||||
|
|
||||||
|
### Removed
|
||||||
|
- **`POST /device/config` and `POST /device/config/project` answer 410**,
|
||||||
|
pointing at `POST /device/settings/change`. Terra-View does not call them.
|
||||||
|
Removed with them, because they wrote a live unit through the encoder #46
|
||||||
|
found wrong:
|
||||||
|
- `MiniMateClient.apply_config`, `set_project_info` and
|
||||||
|
`_encode_compliance_config`;
|
||||||
|
- `poc_set_project.py`, and `experiments.py`'s EXP6.
|
||||||
|
|
||||||
### Protocol / Documentation
|
### Protocol / Documentation
|
||||||
|
- **The parity benches in both protocol references:**
|
||||||
|
- Series III: the settings write measured end to end, the escaped-checksum
|
||||||
|
stray byte, the keypad menu writing its whole-block copy back, the alarm at
|
||||||
|
channel +38, and `[26:28]` re-set while monitoring.
|
||||||
|
- Series IV: the first setup push, with the unit's CRC equal to SFM's; the
|
||||||
|
schedule read on a real unit; the scheduler switch in none of the blocks.
|
||||||
|
- Spec and plan: `docs/superpowers/specs/2026-11-03-sfm-phase5-settings-design.md`,
|
||||||
|
`docs/superpowers/plans/2026-11-03-sfm-phase5-settings.md`.
|
||||||
- **Histogram timing in the protocol reference (D.6.10):**
|
- **Histogram timing in the protocol reference (D.6.10):**
|
||||||
- the histogram's own event record
|
- the histogram's own event record
|
||||||
- the interval-time and peak-time rules
|
- the interval-time and peak-time rules
|
||||||
|
|||||||
Reference in new issue
Block a user