EN IEC 62055-42:2022
(Main)Electricity metering - Payment systems - Part 42: Transaction Reference Numbers (TRN)
Electricity metering - Payment systems - Part 42: Transaction Reference Numbers (TRN)
IEC 62055-42:2022, specifies a token generation mechanism and token structure for smart prepayment functionality in markets where IEC 62055-41 compliant systems are not used, and where a different security mechanism is required by project-specific or national requirements. This document specifies token structure, authentication and an anti-replay mechanism, token operating model, and protocol. This document is informed by the STS Association key management services, and by the key management mechanisms used within the DLMS/COSEM security model within IEC 62056‑6‑2. Reference is made to the international STS token standards (IEC 62055-41, IEC 62055-51 and IEC 62055-52) for payment metering systems, and interworking has been considered where appropriate in terms of token carrier ranges in the decimal domain. IEC 62055-41 tokens and those described in this document are not interoperable, however their domains are designed to be mutually exclusive to ensure the two kinds of tokens do not interfere with each other. Metering application processing and functionality, HAN interface commands and attributes, WAN interface commands and attributes are outside the scope of this document; however, reference is made to other standards in this regard. The mechanism for auditing and retrieving data from the meter relating to tariffication, meter readings, profile data and other legal metrology information is outside the scope of this document; however, this is defined as part of any overall metering solution. Such interfaces for retrieving data from a meter may be defined using suitable protocols such as DLMS/COSEM as defined in the IEC 62056 series.
Messung der elektrischen Energie - Zählersysteme mit Inkassofunktion - Teil 42: Transaktionsreferenznummern (TRN)
Comptage de l’électricité - Systèmes de paiement - Partie 42: Numéros de référence des transactions (TRN)
IEC 62055-42:2022, spécifie un mécanisme de génération de jetons ainsi que la structure de jetons associée à la fonctionnalité de prépaiement intelligent, destinée aux marchés où les systèmes conformes à l’IEC 62055-41 ne sont pas utilisés et lorsque les exigences nationales ou spécifiques à un projet imposent l’utilisation d’un autre mécanisme de sécurité. Le présent document spécifie la structure des jetons, leur authentification, un mécanisme antirediffusion, le modèle d’exploitation des jetons et le protocole associé. Le présent document est informé par les services de gestion de clés de la STS Association ainsi que par les mécanismes de gestion de clés utilisés dans le modèle de sécurité DLMS/COSEM spécifié dans l’IEC 62056-6-2. Une référence est faite aux normes internationales relatives aux jetons STS (IEC 62055-41, IEC 62055-51 et IEC 62055-52) pour les systèmes de comptage à paiement, et l’interconnexion a été envisagée le cas échéant en ce qui concerne les plages des supports de jetons dans le domaine décimal. Les jetons conformes à l’IEC 62055-41 et ceux décrits dans le présent document ne sont pas interopérables, mais leurs domaines sont conçus pour être mutuellement exclusifs afin d’assurer que les deux types de jetons n’interfèrent pas l’un avec l’autre. Le traitement et la fonctionnalité des applications de comptage ainsi que les commandes et attributs des interfaces HAN et WAN ne relèvent pas du domaine d’application du présent document. Une référence est toutefois faite à d’autres normes traitant de ces aspects. Le mécanisme d’audit et de récupération des données du compteur relatives à la tarification, des relevés de compteurs, des données sur les profils et autres informations métrologiques légales ne relève pas du domaine d’application du présent document. Il est cependant défini dans le cadre de toute solution de comptage globale. Il est permis de définir de telles interfaces pour la récupération des données d’un compteur en utilisant des protocoles adaptés, tels que DLMS/COSEM défini dans la série IEC 62056.
Merjenje električne energije - Plačilni sistemi - 42. del: Referenčne vrednosti transakcij (TRN)
Ta dokument določa mehanizem za ustvarjanje žetonov in strukturo žetonov za funkcionalnost pametnega predplačila na trgih, kjer se ne uporabljajo sistemi, skladni s standardom IEC 62055-41, in kjer imajo zaradi projektnih ali nacionalnih zahtev drugačen varnostni mehanizem. Ta dokument določa strukturo žetona, potrjevanje pristnosti in mehanizem za preprečevanje ponovnega predvajanja, operacijski model žetona in protokol. Ta dokument temelji na storitvah upravljanja ključev Združenja STS in mehanizmih upravljanja ključev, ki se uporabljajo v varnostnem modelu DLMS/COSEM v okviru standarda IEC 62056 6 2. Dokument se sklicuje na mednarodne standarde za žetone STS (IEC 62055-41, IEC 62055-51 in IEC 62055-52) za sisteme merjenja plačil, medsebojno delovanje pa je bilo upoštevano, kjer je to primerno, v smislu razponov nosilcev žetonov v decimalni domeni. Žetoni iz standarda IEC 62055-41 in žetoni, opisani v tem dokumentu, niso interoperabilni. Njihove domene so zasnovane tako, da se medsebojno izključujejo, kar zagotavlja, da obe vrsti žetonov ne motita druga druge. Obdelava in funkcionalnost aplikacije za merjenje, ukazi in atributi vmesnika HAN, ukazi in atributi vmesnika WAN ne spadajo na področje uporabe tega dokumenta, vendar obstaja v zvezi s tem sklic na druge standarde. Mehanizem za revizijo in pridobivanje podatkov iz števca v zvezi s tarifiranjem, odčitki števcev, profilnimi podatki in drugimi pravnimi meroslovnimi informacijami, ne spada na področje uporabe tega dokumenta, vendar je našteto opredeljeno kot del vseh celovitih rešitev merjenja. Taki vmesniki za pridobivanje podatkov iz števca se lahko definirajo z uporabo ustreznih protokolov, npr. DLMS/COSEM, kot je opredeljeno v skupini standardov IEC 62056.
General Information
Overview
EN IEC 62055-42:2022 - Electricity metering - Payment systems - Part 42: Transaction Reference Numbers (TRN) - specifies a token generation mechanism and token structure for smart prepayment metering in markets where IEC 62055-41 (STS) systems are not used or where project‑specific / national security requirements demand a different approach. The standard defines token formats, authentication and anti‑replay mechanisms, a token operating model and the application‑layer protocol for POS→TokenCarrier and TokenCarrier→Meter interactions. It is informed by STS key management practices and DLMS/COSEM security principles.
Key topics and technical requirements
- Token generation & structure: Defines TRN formats, token classes/subclasses, SingleToken and SuperToken payloads and token carrier decimal ranges to avoid interference with IEC 62055-41 tokens.
- Authentication & integrity: Specifies Message Authentication Code (MAC)/TruncatedMAC processes and Additional Authentication Data (AAD) used to protect tokens against tampering.
- Anti‑replay mechanism: Uses SequentialTokenNumber (STN), TruncatedSTN (TSTN) and related validation rules to prevent reuse of tokens.
- Application protocol (APDU): Details APDU data elements (SupplierID, MeterID, TokenOriginationID, MessageIdentifier, FunctionIndex, Offset, etc.) for POS→TokenCarrier and TokenCarrier→Meter interfaces.
- Security & key management: Describes key derivation, KMS generic requirements and alignment with STS and DLMS/COSEM keying concepts (reference to IEEE GCM/GMAC modes where applicable).
- Extraction & processing: Procedures for APDU extraction, token decryption (where encrypted), authentication, validation and TokenResult reporting.
- Scope boundaries: Meter application processing, HAN/WAN interface commands, and meter data auditing/tariffication retrieval are outside scope (but interoperability with DLMS/COSEM protocols is noted).
Applications and who uses it
EN IEC 62055-42:2022 is intended for:
- Utilities and energy retailers launching prepayment services in jurisdictions that require non‑STS token schemes.
- Meter manufacturers building smart meters with prepayment functionality and TRN token support.
- Payment system integrators and POS vendors implementing token carriers and token issuance.
- KMS designers and security architects specifying key management and MAC/encryption schemes aligned with national requirements.
- Regulators and test labs validating compliance of prepayment solutions and ensuring token domains do not conflict with STS systems.
Practical uses include secure token issuance at point-of-sale, token delivery on physical or electronic carriers, meter token acceptance with anti‑replay protection, and integration into broader metering solutions where DLMS/COSEM may be used for data retrieval.
Related standards
- IEC 62055-41, IEC 62055-51, IEC 62055-52 (STS and token standards)
- IEC 62056 series (DLMS/COSEM) for metering data exchange
- IEC/TR 62051 (metering glossary) and relevant cryptographic guidance (e.g., NIST SP 800-38D references)
Keywords: EN IEC 62055-42:2022, Transaction Reference Numbers, TRN, electricity metering, payment systems, prepayment tokens, token generation, token structure, key management, DLMS/COSEM, STS.
Frequently Asked Questions
EN IEC 62055-42:2022 is a standard published by CLC. Its full title is "Electricity metering - Payment systems - Part 42: Transaction Reference Numbers (TRN)". This standard covers: IEC 62055-42:2022, specifies a token generation mechanism and token structure for smart prepayment functionality in markets where IEC 62055-41 compliant systems are not used, and where a different security mechanism is required by project-specific or national requirements. This document specifies token structure, authentication and an anti-replay mechanism, token operating model, and protocol. This document is informed by the STS Association key management services, and by the key management mechanisms used within the DLMS/COSEM security model within IEC 62056‑6‑2. Reference is made to the international STS token standards (IEC 62055-41, IEC 62055-51 and IEC 62055-52) for payment metering systems, and interworking has been considered where appropriate in terms of token carrier ranges in the decimal domain. IEC 62055-41 tokens and those described in this document are not interoperable, however their domains are designed to be mutually exclusive to ensure the two kinds of tokens do not interfere with each other. Metering application processing and functionality, HAN interface commands and attributes, WAN interface commands and attributes are outside the scope of this document; however, reference is made to other standards in this regard. The mechanism for auditing and retrieving data from the meter relating to tariffication, meter readings, profile data and other legal metrology information is outside the scope of this document; however, this is defined as part of any overall metering solution. Such interfaces for retrieving data from a meter may be defined using suitable protocols such as DLMS/COSEM as defined in the IEC 62056 series.
IEC 62055-42:2022, specifies a token generation mechanism and token structure for smart prepayment functionality in markets where IEC 62055-41 compliant systems are not used, and where a different security mechanism is required by project-specific or national requirements. This document specifies token structure, authentication and an anti-replay mechanism, token operating model, and protocol. This document is informed by the STS Association key management services, and by the key management mechanisms used within the DLMS/COSEM security model within IEC 62056‑6‑2. Reference is made to the international STS token standards (IEC 62055-41, IEC 62055-51 and IEC 62055-52) for payment metering systems, and interworking has been considered where appropriate in terms of token carrier ranges in the decimal domain. IEC 62055-41 tokens and those described in this document are not interoperable, however their domains are designed to be mutually exclusive to ensure the two kinds of tokens do not interfere with each other. Metering application processing and functionality, HAN interface commands and attributes, WAN interface commands and attributes are outside the scope of this document; however, reference is made to other standards in this regard. The mechanism for auditing and retrieving data from the meter relating to tariffication, meter readings, profile data and other legal metrology information is outside the scope of this document; however, this is defined as part of any overall metering solution. Such interfaces for retrieving data from a meter may be defined using suitable protocols such as DLMS/COSEM as defined in the IEC 62056 series.
EN IEC 62055-42:2022 is classified under the following ICS (International Classification for Standards) categories: 17.220.20 - Measurement of electrical and magnetic quantities; 35.100.70 - Application layer; 91.140.50 - Electricity supply systems. The ICS classification helps identify the subject area and facilitates finding related standards.
You can purchase EN IEC 62055-42:2022 directly from iTeh Standards. The document is available in PDF format and is delivered instantly after payment. Add the standard to your cart and complete the secure checkout process. iTeh Standards is an authorized distributor of CLC standards.
Standards Content (Sample)
SLOVENSKI STANDARD
01-november-2022
Merjenje električne energije - Plačilni sistemi - 42. del: Referenčne vrednosti
transakcij (TRN)
Electricity metering - Payment systems - Part 42: Transaction Reference Numbers (TRN)
Ta slovenski standard je istoveten z: EN IEC 62055-42:2022
ICS:
17.220.20 Merjenje električnih in Measurement of electrical
magnetnih veličin and magnetic quantities
91.140.50 Sistemi za oskrbo z elektriko Electricity supply systems
2003-01.Slovenski inštitut za standardizacijo. Razmnoževanje celote ali delov tega standarda ni dovoljeno.
EUROPEAN STANDARD EN IEC 62055-42
NORME EUROPÉENNE
EUROPÄISCHE NORM September 2022
ICS 17.220.20; 35.100.70; 91.140.50
English Version
Electricity metering - Payment systems - Part 42: Transaction
Reference Numbers (TRN)
(IEC 62055-42:2022)
Comptage de l'électricité - Systèmes de paiement - Partie Messung der elektrischen Energie - Zählersysteme mit
42: Numéros de référence des transactions (TRN) Inkassofunktion - Teil 42: Transaktionsreferenznummern
(IEC 62055-42:2022) (TRN)
(IEC 62055-42:2022)
This European Standard was approved by CENELEC on 2022-08-17. CENELEC members are bound to comply with the CEN/CENELEC
Internal Regulations which stipulate the conditions for giving this European Standard the status of a national standard without any alteration.
Up-to-date lists and bibliographical references concerning such national standards may be obtained on application to the CEN-CENELEC
Management Centre or to any CENELEC member.
This European Standard exists in three official versions (English, French, German). A version in any other language made by translation
under the responsibility of a CENELEC member into its own language and notified to the CEN-CENELEC Management Centre has the
same status as the official versions.
CENELEC members are the national electrotechnical committees of Austria, Belgium, Bulgaria, Croatia, Cyprus, the Czech Republic,
Denmark, Estonia, Finland, France, Germany, Greece, Hungary, Iceland, Ireland, Italy, Latvia, Lithuania, Luxembourg, Malta, the
Netherlands, Norway, Poland, Portugal, Republic of North Macedonia, Romania, Serbia, Slovakia, Slovenia, Spain, Sweden, Switzerland,
Türkiye and the United Kingdom.
European Committee for Electrotechnical Standardization
Comité Européen de Normalisation Electrotechnique
Europäisches Komitee für Elektrotechnische Normung
CEN-CENELEC Management Centre: Rue de la Science 23, B-1040 Brussels
© 2022 CENELEC All rights of exploitation in any form and by any means reserved worldwide for CENELEC Members.
Ref. No. EN IEC 62055-42:2022 E
European foreword
The text of document 13/1843/CDV, future edition 1 of IEC 62055-42, prepared by IEC/TC 13
"Electrical energy measurement and control" was submitted to the IEC-CENELEC parallel vote and
approved by CENELEC as EN IEC 62055-42:2022.
The following dates are fixed:
• latest date by which the document has to be implemented at national (dop) 2023-05-17
level by publication of an identical national standard or by endorsement
• latest date by which the national standards conflicting with the (dow) 2025-08-17
document have to be withdrawn
Attention is drawn to the possibility that some of the elements of this document may be the subject of
patent rights. CENELEC shall not be held responsible for identifying any or all such patent rights.
Any feedback and questions on this document should be directed to the users’ national committee. A
complete listing of these bodies can be found on the CENELEC website.
Endorsement notice
The text of the International Standard IEC 62055-42:2022 was approved by CENELEC as a European
Standard without any modification.
In the official version, for Bibliography, the following notes have to be added for the standards
indicated:
IEC 62056-4-7:2015 NOTE Harmonized as EN 62056-4-7:2016 (not modified)
IEC 62056-6-1 NOTE Harmonized as EN 62056-6-1
IEC 62056-6-2 NOTE Harmonized as EN IEC 62056-6-2
IEC 62056-21 NOTE Harmonized as EN 62056-21
IEC 62056-42 NOTE Harmonized as EN 62056-42
IEC 62056-46 NOTE Harmonized as EN 62056-46
Annex ZA
(normative)
Normative references to international publications
with their corresponding European publications
The following documents are referred to in the text in such a way that some or all of their content
constitutes requirements of this document. For dated references, only the edition cited applies. For
undated references, the latest edition of the referenced document (including any amendments)
applies.
NOTE 1 Where an International Publication has been modified by common modifications, indicated by (mod), the
relevant EN/HD applies.
NOTE 2 Up-to-date information on the latest versions of the European Standards listed in this annex is available
here: www.cenelec.eu.
Publication Year Title EN/HD Year
IEC 60050-300 2001 International Electrotechnical Vocabulary - - -
Electrical and electronic measurements
and measuring instruments - Part 311:
General terms relating to measurements -
Part 312: General terms relating to
electrical measurements - Part 313: Types
of electrical measuring instruments - Part
314: Specific terms according to the type of
instrument
+ AMD1 2015 - -
+ AMD2 2016 - -
+ AMD3 2017 - -
+ AMD4 2020 - -
IEC/TR 62051 1999 Electricity metering - Glossary of terms - -
IEC/TR 62055-21 2005 Electricity metering - Payment systems - - -
Part 21: Framework for standardization
IEC 62055-31 2005 Electricity metering - Payment systems - EN 62055-31 2005
Part 31: Particular requirements - Static
payment meters for active energy (classes
1 and 2)
IEC 62055-41 2018 Electricity metering - Payment systems - - -
Part 41: Standard transfer specification
(STS) - Application layer protocol for one-
way token carrier systems
IEC 62056-5-3 2017 Electricity metering data exchange - The EN 62056-5-3 2017
DLMS/COSEM suite - Part 5-3:
DLMS/COSEM application layer
IEEE EUI 64 - https://standards.ieee.org/develop/regauth/ - -
tut/eui64.pdf
- 1975 Verhoeff, J, Error Detecting Decimal - -
Codes, (Tract 29)
NIST SP 800-38D - Recommendation for Block Cipher Modes - -
of Operation: Galois/Counter Mode (GCM)
and GMAC
IEC 62055-42 ®
Edition 1.0 2022-07
INTERNATIONAL
STANDARD
NORME
INTERNATIONALE
colour
inside
Electricity metering – Payment systems –
Part 42: Transaction Reference Numbers (TRN)
Comptage de l’électricité – Systèmes de paiement –
Partie 42: Numéros de référence des transactions (TRN)
INTERNATIONAL
ELECTROTECHNICAL
COMMISSION
COMMISSION
ELECTROTECHNIQUE
INTERNATIONALE
ICS 17.220.20, ICS 35.100.70, ICS 91.140.50 ISBN 978-2-8322-3951-3
– 2 – IEC 62055-42:2022 © IEC 2022
CONTENTS
FOREWORD . 7
INTRODUCTION . 9
1 Scope . 10
2 Normative references . 10
3 Terms, definitions, abbreviated terms and notation . 11
3.1 Terms and definitions . 11
3.2 Abbreviated terms . 12
3.3 Notation . 13
4 Numbering conventions in this document . 13
5 Reference smart meter model . 13
5.1 Generic functional reference diagram . 13
5.2 Token transfer protocol reference model . 15
5.3 Dataflow from the POSApplicationProcess to the TokenCarrier . 16
5.4 Dataflow from the TokenCarrier to the MeterApplicationProcess . 16
5.5 MeterFunctionObjects / companion specifications . 17
6 POSToTokenCarrierInterface application layer protocol . 17
6.1 APDU: ApplicationProtocolDataUnit . 17
6.1.1 Data elements in the APDU . 17
6.1.2 SupplierID . 19
6.1.3 MeterID . 19
6.1.4 TokenOriginationID . 19
6.1.5 MessageIdentifier . 19
6.1.6 SequentialTokenNumber (STN) . 21
6.1.7 TruncatedSequentialTokenNumber (TSTN) . 21
6.1.8 Deducing the MS part of STN and validating TSTN . 21
6.1.9 FunctionIndex . 24
6.1.10 Relating the FunctionIndex and STN . 25
6.1.11 SingleTokenPayload . 27
6.1.12 SuperTokenPayload . 27
6.1.13 MessageAuthenticationCode (MAC) and TruncatedMAC (TMAC) . 27
6.1.14 AdditionalAuthenticationData (AAD). 30
6.1.15 SingleTokenPayload AAD preparation, TMAC derivation and APDU
preparation . 30
6.1.16 SuperTokenPayload AAD preparation, TMAC derivation and APDU
preparation . 31
6.1.17 Offset . 34
6.2 Tokens . 34
6.2.1 Token definition and format . 34
6.2.2 Class 4: RESERVED FOR FUTURE ASSIGNMENT . 35
6.2.3 Class 5 tokens . 35
6.2.4 Class 5: Unencrypted tokens . 39
6.2.5 Class 5: Encrypted tokens . 41
6.3 Token data elements. 47
6.4 TCDU Generation functions . 47
6.5 Security functions . 49
6.5.1 General requirements . 49
6.5.2 Key management . 49
IEC 62055-42:2022 © IEC 2022 – 3 –
6.5.3 Key deriviation . 50
6.5.4 Encryption process . 50
7 TokenCarriertoMeterInterface application layer protocol . 50
7.1 APDU: ApplicationProtocolDataUnit . 50
7.1.1 Data elements in the APDU . 50
7.1.2 TokenData . 50
7.1.3 AuthenticationResult . 50
7.1.4 ValidationResult . 51
7.1.5 TokenResult . 51
7.2 APDU Extraction processes . 52
7.2.1 APDU Extraction process for Class 5 tokens . 52
7.2.2 APDU Extraction process for SubClass 0 unencrypted token . 53
7.2.3 APDU Extraction process for SubClass 8 encrypted token . 53
7.3 Security functions . 54
7.3.1 Key attributes and key changes . 54
7.3.2 Decryption algorithm . 55
7.3.3 TokenAuthentication . 55
7.3.4 TokenValidation . 55
7.3.5 TokenResult . 55
8 MeterApplicationProcess requirements . 56
8.1 General requirements . 56
8.2 Token acceptance/rejection . 56
8.3 Display indicators and markings . 57
8.4 TransferCredit tokens . 57
8.5 Engineering/SpecialFunction tokens . 57
9 KMS: KeyManagementSystem generic requirements . 58
10 Maintenance of unassigned entities . 58
Annex A (informative) Verhoeff code implementation example . 59
A.1 Sample code . 59
Annex B (informative) Example of ExtendedTransferCredit . 61
B.1 Class 5: SubClass 10: TransferCredit + Tariff . 61
B.1.1 General . 61
B.1.2 Block sequence/SuperTokenBlockToFollow . 61
B.1.3 Complete tariff . 62
B.1.4 Tariff sub-information. 62
B.1.5 Tariff activation month . 62
B.1.6 Tariff data . 63
B.1.7 Tariff types . 63
B.1.8 Tariff sub-information. 63
B.2 Class 5, SubClass 10, tariff type 0: TransferCredit + slab or time-of-use tariff . 64
B.2.1 Class 5, SubClass 10, tariff type 0, sub-type 0: TransferCredit + slab
tariff . 64
B.2.2 Number of slab boundaries . 65
B.2.3 Slab scaling . 65
B.2.4 Slab field size . 65
B.2.5 Slab value . 66
B.2.6 Class 5, SubClass 10, tariff type 0, sub-type 1: TransferCredit + time of
use (TOU) tariff . 66
B.2.7 Week definition . 66
– 4 – IEC 62055-42:2022 © IEC 2022
B.2.8 Time period definitions . 67
B.2.9 Register definitions . 68
B.3 Class 5, SubClass 10, tariff type 1: TransferCredit + rate prices or fixed
charge price token format . 68
B.3.1 Class 5, SubClass 10, tariff type 1: tariff sub-information . 68
B.3.2 Class 5, SubClass 10, tariff type 1, sub-type 0: TransferCredit + rate
prices . 68
B.3.3 Class 5, SubClass 10, tariff type 1: tariff sub-information . 69
B.3.4 Number of rate prices . 69
B.3.5 Rate price multiplier . 70
B.3.6 Rate price field size . 70
B.3.7 Rate price value . 70
B.3.8 Class 5, SubClass 10, tariff type 1, sub type 1: TransferCredit + fixed
charge prices . 71
B.3.9 Number of fixed charge prices . 71
B.3.10 Fixed charge price multiplier . 72
B.3.11 Fixed charge price field size . 72
B.3.12 Fixed charge application . 72
B.3.13 Fixed charge price value . 72
B.4 Class 5, SubClass 10, tariff type 2: TransferCredit + electricity duty (ED)
token format . 72
B.4.1 Electricity duty (ED) . 72
B.4.2 Electricity duty on energy charges . 73
B.4.3 Electricity duty on fixed charges . 73
B.4.4 Number of electricity duty slabs . 73
B.4.5 Electricity duty rate . 73
B.4.6 Electricity duty slab size . 74
B.5 SubClass 0 TCDU generation detailed process . 75
B.6 SubClass 8 TCDU generation detailed process . 75
B.7 SubClass 10 TCDU generation detailed process . 76
B.8 SubClass 10 APDU extraction detailed process . 77
Bibliography . 80
Figure 1 – Functional block diagram of a generic payment meter . 14
Figure 2 – Reference model as a 2-layer collapsed OSI protocol stack . 15
Figure 3 – Generic model of POSApplicationProcess to TokenCarrier . 16
Figure 4 – Dataflow from the TokenCarrier to the MeterApplicationProcess . 16
Figure 5 – Generic data elements for AAD payload construction for
SingleTokenPayload . 28
Figure 6 – Generic data elements for AAD payload construction for
SuperTokenPayload . 29
Figure 7 – InitializationVector (IV) construction . 29
Figure 8 – GMAC construction . 30
Figure 9 – Class 5 SubClass 8 TMAC derivation and full APDU preparation example. 31
Figure 10 – Class 5 SubClass 10 TMAC derivation and full APDU preparation example . 33
Figure 11 – TCDU generation for SubClass 0 unencrypted tokens . 48
Figure 12 – TCDU generation for SubClass 8 encrypted tokens . 49
Figure 13 – APDU extraction process for SubClass 0 tokens . 53
IEC 62055-42:2022 © IEC 2022 – 5 –
Figure 14 – APDU extraction process for SubClass 8 tokens . 54
Figure B.1 – TCDU generation process for SubClass 0 . 75
Figure B.2 – TCDU generation process for SubClass 8 . 76
Figure B.3 – TCDU generation process for SubClass 10 . 77
Figure B.4 – APDU extraction process for SubClass 10 . 78
Table 1 – Basic and derived elements of APDU and TCDU construction . 17
Table 2 – SubClass-wise MessageIdentifier detail and SubClass Functional Class . 20
Table 3 – Example of defining L and U for each SubClass . 22
N N
Table 4 – Process of validating STN and deducing MS(N) . 23
Table 5 – Last accepted token example(a) . 23
Table 6 – Last accepted token example(b) . 23
Table 7 – Last accepted token example(c) . 24
Table 8 – Last accepted token example(d) . 24
Table 9 – Numeric constants and their purpose . 34
Table 10 – Token definition and format . 35
Table 11 – Class 5 SubClass assignment . 36
Table 12 –SubClass-wise boundaries for Class 5 APDU before encryption . 37
Table 13 – SubClass-wise boundaries for Class 5 tokens, TCDU after encryption (if
applicable) and adding offset (without CheckDigit) . 37
Table 14 – Class 5 SubClass boundaries for TCDU (reserved space) . 38
Table 15 – SubClass related FunctionalClass and associated use cases . 39
Table 16 – SubClass 0: TransferCredit token . 40
Table 17 – SubClass 8: TransferCredit token . 41
Table 18 – Class 5, SubClass 9: SpecialFunction token . 41
Table 19 – Service types . 42
Table 20 – Block 1 of TransferCredit + Function token . 43
Table 21 – Block 2 to N-1 of N (N > 2) TransferCredit + Function token . 44
Table 22 – Last block TransferCredit + Function token. 44
Table 23 – Block 1 for Class 5 SubClass 11 meter generated token structure . 45
Table 24 – Block 2 for Class 5 SubClass 11 meter generated token structure . 45
Table 25 – Token data elements . 47
Table 26 – Data elements in the APDU . 50
Table 27 – Possible values for AuthenticationResult . 51
Table 28 – Possible values for ValidationResult . 51
Table 29 – Possible values for TokenResult . 52
Table B.1 – Block 1 of TransferCredit + tariff token . 61
Table B.2 – Block 2 of TransferCredit + Tariff token . 61
Table B.3 – Block 3 of TransferCredit + Tariff token . 63
Table B.4 – Block 4 of TransferCredit + Tariff token . 63
Table B.5 – Tariff types . 63
Table B.6 – Details of tariff sub-information . 64
Table B.7 – Block 2 for class 5, SubClass 10, tariff type 0, sub-type 0
(TransferCredit + slab tariff) . 64
– 6 – IEC 62055-42:2022 © IEC 2022
Table B.8 – Block 2 for Class 5, SubClass 10, tariff type 0, sub-type 0
(TransferCredit + slab tariff) – tariff data part . 65
Table B.9 – Block 3 for class 5, SubClass 10, tariff type 0, sub-type 0
(TransferCredit + slab tariff) . 66
Table B.10 – Block 2 for class 5, SubClass 10, tariff type 0, sub-type 1
(TransferCredit + time of use tariff) . 66
Table B.11 – Block 3 for class 5, SubClass 10, tariff type 0, sub-type 1
(TransferCredit + time of use tariff) . 68
Table B.12 – Block 4 for class 5, SubClass 10, tariff type 0, sub-type 1
(TransferCredit + time of use tariff) . 68
Table B.13 – Block 2 for class 5, SubClass 10, tariff type 1, sub-type 0
(TransferCredit + rate prices) . 69
Table B.14 – Block 2 for class 5, SubClass 10, tariff type 1, sub-type 0
(TransferCredit + rate prices) – tariff data . 69
Table B.15 – Block 3 for class 5, SubClass 10, tariff type 1, sub-type 0
(TransferCredit + rate prices) . 70
Table B.16 – Block 4 for class 5, SubClass 10, tariff type 1, sub-type 0
(TransferCredit + rate prices) . 71
Table B.17 – Block 2 for class 5, SubClass 10, tariff type 1, sub-type 1
(TransferCredit + fixed charge prices) . 71
Table B.18 – Block 2 for class 5, SubClass 10, tariff type 1, sub-type 1
(TransferCredit + fixed charge prices) – tariff data . 71
Table B.19 – Block 2 for class 5, SubClass 10, tariff type 2, sub-type 0
(TransferCredit + electricity duty) . 73
Table B.20 – Block 2 for class 5, SubClass 10, tariff type 2, sub-type 0
(TransferCredit + electricity duty) – data field. 73
Table B.21 – Electricity duty slab value encoding . 74
Table B.22 – Block 3 for class 5, SubClass 10, tariff type 2, sub-type 0
(TransferCredit + electricity duty) . 75
IEC 62055-42:2022 © IEC 2022 – 7 –
INTERNATIONAL ELECTROTECHNICAL COMMISSION
____________
ELECTRICITY METERING – PAYMENT SYSTEMS –
Part 42: Transaction Reference Numbers (TRN)
FOREWORD
1) The International Electrotechnical Commission (IEC) is a worldwide organization for standardization comprising
all national electrotechnical committees (IEC National Committees). The object of IEC is to promote international
co-operation on all questions concerning standardization in the electrical and electronic fields. To this end and
in addition to other activities, IEC publishes International Standards, Technical Specifications, Technical Reports,
Publicly Available Specifications (PAS) and Guides (hereafter referred to as "IEC Publication(s)"). Their
preparation is entrusted to technical committees; any IEC National Committee interested in the subject dealt with
may participate in this preparatory work. International, governmental and non-governmental organizations liaising
with the IEC also participate in this preparation. IEC collaborates closely with the International Organization for
Standardization (ISO) in accordance with conditions determined by agreement between the two organizations.
2) The formal decisions or agreements of IEC on technical matters express, as nearly as possible, an international
consensus of opinion on the relevant subjects since each technical committee has representation from all
interested IEC National Committees.
3) IEC Publications have the form of recommendations for international use and are accepted by IEC National
Committees in that sense. While all reasonable efforts are made to ensure that the technical content of IEC
Publications is accurate, IEC cannot be held responsible for the way in which they are used or for any
misinterpretation by any end user.
4) In order to promote international uniformity, IEC National Committees undertake to apply IEC Publications
transparently to the maximum extent possible in their national and regional publications. Any divergence between
any IEC Publication and the corresponding national or regional publication shall be clearly indicated in the latter.
5) IEC itself does not provide any attestation of conformity. Independent certification bodies provide conformity
assessment services and, in some areas, access to IEC marks of conformity. IEC is not responsible for any
services carried out by independent certification bodies.
6) All users should ensure that they have the latest edition of this publication.
7) No liability shall attach to IEC or its directors, employees, servants or agents including individual experts and
members of its technical committees and IEC National Committees for any personal injury, property damage or
other damage of any nature whatsoever, whether direct or indirect, or for costs (including legal fees) and
expenses arising out of the publication, use of, or reliance upon, this IEC Publication or any other IEC
Publications.
8) Attention is drawn to the Normative references cited in this publication. Use of the referenced publications is
indispensable for the correct application of this publication.
9) Attention is drawn to the possibility that some of the elements of this IEC Publication may be the subject of patent
rights. IEC shall not be held responsible for identifying any or all such patent rights.
IEC 62055-42 has been prepared by IEC technical committee 13: Electrical energy
measurement and control. It is an International Standard.
The text of this International Standard is based on the following documents:
Draft Report on voting
13/1843/CDV 13/1860/RVC
Full information on the voting for its approval can be found in the report on voting indicated in
the above table.
The language used for the development of this International Standard is English.
This document was drafted in accordance with ISO/IEC Directives, Part 2, and developed in
accordance with ISO/IEC Directives, Part 1 and ISO/IEC Directives, IEC Supplement, available
at www.iec.ch/members_experts/refdocs. The main document types developed by IEC are
described in greater detail at www.iec.ch/standardsdev/publications.
– 8 – IEC 62055-42:2022 © IEC 2022
A list of all parts in the IEC 62055 series, published under the general title Electricity metering
– Payment systems, can be found on the IEC website.
The committee has decided that the contents of this document will remain unchanged until the
stability date indicated on the IEC website under webstore.iec.ch in the data related to the
specific document. At this date, the document will be
• reconfirmed,
• withdrawn,
• replaced by a revised edition, or
• amended.
IMPORTANT – The "colour inside" logo on the cover page of this document indicates
that it contains colours which are considered to be useful for the correct understanding
of its contents. Users should therefore print this document using a colour printer.
IEC 62055-42:2022 © IEC 2022 – 9 –
INTRODUCTION
The IEC 62055 series recognizes and takes into account the concept of layered interoperability
for use within the smart metering and smart grid domains.
It also ensures system element interoperability above the semantic layer to include business
function and business process interoperability layers within an electricity metering system, thus
ensuring overall compatibility at all these levels.
This document is based on the principles the IEC 62055 standards are built on and sets the
rules for future extensions to guarantee consistency, thus providing a common vocabulary for
use by utilities to express requirements in tenders and also by vendors to have a unified
understanding for interpretation of the tender requirements.
This document forms part of the IEC 62055 series and shares some references with IEC 62055-
41, in that both standards represent TransferCredit tokens utilising 20-digit token carriers.
However, IEC 62055-41 and IEC 62055-42 differ greatly in their encoding, security mechanism
and intended use cases. Whereas IEC 62055-41 is meant for predominantly offline systems,
IEC 62055-42 is intended for mostly online systems where the decimal token carrier is used as
a back-up mechanism for vending while meters are intermittently offline.
The IEC 62055 series has been developed by IEC TC13 specifically for electricity metering
systems, but it is equally applicable in the domain of other utility services such as water and
gas.
– 10 – IEC 62055-42:2022 © IEC 2022
ELECTRICITY METERING – PAYMENT SYSTEMS –
Part 42: Transaction Reference Numbers (TRN)
1 Scope
This document specifies a token generation mechanism and token structure for smart
prepayment functionality in markets where IEC 62055-41 compliant systems are not used, and
where a different security mechanism is required by project-specific or national requirements.
This document specifies token structure, authentication and an anti-replay mechanism, token
operating model, and protocol.
This document is informed by the STS Association key management services, and by the key
management mechanisms used within the DLMS/COSEM security model within IEC 62056‑6‑2.
Reference is made to the international STS token standards (IEC 62055-41, IEC 62055-51 and
IEC 62055-52) for payment metering systems, and interworking has been considered where
appropriate in terms of token carrier ranges in the decimal domain. IEC 62055-41 tokens and
those described in this document are not interoperable, however their domains are designed to
be mutually exclusive to ensure the two kinds of tokens do not interfere with each other.
Metering application processing and functionality, HAN interface commands and attributes,
WAN interface commands and attributes are outside the scope of this document; however,
reference is made to other standards in this regard.
The mechanism for auditing and retrieving data from the meter relating to tariffication, meter
readings, profile data and other legal metrology information is outside the scope of this
document; however, this is defined as part of any overall metering solution. Such interfaces for
retrieving data from a meter may be defined using suitable protocols such as DLMS/COSEM as
defined in the IEC 62056 series.
2 Normative references
The following documents are referred to in the text in such a way that some or all of their content
constitutes requirements of this document. For dated references, only the edition cited applies.
For undated references, the latest edition of the referenced document (including any
amendments) applies.
IEC 60050-300:2001, International Electrotechnical Vocabulary (IEV) – Part 300: Electrical and
electronic measurements and measuring instruments – Part 311: General terms relating to
measurements – Part 312: General terms relating to electrical measurements – Part 313: Types
of electrical measuring instruments – Part 314: Specific terms according to the type of
instrument
IEC 60050-300:2001/AMD1:2015
IEC 60050-300:2001/AMD2:2016
IEC 60050-300:2001/AMD3:2017
IEC 60050-300:2001/AMD4:2020
IEC TR 62051:1999, Electricity metering – Glossary of terms
IEC TR 62055-21:2005, Electricity metering – Payment systems – Part 21: Framework for
standardization
IEC 62055-31:2005, Electricity metering – Payment systems – Part 31: Particular requirements
– Static payment meters for active energy (classes 1 and 2)
IEC 62055-42:2022 © IEC 2022 – 11 –
IEC 62055-41:2018, Electricity metering – Payment systems – Part 41: Standard transfer
specification – Application layer protocol for one-way token carrier systems
IEC 62056-5-3:2017, Electricity metering data exchange – The DLMS/COSEM suite – Part 5-3:
DLMS/COSEM application layer
IEEE EUI 64, https://standards.ieee.org/develop/regauth/tut/eui64.pdf
Verhoeff, J.,1975, Error Detecting Decimal Codes, (Tract 29)
NIST SP 800-38D: 2007, Recommendation for Block Cipher Modes of Operation:
Galois/Counter Mode (GCM) and GMAC
3 Terms, definitions, abbreviated terms and notation
3.1 Terms and definitions
For the purposes of this document, the terms and definitions given in IEC 60050-300:2001, IEC
TR 62051:1999, IEC 62055-31:2005, IEC 62055-41:2018, IEC 62055-21:2005 and the
following apply.
ISO and IEC maintain terminological databases for use in standardization at the following
addresses:
• IEC Electropedia: available at http://www.electropedia.org/
• ISO Online browsing platform: available at http://www.iso.org/obp
NOTE Where there is a difference between the definitions in this document and those contained in other referenced
IEC standards, then those defined in this document take precedence.
3.1.1
companion specification
regional, consortia, or manufacturer-specific set of requirements and choices taken from a base
standard, in order to facilitate a particular set of use cases
3.1.2
meter
measuring instrument; synonymous with “payment meter” and “decoder” where the decoder is
a sub-part of of a multi-device installation
3.1.3
POS
point of sale; entity that may create and transfer tokens, synonymous with “CIS”, “MIS” and
“HHU”
3.1.4
super token
group of digits derived from more than one data block of the APDU that shall be entered together
in sequence to form a larger message
3.1.5
utility
retailer or supplier of an energy or water commodity service
Note 1 to entry: In the liberalized markets the actual contracting party acting as the "supplier" of the service to the
consumer may not be the traditional utility as such, but may be a third service provider party.
– 12 – IEC 62055-42:2022 © IEC 2022
3.2 Abbreviated terms
AES Advanced Encryption Standard
AAD AdditionalAuthenticatedData
AMT Amount
APDU ApplicationProtocolDataUnit
CIS Customer Intormation System
COSEM Companion Specification for Electricity Metering
DLMS Device Language Message Specification
EUI Extended U
...
The article discusses the standard EN IEC 62055-42:2022, which focuses on the token generation and structure for smart prepayment systems in markets where different security mechanisms are required. It specifies the token structure, authentication, anti-replay mechanism, token operating model, and protocol. The document refers to the STS Association key management services and the DLMS/COSEM security model. It mentions that the tokens described in this document are not interoperable with those specified in IEC 62055-41. The document does not cover metering application processing, HAN and WAN interface commands, and data retrieval mechanisms, but references other standards for those aspects. The retrieval of data from a meter may use protocols such as DLMS/COSEM defined in the IEC 62056 series.
제목: EN IEC 62055-42:2022 - 전기 계량 - 결제 시스템 - 제 42 부: 거래 참조 번호(TRN) 내용: IEC 62055-42:2022는 IEC 62055-41 호환 시스템이 사용되지 않는 시장과 프로젝트 특정 또는 국가 요구사항에 따라 다른 보안 메커니즘이 필요한 경우 스마트 선불 결제 기능을 위한 토큰 생성 메커니즘과 토큰 구조를 명시합니다. 이 문서는 토큰 구조, 인증 및 앤티-리플레이 메커니즘, 토큰 운영 모델 및 프로토콜을 명시합니다. 이 문서는 STS 협회 키 관리 서비스와 IEC 62056-6-2의 DLMS/COSEM 보안 모델에서 사용되는 키 관리 메커니즘을 참고하고 있습니다. 결제 계량 시스템에 대한 국제적인 STS 토큰 표준(IEC 62055-41, IEC 62055-51, IEC 62055-52)에 관련이 있으며, 토큰 캐리어 범위에 대한 상호 운용성은 소수점 도메인에서 고려됩니다. IEC 62055-41 토큰과 이 문서에서 설명하는 토큰은 상호 운용성이 없지만, 두 종류의 토큰이 서로 간섭하지 않도록 도메인이 상호 배타적으로 설계되었습니다. 계량 애플리케이션 처리 및 기능, HAN 인터페이스 명령 및 속성, WAN 인터페이스 명령 및 속성은 이 문서의 범위를 벗어나며, 해당 부분에 대해서는 다른 표준을 참조합니다. 요금 적용, 계량, 프로파일 데이터 및 기타 법적 계량 정보와 관련된 미터로부터 데이터를 감사하고 검색하는 메커니즘은 이 문서의 범위를 벗어납니다. 그러나 이는 전체 계량 솔루션의 일부로 정의되며, DLMS/COSEM(IEC 62056 시리즈에서 정의된)과 같은 적합한 프로토콜을 사용하여 미터로부터 데이터를 검색하기 위한 인터페이스를 정의할 수 있습니다.
記事タイトル: EN IEC 62055-42:2022 - 電気計測 - 支払いシステム - 第42部: トランザクション参照番号(TRN) 記事内容: IEC 62055-42: 2022は、IEC 62055-41準拠のシステムが使用されない市場や、プロジェクト固有の要件や国の要求に応じて異なるセキュリティメカニズムが必要な場合におけるスマート前払い機能のためのトークン生成メカニズムとトークン構造を規定しています。この文書では、トークン構造、認証およびアンチリプレイメカニズム、トークンの動作モデルおよびプロトコルが規定されています。この文書は、STS協会のキー管理サービスと、IEC 62056-6-2のDLMS/COSEMセキュリティモデルで使用されるキー管理メカニズムに基づいています。支払い計測システムに関連する国際的なSTSトークン規格(IEC 62055-41、IEC 62055-51、IEC 62055-52)への参照がなされており、適切な場合には10進ドメインのトークンキャリア範囲について相互運用性が考慮されています。IEC 62055-41のトークンと本文書で説明されるトークンは相互運用性がないが、2種類のトークンが互いに干渉しないように、ドメインが相互排他的に設計されています。計測アプリケーションの処理と機能、HANインターフェースのコマンドと属性、WANインターフェースのコマンドと属性は、本文書の範囲外ですが、この関連では他の規格が参照されています。課金、計測、プロファイルデータ、その他の法定計量情報に関連するメータからのデータの監査と取得のメカニズムは、本文書の範囲外ですが、これは総合的な計測ソリューションの一部として定義されています。メータからデータを取得するためのインターフェースは、IEC 62056シリーズで定義されたDLMS/COSEMなどの適切なプロトコルを使用して定義される場合があります。
IEC 62055-42:2022は、IEC 62055-41準拠システムが使用されていない市場において、スマートプリペイメント機能のためのトークン生成メカニズムとトークン構造の仕様を提供する文書です。この文書では、トークンの構造、認証およびアンチリプレイメカニズム、トークンの動作モデルおよびプロトコルについて詳細が示されています。この文書は、STS協会の鍵管理サービスおよびIEC 62056-6-2のDLMS/COSEMセキュリティモデルで使用される鍵管理メカニズムに基づいています。支払い計量システムのための国際的なSTSトークン規格(IEC 62055-41、IEC 62055-51、IEC 62055-52)への参照および相互運用性が適切に考慮されています。ただし、IEC 62055-41のトークンと本文書で説明されているトークンは相互運用性がありませんが、お互いに干渉しないようにドメインが相互排他的に設計されています。この文書は、メータリングアプリケーションの処理や機能、HANおよびWANインタフェースのコマンドや属性、およびメータからのデータの取得には触れていません。ただし、これに関しては他の規格を参照しています。料金明細、メータリングデータ、プロファイルデータなどの法的計量情報に関連するメータからのデータの監査および取得のメカニズムは、この文書の範囲外ですが、総合的な計量ソリューションの一部として定義されています。メータからデータを取得するためのインタフェースは、IEC 62056シリーズで定義されているDLMS/COSEMなどの適切なプロトコルを使用して定義されることがあります。
IEC 62055-42:2022는 IEC 62055-41 준수 시스템이 사용되지 않는 시장에서 스마트 선결제 기능에 대한 토큰 생성 메커니즘 및 토큰 구조를 지정하는 문서입니다. 이 문서는 토큰 구조, 인증 및 안티 리플레이 메커니즘, 토큰 운영 모델 및 프로토콜을 명시합니다. 이 문서는 STS 협회 키 관리 서비스와 IEC 62056-6-2의 DLMS/COSEM 보안 모델에서 사용되는 키 관리 메커니즘에 기반하여 작성되었습니다. 지불 계량 시스템에 대한 국제 STS 토큰 표준(IEC 62055-41, IEC 62055-51, IEC 62055-52)을 참조하며, 십진법 도메인의 토큰 캐리어 범위에 대한 상호 운용성도 고려되었습니다. IEC 62055-41 토큰과 이 문서에서 설명된 토큰은 상호 운용할 수 없지만, 도메인이 상호 배타적으로 설계되어 두 종류의 토큰이 서로 간섭하지 않도록 되어 있습니다. 이 문서는 미터링 애플리케이션 처리 및 기능, HAN 인터페이스 명령과 속성, WAN 인터페이스 명령과 속성을 다루지 않습니다. 그러나 관련된 다른 표준을 참조하고 있습니다. 미터와 관련된 요금 적용, 미터 독자, 프로파일 데이터 및 기타 법적 계량 정보에 대한 감사 및 데이터 검색 메커니즘은 이 문서의 범위를 벗어납니다. 그러나 이는 전체적인 미터링 솔루션의 일부로 정의되어야 합니다. 미터에서 데이터를 검색하기 위한 인터페이스는 IEC 62056 시리즈에서 정의된 DLMS/COSEM과 같은 적합한 프로토콜을 사용하여 정의될 수 있습니다.
IEC 62055-42:2022 is a document that provides specifications for a token generation mechanism and token structure for smart prepayment functionality in cases where different security mechanisms are needed. It includes details about token structure, authentication, anti-replay mechanism, token operating model, and protocol. The document refers to international STS token standards for payment metering systems and considers interoperability. However, the tokens described in IEC 62055-41 and this document are not interoperable. The document does not cover metering application processing, functionality, HAN and WAN interface commands, or data retrieval from the meter. Such interfaces and protocols for retrieving data may be defined using DLMS/COSEM as defined in the IEC 62056 series.








Questions, Comments and Discussion
Ask us and Technical Secretary will try to provide an answer. You can facilitate discussion about the standard in here.
Loading comments...