Shopping Cart

No products in the cart.

BS EN IEC 62055-42:2022 2023

$215.11

Electricity metering. Payment systems – Transaction Reference Numbers (TRN)

Published By Publication Date Number of Pages
BSI 2023 86
Guaranteed Safe Checkout
Categories: ,

If you have any questions, feel free to reach out to our online customer service team by clicking on the bottom right corner. We’re here to assist you 24/7.
Email:[email protected]

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.

PDF Catalog

PDF Pages PDF Title
2 undefined
5 Annex ZA (normative)Normative references to international publicationswith their corresponding European publications
7 English
CONTENTS
12 FOREWORD
14 INTRODUCTION
15 1 Scope
2 Normative references
16 3 Terms, definitions, abbreviated terms and notation
3.1 Terms and definitions
17 3.2 Abbreviated terms
18 3.3 Notation
4 Numbering conventions in this document
5 Reference smart meter model
5.1 Generic functional reference diagram
19 Figures
Figure 1 – Functional block diagram of a generic payment meter
20 5.2 Token transfer protocol reference model
Figure 2 – Reference model as a 2-layer collapsed OSI protocol stack
21 5.3 Dataflow from the POSApplicationProcess to the TokenCarrier
5.4 Dataflow from the TokenCarrier to the MeterApplicationProcess
Figure 3 – Generic model of POSApplicationProcess to TokenCarrier
Figure 4 – Dataflow from the TokenCarrier to the MeterApplicationProcess
22 5.5 MeterFunctionObjects / companion specifications
6 POSToTokenCarrierInterface application layer protocol
6.1 APDU: ApplicationProtocolDataUnit
6.1.1 Data elements in the APDU
Tables
Table 1 – Basic and derived elements of APDU and TCDU construction
24 6.1.2 SupplierID
6.1.3 MeterID
6.1.4 TokenOriginationID
6.1.5 MessageIdentifier
25 Table 2 – SubClass-wise MessageIdentifier detail and SubClass Functional Class
26 6.1.6 SequentialTokenNumber (STN)
6.1.7 TruncatedSequentialTokenNumber (TSTN)
6.1.8 Deducing the MS part of STN and validating TSTN
27 Table 3 – Example of defining LN and UN for each SubClass
28 Table 4 – Process of validating STN and deducing MS(N)
Table 5 – Last accepted token example(a)
Table 6 – Last accepted token example(b)
29 6.1.9 FunctionIndex
Table 7 – Last accepted token example(c)
Table 8 – Last accepted token example(d)
30 6.1.10 Relating the FunctionIndex and STN
32 6.1.11 SingleTokenPayload
6.1.12 SuperTokenPayload
6.1.13 MessageAuthenticationCode (MAC) and TruncatedMAC (TMAC)
33 Figure 5 – Generic data elements for AAD payload construction for SingleTokenPayload
34 Figure 6 – Generic data elements for AAD payload construction for SuperTokenPayload
Figure 7 – InitializationVector (IV) construction
35 6.1.14 AdditionalAuthenticationData (AAD)
6.1.15 SingleTokenPayload AAD preparation, TMAC derivation and APDU preparation
Figure 8 – GMAC construction
36 6.1.16 SuperTokenPayload AAD preparation, TMAC derivation and APDU preparation
Figure 9 – Class 5 SubClass 8 TMAC derivation and full APDU preparation example
38 Figure 10 – Class 5 SubClass 10 TMAC derivation and full APDU preparation example
39 6.1.17 Offset
6.2 Tokens
6.2.1 Token definition and format
Table 9 – Numeric constants and their purpose
40 6.2.2 Class 4: RESERVED FOR FUTURE ASSIGNMENT
6.2.3 Class 5 tokens
Table 10 – Token definition and format
41 Table 11 – Class 5 SubClass assignment
42 Table 12 –SubClass-wise boundaries for Class 5 APDU before encryption
Table 13 – SubClass-wise boundaries for Class 5 tokens, TCDU after encryption (if applicable) and adding offset (without CheckDigit)
43 Table 14 – Class 5 SubClass boundaries for TCDU (reserved space)
44 6.2.4 Class 5: Unencrypted tokens
Table 15 – SubClass related FunctionalClass and associated use cases
45 Table 16 – SubClass 0: TransferCredit token
46 6.2.5 Class 5: Encrypted tokens
Table 17 – SubClass 8: TransferCredit token
Table 18 – Class 5, SubClass 9: SpecialFunction token
47 Table 19 – Service types
48 Table 20 – Block 1 of TransferCredit + Function token
49 Table 21 – Block 2 to N-1 of N (N > 2) TransferCredit + Function token
Table 22 – Last block TransferCredit + Function token
50 Table 23 – Block 1 for Class 5 SubClass 11 meter generated token structure
Table 24 – Block 2 for Class 5 SubClass 11 meter generated token structure
52 6.3 Token data elements
6.4 TCDU generation functions
Table 25 – Token data elements
53 Figure 11 – TCDU generation for SubClass 0 unencrypted tokens
54 6.5 Security functions
6.5.1 General requirements
6.5.2 Key management
Figure 12 – TCDU generation for SubClass 8 encrypted tokens
55 6.5.3 Key deriviation
6.5.4 Encryption process
7 TokenCarriertoMeterInterface application layer protocol
7.1 APDU: ApplicationProtocolDataUnit
7.1.1 Data elements in the APDU
7.1.2 TokenData
7.1.3 AuthenticationResult
Table 26 – Data elements in the APDU
56 7.1.4 ValidationResult
7.1.5 TokenResult
Table 27 – Possible values for AuthenticationResult
Table 28 – Possible values for ValidationResult
57 7.2 APDU Extraction processes
7.2.1 APDU Extraction process for Class 5 tokens
Table 29 – Possible values for TokenResult
58 7.2.2 APDU Extraction process for SubClass 0 unencrypted token
7.2.3 APDU Extraction process for SubClass 8 encrypted token
Figure 13 – APDU extraction process for SubClass 0 tokens
59 7.3 Security functions
7.3.1 Key attributes and key changes
Figure 14 – APDU extraction process for SubClass 8 tokens
60 7.3.2 Decryption algorithm
7.3.3 TokenAuthentication
7.3.4 TokenValidation
7.3.5 TokenResult
61 8 MeterApplicationProcess requirements
8.1 General requirements
8.2 Token acceptance/rejection
62 8.3 Display indicators and markings
8.4 TransferCredit tokens
8.5 Engineering/SpecialFunction tokens
63 9 KMS: KeyManagementSystem generic requirements
10 Maintenance of unassigned entities
64 Annex A (informative) Verhoeff code implementation example
A.1 Sample code
66 Annex B (informative) Example of ExtendedTransferCredit
B.1 Class 5: SubClass 10: TransferCredit + Tariff
B.1.1 General
B.1.2 Block sequence/SuperTokenBlockToFollow
Table B.1 – Block 1 of TransferCredit + tariff token
Table B.2 – Block 2 of TransferCredit + Tariff token
67 B.1.3 Complete tariff
B.1.4 Tariff sub-information
B.1.5 Tariff activation month
68 B.1.6 Tariff data
B.1.7 Tariff types
B.1.8 Tariff sub-information
Table B.3 – Block 3 of TransferCredit + Tariff token
Table B.4 – Block 4 of TransferCredit + Tariff token
Table B.5 – Tariff types
69 B.2 Class 5, SubClass 10, tariff type 0: TransferCredit + slab or time-of-use tariff
B.2.1 Class 5, SubClass 10, tariff type 0, sub-type 0: TransferCredit + slab tariff
Table B.6 – Details of tariff sub-information
Table B.7 – Block 2 for class 5, SubClass 10, tariff type 0, sub-type 0 (TransferCredit + slab tariff)
70 B.2.2 Number of slab boundaries
B.2.3 Slab scaling
B.2.4 Slab field size
Table B.8 – Block 2 for Class 5, SubClass 10, tariff type 0, sub-type 0 (TransferCredit + slab tariff) – tariff data part
71 B.2.5 Slab value
B.2.6 Class 5, SubClass 10, tariff type 0, sub-type 1: TransferCredit + time of use (TOU) tariff
B.2.7 Week definition
Table B.9 – Block 3 for class 5, SubClass 10, tariff type 0, sub-type 0 (TransferCredit + slab tariff)
Table B.10 – Block 2 for class 5, SubClass 10, tariff type 0, sub-type 1 (TransferCredit + time of use tariff)
72 B.2.8 Time period definitions
73 B.2.9 Register definitions
B.3 Class 5, SubClass 10, tariff type 1: TransferCredit + rate prices or fixed charge price token format
B.3.1 Class 5, SubClass 10, tariff type 1: tariff sub-information
B.3.2 Class 5, SubClass 10, tariff type 1, sub-type 0: TransferCredit + rate prices
Table B.11 – Block 3 for class 5, SubClass 10, tariff type 0, sub-type 1 (TransferCredit + time of use tariff)
Table B.12 – Block 4 for class 5, SubClass 10, tariff type 0, sub-type 1 (TransferCredit + time of use tariff)
74 B.3.3 Class 5, SubClass 10, tariff type 1: tariff sub-information
B.3.4 Number of rate prices
Table B.13 – Block 2 for class 5, SubClass 10, tariff type 1, sub-type 0 (TransferCredit + rate prices)
Table B.14 – Block 2 for class 5, SubClass 10, tariff type 1, sub-type 0 (TransferCredit + rate prices) – tariff data
75 B.3.5 Rate price multiplier
B.3.6 Rate price field size
B.3.7 Rate price value
Table B.15 – Block 3 for class 5, SubClass 10, tariff type 1, sub-type 0 (TransferCredit + rate prices)
76 B.3.8 Class 5, SubClass 10, tariff type 1, sub type 1: TransferCredit + fixed charge prices
B.3.9 Number of fixed charge prices
Table B.16 – Block 4 for class 5, SubClass 10, tariff type 1, sub-type 0 (TransferCredit + rate prices)
Table B.17 – Block 2 for class 5, SubClass 10, tariff type 1, sub-type 1 (TransferCredit + fixed charge prices)
Table B.18 – Block 2 for class 5, SubClass 10, tariff type 1, sub-type 1 (TransferCredit + fixed charge prices) – tariff data
77 B.3.10 Fixed charge price multiplier
B.3.11 Fixed charge price field size
B.3.12 Fixed charge application
B.3.13 Fixed charge price value
B.4 Class 5, SubClass 10, tariff type 2: TransferCredit + electricity duty (ED) token format
B.4.1 Electricity duty (ED)
78 B.4.2 Electricity duty on energy charges
B.4.3 Electricity duty on fixed charges
B.4.4 Number of electricity duty slabs
B.4.5 Electricity duty rate
Table B.19 – Block 2 for class 5, SubClass 10, tariff type 2, sub-type 0 (TransferCredit + electricity duty)
Table B.20 – Block 2 for class 5, SubClass 10, tariff type 2, sub-type 0 (TransferCredit + electricity duty) – data field
79 B.4.6 Electricity duty slab size
Table B.21 – Electricity duty slab value encoding
80 B.5 SubClass 0 TCDU generation detailed process
B.6 SubClass 8 TCDU generation detailed process
Figure B.1 – TCDU generation process for SubClass 0
Table B.22 – Block 3 for class 5, SubClass 10, tariff type 2, sub-type 0 (TransferCredit + electricity duty)
81 B.7 SubClass 10 TCDU generation detailed process
Figure B.2 – TCDU generation process for SubClass 8
82 B.8 SubClass 10 APDU extraction detailed process
Figure B.3 – TCDU generation process for SubClass 10
83 Figure B.4 – APDU extraction process for SubClass 10
85 Bibliography
BS EN IEC 62055-42:2022 2023
$215.11