Skip to main content

Module app

Module app 

Source
Expand description

The layers above the link layer: ELL, AFL and TPL (EN 13757-3, EN 13757-7, OMS Vol. 2), and the data records they carry.

[ELL 8C–8F]  [AFL 90]  TPL (CI + header)  records
CILayerHeader
8C, 8Eextended link layer: CC, access number (8E: + receiver address)
8D, 8Fthe same + session number and payload CRC; AES-CTR encrypted
90authentication and fragmentation layer: message counter, CMAC
72, 5B, 6F, 75, 8B, 80transport layerlong (12 bytes)
7A, 5A, 6E, 74, 8Atransport layershort (4 bytes)
78, 51, 70, 71transport layernone

Application::parse reads every layer without a key and stops at the first encrypted one: Body::Encrypted then says how it is encrypted, and (feature oms) Encrypted::decrypt opens it. Application::authenticity says what, if anything, was cryptographically verified: radio data is not evidence until it is (constitution V).

Modules§

ci
CI values.

Structs§

Address
A meter’s address: manufacturer, identification number, version and device type.
Afl
The authentication and fragmentation layer (CI 90, OMS Vol. 2 §6, EN 13757-7).
Application
A parsed telegram above the link layer.
Ell
The extended link layer (CI 8C–8F).
Encrypted
An encrypted layer and everything needed to open it.
LongHeader
The long header: the meter’s address plus the short header.
Manufacturer
A manufacturer code: three letters packed into 15 bits (the FLAG association ID).
Medium
The medium (device type) a meter measures.
SecurityMode
The security mode from a transport header’s configuration field (OMS Vol. 2 §7.2.4, Tables 19 and 20).
ShortHeader
The short header: access number, status and configuration.

Enums§

Authenticity
What was cryptographically verified about a telegram. Only Authenticity::Authenticated makes a radio reading evidence.
Body
The payload after the transport header.
Header
The transport-layer header.
Security
How an encrypted layer is protected.