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.

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.

General Information

Status
Published
Publication Date
12-Jul-2022
Current Stage
PPUB - Publication issued
Completion Date
13-Jul-2022
Ref Project

Buy Standard

Standard
IEC 62055-42:2022 - Electricity metering - Payment systems - Part 42: Transaction Reference Numbers (TRN)
English and French language
163 pages
sale 15% off
Preview
sale 15% off
Preview

Standards Content (sample)

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)
IEC 62055-42:2022-07(en-fr)
---------------------- Page: 1 ----------------------
THIS PUBLICATION IS COPYRIGHT PROTECTED
Copyright © 2022 IEC, Geneva, Switzerland

All rights reserved. Unless otherwise specified, no part of this publication may be reproduced or utilized in any form

or by any means, electronic or mechanical, including photocopying and microfilm, without permission in writing from

either IEC or IEC's member National Committee in the country of the requester. If you have any questions about IEC

copyright or have an enquiry about obtaining additional rights to this publication, please contact the address below or

your local IEC member National Committee for further information.

Droits de reproduction réservés. Sauf indication contraire, aucune partie de cette publication ne peut être reproduite

ni utilisée sous quelque forme que ce soit et par aucun procédé, électronique ou mécanique, y compris la photocopie

et les microfilms, sans l'accord écrit de l'IEC ou du Comité national de l'IEC du pays du demandeur. Si vous avez des

questions sur le copyright de l'IEC ou si vous désirez obtenir des droits supplémentaires sur cette publication, utilisez

les coordonnées ci-après ou contactez le Comité national de l'IEC de votre pays de résidence.

IEC Secretariat Tel.: +41 22 919 02 11
3, rue de Varembé info@iec.ch
CH-1211 Geneva 20 www.iec.ch
Switzerland
About the IEC

The International Electrotechnical Commission (IEC) is the leading global organization that prepares and publishes

International Standards for all electrical, electronic and related technologies.
About IEC publications

The technical content of IEC publications is kept under constant review by the IEC. Please make sure that you have the

latest edition, a corrigendum or an amendment might have been published.

IEC publications search - webstore.iec.ch/advsearchform IEC Products & Services Portal - products.iec.ch

The advanced search enables to find IEC publications by a Discover our powerful search engine and read freely all the

variety of criteria (reference number, text, technical publications previews. With a subscription you will always

committee, …). It also gives information on projects, replaced have access to up to date content tailored to your needs.

and withdrawn publications.
Electropedia - www.electropedia.org
IEC Just Published - webstore.iec.ch/justpublished
The world's leading online dictionary on electrotechnology,
Stay up to date on all new IEC publications. Just Published
containing more than 22 300 terminological entries in English
details all new publications released. Available online and
and French, with equivalent terms in 19 additional languages.
once a month by email.
Also known as the International Electrotechnical Vocabulary
(IEV) online.
IEC Customer Service Centre - webstore.iec.ch/csc
If you wish to give us your feedback on this publication or
need further assistance, please contact the Customer Service
Centre: sales@iec.ch.
A propos de l'IEC

La Commission Electrotechnique Internationale (IEC) est la première organisation mondiale qui élabore et publie des

Normes internationales pour tout ce qui a trait à l'électricité, à l'électronique et aux technologies apparentées.

A propos des publications IEC

Le contenu technique des publications IEC est constamment revu. Veuillez vous assurer que vous possédez l’édition la

plus récente, un corrigendum ou amendement peut avoir été publié.
Recherche de publications IEC - IEC Products & Services Portal - products.iec.ch

webstore.iec.ch/advsearchform Découvrez notre puissant moteur de recherche et consultez

La recherche avancée permet de trouver des publications IEC gratuitement tous les aperçus des publications. Avec un

en utilisant différents critères (numéro de référence, texte, abonnement, vous aurez toujours accès à un contenu à jour

comité d’études, …). Elle donne aussi des informations sur adapté à vos besoins.
les projets et les publications remplacées ou retirées.
Electropedia - www.electropedia.org
IEC Just Published - webstore.iec.ch/justpublished
Le premier dictionnaire d'électrotechnologie en ligne au
Restez informé sur les nouvelles publications IEC. Just
monde, avec plus de 22 300 articles terminologiques en
Published détaille les nouvelles publications parues.
anglais et en français, ainsi que les termes équivalents dans
Disponible en ligne et une fois par mois par email.
19 langues additionnelles. Egalement appelé Vocabulaire
Electrotechnique International (IEV) en ligne.
Service Clients - webstore.iec.ch/csc
Si vous désirez nous donner des commentaires sur cette
publication ou si vous avez des questions contactez-nous:
sales@iec.ch.
---------------------- Page: 2 ----------------------
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

Warning! Make sure that you obtained this publication from an authorized distributor.

Attention! Veuillez vous assurer que vous avez obtenu cette publication via un distributeur agréé.

® Registered trademark of the International Electrotechnical Commission
Marque déposée de la Commission Electrotechnique Internationale
---------------------- Page: 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

---------------------- Page: 4 ----------------------
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

---------------------- Page: 5 ----------------------
– 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

---------------------- Page: 6 ----------------------
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

---------------------- Page: 7 ----------------------
– 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) ....
...

Questions, Comments and Discussion

Ask us and Technical Secretary will try to provide an answer. You can facilitate discussion about the standard in here.