Repository navigation
full: IEC 61850 MMS server on TCP 102 beside GOOSE - #36
Merged
Merged
Conversation
lib/mms: a server for one logical device from a const table, as lib/goose publishes one. Discovery, reads at any level, data sets, one buffered and one unbuffered report control block, two clients at once, identify and status. No controls, files, setting groups or TLS. The core is free of I/O (tests/lib/mms); the Zephyr glue is one thread on sockets, with a bounded send and TCP keepalive. nodes/full serves what its GOOSE publishes: ds_pdu through brcb_pdu01, ds_dcdc through urcb_dcdc01, every data object with q and t. zelosfull.cid is the station file. testing/suites/mms checks it with an MMS client on the host.
…ilure A network card drops multicast nobody asked it for: on hardware the suite saw gcb_pdu and not gcb_dcdc. A test that failed with simulation on left it on until a reset.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
The combined image serves over IEC 61850-8-1 MMS the logical device its GOOSE already publishes from.
lib/mms: a server for one logical device from a const table, aslib/goosepublishes one. Discovery, reads at any level, data sets, buffered and unbuffered report control blocks, identify and status, two clients at once. No controls, files, setting groups or TLS. The core is free of I/O; the Zephyr glue is one thread on sockets.nodes/full:ds_pduthroughbrcb_pdu01(buffered),ds_dcdcthroughurcb_dcdc01(unbuffered), every data object withqandt.zelosfull.cidis the station file for both GOOSE and MMS.snippets/mms, part of the full image.testing/suites/mms: the model against the station file, a read with quality and time, unbuffered reports of the DC-DC, and a PDU change made while no client was connected replayed to the client that resumes. In the core list.testing/suites/goose: the capture socket joins the two multicast addresses, as a subscriber does. A network card drops multicast nobody asked it for, so on hardware the suite sawgcb_pduand notgcb_dcdc. A test that fails with simulation on now turns it off again.Why
A bench that publishes GOOSE can now be read the way a station client reads an IED: browsed, polled and reported, from one device.
Tested
tests/lib/mmson native_sim: 9 cases.just twister: 85 of 85 cases, every node built.Notes
CONFIG_NET_SOCKET_MAX_SEND_WAIT(10 s) unlessCONFIG_NET_CONTEXT_SNDTIMEOis built in, which this image does not set.Not run