Skip to main content

Module message

Module message 

Source
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_MessageBody choice).

Structs§

Attention
SML_Attention.Res.
CloseRequest
SML_PublicClose.Req.
CloseResponse
SML_PublicClose.Res.
GetListRequest
SML_GetList.Req. Debug does not print the password.
GetListResponse
SML_GetList.Res: the readings.
GetProcParameterRequest
SML_GetProcParameter.Req. Debug does not print the password.
GetProcParameterResponse
SML_GetProcParameter.Res.
GetProfileListResponse
SML_GetProfileList.Res: one period of a profile.
GetProfileRequest
SML_GetProfilePack.Req and SML_GetProfileList.Req, which share one grammar. Debug does not print the password.
ListEntry
SML_ListEntry: one named value.
Message
One SML message.
Messages
The messages of one SML file (one transport payload).
OpenRequest
SML_PublicOpen.Req. Debug does not print the password.
OpenResponse
SML_PublicOpen.Res.
ParseOptions
How messages are read: how strictly the CRC is checked, and which named meter deviations are tolerated.
SetProcParameterRequest
SML_SetProcParameter.Req. Debug does 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 GetListResponse comes back.

Type Aliases§

ListEntries
The entries of a GetListResponse: parsed one at a time when decoded, or a slice when built for writing.