Already a subscriber? 

MADCAD.com Free Trial
Sign up for a 3 day free trial to explore the MADCAD.com interface, PLUS access the
2009 International Building Code to see how it all works.
If you like to setup a quick demo, let us know at support@madcad.com
or +1 800.798.9296 and we will be happy to schedule a webinar for you.
Security check
Please login to your personal account to use this feature.
Please login to your authorized staff account to use this feature.
Are you sure you want to empty the cart?

BS EN IEC 62055-42:2022 Electricity metering. Payment systems - Transaction Reference Numbers (TRN), 2023
- undefined
- Annex ZA (normative)Normative references to international publicationswith their corresponding European publications
- English [Go to Page]
- CONTENTS
- FOREWORD
- INTRODUCTION
- 1 Scope
- 2 Normative references
- 3 Terms, definitions, abbreviated terms and notation [Go to Page]
- 3.1 Terms and definitions
- 3.2 Abbreviated terms
- 3.3 Notation
- 4 Numbering conventions in this document
- 5 Reference smart meter model [Go to Page]
- 5.1 Generic functional reference diagram
- Figures [Go to Page]
- Figure 1 – Functional block diagram of a generic payment meter
- 5.2 Token transfer protocol reference model
- Figure 2 – Reference model as a 2-layer collapsed OSI protocol stack
- 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
- 5.5 MeterFunctionObjects / companion specifications
- 6 POSToTokenCarrierInterface application layer protocol [Go to Page]
- 6.1 APDU: ApplicationProtocolDataUnit [Go to Page]
- 6.1.1 Data elements in the APDU
- Tables [Go to Page]
- Table 1 – Basic and derived elements of APDU and TCDU construction [Go to Page]
- 6.1.2 SupplierID
- 6.1.3 MeterID
- 6.1.4 TokenOriginationID
- 6.1.5 MessageIdentifier
- Table 2 – SubClass-wise MessageIdentifier detail and SubClass Functional Class [Go to Page]
- 6.1.6 SequentialTokenNumber (STN)
- 6.1.7 TruncatedSequentialTokenNumber (TSTN)
- 6.1.8 Deducing the MS part of STN and validating TSTN
- Table 3 – Example of defining LN and UN for each SubClass
- Table 4 – Process of validating STN and deducing MS(N)
- Table 5 – Last accepted token example(a)
- Table 6 – Last accepted token example(b) [Go to Page]
- 6.1.9 FunctionIndex
- Table 7 – Last accepted token example(c)
- Table 8 – Last accepted token example(d) [Go to Page]
- 6.1.10 Relating the FunctionIndex and STN
- 6.1.11 SingleTokenPayload
- 6.1.12 SuperTokenPayload
- 6.1.13 MessageAuthenticationCode (MAC) and TruncatedMAC (TMAC)
- Figure 5 – Generic data elements for AAD payload construction for SingleTokenPayload
- Figure 6 – Generic data elements for AAD payload construction for SuperTokenPayload
- Figure 7 – InitializationVector (IV) construction [Go to Page]
- 6.1.14 AdditionalAuthenticationData (AAD)
- 6.1.15 SingleTokenPayload AAD preparation, TMAC derivation and APDU preparation
- Figure 8 – GMAC construction [Go to Page]
- 6.1.16 SuperTokenPayload AAD preparation, TMAC derivation and APDU preparation
- Figure 9 – Class 5 SubClass 8 TMAC derivation and full APDU preparation example
- Figure 10 – Class 5 SubClass 10 TMAC derivation and full APDU preparation example [Go to Page]
- 6.1.17 Offset
- 6.2 Tokens [Go to Page]
- 6.2.1 Token definition and format
- Table 9 – Numeric constants and their purpose [Go to Page]
- 6.2.2 Class 4: RESERVED FOR FUTURE ASSIGNMENT
- 6.2.3 Class 5 tokens
- Table 10 – Token definition and format
- Table 11 – Class 5 SubClass assignment
- 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)
- Table 14 – Class 5 SubClass boundaries for TCDU (reserved space) [Go to Page]
- 6.2.4 Class 5: Unencrypted tokens
- Table 15 – SubClass related FunctionalClass and associated use cases
- Table 16 – SubClass 0: TransferCredit token [Go to Page]
- 6.2.5 Class 5: Encrypted tokens
- Table 17 – SubClass 8: TransferCredit token
- Table 18 – Class 5, SubClass 9: SpecialFunction token
- Table 19 – Service types
- Table 20 – Block 1 of TransferCredit + Function token
- Table 21 – Block 2 to N-1 of N (N > 2) TransferCredit + Function token
- Table 22 – Last block TransferCredit + Function token
- 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
- 6.3 Token data elements
- 6.4 TCDU generation functions
- Table 25 – Token data elements
- Figure 11 – TCDU generation for SubClass 0 unencrypted tokens
- 6.5 Security functions [Go to Page]
- 6.5.1 General requirements
- 6.5.2 Key management
- Figure 12 – TCDU generation for SubClass 8 encrypted tokens [Go to Page]
- 6.5.3 Key deriviation
- 6.5.4 Encryption process
- 7 TokenCarriertoMeterInterface application layer protocol [Go to Page]
- 7.1 APDU: ApplicationProtocolDataUnit [Go to Page]
- 7.1.1 Data elements in the APDU
- 7.1.2 TokenData
- 7.1.3 AuthenticationResult
- Table 26 – Data elements in the APDU [Go to Page]
- 7.1.4 ValidationResult
- 7.1.5 TokenResult
- Table 27 – Possible values for AuthenticationResult
- Table 28 – Possible values for ValidationResult
- 7.2 APDU Extraction processes [Go to Page]
- 7.2.1 APDU Extraction process for Class 5 tokens
- Table 29 – Possible values for TokenResult [Go to Page]
- 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
- 7.3 Security functions [Go to Page]
- 7.3.1 Key attributes and key changes
- Figure 14 – APDU extraction process for SubClass 8 tokens [Go to Page]
- 7.3.2 Decryption algorithm
- 7.3.3 TokenAuthentication
- 7.3.4 TokenValidation
- 7.3.5 TokenResult
- 8 MeterApplicationProcess requirements [Go to Page]
- 8.1 General requirements
- 8.2 Token acceptance/rejection
- 8.3 Display indicators and markings
- 8.4 TransferCredit tokens
- 8.5 Engineering/SpecialFunction tokens
- 9 KMS: KeyManagementSystem generic requirements
- 10 Maintenance of unassigned entities
- Annex A (informative) Verhoeff code implementation example [Go to Page]
- A.1 Sample code
- Annex B (informative) Example of ExtendedTransferCredit [Go to Page]
- B.1 Class 5: SubClass 10: TransferCredit + Tariff [Go to Page]
- 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 [Go to Page]
- B.1.3 Complete tariff
- B.1.4 Tariff sub-information
- B.1.5 Tariff activation month
- 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
- B.2 Class 5, SubClass 10, tariff type 0: TransferCredit + slab or time-of-use tariff [Go to Page]
- 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) [Go to Page]
- 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 [Go to Page]
- 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) [Go to Page]
- B.2.8 Time period definitions
- B.2.9 Register definitions
- B.3 Class 5, SubClass 10, tariff type 1: TransferCredit + rate prices or fixed charge price token format [Go to Page]
- 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) [Go to Page]
- 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 [Go to Page]
- 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) [Go to Page]
- 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 [Go to Page]
- 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 [Go to Page]
- B.4.1 Electricity duty (ED)
- 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 [Go to Page]
- B.4.6 Electricity duty slab size
- Table B.21 – Electricity duty slab value encoding
- 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)
- B.7 SubClass 10 TCDU generation detailed process
- Figure B.2 – TCDU generation process for SubClass 8
- B.8 SubClass 10 APDU extraction detailed process
- Figure B.3 – TCDU generation process for SubClass 10
- Figure B.4 – APDU extraction process for SubClass 10
- Bibliography [Go to Page]