Expand description
§smgw
Compose metering, meter acquisition and CLS sessions in a smart meter gateway application. The default build exposes the nine allocation-free metering profiles from smgw-core and the structural wake-up parser. Each adapter uses the same domain types as the standalone crates.
| Cargo feature | Gateway API |
|---|---|
| Default | smgw::taf1 through the supported profiles and smgw::wakeup::parse for borrowed, unverified packet fields |
lmn | smgw::lmn::dlms::read_profile imports a selected meter buffer into smgw::taf15::Profile |
lmn-blocking | smgw::lmn::dlms::BlockingReader reads over a commissioned meter association with an explicit per-GET byte limit |
lmn-sml | smgw::lmn::sml::read_profile_pack and capture_reading import SML electricity meter profiles and push readings |
lmn-oms | smgw::lmn::mbus::capture_telegram records authenticated wireless M-Bus (OMS) gas telegrams |
cls | smgw::cls exposes the allocation-free CLS session engine and relay models |
wakeup-verify | Verify through a commissioned smgw_sec::BrainpoolP256Verifier and check recipient, freshness and replay watermark |
management | Serve or request the synthetic meter-profile resource over a pinned management TLS session |
wakeup-store | Persist the verified watermark across restarts with redb |
For the supplied Brainpool implementation, enable the openssl feature on smgw-sec and construct a BrainpoolP256PublicKey from a trusted public key. The wakeup-verify policy uses no_std and alloc.
Verify the bundled signature with cargo run -p smgw --features wakeup-verify --example wakeup_verify -- --fixture.
Metering guide · Load profiles · Wake-up verification · CLS sessions
Re-exports§
Modules§
- management
- One read-only HTTP resource for the GWA and its loopback gateway simulator.
- taf1
- TAF 1 selection of one cumulative electricity reading per billing close.
- taf2
- Single-meter TAF 2 register simulation for quarter-hour electricity readings.
- taf6
- TAF 6 retrospective selection of a daily billing-register balance.
- taf7
- Bounded, in-memory TAF 7 series for one commissioned active-energy channel.
- taf8
- TAF 8 load curves and maximum demand for one electricity billing window.
- taf9
- TAF 9 single-channel, instantaneous active-power simulation.
- taf10
- TAF 10 grid-state measurements for one commissioned meter and OBIS channel.
- taf14
- Bounded TAF 14 measurement blocks for value-added services (BSI TR-03109-1 v1.1).
- taf15
- TAF 15 capture of meter-registered values for one commissioned OBIS channel.
- wakeup
- Decode a wake-up datagram and optionally authenticate it on the host.