Commit graph

332 commits

Author SHA1 Message Date
f1c1ba527d sv: use const for SvId and DatSet attributes as they are read-only 2017-12-06 16:45:38 +08:00
d85ce71366 sv: improve debugging output in sampled values subscriber 2017-12-06 16:09:52 +08:00
f407c6e6ca sv: add support for decoding smpMod, smpRate and datSet attributes in ASDUs 2017-12-06 16:06:37 +08:00
10f0d84349 sv: smpRate is an optional ASDU attribute. We shall only encode it if it was set before 2017-12-06 15:42:23 +08:00
e2601545df sv: fix invalid length ASN.1 BER length field for smpMod attribute 2017-12-06 15:09:08 +08:00
9580c0add4 sv/goose: do not loop endless if invalid ASN.1 encoded payload has been received 2017-12-06 15:08:29 +08:00
fa694f1b0d sv/goose: remove {SVReceiver,GooseReceiver}_addHandleSet() function as it is unsafe to call before {SVReceiver,GooseReceiver}_startThreadless()
The ethernet socket is now returned by {SVReceiver,GooseReceiver}_startThreadless() which allows us to call EthernetHandleSet_addSocket() afterwards.
2017-12-06 14:24:51 +08:00
9ad2b534f9 fix docs 2017-12-06 14:20:42 +08:00
Michael Zillgith
5fbe455587
Merge branch 'development' into pkgconfig 2017-11-21 22:36:06 +01:00
Michael Zillgith
b673e1d28a
Merge pull request #36 from stv0g/ethernet-handleset
EthernetHandleSet
2017-11-21 22:32:19 +01:00
a1654eef70 smaller fixes 2017-11-19 20:16:41 +01:00
d3ff0f25e5 add ABI compatability wrapper 2017-11-19 20:03:13 +01:00
12cf073f81 refactor "SVClientASDU" to "SVSubscriber_ASDU" 2017-11-19 20:02:53 +01:00
b4b69bf56d refactor "SV_ASDU" to "SVPublisher_ASDU" 2017-11-19 20:02:22 +01:00
694866cf02 includes without 'libiec61850' prefix wont compile installed versions of the library at '/usr/local/include/libiec61850' 2017-11-19 14:08:24 +01:00
dfd077c4c2 declarations in for loops are only allowed in C99 2017-11-19 14:01:41 +01:00
f4fea90ce3 fix install() 2017-11-19 13:58:07 +01:00
979656094d add ability to remove sockets from EthernetHandleSet 2017-11-19 13:53:42 +01:00
967e6ef5b3 use poll() instead of select() 2017-11-19 13:53:37 +01:00
f5e21a41bf generate pkg-config file only on Unixes (Linux, BSD, Apple) 2017-11-19 12:39:48 +01:00
90f20bce43 generate and install pkg-config file 2017-11-19 12:37:13 +01:00
20f654bbc3 add documentation to SVReceiver_tick() 2017-11-19 11:40:25 +01:00
63b6da6ae7 improve documentation of HandleSet_waitReady() 2017-11-19 11:40:25 +01:00
646c9cf073 add support for new EthernetHandleSet to GOOSE subscriber 2017-11-19 11:40:25 +01:00
b6cf079a94 add support for new EthernetHandleSet to SV subscriber 2017-11-19 11:40:24 +01:00
dec12b61a8 refactor: declare private functions static 2017-11-19 11:40:24 +01:00
c082f09aef add EthernetHandleSet implementation for Windows 2017-11-19 11:40:24 +01:00
89661b471f add EthernetHandleSet implementation for BSD 2017-11-19 11:40:24 +01:00
d771444904 add EthernetHandleSet implementation for Linux 2017-11-19 11:40:24 +01:00
1adcd6bcfb fixed typo 2017-11-18 15:08:08 +01:00
31249fdce3 updated Doxygen configuration from 1.7 to 1.8 2017-11-18 13:14:58 +01:00
62e04cf0aa add Doxygen target to CMake 2017-11-18 13:05:34 +01:00
63cd4f6f00 added documentation for Sampled Values publisher 2017-11-18 12:53:06 +01:00
c4a8d90fda fix syntax error in Doxygen config 2017-11-18 12:52:34 +01:00
f1163e78db added deprecated wrappers for ABI compatability 2017-11-18 11:46:24 +01:00
4c5e1717d1 refactored "SampledValuesPublisher" into "SVPublisher" (closes #34) 2017-11-18 11:45:52 +01:00
Michael Zillgith
f7b04a02ed - MMS client: fixed bug in MmsConnection_connect (COTP payload buffer was not reset in case of an error during connect -> connection failed in case of reuse of MmsConnection object) 2017-11-17 17:29:48 +01:00
Michael Zillgith
bc6b7e68a8 - fixed typo in src/sampled_values/sv_publisher.c 2017-11-12 18:43:50 +01:00
Michael Zillgith
ba985ec2b0 - MMS client: delete named variable list service supports VMD specific lists 2017-11-12 18:34:13 +01:00
Michael Zillgith
5d03e77343
Merge pull request #33 from stv0g/sv-add-smprate
Sampled Values: add support for sample rate attribute
2017-11-10 19:12:08 +01:00
Michael Zillgith
4cbaa6a7c1
Merge pull request #32 from stv0g/sv-fix-smpmod
Sampled Values: fix encoding of optional smpMod attribute:
2017-11-10 19:10:26 +01:00
Michael Zillgith
197a0b853f
Merge pull request #30 from stv0g/sv-types
Sampled Values: add support for 64 bit integers
2017-11-10 18:54:06 +01:00
e95b321d12 sampled values: fix data type for smpRate 2017-11-10 16:50:05 +01:00
60c7d3a75f sampled values: fix encoding of optional smpMod attribute:
- The attribute must be encoded as an 16bit unsigned integer. The existing code encodes it as 32 bit integer.
- The attribute is encoded with the ASN.1 BER encoding Tag number 8. The existing code encodes it with tag number 4 which is used for the refrTm attribute.

See also: IEC 61850-9-2:2011 (page 20)
2017-11-10 15:50:23 +01:00
628641cabb sampled values: add support for sample rate attribute 2017-11-10 15:45:34 +01:00
3047681854 refactoring: use spaces instead of tabs consistently 2017-11-10 11:26:20 +01:00
09d5daf0b5 sampled values: add support for 64 bit integers 2017-11-10 11:23:45 +01:00
Michael Zillgith
c291db5d95 - updated README file
- SV receiver: Added semaphore to make subscriber list thread-safe
2017-11-08 08:53:37 +01:00
Michael Zillgith
5fb8c5b984 - MMS: added more length checks in parsers for file services 2017-10-28 13:13:13 +02:00
Michael Zillgith
cd8f5f483d - IED server: added new function IedServer_udpateDbposValue; added new return code for control check callback function 2017-10-26 09:32:16 +02:00