Skip to content

feat(modpoll): report failures as answered, write report schema 5 and identify the product before an upload (POLL-06) - #150

Merged
gavinying merged 1 commit into
v2from
feat/poll-06
Nov 14, 2026
Merged

gavinying merged 1 commit into
v2from
feat/poll-06

Conversation

@gavinying

Copy link
Copy Markdown
Collaborator

POLL-06 of the ModioHub plan: modpoll reads and reports, and does not diagnose or change the configuration.

  • A failed --report read lists each failed group as the device answered it (data table, zero-based addresses, exception code with its Modbus name, or no response), each point whose answer could not be decoded, and the groups not tried after a silent device.
  • A report with any failure, or with an identity point that does not match, is saved but never offered for upload; the Continue? question is gone. --upload FILE refuses such a report, or a schema 3 or 4 report, without contacting ModioHub.
  • Reports are schema 5: each successfully read point whose DataSchema declares const carries identity (match or mismatch) from identity_constants and identity_result. A Workspace model's report names its product.
  • Before an upload, POST /api/v1/products/match identifies the product of a model ModioHub does not know: an exact model is left to ModioHub, a report whose points all belong to one baseline gets that product, other matches or a model number search are offered interactively, and otherwise a prefilled catalog request is printed (no values or addresses).
  • ModioHub refusals are explained by their problem code.

Needs the ModioHub side (top-maker/modiohub, VER-02) for the match endpoint and the schema 5 upload; both ship in the same release batch with modpoll-wot.

Checks: make check, make test (256 passed), uv run pytest integration (7 passed).

…chema 5 and identify the product before an upload (POLL-06)
@gavinying
gavinying merged commit 6143efa into v2 Nov 14, 2026
16 checks passed
@gavinying
gavinying deleted the feat/poll-06 branch November 14, 2026 12:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant