Electricity metering - Payment systems - Part 41: Standard transfer specification (STS) - Application layer protocol for one-way token carrier systems

IEC 62055-41:2018 is also available as IEC 62055-41:2018 RLV which contains the International Standard and its Redline version, showing all changes of the technical content compared to the previous edition. IEC 62055-41:2018 specifies the application layer protocol of the standard transfer specification (STS) used for transferring units of credit and other management information from a point of sale (POS) system to an STS-compliant payment meter in a one-way token carrier system. It is primarily intended for application with electricity payment meters without a tariff employing energy-based tokens, but may also have application with currency-based token systems and for services other than electricity. It is intended for use by manufacturers of payment meters that have to accept tokens that comply with the STS and also by manufacturers of POS systems that have to produce STS-compliant tokens and is to be read in conjunction with IEC 62055-5x series. This third edition cancels and replaces the second edition of IEC 62055-41, issued in 2014. It constitutes a technical revision. The main technical changes with regard to the previous edition are as follows:
- currency transfer tokens for electricity, water, gas and time metering;
- finer resolution for gas and time credit transfer;
- common code PAN for 2 and 4 digit manufacturer codes;
- reserved MfrCode values for certification and testing purposes;
- provision for DLMS/COSEM as a virtual token carrier type;
- addition of DKGA04, an advanced key derivation function from 160-bit VendingKey;
- withdrawal of DES for EA09 and TDES for DKGA03 cryptographic algorithms, but DES for DKGA02 remains in use;
- addition of MISTY1 cryptographic algorithm using a 128-bit DecoderKey with supporting key change tokens;
- transfer of SGC values to the meter via key change tokens;
- revision of the test/display token requirements;
- revision of the KMS to reflect current best practice;
- revision of the TID roll over management guidelines;
- definition of BaseDate is referenced to Coordinated Universal Time;
- some clarifications and additional examples have been added.

Partie 41: Spécification de transfert normalisé (STS) – Protocole de couche application pour les systèmes de supports de jeton unidirectionnel

IEC 62055-41:2018 est disponible sous forme de IEC 62055-41:2018 RLV qui contient la Norme internationale et sa version Redline, illustrant les modifications du contenu technique depuis l'édition précédente.
IEC 62055-41:2017(en-fr) spécifie le protocole de couche application de la standard transfer specification (STS) pour transférer des unités de crédit et autres informations de gestion, et ce, d'un système de point de vente (POS) vers un compteur à paiement conforme à la STS dans un système de support de jeton unidirectionnel. Elle est destinée principalement à être appliquée avec les compteurs à paiement d'électricité simple tarif utilisant des jetons basés sur l'énergie. Elle peut également être appliquée aux systèmes de jeton basés sur la monnaie et pour les services autres que l'électricité. Elle est destinée à être utilisée par les constructeurs de compteurs à paiement qui doivent accepter les jetons conformes à la STS et aussi par les constructeurs de systèmes POS qui doivent produire des jetons conformes à la STS. Elle doit être utilisée conjointement avec la série IEC 62055-5x. Cette troisième édition annule et remplace la deuxième édition de l’IEC 62055-41, parue en 2014. Cette édition constitue une révision technique.
Les modifications techniques majeures par rapport à l'édition précédente sont les suivantes:
• jetons de transfert de monnaies pour le comptage de l’électricité, de l’eau, du gaz et du temps;
• résolution plus affinée du transfert de crédit pour le gaz et la durée;
• code PAN commun pour les codes de constructeur de 2 chiffres et de 4 chiffres;
• valeurs de MfrCode réservées à des fins de certification et d’essai;
• instauration d’une suite DLMS/COSEM comme type de support de jeton virtuel;
• ajout de DKGA04, fonction de dérivation de clé avancée issue de la VendingKey de 160 bits;
• suppression de DES et de TDES pour l’algorithme cryptographique EA09 et DKGA03 respectivement, mais DES pour l’algorithme DKGA02 continue à être utilisé;
• ajout de l’algorithme cryptographique MISTY1 utilisant une DecoderKey (Clé de décodeur) de 128 bits avec jetons de changement de clé de prise en charge;
• transfert des valeurs SGC au compteur par l’intermédiaire des jetons de changement de clé;
• révision des exigences concernant les jetons d’essai/affichage;
• révision du KMS afin de refléter les meilleures pratiques actuelles;
• révision des lignes directrices de gestion du passage à zéro des TID;
• définition de BaseDate référencée par rapport au Temps Universel Coordonné;
• désassociation de l’IIN de la définition de la norme ISO;
• diverses clarifications et améliorations venant à l’appui des éléments ci-dessus.

General Information

Status
Published
Publication Date
27-Mar-2018
Current Stage
PPUB - Publication issued
Start Date
28-Mar-2018
Completion Date
28-Mar-2018
Ref Project

Buy Standard

Standard
IEC 62055-41:2018 - Electricity metering - Payment systems - Part 41: Standard transfer specification (STS) - Application layer protocol for one-way token carrier systems
English and French language
257 pages
sale 15% off
Preview
sale 15% off
Preview

Standards Content (sample)

IEC 62055-41
Edition 3.0 2018-03
INTERNATIONAL
STANDARD
NORME
INTERNATIONALE
Electricity metering – Payment systems –
Part 41: Standard transfer specification (STS) – Application layer protocol for
one-way token carrier systems
Comptage de l'électricité – Systèmes de paiement –
Partie 41: Spécification de transfert normalisé (STS) – Protocole de couche
application pour les systèmes de supports de jeton unidirectionnel
IEC 62055-41:2018-03(en-fr)
---------------------- Page: 1 ----------------------
THIS PUBLICATION IS COPYRIGHT PROTECTED
Copyright © 2018 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 Central Office 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 corrigenda or an amendment might have been published.
IEC Catalogue - webstore.iec.ch/catalogue Electropedia - www.electropedia.org

The stand-alone application for consulting the entire The world's leading online dictionary of electronic and

bibliographical information on IEC International Standards, electrical terms containing 21 000 terms and definitions in

Technical Specifications, Technical Reports and other English and French, with equivalent terms in 16 additional

documents. Available for PC, Mac OS, Android Tablets and languages. Also known as the International Electrotechnical

iPad. Vocabulary (IEV) online.

IEC publications search - webstore.iec.ch/advsearchform IEC Glossary - std.iec.ch/glossary

The advanced search enables to find IEC publications by a 67 000 electrotechnical terminology entries in English and

variety of criteria (reference number, text, technical French extracted from the Terms and Definitions clause of

committee,…). It also gives information on projects, replaced IEC publications issued since 2002. Some entries have been

and withdrawn publications. collected from earlier publications of IEC TC 37, 77, 86 and

CISPR.
IEC Just Published - webstore.iec.ch/justpublished

Stay up to date on all new IEC publications. Just Published IEC Customer Service Centre - webstore.iec.ch/csc

details all new publications released. Available online and If you wish to give us your feedback on this publication or

also once a month by email. 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é.
Catalogue IEC - webstore.iec.ch/catalogue Electropedia - www.electropedia.org
Application autonome pour consulter tous les renseignements
Le premier dictionnaire en ligne de termes électroniques et
bibliographiques sur les Normes internationales,
électriques. Il contient 21 000 termes et définitions en anglais
Spécifications techniques, Rapports techniques et autres
et en français, ainsi que les termes équivalents dans 16
documents de l'IEC. Disponible pour PC, Mac OS, tablettes
langues additionnelles. Egalement appelé Vocabulaire
Android et iPad.
Electrotechnique International (IEV) en ligne.
Recherche de publications IEC -
Glossaire IEC - std.iec.ch/glossary
webstore.iec.ch/advsearchform
67 000 entrées terminologiques électrotechniques, en anglais

La recherche avancée permet de trouver des publications IEC et en français, extraites des articles Termes et Définitions des

en utilisant différents critères (numéro de référence, texte, publications IEC parues depuis 2002. Plus certaines entrées

comité d’études,…). Elle donne aussi des informations sur les antérieures extraites des publications des CE 37, 77, 86 et

projets et les publications remplacées ou retirées. CISPR de l'IEC.

IEC Just Published - webstore.iec.ch/justpublished Service Clients - webstore.iec.ch/csc

Restez informé sur les nouvelles publications IEC. Just Si vous désirez nous donner des commentaires sur cette

Published détaille les nouvelles publications parues. publication ou si vous avez des questions contactez-nous:

Disponible en ligne et aussi une fois par mois par email. sales@iec.ch.
---------------------- Page: 2 ----------------------
IEC 62055-41
Edition 3.0 2018-03
INTERNATIONAL
STANDARD
NORME
INTERNATIONALE
Electricity metering – Payment systems –
Part 41: Standard transfer specification (STS) – Application layer protocol for
one-way token carrier systems
Comptage de l'électricité – Systèmes de paiement –
Partie 41: Spécification de transfert normalisé (STS) – Protocole de couche
application pour les systèmes de supports de jeton unidirectionnel
INTERNATIONAL
ELECTROTECHNICAL
COMMISSION
COMMISSION
ELECTROTECHNIQUE
INTERNATIONALE
ICS 17.220.20; 35.100.70; 91.140.50 ISBN 978-2-8322-5499-8

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-41:2018 © IEC 2018
CONTENTS

FOREWORD ........................................................................................................................... 9

INTRODUCTION ................................................................................................................... 11

1 Scope ............................................................................................................................ 14

2 Normative references .................................................................................................... 14

3 Terms, definitions, abbreviated terms, notation and terminology .................................... 15

3.1 Terms and definitions ............................................................................................ 15

3.2 Abbreviated terms ................................................................................................. 17

3.3 Notation and terminology ...................................................................................... 19

4 Numbering conventions ................................................................................................. 19

5 Reference model for the standard transfer specification ................................................ 20

5.1 Generic payment meter functional reference diagram ........................................... 20

5.2 STS protocol reference model ............................................................................... 21

5.3 Dataflow from the POSApplicationProcess to the TokenCarrier ............................. 22

5.4 Dataflow from the TokenCarrier to the MeterApplicationProcess ........................... 22

5.5 MeterFunctionObjects / companion specifications ................................................. 24

5.6 Transaction reference numbers ............................................................................. 24

6 POSToTokenCarrierInterface application layer protocol ................................................. 24

6.1 APDU: ApplicationProtocolDataUnit ...................................................................... 24

6.1.1 Data elements in the APDU ........................................................................... 24

6.1.2 MeterPAN: MeterPrimaryAccountNumber ...................................................... 26

6.1.3 TCT: TokenCarrierType ................................................................................. 27

6.1.4 DKGA: DecoderKeyGenerationAlgorithm ....................................................... 28

6.1.5 EA: EncryptionAlgorithm ................................................................................ 28

6.1.6 SGC: SupplyGroupCode ................................................................................ 28

6.1.7 TI: TariffIndex ................................................................................................ 29

6.1.8 KRN: KeyRevisionNumber ............................................................................. 29

6.1.9 KT: KeyType .................................................................................................. 29

6.1.10 KEN: KeyExpiryNumber ................................................................................. 30

6.1.11 DOE: DateOfExpiry ........................................................................................ 30

6.1.12 BDT: BaseDate .............................................................................................. 30

6.2 Tokens .................................................................................................................. 31

6.2.1 Token definition format .................................................................................. 31

6.2.2 Class 0: TransferCredit .................................................................................. 31

6.2.3 Class 1: InitiateMeterTest/Display.................................................................. 32

6.2.4 Class 2: SetMaximumPowerLimit ................................................................... 32

6.2.5 Class 2: ClearCredit ...................................................................................... 32

6.2.6 Class 2: SetTariffRate ................................................................................... 32

6.2.7 Key change token set for 64-bit DecoderKey transfer .................................... 33

6.2.8 Key change token set for 128-bit DecoderKey transfer ................................... 34

6.2.9 Class 2: ClearTamperCondition ..................................................................... 35

6.2.10 Class 2: SetMaximumPhasePowerUnbalanceLimit ......................................... 35

6.2.11 Class 2: SetWaterMeterFactor ....................................................................... 35

6.2.12 Class 2: Reserved for STS use ...................................................................... 35

6.2.13 Class 2: Reserved for Proprietary use ........................................................... 36

6.2.14 Class 3: Reserved for STS use ...................................................................... 36

6.3 Token data elements............................................................................................. 36

---------------------- Page: 4 ----------------------
IEC 62055-41:2018 © IEC 2018 – 3 –

6.3.1 Data elements used in tokens ........................................................................ 36

6.3.2 Class: TokenClass ......................................................................................... 37

6.3.3 SubClass: TokenSubClass ............................................................................. 38

6.3.4 RND: RandomNumber ................................................................................... 38

6.3.5 TID: TokenIdentifier ....................................................................................... 39

6.3.6 Amount: TransferAmount ............................................................................... 40

6.3.7 CRC: CyclicRedundancyCheck ...................................................................... 44

6.3.8 Control: InitiateMeterTest/DisplayControlField ............................................... 45

6.3.9 MPL: MaximumPowerLimit ............................................................................. 46

6.3.10 MPPUL: MaximumPhasePowerUnbalanceLimit .............................................. 46

6.3.11 Rate: TariffRate ............................................................................................. 46

6.3.12 WMFactor: WaterMeterFactor ........................................................................ 46

6.3.13 Register: RegisterToClear ............................................................................. 46

6.3.14 NKHO: NewKeyHighOrder ............................................................................. 46

6.3.15 NKLO: NewKeyLowOrder ............................................................................... 46

6.3.16 NKMO1: NewKeyMiddleOrder1 ...................................................................... 46

6.3.17 NKMO2: NewKeyMiddleOrder2 ...................................................................... 47

6.3.18 KENHO: KeyExpiryNumberHighOrder ............................................................ 47

6.3.19 KENLO: KeyExpiryNumberLowOrder ............................................................. 47

6.3.20 RO: RolloverKeyChange ................................................................................ 47

6.3.21 S&E: SignAndExponent ................................................................................. 47

6.3.22 CRC_C: CyclicRedundancyCheck_C ............................................................. 47

6.4 TCDUGeneration functions ................................................................................... 47

6.4.1 Definition of the TCDU ................................................................................... 47

6.4.2 Transposition of the Class bits ....................................................................... 48

6.4.3 TCDUGeneration function for Class 0,1 and 2 tokens .................................... 48

6.4.4 TCDUGeneration function for key change tokens ........................................... 50

6.4.5 TCDUGeneration function for Set2ndSectionDecoderKey token ..................... 51

6.5 Security functions ................................................................................................. 51

6.5.1 General requirements .................................................................................... 51

6.5.2 Key attributes and key changes ..................................................................... 51

6.5.3 DecoderKey generation ................................................................................. 59

6.5.4 STA: EncryptionAlgorithm07 .......................................................................... 66

6.5.5 DEA: EncryptionAlgorithm09 .......................................................................... 69

6.5.6 MISTY1: EncryptionAlgorithm11 .................................................................... 69

7 TokenCarriertoMeterInterface application layer protocol ................................................ 71

7.1 APDU: ApplicationProtocolDataUnit ...................................................................... 71

7.1.1 Data elements in the APDU ........................................................................... 71

7.1.2 Token ............................................................................................................ 72

7.1.3 AuthenticationResult ...................................................................................... 72

7.1.4 ValidationResult ............................................................................................ 72

7.1.5 TokenResult .................................................................................................. 73

7.2 APDUExtraction functions ..................................................................................... 74

7.2.1 Extraction process ......................................................................................... 74

7.2.2 Extraction of the 2 Class bits ......................................................................... 74

7.2.3 APDUExtraction function for Class 0 and Class 2 tokens ............................... 75

7.2.4 APDUExtraction function for Class 1 tokens .................................................. 76

7.2.5 APDUExtraction function for key change token set ........................................ 76

7.3 Security functions ................................................................................................. 77

---------------------- Page: 5 ----------------------
– 4 – IEC 62055-41:2018 © IEC 2018

7.3.1 Key attributes and key changes ..................................................................... 77

7.3.2 DKR: DecoderKeyRegister ............................................................................. 77

7.3.3 STA: DecryptionAlgorithm07 .......................................................................... 78

7.3.4 DEA: DecryptionAlgorithm09.......................................................................... 81

7.3.5 MISTY1: DecryptionAlgorithm11 .................................................................... 81

7.3.6 TokenAuthentication ...................................................................................... 83

7.3.7 TokenValidation ............................................................................................. 83

7.3.8 TokenCancellation ......................................................................................... 84

8 MeterApplicationProcess requirements .......................................................................... 84

8.1 General requirements ........................................................................................... 84

8.2 Token acceptance/rejection .................................................................................. 85

8.3 Display indicators and markings ............................................................................ 86

8.4 TransferCredit tokens ........................................................................................... 86

8.5 InitiateMeterTest/Display tokens ........................................................................... 86

8.6 SetMaximumPowerLimit tokens ............................................................................. 87

8.7 ClearCredit tokens ................................................................................................ 87

8.8 SetTariffRate tokens ............................................................................................. 87

8.9 Key change tokens ............................................................................................... 87

8.10 Set2ndSectionDecoderKey tokens ........................................................................ 88

8.11 ClearTamperCondition tokens ............................................................................... 88

8.12 SetMaximumPhasePowerUnbalanceLimit tokens .................................................. 88

8.13 SetWaterMeterFactor ............................................................................................ 88

8.14 Class 2: Reserved for STS use tokens .................................................................. 88

8.15 Class 2: Reserved for Proprietary use tokens ....................................................... 88

8.16 Class 3: Reserved for STS use tokens .................................................................. 89

9 KMS: KeyManagementSystem generic requirements ..................................................... 89

10 Maintenance of STS entities and related services .......................................................... 89

10.1 General ................................................................................................................. 89

10.2 Operations ............................................................................................................ 91

10.2.1 Product certification maintenance .................................................................. 91

10.2.2 DSN maintenance .......................................................................................... 91

10.2.3 RO maintenance ............................................................................................ 91

10.2.4 TI maintenance .............................................................................................. 91

10.2.5 TID maintenance ........................................................................................... 92

10.2.6 SpecialReservedTokenIdentifier maintenance ................................................ 92

10.2.7 MfrCode maintenance .................................................................................... 92

10.2.8 Substitution tables maintenance .................................................................... 92

10.2.9 Permutation tables maintenance .................................................................... 92

10.2.10 SGC maintenance.......................................................................................... 92

10.2.11 VendingKey maintenance .............................................................................. 92

10.2.12 KRN maintenance .......................................................................................... 92

10.2.13 KT maintenance ............................................................................................ 92

10.2.14 KEN maintenance .......................................................................................... 93

10.2.15 CERT maintenance ........................................................................................ 93

10.2.16 CC maintenance ............................................................................................ 93

10.2.17 UC maintenance ............................................................................................ 93

10.2.18 KMCID maintenance ...................................................................................... 93

10.2.19 CMID maintenance ........................................................................................ 93

10.3 Standardisation ..................................................................................................... 93

---------------------- Page: 6 ----------------------
IEC 62055-41:2018 © IEC 2018 – 5 –

10.3.1 IIN maintenance ............................................................................................ 93

10.3.2 TCT maintenance .......................................................................................... 94

10.3.3 DKGA maintenance ....................................................................................... 94

10.3.4 EA maintenance ............................................................................................ 94

10.3.5 TokenClass maintenance ............................................................................... 94

10.3.6 TokenSubClass maintenance ......................................................................... 94

10.3.7 InitiateMeterTest/DisplayControlField maintenance ........................................ 94

10.3.8 RegisterToClear maintenance ........................................................................ 95

10.3.9 STS BaseDate maintenance .......................................................................... 95

10.3.10 Rate maintenance .......................................................................................... 95

10.3.11 WMFactor maintenance ................................................................................. 95

10.3.12 MFO maintenance ......................................................................................... 95

10.3.13 FOIN maintenance ......................................................................................... 96

10.3.14 Companion specification maintenance ........................................................... 96

Annex A (informative) Guidelines for a KeyManagementSystem (KMS) ................................ 97

Annex B (informative) Entities and identifiers in an STS-compliant system ......................... 101

Annex C (informative) Code of practice for the implementation of STS-compliant

systems .............................................................................................................................. 105

C.1 General ............................................................................................................... 105

C.2 Maintenance and support services provided by the STS Association ................... 105

C.3 Key management ................................................................................................ 105

C.3.1 Key management services ........................................................................... 105

C.3.2 SupplyGroupCode and VendingKey distribution ........................................... 105

C.3.3 CryptographicModule distribution ................................................................. 106

C.3.4 Key expiry ................................................................................................... 107

C.4 MeterPAN ........................................................................................................... 107

C.4.1 General practice .......................................................................................... 107

C.4.2 IssuerIdentificationNumbers ........................................................................ 107

C.4.3 ManufacturerCodes ..................................................................................... 107

C.4.4 DecoderSerialNumbers ................................................................................ 108

C.5 SpecialReservedTokenIdentifier .......................................................................... 108

C.6 Permutation and substitution tables for the STA .................................................. 108

C.7 EA codes ............................................................................................................ 108

C.8 TokenCarrierType codes ..................................................................................... 108

C.9 MeterFunctionObject instances / companion specifications ................................. 109

C.10 TariffIndex .......................................................................................................... 109

C.11 STS-compliance certification ............................................................................... 109

C.11.1 IEC certification services ............................................................................. 109

C.11.2 Products ...................................................................................................... 109

C.11.3 Certification authority ................................................................................... 109

C.12 Procurement options for users of STS-compliant systems ................................... 109

C.13 Management of TID roll over ............................................................................... 113

C.13.1 Introduction ................................................................................................. 113

C.13.2 Overview ..................................................................................................... 114

C.13.3 Impact analysis ............................................................................................ 115

C.13.4 Base dates .................................................................................................. 116

C.13.5 Implementation ............................................................................................ 116

Bibliography ........................................................................................................................ 119

---------------------- Page: 7 ----------------------
– 6 – IEC 62055-41:2018 © IEC 2018

Figure 1 – Functional block diagram of a generic single-device payment meter ..................... 20

Figure 2 – STS modelled as a 2-layer collapsed OSI protocol stack ...................................... 21

Figure 3 – Dataflow from the POSApplicationProcess to the TokenCarrier ............................ 22

Figure 4 – Dataflow from the TokenCarrier to the MeterApplicationProcess .......................... 23

Figure 5 – Composition of transaction reference number ...............................

...

Questions, Comments and Discussion

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