MTConnect: detect Agent loss sooner; clamp the raised sample count to the Agent's bufferSize #846

Closed
opened 2026-11-11 03:27:29 -05:00 by dohertj2 · 1 comment
Owner

From the #823/#825 gate.

  • During an Agent outage values stay Good-but-stale for ~94–118 s until the comms-loss watchdog fires (documented contract). A refused connection is a definite loss and could mark BadNoCommunication immediately.
  • The adaptive raised-count ceiling (16× SampleCount) can exceed the Agent's bufferSize, now known from /probe (#825); clamp it.
  • Housekeeping: the shared fixture's fixture_writeback item holds an injected GATE823-OVR-* value from the gate.
From the #823/#825 gate. - During an Agent outage values stay Good-but-stale for ~94–118 s until the comms-loss watchdog fires (documented contract). A refused connection is a definite loss and could mark BadNoCommunication immediately. - The adaptive raised-count ceiling (16× SampleCount) can exceed the Agent's `bufferSize`, now known from /probe (#825); clamp it. - Housekeeping: the shared fixture's `fixture_writeback` item holds an injected `GATE823-OVR-*` value from the gate.
dohertj2 added the type:featurepriority:p3 labels 2026-11-11 03:27:29 -05:00
Author
Owner

Done (19ffb3c9, fc3a39b1). Pushed to master in d1b6cad2. A refused Agent connection marks subscribed values BadNoCommunication after CommsLossConfirmMs (default 2000 ms; 0 = immediate; negative = off); timeouts/resets keep the watchdog contract. The adaptive raised sample count is clamped to the Agent's bufferSize. Fixture fixture_writeback reset to UNAVAILABLE. Follow-up: #852.

Done (`19ffb3c9`, `fc3a39b1`). Pushed to master in `d1b6cad2`. A refused Agent connection marks subscribed values BadNoCommunication after `CommsLossConfirmMs` (default 2000 ms; 0 = immediate; negative = off); timeouts/resets keep the watchdog contract. The adaptive raised sample count is clamped to the Agent's `bufferSize`. Fixture `fixture_writeback` reset to UNAVAILABLE. Follow-up: #852.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: dohertj2/lmxopcua#846