Documentation
How to read a meter, host one, secure an association and build for a microcontroller with dlms-cosem-rs — the DLMS/COSEM stack for Rust.
Eight pages, in the order they are worth reading. Every code sample on this site is compiled as part of the test suite, so a snippet that stops working fails the build rather than quietly misleading somebody.
For signatures rather than prose, the API reference comes from the same source: cargo doc --open, and docs.rs once the crate is published.
Getting started
Install dlms-cosem-rs, understand what sans-I/O means for your code, and read your first register from a smart meter over TCP.
Cookbook
Compiled, runnable recipes for dlms-cosem-rs: read a register, open a ciphered association, decrypt a push, read a load profile, host a meter, parse a P1 telegram.
Security
DLMS security suites 0–2, the three protection forms, high level security, invocation counters and replay windows — and the one rule the crate cannot enforce for you.
Services and segmentation
GET, SET, ACTION and ACCESS in dlms-cosem-rs, the batched with-list forms, selective access, and the three segmentation mechanisms that compose rather than substitute.
Transports
HDLC framing, segmentation and the link machine; the TCP/UDP wrapper with stream reassembly; and the P1 customer interface for DSMR and eMUCs telegrams.
Embedded and no_std
Build dlms-cosem-rs for a Cortex-M or RISC-V microcontroller with no allocator, and check the panic-freedom claim yourself in one command.
Hosting a meter
Implement ObjectStore and let the framework handle associations, authentication, access control, protection and segmentation — with an audit trail that records refusals.
Status and evidence
What dlms-cosem-rs implements, what it deliberately refuses rather than guesses, what the test suite actually proves — and the one gap that is still open.