|
|
|
@ -71,6 +71,8 @@ setupSVPublisher(const char* svInterface)
|
|
|
|
|
{
|
|
|
|
|
svPublisher = SVPublisher_create(NULL, svInterface);
|
|
|
|
|
|
|
|
|
|
if (svPublisher) {
|
|
|
|
|
|
|
|
|
|
asdu = SVPublisher_addASDU(svPublisher, "xxxxMUnn01", NULL, 1);
|
|
|
|
|
|
|
|
|
|
amp1 = SVPublisher_ASDU_addINT32(asdu);
|
|
|
|
@ -96,6 +98,7 @@ setupSVPublisher(const char* svInterface)
|
|
|
|
|
|
|
|
|
|
SVPublisher_setupComplete(svPublisher);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
static void sVCBEventHandler (SVControlBlock* svcb, int event, void* parameter)
|
|
|
|
|
{
|
|
|
|
@ -132,6 +135,8 @@ main(int argc, char** argv)
|
|
|
|
|
|
|
|
|
|
setupSVPublisher(svInterface);
|
|
|
|
|
|
|
|
|
|
if (svPublisher) {
|
|
|
|
|
|
|
|
|
|
SVControlBlock* svcb = IedModel_getSVControlBlock(&iedModel, IEDMODEL_MUnn_LLN0, "MSVCB01");
|
|
|
|
|
|
|
|
|
|
if (svcb == NULL) {
|
|
|
|
@ -242,6 +247,10 @@ main(int argc, char** argv)
|
|
|
|
|
nextCycleStart = nextCycleStart + 100;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
else {
|
|
|
|
|
printf("Cannot start SV publisher!\n");
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/* stop MMS server - close TCP server socket and all client sockets */
|
|
|
|
|
IedServer_stop(iedServer);
|
|
|
|
|