docs: the first commands this project originated -- start/stop on UM20147
Bench, 2026-10-25, Brian's go per send: 0x96 acked in 464 ms and read back monitoring at the first 2 s poll (during the sensor check); 0x97 acked in 116 ms, then 0x49 read a new value 0x01 for ~18 s (inferred: the unit's call-home attempts after a stop) before idle; two stops to an idle unit acked in 10 ms and changed nothing. Retracts "no command has ever been originated" in place in CLAUDE.md and the reference's untested list; answers the spec's stop-while-stopped question. 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
b1c87ecccd
commit
4b911b1c0c
3 files changed
+135
-7
No files matched your search
@@ -2217,6 +2217,13 @@ having: nothing else read so far reports the unit's own time.
|
||||
↑ data[11]: 0x02 monitoring, 0x00 idle
|
||||
```
|
||||
|
||||
> **Amended 2026-10-25.** There are four values now. `0x03` is a call-home
|
||||
> session; see *Correction: `SUB 0x49` has a third state value*. `0x01` reads
|
||||
> for about 18 s after a stop; its meaning is inferred to be a call-home attempt
|
||||
> that has not connected. See *The first commands this project originated*.
|
||||
> `0x02` was also read 2.5 s after a start, while the screen showed the sensor
|
||||
> check.
|
||||
|
||||
**A second monitoring indicator, in a 21-byte response instead of `0x1C`'s 60.**
|
||||
Different encoding from `0x1C`'s flag (`0x02` vs `0x0E`), so they are separate
|
||||
fields, not the same byte read twice. For a polling client this is the cheaper
|
||||
@@ -4165,8 +4172,108 @@ assumed:
|
||||
device will not stop it and the ack will not distinguish it. That guard has
|
||||
to live in SFM.
|
||||
|
||||
## ✅ The first commands this project originated: start and stop on UM20147 (2026-10-25)
|
||||
|
||||
These were the first frames this project ever sent to a unit that change its
|
||||
state. Every write before this one was THOR's, recorded while we watched. Brian
|
||||
gave a go at the bench for each send.
|
||||
|
||||
**Setup.**
|
||||
- **Unit:** UM20147, firmware `11.0BD` (Thor line, reply flags `0x03`), on USB
|
||||
CDC-ACM `/dev/ttyACM0`.
|
||||
- **Sensors:** none attached.
|
||||
- **Active setup:** `BENCH01`.
|
||||
- **Sender:** SFM's `POST /device/monitor/start|stop?serial=UM20147` (branch
|
||||
`feat/series4-sfm-parity` at `b1c87ec`), with every TX frame and every
|
||||
validated RX frame logged at millisecond resolution.
|
||||
- **Path:** each send went through the phase-3 safety core in this order:
|
||||
1. a fresh serial read;
|
||||
2. a `0x49` state read;
|
||||
3. the audit row written;
|
||||
4. one `execute()`;
|
||||
5. read back every 2 s.
|
||||
|
||||
### What was sent and what came back (measured)
|
||||
|
||||
| time (EDT) | sent | ack | ack latency | `0x49` content[0] afterwards |
|
||||
|---|---|---|---|---|
|
||||
| 15:43:47.430 | `0x96` `41021010009600ffff00000000000000000000a403` | `0x69`, 11 zero bytes | **464 ms** | `0x02` at the first read, 2.0 s after the ack |
|
||||
| 15:45:51.922 | `0x97` `41021010009700ffff00000000000000000000a503` | `0x68`, 11 zero bytes | **116 ms** | **`0x01` on all 9 reads from +2.1 s to +18.2 s**, then `0x00` from +20.3 s |
|
||||
| 15:52:42.645 | `0x97` (unit already idle; `even_if_already`) | `0x68`, 11 zero bytes | **10 ms** | `0x00`, unchanged |
|
||||
| 15:53:51.871 | `0x97` (idle again, screen watched) | `0x68`, 11 zero bytes | **10 ms** | `0x00`, unchanged |
|
||||
|
||||
- **The frames.** Both are THOR's own bytes, offset `0xFFFF` included. The phase-2
|
||||
bench question "is offset `0x0000` honoured" was not tested and does not need
|
||||
to be.
|
||||
- **`0x1C` `data[12]` agrees.** It read `0x00` idle before the start, `0x0E` at
|
||||
the start's read-back and at the stop's preamble, and `0x00` again at +20 s.
|
||||
`0x0E` is the same monitoring value UM12947 showed on 2026-09-24. `0x1C` was
|
||||
not read during the `0x01` window.
|
||||
- **The start's screen** showed a sensor check, then monitoring. With no sensors
|
||||
attached, the check passed without complaint (Brian, watching).
|
||||
- **The start's state.** `0x49` already read `0x02` at +2.5 s, so the state
|
||||
byte very probably reads monitoring *during* the sensor check. That is
|
||||
inferred, not measured: the check's length on screen was not timed.
|
||||
Consequence: a second start sent during the check would see "monitoring" and
|
||||
be skipped, not sent.
|
||||
- **One histogram was recorded and closed.** The event is timestamped
|
||||
15:44:01, 14 s after the start, which is roughly the length of the sensor
|
||||
check. The event count went 5 → 6 at the stop (`UM20147_20261025154401.IDFH`,
|
||||
7,976 B).
|
||||
- Its peaks are 0.00186 in/s on all three channels, identical, because no
|
||||
sensors were attached.
|
||||
- Free memory fell 4,096 B at the start and another 4,096 B by the stop. The
|
||||
same 4 KiB step was seen in the 2026-09-24 session.
|
||||
- **The stop's screen.** The unit tried to call home right after the stop. Brian
|
||||
says it always does this when taken out of monitor mode. It never connected,
|
||||
because it has no modem, and it ran out of attempts. A watch of `0x49`
|
||||
once a second from 15:47:19 to 15:49:50 read `0x00` throughout.
|
||||
- **A stop sent to an idle unit is harmless.** It was acked in 10 ms, twice.
|
||||
Nothing changed: not the state, the event count, free memory or the screen,
|
||||
and there was no call-home attempt. The ~10x shorter ack suggests the
|
||||
firmware skips its close-down work. This settles the spec's open question
|
||||
"what does a stop-while-stopped do".
|
||||
|
||||
### 🔶 `0x49` content[0] = `0x01`: a fourth state value (value measured, meaning inferred)
|
||||
|
||||
The values are now `0x00` idle, `0x02` monitoring and `0x03` in a call-home
|
||||
session (10 of 10 reads, 2026-10-14). The new one is **`0x01`, for about 18 s
|
||||
right after a stop**.
|
||||
|
||||
**Inferred meaning: a call-home *attempt* in progress, dialling and not
|
||||
connected.** It is distinct from `0x03`, a call-home *session* that has
|
||||
connected. The timing fits: the `0x01` window opened 2 s after the stop, on
|
||||
screen the unit was trying to call home, and it closed when the attempts ran
|
||||
out.
|
||||
|
||||
**Not excluded:** `0x01` could instead mean "stopping, closing the record", with
|
||||
the call-home attempts overlapping it. Two tests would separate them:
|
||||
- a stop with call-home-after-event switched off;
|
||||
- a stop on a unit whose modem connects, where the inference predicts
|
||||
`0x01` → `0x03`. This fits into the ring-path Run A/B.
|
||||
|
||||
**What SFM does with it.** `read_run_state()` names it `unknown(0x01)`, so the
|
||||
change path refuses any start or stop in that window ("never been measured --
|
||||
nothing sent", HTTP 409). That is deliberate: name it only once its meaning is
|
||||
measured. The stop's read-back simply kept polling through it, because `0x01`
|
||||
is not idle, and the stop verified at +20 s, well inside the 60 s window.
|
||||
|
||||
### Audit rows (SFM `device_commands`, scratch bench DB)
|
||||
|
||||
All four rows read `outcome=sent`, `verified=ok`, `sent=1`, caller
|
||||
`bench-brian`. Their `states` columns:
|
||||
- **start:** `idle → [idle, monitoring] → monitoring`
|
||||
- **stop:** `monitoring → [monitoring, 9 × unknown(0x01), idle] → idle`
|
||||
- **the two forced stops:** `idle → [idle, idle] → idle`, each carrying the note
|
||||
that the read-back cannot show the send changed anything.
|
||||
|
||||
## ⚠ Untested and unsafe-until-agreed
|
||||
|
||||
> ✅ **Retracted in part (2026-10-25):** the opening line below was true until
|
||||
> 2026-10-25. Start and stop (`0x96` / `0x97`) have now been **originated by
|
||||
> SFM** against UM20147. See *The first commands this project originated*. Every
|
||||
> other item in this section remains never-sent.
|
||||
|
||||
**Nothing below has been sent to a unit by us, and nothing should be without an
|
||||
explicit decision.**
|
||||
|
||||
@@ -4183,12 +4290,15 @@ is known; our encoder is unwritten and unproven.
|
||||
`0x55`. **Destructive.** Series III's `0xA3`/`0xA2` erase-all has *not* been
|
||||
seen on Series IV and may not exist
|
||||
- **Start / stop monitoring** (`0x96` / `0x97`) — observed via Thor 2026-09-24,
|
||||
acks `0x69` / `0x68`
|
||||
acks `0x69` / `0x68`. ✅ **Originated by SFM 2026-10-25** on UM20147 (4 sends,
|
||||
all acked and verified) — no longer untested
|
||||
- **Scheduler enable** (`0x47`) — observed; `params[7]` semantics still unclear
|
||||
|
||||
Every one of these is now *observed*. **None has ever been originated by us**,
|
||||
and that is the line that still matters: the wire format is known, our encoder is
|
||||
unwritten and unproven.
|
||||
unwritten and unproven. *(2026-10-25: true still of every item here except
|
||||
start/stop, which SFM originated at the bench — see the retraction note at the
|
||||
top of this section.)*
|
||||
- `0x1F` (advance event pointer) — non-destructive on Series III but it does
|
||||
move device state, so it is parked with the rest
|
||||
|
||||
|
||||
Reference in new issue
Block a user