IEC 61850, in Rust.
Publish and subscribe to GOOSE and Sampled Values on the process bus. Read measurements and receive reports over MMS, or serve an IED model from its engineering file.
cargo add iec61850-kituse iec61850_kit::client::Client;
let mut client = Client::connect("127.0.0.1:8102")?;
for device in client.server_directory()? {
println!("{device}");
}
client.release()?;Work with an engineering file#
Load the IED model from an ICD, CID or SCD file. Use it to configure a server, resolve a subscriber’s inputs or decode the named channels in a sampled-value stream. SCL guide · Server guide
ied scl validate relay.icd
ied sim relay.icdInspect a capture#
ied goose sniff bay.pcap
ied sv monitor stream.pcap --scd bay.scd
ied mms sniff station.pcapThe same GOOSE and Sampled Values subscribers accept live Ethernet frames with the net feature. CLI reference
Read station data#
Browse logical devices, read measurements, receive reports and read fixed-start daily FSCH schedules. Use the blocking MMS client or drive a tariff read on an existing async association. MMS guide · Tariff schedules
Common questions
Which targets can run the protocol cores?
GOOSE, Sampled Values and MMS build with no_std and an allocator. CI builds them for thumbv7em-none-eabihf. File and socket adapters require std.
How is interoperability tested?
CI checks vendor captures, Wireshark dissection, and exchanges with libiec61850, IEC61850bean and csp0924’s Rust crates. The library has no IEC conformance certificate.
What security features are available?
GOOSE subscribers check for replay. MMS supports ACSE passwords and application-managed TLS. Your TLS provider handles certificates and peer verification.