Auto-detect a unit's series from its answer to a poll (no checkbox, no serial prefix needed) #57

Open
opened 2026-11-03 15:19:55 -05:00 by serversdown · 0 comments
Owner

What

Work out a unit's series from its own answer to a poll, so nobody has to tell SFM which kind of unit is on the line. Today that is Blastware's checkbox (Micromate / Series IV / Series III / Minimate Blaster / Series II) and, in SFM, the typed serial's prefix.

Why

SFM picks the series from the typed serial (UM… is Series 4, BE…/BA… is Series 3). With no serial, the page uses the legacy Series-3 routes. On a Micromate that fails as a bare 502. Bench 2026-11-03: UM20147 answered SFM's MiniMate POLL, but in Micromate framing, which S3FrameParser cannot see. Operators forget Blastware's checkbox for the same reason.

Measured basis

  • Both series answer the same POLL (SUB 0x5B). The MiniMate startup also sends SESSION_RESET (41 03) first. A Micromate tolerates that: UM20147 answered after it on 2026-11-03.
  • The reply's framing names the series:
    • MiniMate: DLE STX (10 02 …), flags payload[1] = 0x10.
    • Micromate: a bare STX (02 …), flags payload[1] = 0xC5 (Blastware firmware) or 0x03 (Thor firmware). UM20147 on 2026-11-03 replied 02 00 10 03 a4 … (Thor firmware, POLL response 0xA4).
    • References: docs/micromate_protocol_reference.md (the three framing differences), docs/instantel_protocol_reference.md.

Proposal

  • sfm/device_access: detect_series(address) -> (series, firmware_line). It sends one SESSION_RESET + POLL, classifies the raw reply bytes, and sends no other command.
  • No serial typed: detect, then identify through that series' client. The page gets its Series badge and controls, with no 502 and no checkbox.
  • Serial typed: cross-check it. A BE/BA serial whose unit answers in Micromate framing, or the reverse, is refused (409) before any series-specific command. This complements the existing wrong-series guards: 0xA2 is CONFIRM ERASE on Series 3 and "end call-home" on Series 4.
  • Detection is a read. Writes still need the typed serial plus the identity check.
  • Cost: none new when no serial is typed, since identify starts with a POLL anyway; reuse its reply.

Not covered

Series II and Minimate Blaster: there are no units to measure.

## What Work out a unit's series from its own answer to a poll, so nobody has to tell SFM which kind of unit is on the line. Today that is Blastware's checkbox (Micromate / Series IV / Series III / Minimate Blaster / Series II) and, in SFM, the typed serial's prefix. ## Why SFM picks the series from the typed serial (`UM…` is Series 4, `BE…`/`BA…` is Series 3). With no serial, the page uses the legacy Series-3 routes. On a Micromate that fails as a bare **502**. Bench 2026-11-03: UM20147 answered SFM's MiniMate POLL, but in Micromate framing, which `S3FrameParser` cannot see. Operators forget Blastware's checkbox for the same reason. ## Measured basis - **Both series answer the same POLL** (SUB `0x5B`). The MiniMate startup also sends SESSION_RESET (`41 03`) first. A Micromate tolerates that: UM20147 answered after it on 2026-11-03. - **The reply's framing names the series:** - MiniMate: `DLE STX` (`10 02` …), flags `payload[1] = 0x10`. - Micromate: a bare `STX` (`02` …), flags `payload[1] = 0xC5` (Blastware firmware) or `0x03` (Thor firmware). UM20147 on 2026-11-03 replied `02 00 10 03 a4 …` (Thor firmware, POLL response `0xA4`). - References: `docs/micromate_protocol_reference.md` (the three framing differences), `docs/instantel_protocol_reference.md`. ## Proposal - `sfm/device_access`: `detect_series(address) -> (series, firmware_line)`. It sends one SESSION_RESET + POLL, classifies the raw reply bytes, and sends **no other command**. - **No serial typed:** detect, then identify through that series' client. The page gets its Series badge and controls, with no 502 and no checkbox. - **Serial typed:** cross-check it. A `BE`/`BA` serial whose unit answers in Micromate framing, or the reverse, is refused (409) **before any series-specific command**. This complements the existing wrong-series guards: `0xA2` is CONFIRM ERASE on Series 3 and "end call-home" on Series 4. - Detection is a read. Writes still need the typed serial plus the identity check. - Cost: none new when no serial is typed, since identify starts with a POLL anyway; reuse its reply. ## Not covered Series II and Minimate Blaster: there are no units to measure.
serversdown added the Kind/Enhancement label 2026-11-03 15:19:55 -05:00
Sign in to join this conversation.