Expand description
SML messages: SML_Message, the bodies a meter and a client exchange, and the options
that decide how strictly they are read.
SML_Message ::= List(6) {
transactionId Octet String
groupNo Unsigned8
abortOnError Unsigned8
messageBody List(2) { tag Unsigned32, body … }
crc16 Unsigned16
endOfSmlMsg 0x00
}A meter’s push telegram is usually three messages: an OpenResponse, a
GetListResponse with the readings, and a CloseResponse. A client on the LMN sends
OpenRequest, GetListRequest and CloseRequest. Bodies this crate does not type (the COSEM
bodies) are kept as Body::Other with their raw bytes.
Modules§
- tag
- Message body tags (
SML_MessageBodychoice).
Structs§
- Attention
SML_Attention.Res.- Close
Request SML_PublicClose.Req.- Close
Response SML_PublicClose.Res.- GetList
Request SML_GetList.Req.Debugdoes not print the password.- GetList
Response SML_GetList.Res: the readings.- GetProc
Parameter Request SML_GetProcParameter.Req.Debugdoes not print the password.- GetProc
Parameter Response SML_GetProcParameter.Res.- GetProfile
List Response SML_GetProfileList.Res: one period of a profile.- GetProfile
Request SML_GetProfilePack.ReqandSML_GetProfileList.Req, which share one grammar.Debugdoes not print the password.- List
Entry SML_ListEntry: one named value.- Message
- One SML message.
- Messages
- The messages of one SML file (one transport payload).
- Open
Request SML_PublicOpen.Req.Debugdoes not print the password.- Open
Response SML_PublicOpen.Res.- Parse
Options - How messages are read: how strictly the CRC is checked, and which named meter deviations are tolerated.
- SetProc
Parameter Request SML_SetProcParameter.Req.Debugdoes not print the password.
Enums§
- Body
- A message body.
Functions§
- readout_
with - The readings of one SML file in one call: every message is parsed (any error is
returned) and the first
GetListResponsecomes back.
Type Aliases§
- List
Entries - The entries of a
GetListResponse: parsed one at a time when decoded, or a slice when built for writing.