Commit Graph

329 Commits (c20b3f8a70ad37ccf424d66a84d84745fa0ecbfa)

Author SHA1 Message Date
Michael Zillgith 3e5fadce4b - fixed - server doesn't respond SBOw when waiting for select callback (LIB61850-313) 4 years ago
Michael Zillgith 9d9f03585f - IED server: improved control state machine performance (LIB61850-312) 4 years ago
Michael Zillgith 258651eca8 Merge branch 'v1.5_issue_243' into v1.5_develop 4 years ago
Michael Zillgith 398b14e65f - added null pointer protection to some constructors/destructors 4 years ago
Michael Zillgith d40b359292 - updated windows socket implementation; fixed Socket_checkAsyncConnectState function 4 years ago
Michael Zillgith 56847ec171 - removed field in ReportControl 4 years ago
Michael Zillgith a7362928f4 - added semaphore for server side RCB value access 4 years ago
Michael Zillgith c3191b2864 - .NET API: added additional properties for Server.ReportControlBlock 4 years ago
Michael Zillgith e06b485258 - ensure RESERVED event before ENABLE event 4 years ago
Michael Zillgith 81b26f1cb6 - added more ReportControlBlock methods 4 years ago
Michael Zillgith b27681f408 - implemented GET_PARAMETER event for IedServer_RCBEventHandler
- implemented additional access functions for ReportControlBlock to allow access to runtime values
4 years ago
Michael Zillgith 83e21e207b - added additional events for IedServer_RCBEventHandler 4 years ago
Michael Zillgith 88148f39ac - added IedServer_RCBEventHandler 4 years ago
Michael Zillgith 8c55ff636d - made server report reservation compatible with Ed. 2.1 (LIB61850-293) 4 years ago
Michael Zillgith aaf893da34 - fixed - UBRB: library can't work at the same time with URCB with preconfigured client and URCB without preconfigured client (LIB61850-292)(#355) 4 years ago
Michael Zillgith 8918a442e0 - removed some warnings in reporting.c 4 years ago
Michael Zillgith e0b5ed180f Merge branch 'v1.5_tcp_perf_problem' into v1.5_issue_243 4 years ago
Michael Zillgith 93d8dfc856 - reporting.c: fixed report entry counter and assert problems
- IED server: disactivate all RCB instances when stopping the server
4 years ago
Michael Zillgith 434b9f59b7 - fixed - IED server: crash during invalid control access - FC=CO on invalid layer (LIB61850-282) 4 years ago
Michael Zillgith 9b19e88af7 - fixed - Server: ctlNum and origin(status) are not updated automatically by the
server when APC command is received (LIB61850-277)
4 years ago
Michael Zillgith ba45973d59 Merge branch 'v1.5' into v1.5_tcp_perf_problem 4 years ago
Michael Zillgith 6525a72930 - fixed TCP performance problem for Linux (LIB61850-243) 4 years ago
Michael Zillgith 659dd49338 - reworked server side array handling (-> incompatible data model structure changes!) 4 years ago
Michael Zillgith c5579758bb - IED server: improved accuracy of integrity report intervals 4 years ago
Michael Zillgith 25394b11e1 Merge branch 'v1.5' of https://github.com/mz-automation/libiec61850 into v1.6 4 years ago
Michael Zillgith 9a2fd3e23e - started to implement functional naming for LDs 4 years ago
Michael Zillgith 4ffed8de11 - IED server: fixed crash when IEDName+LDInst is too long 4 years ago
Michael Zillgith 78cd0ed391 - IedServer: fixed bug - in executeControlTask MmsMapping* is used instead of ControlObject* for ControlAction parameter of checkHandler (#333) 4 years ago
Michael Zillgith de3aba0cb6 - .NET API: added support for server integrated GOOSE publisher
- IED server: fixed bug in GoCBEventHandler
4 years ago
Michael Zillgith 1bb76893a2 - fixed compilation problem when compiling without GOOSE support (#325) 4 years ago
Michael Zillgith 1a09b9548a - IED server: control handling - fixed problem in test flag handling 4 years ago
Michael Zillgith 1b2d194694 - IED server: For SBOes check test flag match when accepting operate (sSBOes8) 4 years ago
Michael Zillgith f866132e84 - IED server: Reject Cancel/SBOw in WaitForChange state - fixed problem with test case sCtl26 4 years ago
Michael Zillgith 3532623319 - IED server: Goose publisher - set NdsCom when data set not configured or GoEna fails because of large data set 5 years ago
Michael Zillgith 2b1104c0d3 - IED server - control model - send AddCause with operate- for DOes, SBOes control models 5 years ago
Michael Zillgith bd4bd0fab6 - IED server: GoCB has invalid data set reference when datSet="" in SCL file 5 years ago
Michael Zillgith 4e15343f5b - IED server: integrated GOOSE publisher - lock data model during GOOSE retransmission to avoid corrupted GOOSE data 5 years ago
Michael Zillgith ea268b46a7 - IED server: make presence of RCB.Owner configurable at runtime with function IedServerConfig_enableOwnerForRCB (B1502/S1634) 5 years ago
Michael Zillgith fd3847dcc5 - IED server: make presence of BRCB.ResvTms configurable at runtime with function IedServerConfig_enableResvTmsForBRCB (F1558) 5 years ago
Michael Zillgith dc22dc76ec - IED server: fixed bug in log service - old-entry and old-entry-time not updated 5 years ago
Michael Zillgith 842bc271cd - IED server: added new function IedServer_handleWriteAccessForComplexAttribute. Changed WriteAccessHandler behavior when ACCESS_POLICY_ALLOW. 5 years ago
Michael Zillgith 60d66e5ba4 - some code beautification 5 years ago
Michael Zillgith fe39cc9b24 - IED server: control models - fixed bug that only one control is unselected when connection closes 5 years ago
Michael Zillgith 4f0667b597 - removed some warnings and code cleanup 5 years ago
Michael Zillgith db1671587e - IED server: fixed bug - logs (journals) are added to all logical devices instead of just the parents 5 years ago
Michael Zillgith 9e064ab709 - IED Server: prevent integrated GOOSE publisher to crash when ethernet socket cannot be created 5 years ago
Michael Zillgith 23a3b3a371 - IED server: make compatible with tissue 1178 5 years ago
Michael Zillgith 6c2b9ad473 - IED server: reporting - implemented behavior according to tissue 1432 5 years ago
Michael Zillgith 74a227bdf2 - IED server: WriteAccessHandler can tell the stack not to update the
value when returning DATA_ACCESS_ERROR_SUCCESS_NO_UPDATE
5 years ago
Michael Zillgith 5f2e14f712 Merge branch 'v1.5' of https://github.com/mz-automation/libiec61850 into v1.5 5 years ago
Michael Zillgith 945fe080f3 - removed some compiler warnings 5 years ago
Michael Zillgith d08f5a67ac - IED server: fixed problem with client connection handling of setting groups 5 years ago
Michael Zillgith 474a482766 IED server: fixed problem with CONFIG_IEC61850_RCB_ALLOW_ONLY_PRECONFIGURED_CLIENT configuration option enabled 5 years ago
Michael Zillgith 40f8b76ad7 - IED server: handle BRCB.Owner correctly when client uses pre-assigned RCB instance 5 years ago
Michael Zillgith 4793e298ff - IED server: fixed problem that BL FC is not writable (#287) 5 years ago
Michael Zillgith 4deca9a4c0 - IED server: fixed potential deadlock in report module when service tracking is enabled 5 years ago
Michael Zillgith 7b671f3a01 - GOOSE subscriber: accept GOOSE messages with the correct maximum size of DatSet and GoID 5 years ago
Michael Zillgith b88c4216c8 - IED server: send AddCause for invalid origin also in case of direct control models 5 years ago
Michael Zillgith 0c9d1b16f8 - fixed struct initialization problem with Visual Studio 5 years ago
Michael Zillgith 8a55ef47bf - IED server: ControlPerformCheckHandler has same parameters when called again in state WAITING_FOR_SELECT 5 years ago
Michael Zillgith 14f4f1ccf0 - IED server: added ControlSelectStateChangedHandler callback for control model 5 years ago
Michael Zillgith fb5ed11001 - IED server: also respect user provided error and addCause from ControlPerformCheckHandler when the handler is called multiple times in waiting-for-select state 5 years ago
Michael Zillgith a5bcd3c251 - IED server: fixed problem - control not unselected after connection is closed for sboClass "operate-many" 5 years ago
Michael Zillgith cc80bffa69 - IED server: support for configuration of EditSG service and online visibility of SGCB.ResvTms at runtime 5 years ago
Michael Zillgith 53d8a2f715 - IED server: changed types TrkOps and OptFlds to variable length bit strings 5 years ago
Michael Zillgith 23da9ba28e - IED server: control service tracking - fixed problem with missing attributes for SBOw tracking 5 years ago
Michael Zillgith 767bc887de - IED server: fixed problems in control service tracking 5 years ago
Michael Zillgith 49cc901263 - fixed problem in control service tracking 5 years ago
Michael Zillgith e4fcb923a0 - fixed problems in control service tracking 5 years ago
Michael Zillgith 42802db6f1 - added -Wextra to Makefile and changed code to avoid resulting warnings 5 years ago
Michael Zillgith 07525b598f Merge branch 'v1.5' of https://github.com/mz-automation/libiec61850 into v1.5 5 years ago
Michael Zillgith 1f56110d32 - removed some compiler warnings 5 years ago
Mikael Bourhis a095c16139 IED Server/Goose: Fix the 'Goose Ethernet Interface Id' allocation
Issue:
In the case of 'GooseInterfaceId' initialization for all GOOSE
publishers (API function: IedServer_setGooseInterfaceId()), only the pointer of
the character string is saved and used for the next operations.
If the corresponding memory is cleared or overwritten in the
application program, a segfault may occurred in libiec61850.

Proof:
In the 'server_example_goose.c' example, if we used a temporary
allocated memory to store the 'ethernetIfcId', the bug will occur:

        /* set GOOSE interface for all GOOSE publishers (GCBs) */
    +   unsigned int ethernet_interface_id_length = strnlen(ethernetIfcID, 32);
    +   char * tmp_ethernet_interface_id = calloc(sizeof(char), ethernet_interface_id_length + 1);
    +   memcpy(tmp_ethernet_interface_id, ethernetIfcID, ethernet_interface_id_length);
    +
        IedServer_setGooseInterfaceId(iedServer, tmp_ethernet_interface_id);
    +
    +   explicit_bzero(tmp_ethernet_interface_id, ethernet_interface_id_length);
    +   free(tmp_ethernet_interface_id);

(This issue was discovered during the rewriting of 'server_example_goose'
in Python, with the Swig wrapper: the allocated memory for
'ethernetIfcID' parameter in the Swig wrapper is automatically reused)

Fix:
The 'gooseInterfaceId' attribute of 'MmsMapping' in libiec61850 must be a new
allocated memory (with the use of 'StringUtils_copyString()') and deallocated
in the 'MmsMapping_destroy()' function.
5 years ago
Michael Zillgith ec5ccb62a0 - IED server: RCB and LCB service tracking replaced $ with . characters in object references 5 years ago
Michael Zillgith 5e520f21b5 - IED server: added missing data set update in GoCB service tracking object 5 years ago
Michael Zillgith 7e1c2ef18f - IED server: added GoCB event callback
- IED server: added configuration option to use GoCB block handling without the integrated GOOSE publisher (IedServerConfig_useIntegratedGoosePublisher)
5 years ago
Michael Zillgith e1ab323c1b - IED server: added code for log service tracking 5 years ago
Michael Zillgith 3a2eea3611 - extended service tracking example for GoCB and SGCB service tracking 5 years ago
Michael Zillgith fcdb83bc2f - IED server: fixed memory leak in service tracking code
- IED server: fixed bug in GoCB service tracking (goID and dataSet not set)
5 years ago
Michael Zillgith bafe27a0e8 - IED server: add support for tissue 807 (owner attribute in RCB is only present when ReportSettings@owner attribute is true) 5 years ago
Michael Zillgith 9809582f96 - IED server: implemented tissue 1453 also for writing to "RptId"
(purgeBuf only executed when value changes)
5 years ago
Michael Zillgith 0b58716ea3 - IED server: fixed issue - read access to SGCB is not possible when read access handler is installed 5 years ago
Michael Zillgith 69e359b03f - added new DataAttributeType value IEC61850_TYPE_UNKNOWN 5 years ago
Michael Zillgith ed8c8b3ac7 - IEC 61850 server: fixed some variable initialization issues caused by recent changes 5 years ago
Michael Zillgith e4b2849894 - fixed problems in handling array elements and array element components 5 years ago
Michael Zillgith ee4da06690 - IEC 61850 server: fixed problem with test case sRp4 - RCB RptID attribute is not empty after writing empty string 5 years ago
Michael Zillgith 9ab37e9836 - IED Server/GOOSE: Don't send GOOSE message with new event while data model is locked 5 years ago
Michael Zillgith 9ac8192bae - IED Server: fixed service tracking object references for RCB and GoCB service tracking 5 years ago
Michael Zillgith 649db2b3d6 - IEC 61850 server: extended control service tracking
- IEC 61850 server: partially implemented setting group service tracking
- IEC 61850 server: partially implemented GoCB service tracking
5 years ago
Michael Zillgith 0129032f08 - IEC 61850 server: fixed - cancel command for time activated control returns object-access-denied even in case of success 5 years ago
Michael Zillgith cc22c69fb1 Merge branch 'v1.5' of https://github.com/mz-automation/libiec61850 into v1.5 5 years ago
Michael Zillgith 24a380c845 - IEC 61850 server: added updating of missing attributes for control
service tracking
5 years ago
Michael Zillgith 8bc7b75e11 - IEC 61850 server: fixed crash in control service tracking when application doesn't register control handler 5 years ago
Michael Zillgith 2467457b5b - IEC 61850 server: fixed problem with wrong service-type for service
tracking when writing URCBs (SetBRCBValues instead of SetURCBValues)
5 years ago
Michael Zillgith 80d11fbf78 - IEC 61850 server: started to implement control service tracking
(implemented support for SpcTrk)
5 years ago
Michael Zillgith 2f5817e0ac - IEC 61850 server: implemented service tracking for BRCBs and URCBs 5 years ago
Michael Zillgith 092d8786ac - IEC 61850 server: control model - fixed bug in handling of check flags 5 years ago
Michael Zillgith d38e590c99 - IEC 61850/MMS server: control - allow WaitForExecutionHandler to trigger LastApplError message 5 years ago
Michael Zillgith 5f02ea1661 - IEC 61850 server: control module return AddCause command-already-in-execution when second operate is received while command is executed 5 years ago
Michael Zillgith b3c5ecdcf2 - IEC 61850 server: report service - combine quality and value change of a FCDO in the same report when model is locked (send data set entry with multiple reason-for-inclusion) 5 years ago