Skip to main content

Module simulator

Module simulator 

Source
Expand description

Loopback meter and gateway roles for the commissioned simulation channel, over DLMS/COSEM or SML.

Structs§

Meter
Read-only object store for the commissioned simulation profile.

Enums§

History
Choose which source records the simulated meter reports.
Protocol
The protocol on the simulated meter link. Both sides must be commissioned alike.

Constants§

ID
Commissioned simulator meter identifier.
PROFILE
Profile Generic logical name for the three-slot fixture.
SERVER_ID
The fixture meter’s SML server ID: electricity, manufacturer IMS, serial 1.
SML_SOURCE
The fixture meter as an SML source.
SOURCE
Meter metadata shared by the fixture and its reader.

Functions§

new_profile
Start the simulator’s three-slot import-energy history at the selected reference second.
read_meter
Import the destination’s three quarter-hour slots over a new, four-second loopback session. An error, including a failed DLMS release or an SML refusal, preserves the entire destination.
serve_meter
Serve one loopback session for up to four seconds: a public-client DLMS association or one SML request. The caller owns the listener. The callback observes a selected profile read and receives the session deadline.

Type Aliases§

VirtualMeter
One day of quarter-hour observations, including the latest register.