docs: the 1c bench pass and the ring-path results (2026-10-29)
- Spec: the 1c bench pass on BE9441 and UM20147, each on its own modem, and its 16 findings (a new 'Left open by the 1c bench' section). Ring-path results, measured: with THOR's watchdog off a call-home reaches THOR when nobody holds the line (Run 0, via ListenerAchTcp) and is lost when SFM holds it (Run A: the unit times out and does not retry); with THOR polling, SFM gets no reply and THOR is undisturbed (A2, step 1). Decision owed before merge: the Micromate line hold. - Micromate reference: retracts 'ListenerAchTcp never used' in place (it accepted tonight's call-home; port 12345); a call-home that rings on another receiver's connection is lost; a second TCP connection while THOR holds the line is accepted but silent. - CLAUDE.md: 1c status, the open decision, THOR's log location. 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
3528dde970
commit
7491cd4b6f
3 files changed
+123
-12
No files matched your search
@@ -189,12 +189,18 @@ Read this first when picking the project back up.
|
||||
`stop_monitoring_blind`, `_slow_drip`, `_spam`) are exempt: 0x96/0x97 mean
|
||||
the same on both series, and the blind tools must reach a unit too wedged to
|
||||
answer.
|
||||
⚠ **Before this branch merges, run the ring-path Runs A/B** -- the spec's
|
||||
prerequisite to a webapp sending `serial` (*Open questions ... for the bench*): a held line
|
||||
holds the modem's single TCP session. The page never polls (every request is
|
||||
a click), SFM hangs up on RADIO RING, and **Hang up** releases the line at
|
||||
once; whether a call-home still reaches THOR is unmeasured.
|
||||
Next: the bench pass on BE9441 and UM20147, then phases 4 and 5.
|
||||
**Bench pass done 2026-10-29** (both series, each on its own modem): 16
|
||||
findings in the spec (*Left open by the 1c bench*) -- the S3 settings decode
|
||||
reads escaped bytes (#1), S3 downloads skip the file reader (#8), the S3
|
||||
start read-back does not reconnect after the modem drops the line (#9), an
|
||||
audit `sent: null` (#15), and page polish.
|
||||
**Ring path measured the same night:** with THOR's watchdog off, a call-home
|
||||
reaches THOR when nobody holds the line, and **is lost when SFM holds it** --
|
||||
the unit takes SFM's connection for the call, times out and does not retry.
|
||||
While THOR polls a unit, SFM gets no reply and does not disturb THOR.
|
||||
⚠ **Before merge: decide the Micromate line hold** (shorter / none, or SFM
|
||||
runs the call-home session). THOR's log: `C:\THORDATA\Logs\`.
|
||||
Next: a short fix plan for the findings, then phases 4 and 5.
|
||||
- **✅ Phase 3: start / stop monitoring by serial (2026-10-23) — built,
|
||||
reviewed, and bench-verified on UM20147 (2026-10-25).** Start acked in
|
||||
0.46 s and read back as monitoring at the first 2 s poll (during the sensor
|
||||
|
||||
@@ -2960,7 +2960,26 @@ RX55 at `63.45.161.30`):
|
||||
bytes** back, and THOR's own reconnect at 19:57:10 logged `Mismatch connection
|
||||
found for 63.45.161.30:9034` four times, then "lost connection" at 19:57:38.
|
||||
Cause not yet known (a unit reset and a modem power cycle did not restore it
|
||||
by 20:01). See the parity spec's ring-path bench notes.
|
||||
by 20:01; it answered again at 20:16:51 after another reset and time). See the
|
||||
parity spec's ring-path bench notes.
|
||||
|
||||
#### A call-home that rings on someone else's connection is lost (2026-10-29)
|
||||
|
||||
Measured with THOR's watchdog off and auto call-home on. SFM held UM20147's line
|
||||
and sent a stop (`0x97`, 20:21:13.001); the unit answered with `RADIO RING`
|
||||
instead of the ack (20:21:13.7). SFM hung up, then reconnected 0.1 s later for a
|
||||
status read, and the unit answered it. The unit's screen: "connecting..." →
|
||||
"call home data transfer..." for under a minute → idle. **It did not retry**,
|
||||
and THOR never saw the call. The same stop from the keypad with nobody on the
|
||||
line reached THOR through `ListenerAchTcp` (above).
|
||||
|
||||
🔶 Inferred: the unit counts the connection its ring rode up as the call and
|
||||
waits for the server to run the session; a receiver that is not THOR (or not
|
||||
running an ACH session) swallows the call-home. One observation.
|
||||
|
||||
While THOR **holds** the line (polling every ~5–15 s), a second TCP connection to
|
||||
the modem is accepted but receives **nothing** (SFM: 0 bytes in 10 s), and THOR's
|
||||
own reads continue to be answered -- measured 20:44:35.9.
|
||||
|
||||
#### THOR has a second, unused ACH path
|
||||
|
||||
@@ -2970,6 +2989,17 @@ RX55 at `63.45.161.30`):
|
||||
units that genuinely dial, on some other modem arrangement) but is not what a
|
||||
PAD-connected Micromate uses.
|
||||
|
||||
> ⚠ **RETRACTED 2026-10-29 (measured):** the listener *is* used by a
|
||||
> PAD-connected Micromate, whenever nothing holds the modem's session. With
|
||||
> THOR's watchdog off and nobody connected, UM20147's call-home (keypad stop)
|
||||
> arrived as `ListenerAchTcp - Connection accepted from 63.45.161.30:36648`
|
||||
> (20:37:28.5), THOR read the serial, and `RADIO RING` then came **up that
|
||||
> connection** to start the session. So both paths are real and timing decides:
|
||||
> the ring rides an existing connection (10-14, THOR's watchdog), or the modem
|
||||
> dials its destination (here `50.197.32.91:12345`, the office) and the ring
|
||||
> follows. THOR's listener port is **12345** (Brian, 2026-10-29); the 12346 in
|
||||
> the 10-14 log was that day's setup.
|
||||
|
||||
#### What this means for a homebrew receiver
|
||||
|
||||
⚠ **`bridges/mm_ach_server.py` is built on the wrong model for this deployment.**
|
||||
|
||||
@@ -505,11 +505,21 @@ Each safety piece arrives with its first real use, so nothing sits untested.
|
||||
`POST /device/call_home`) refuse 409 before any write unless the unit
|
||||
answers as Series 3 (and as the named unit, given `serial=`). The stop
|
||||
tools stay exempt: 0x96/0x97 mean the same on both series.
|
||||
- ⚠ **The ring-path Runs A/B have not been run.** The page does not poll
|
||||
(every request is a click), SFM hangs up on RADIO RING, and Hang up
|
||||
releases a held line, but whether a call-home reaches THOR while SFM
|
||||
holds the line is unmeasured. Run them before serial mode is used on a
|
||||
unit that calls home to THOR, i.e. before this branch merges.
|
||||
- **Bench pass 2026-10-29 (BE9441 and UM20147, each on its own modem):**
|
||||
identify, status, settings, list, one download, start and stop through the
|
||||
page on both series. Sixteen findings, listed under *Left open by the 1c
|
||||
bench* below.
|
||||
- **Ring path, 2026-10-29 (measured; details under *Open questions ... for
|
||||
the bench*):** with THOR's watchdog off, a call-home **reaches THOR** when
|
||||
nobody holds the line (Run 0), and **is lost** when SFM holds it (Run A):
|
||||
the unit takes SFM's connection for the call, sits in "call home data
|
||||
transfer", times out, goes idle and does not retry. With THOR polling, SFM
|
||||
cannot reach the unit at all and does not disturb THOR (A2, step 1).
|
||||
⚠ **Decision owed before merge:** the 5-minute Micromate line hold makes
|
||||
SFM a call-home sink whenever THOR is not holding the line. Options: a
|
||||
much shorter hold or none (hang up after each request), or SFM runs the
|
||||
call-home session itself (the ADR 0003 call-in server). A cool-down alone
|
||||
does not help: the unit does not retry.
|
||||
- Of the items parked for 1c below: **CORS ordering** does not bite the
|
||||
page, which SFM serves itself (same origin); the **Series-4 mic** is not
|
||||
shown (the event list shows geophone peaks only). The rest are server-side
|
||||
@@ -644,6 +654,46 @@ matters to is named.
|
||||
- **Series-3 stored `record_type` (MiniMate bench check).** Rows SFM stores for Series 3 still say "Waveform" for histograms — pre-existing, the same as the legacy `blastware_file` route; fix it with the `0C` decode.
|
||||
- **A fresh Series-4 download's gaps (1c).** No `sample_rate` is stored, and the sidecar has no vector sum; the DB row has the unit's PVS (overlaid from `0x0C`).
|
||||
- **Orphan files (SDM).** An event file in the store with no DB row is still overwritten by a download.
|
||||
|
||||
## Left open by the 1c bench (2026-10-29)
|
||||
|
||||
From the page bench on BE9441 (MiniMate, modem `63.43.212.233`) and UM20147
|
||||
(Micromate, RX55 `63.45.161.30`). Numbers as given at the bench. Fixes wait for
|
||||
a short plan; #14 waits for the line-hold decision above.
|
||||
|
||||
1. **S3 settings decode reads before escapes are removed** -- BE9441 showed 0 sps
|
||||
and a 68.3-min interval (true: Histogram, 4096 sps, 2 s, per the 10-26 fixture
|
||||
README); while monitoring the `1A` anchor is not found at all. Old bug, the
|
||||
same family as #46's C1. Fix: decode after unescaping; this reply is the
|
||||
fixture.
|
||||
2. **A 1.7 KB mic-off histogram is refused** -- this branch lacks #47/#49 (`dev`
|
||||
decodes `K441LTOK.QZ0`, this branch does not). Bring them over before merge.
|
||||
3. ✅ The 71 KB histogram crossing two 64 KB pages downloaded over the modem
|
||||
byte-identical to Blastware's (`f10f39a8…`).
|
||||
4. List vector sum 0 / −0 for three events whose peaks reach 1.08 in/s --
|
||||
suspected escapes in the `0C` record (not checked).
|
||||
5. Stored S3 event: client "Terra-Mechanic" (last letter missing) -- unexplained.
|
||||
6. Page: the Config tab shows the empty write form until Read in serial mode.
|
||||
7. `/db/events` 500 "database is locked" on the first page load against a new DB.
|
||||
8. **S3 downloads are stored from the live waveform decoder** (`store.save`), not
|
||||
the file reader that Series 4 uses (`save_imported_idf`): a histogram gets no
|
||||
samples and is labelled Waveform. Fix: store S3 downloads through the
|
||||
file-import path (also aligns event times with v0.32.0).
|
||||
9. **S3 start over a modem:** the line dropped during the sensor check, the
|
||||
read-back hit `Broken pipe` and did not reconnect → 503 though the start
|
||||
worked. Fix: reconnect for the read-back (reads only; the send stays single).
|
||||
10. Page: "Start monitoring failed:" on a sent-but-unconfirmed change -- wording.
|
||||
11. S3 stop ~19 s, 11.6 s of it the identity check (a full connect) vs ~1 s for a
|
||||
serial-only read. **Identified only** (speed is secondary to reliability).
|
||||
12. Page, serial mode: the Device tab's empty legacy compliance table; S4
|
||||
Firmware "—" (should say Thor line).
|
||||
13. S4 mic in the event's peaks "0.0 dBL" vs 96.54 dB(L) in the file -- the
|
||||
`0x0C` mic denormal parked above, now visible.
|
||||
14. **After hanging up for a RADIO RING, SFM called the unit straight back up**
|
||||
(the page's post-change status read). Part of the line-hold decision.
|
||||
15. **Audit:** the UM20147 stop's record says `sent: null` although `0x97` went out.
|
||||
16. Page: a 504 on a unit THOR holds should say "connected, but no reply --
|
||||
another program may be holding this unit's line".
|
||||
- **Same-second collisions (SDM).** Two events of one unit in the same second collide on (serial, timestamp) — a DB-wide dedup property, not 1b's.
|
||||
- **423 without `Retry-After` (1c).** Add `Retry-After` to the 423 a request gets while a download holds the unit.
|
||||
- **A lost `0C` during a Series-3 list (1c).** The strict walk raises on a lost `0A`
|
||||
@@ -881,6 +931,31 @@ Open questions:
|
||||
- *Also settles:* whether the modem routes a call-home to its destination
|
||||
on its own (Run 0), in which case SFM never sees a ring and THOR gets the call
|
||||
while SFM is still connected.
|
||||
- **Results, 2026-10-29** (UM20147 on a fleet-config RX55 at `63.45.161.30`,
|
||||
added to THOR as a test unit; THOR log `C:\THORDATA\Logs\`; all measured
|
||||
unless marked):
|
||||
- **Run A (watchdog off, SFM holding the line).** SFM's stop (`0x97`,
|
||||
20:21:13.001) was answered by `RADIO RING` instead of its ack (20:21:13.7);
|
||||
SFM hung up. The page's post-change status read called the unit straight
|
||||
back up (20:21:13.8 → held to 20:21:47; the reaper listens every 5 s, no
|
||||
second ring). The unit showed "connecting..." → "call home data
|
||||
transfer..." for under a minute → idle, **no retry**; THOR logged nothing
|
||||
for the unit through 20:23:57.
|
||||
- **Run 0 (watchdog off, nobody on the line, keypad start/stop).** The modem
|
||||
dialled `50.197.32.91:12345`: `ListenerAchTcp - Connection accepted from
|
||||
63.45.161.30:36648` (20:37:28.5) → serial → `RADIO RING IS RECEIVED` on that
|
||||
connection → a full THOR session (count 8, download, **DeleteEventState**
|
||||
per event, reports, email, Vision). SFM sent nothing 20:22–20:37.
|
||||
- **A2, step 1 (THOR polling, ~5–15 s).** An SFM status read at 20:44:35.9:
|
||||
the modem accepted the connection, 0 bytes back in 10 s (504). THOR's reads
|
||||
of the unit at 20:44:37.4 and 20:44:44.3 were answered; no disconnect.
|
||||
- **Conclusion:** the risk is confined to when THOR is not holding the line
|
||||
(watchdog off, THOR down, reconnect gaps), and a cool-down would not fix
|
||||
it. Run B (a poller) is deprioritised: while THOR polls it only collects
|
||||
504s; the open point is a reconnect gap.
|
||||
- Also seen: after a manual THOR Disconnect (19:48:07) the unit answered
|
||||
nobody until a reset (back 20:16:51); THOR's reconnect logged `Mismatch
|
||||
connection found`. Cause unknown.
|
||||
- The ack for start/stop when the unit is already in that state.
|
||||
✅ **Answered for stop (2026-10-25, UM20147):** a stop sent to an idle unit
|
||||
is acked `0x68` in 10 ms (twice) and changes nothing: not the state, the
|
||||
|
||||
Reference in new issue
Block a user