docs(spec): the ring cool-down is test-first -- bench procedure for the ring path and retries
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
75b7694983
commit
c6f7b5c031
1 file changed
+35
-6
@@ -372,12 +372,15 @@ Each safety piece arrives with its first real use, so nothing sits untested.
|
|||||||
from THOR), with THOR's 1,024-byte chunks.
|
from THOR), with THOR's 1,024-byte chunks.
|
||||||
- 1c. **The webapp:** serial + address, and the same read panels for both
|
- 1c. **The webapp:** serial + address, and the same read panels for both
|
||||||
series.
|
series.
|
||||||
- **HARD PREREQUISITE:** before any poller or webapp sends `serial`, add a
|
- ~~**HARD PREREQUISITE:** before any poller or webapp sends `serial`, add a
|
||||||
per-address cool-down after a RADIO RING: call-ups to that address answer
|
per-address cool-down after a RADIO RING~~ -- **changed 2026-10-23
|
||||||
503 + `Retry-After` until it expires, and `POST /device/hangup` clears it.
|
(Brian): test first, build only if needed.** Before any poller or webapp
|
||||||
The length must come from the unit's measured call-home retry timing (a
|
sends `serial`, run the ring-path bench test under *Open questions this
|
||||||
bench test). Without it a poller can re-grab the modem's single TCP
|
design leaves for the bench*. If Run B shows a poller keeps the call
|
||||||
session through every retry, and the call never reaches THOR.
|
from reaching THOR, add the per-address cool-down: call-ups to that
|
||||||
|
address answer 503 + `Retry-After` until it expires, and
|
||||||
|
`POST /device/hangup` clears it, with its length taken from Run A. If
|
||||||
|
THOR gets the call anyway, no cool-down is needed.
|
||||||
2. **Encoder + opcode guard + dry run + frame-reproduction tests.** Still
|
2. **Encoder + opcode guard + dry run + frame-reproduction tests.** Still
|
||||||
nothing sent.
|
nothing sent.
|
||||||
(2026-10-22) "Dry run" in this phase means the **write plan**: the exact
|
(2026-10-22) "Dry run" in this phase means the **write plan**: the exact
|
||||||
@@ -598,6 +601,32 @@ Open questions:
|
|||||||
|
|
||||||
## Open questions this design leaves for the bench
|
## Open questions this design leaves for the bench
|
||||||
|
|
||||||
|
- **Ring path and retries: does a Micromate's call-home reach THOR when SFM
|
||||||
|
holds its line?** (Test designed 2026-10-23; decides whether 1c needs a
|
||||||
|
cool-down.)
|
||||||
|
- *Already measured (10-14):* with THOR holding the line, the ring arrived on
|
||||||
|
THOR's own outbound connection (`TcpClientSystemNet ... RADIO RING IS
|
||||||
|
RECEIVED FROM IP:...:9034`), so the modem did not divert it to the
|
||||||
|
destination. Unmeasured: the same with SFM as the holder, and what the
|
||||||
|
unit does after the holder releases.
|
||||||
|
- *Known from the firmware strings:* "three attempts and it's over".
|
||||||
|
🔶 Inferred: 60 s between attempts (`0x2C` content `[120:122]` = `00 3c`,
|
||||||
|
Series III's "time between retries" offset), and about 21 s of ringing per
|
||||||
|
attempt (10-14 capture).
|
||||||
|
- *Setup:* a bench Micromate on a modem whose destination is the office
|
||||||
|
THOR-ACH server, and a unit THOR is not otherwise watching. SFM runs on a
|
||||||
|
test port with a scratch DB. Keep THOR's ACH log open.
|
||||||
|
- **Run A, one call-up:** SFM calls the unit up and holds the line (any
|
||||||
|
serial-named read). Trigger a call-home on the unit. Record:
|
||||||
|
- whether SFM logs the RADIO RING and hangs up, with the time;
|
||||||
|
- whether and when THOR starts a session (its ACH log);
|
||||||
|
- the number and spacing of rings and attempts.
|
||||||
|
- **Run B, a poller:** as A, but a script requests the unit's status every
|
||||||
|
~10 s throughout. If THOR still gets the call, no cool-down is needed; if
|
||||||
|
the poller keeps the call from reaching THOR, build it, sized from Run A.
|
||||||
|
- *Also settles:* whether the modem routes a call-home to its destination
|
||||||
|
on its own, in which case SFM never sees a ring and THOR gets the call
|
||||||
|
while SFM is still connected.
|
||||||
- The ack for start/stop when the unit is already in that state.
|
- The ack for start/stop when the unit is already in that state.
|
||||||
- The offset rule, and whether `0x68`/`0x82` are required, for the setup push.
|
- The offset rule, and whether `0x68`/`0x82` are required, for the setup push.
|
||||||
- Whether the device ever refuses a write while monitoring. Only THOR's policy
|
- Whether the device ever refuses a write while monitoring. Only THOR's policy
|
||||||
|
|||||||
Reference in new issue
Block a user