Michael Zillgith
Michael Zillgith
You are right. The line is incorrect. It should be `StateChangedHandler`
It sends one message when you call `SVPublisher_publish`. So the code that is calling `SVPublisher_publish` is responsible to ensure the sample rate. `SVPublisher_ASDU_setSmpRate` only set the value in the SV...
You have to ensure that you call `SVPublisher_publish` in the frequency required by your sampling rate and the number of samples per ASDU. On a linux system you can approximate...
SV publisher or subscriber has to be run as root or with capabilities cap_sys_admin and cap_net_raw
The ConnectionIndicationHandler is a callback function you have to provide and when called your code will receive these parameters. Like in this example: https://github.com/mz-automation/libiec61850/blob/35ac4794301fb5d1f660d6ff0b4e50acd64632d9/examples/server_example_basic_io/server_example_basic_io.c#L74
Do you use the subscriber on the same linux system as the publisher using the same interface? This setup doesn't work on linux because the subscriber cannot see the messages...
Hello. You cannot directly write to "Oper.ctlVal". The server won't accept it as it requires the whole "Oper" structure to execute a command. The library has support for send correct...
Thanks for the detailed analysis. I added a check to fix it. Probably there are also more checks required for other missing fields.
It should work this way. What is the error?
I don't get the question. Linux is not required for libiec61850.