Skip to content

M2D-1: typed IEC 61850 Quality and TimeQuality in native Workbench - #164

Draft
masarray wants to merge 1 commit into
mainfrom
feat/workbench-typed-quality-time-m2d
Draft

masarray wants to merge 1 commit into
mainfrom
feat/workbench-typed-quality-time-m2d

Conversation

@masarray

Copy link
Copy Markdown
Owner

Baseline

Based on integrated M2C (main d437443). Native Qt Workbench only; no firmware, SMV/PTP, MMS transport or ReportControl lifecycle changes.

Engineering value

  • Decode genuine 13-bit IEC 61850 Quality from successful MMS bit-string values: validity (good/invalid/reserved/questionable), overflow, out-of-range, bad-reference, oscillatory, failure, old-data, inconsistent, inaccurate, source, test, operator-blocked.
  • Decode genuine IEC 61850 UTC time + TimeQuality from typed MMS utc_time: UTC milliseconds, LeapSecondsKnown, ClockFailure, ClockNotSynchronized and 5-bit accuracy code; 31 reported as unspecified.
  • Decode only q or t typed leaf results. Malformed quality and wrong data kind fail closed, never synthesize false flags from absent MMS reads or offline SCL.
  • Store decoded metadata sparsely against canonical node indices, not 60k eager QVariantMaps. Clear metadata on new model. Both private client and shared Browser context models receive the same generation-checked evidence at MMS Read completion.
  • Expand metadata in Browser Data Model leaf inspector and use corresponding summaries for DA rows in DataSets. No network action on expansion.
  • Add C++ regression for quality bits, invalid shape, UTC quality, typed siblings, and model replacement; QML contract lock.

Acceptance

Native Qt build, QML smoke, Browser contract and large-model regression all pass at exact head; verify Windows screenshot/manual live IED before declaring full IEDScout parity.

Scope limits

This is M2D-1: typed MMS Read evidence in Data Model and DataSets. Report payload decoding and nested per-report Quality/TimeQuality presentation remain separate follow-up work. No merge until CI green and source review.

CI efficiency

Single cohesive feature commit. Only relevant Qt/SCL-assisted workflows, no blanket firmware CI and no release installer until acceptance.

…wser

Decode 13-bit quality and UTC time quality from confirmed MMS DataValue rather than GUI hex strings. Keep typed q/t metadata sparse, canonical and tied to generation-checked MMS Read callbacks; clear on new IED documents and leave offline states unknown. Expose readable Quality Details and Time Quality on Data Model leaves and DataSet DA summaries; add malformed/wrong-type/bitfield/time/canonical-stale QA. No MMS protocol, RCB lifecycle, PTP, SV or firmware modifications.
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