From 23da9ba28e1a277185fc71d919564c101c9f4e86 Mon Sep 17 00:00:00 2001 From: Michael Zillgith Date: Mon, 2 Nov 2020 10:50:03 +0100 Subject: [PATCH] - IED server: control service tracking - fixed problem with missing attributes for SBOw tracking --- src/iec61850/server/mms_mapping/control.c | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/iec61850/server/mms_mapping/control.c b/src/iec61850/server/mms_mapping/control.c index 55f7e1bd..cb09e8a0 100644 --- a/src/iec61850/server/mms_mapping/control.c +++ b/src/iec61850/server/mms_mapping/control.c @@ -279,6 +279,7 @@ copyControlValuesToTrackingObject(MmsMapping* self, ControlObject* controlObject } if (operVal) { + if (trkInst->Test) { MmsValue_update(trkInst->Test->mmsValue, getOperParameterTest(operVal)); } @@ -1911,6 +1912,13 @@ Control_writeAccessControlObject(MmsMapping* self, MmsDomain* domain, char* vari if (controlObject->ctlModel == 4) { + if (controlObject->sbow) { + if (MmsValue_update(controlObject->sbow, value) == false) { + if (DEBUG_IED_SERVER) + printf("IED_SERVER: SBOw - type mismatch\n"); + } + } + MmsValue* ctlVal = getCtlVal(value); if (ctlVal != NULL) {