BSI Standards Publication
Electricity metering —
Payment systems
Part 41: Standard transfer specification (STS) —
Application layer protocol for one-way token
carrier systems
BS IEC 62055-41:2014
National foreword
This British Standard is the UK implementation of IEC 62055-41:2014.
The UK participation in its preparation was entrusted to Technical
Committee PEL/13, Electricity Meters.
A list of organizations represented on this committee can be obtained on
request to its secretary.
This publication does not purport to include all the necessary provisions of
a contract. Users are responsible for its correct application.
© The British Standards Institution 2014.
Published by BSI Standards Limited 2014
ISBN 978 0 580 83168 3
ICS 17.220.20; 35.100.70; 91.140.50
Compliance with a British Standard cannot confer immunity from
legal obligations.
This British Standard was published under the authority of the
Standards Policy and Strategy Committee on 31 October 2014.
Amendments/corrigenda issued since publication
Date Text affected
BRITISH STANDARD
BS IEC 62055-41:2014
IEC 62055-41
Edition 2.0 2014-05
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
XE
ICS 17.220.20; 35.100.70; 91.140.50
PRICE CODE
CODE PRIX
ISBN 978-2-8322-1487-9
® Registered trademark of the International Electrotechnical Commission
Marque déposée de la Commission Electrotechnique Internationale
®
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éé.
BS IEC 62055-41:2014
– 2 – IEC 62055-41:2014 © IEC 2014
CONTENTS
FOREWORD ........................................................................................................................... 8
INTRODUCTION ................................................................................................................... 10
1 Scope ............................................................................................................................ 13
2 Normative references .................................................................................................... 13
3 Terms, definitions and abbreviations ............................................................................. 14
3.1 Terms and definitions............................................................................................ 14
3.2 Abbreviations ........................................................................................................ 15
3.3 Notation and terminology ...................................................................................... 17
4 Numbering conventions ................................................................................................. 18
5 Reference model for the standard transfer specification ................................................ 19
5.1 Generic payment meter functional reference diagram ........................................... 19
5.2 STS protocol reference model ............................................................................... 20
5.3 Dataflow from the POSApplicationProcess to the TokenCarrier ............................. 21
5.4 Dataflow from the TokenCarrier to the MeterApplicationProcess ........................... 22
5.5 MeterFunctionObjects / companion specifications ................................................. 23
5.6 ISO transaction reference numbers ....................................................................... 23
6 POSToTokenCarrierInterface application layer protocol ................................................. 24
6.1 APDU: ApplicationProtocolDataUnit ...................................................................... 24
Data elements in the APDU ........................................................................... 24 6.1.1
MeterPAN: MeterPrimaryAccountNumber ...................................................... 25 6.1.2
TCT: TokenCarrierType ................................................................................. 27 6.1.3
DKGA: DecoderKeyGenerationAlgorithm ....................................................... 27 6.1.4
EA: EncryptionAlgorithm ................................................................................ 27 6.1.5
SGC: SupplyGroupCode ................................................................................ 28 6.1.6
TI: TariffIndex ................................................................................................ 28 6.1.7
KRN: KeyRevisionNumber ............................................................................. 29 6.1.8
KT: KeyType .................................................................................................. 29 6.1.9
KEN: KeyExpiryNumber ................................................................................. 29 6.1.10
DOE: DateOfExpiry ........................................................................................ 29 6.1.11
6.2
Tokens .................................................................................................................. 30
Token definition format .................................................................................. 30 6.2.1
Class 0: TransferCredit .................................................................................. 30 6.2.2
Class 1: InitiateMeterTest/Display ................................................................. 31 6.2.3
Class 2: SetMaximumPowerLimit ................................................................... 31 6.2.4
Class 2: ClearCredit ...................................................................................... 31 6.2.5
Class 2: SetTariffRate ................................................................................... 31 6.2.6
Class 2: Set1stSectionDecoderKey ................................................................ 32 6.2.7
Class 2: Set2ndSectionDecoderKey ............................................................... 32 6.2.8
Class 2: ClearTamperCondition ..................................................................... 32 6.2.9
Class 2: SetMaximumPhasePowerUnbalanceLimit ......................................... 33 6.2.10
Class 2: SetWaterMeterFactor ....................................................................... 33 6.2.11
Class 2: Reserved for STS use ...................................................................... 33 6.2.12
Class 2: Reserved for Proprietary use ........................................................... 33 6.2.13
Class 3: Reserved for STS use ...................................................................... 33 6.2.14
BS IEC 62055-41:2014
IEC 62055-41:2014 © IEC 2014 – 3 –
6.3
Token data elements ............................................................................................ 34
Data elements used in tokens ........................................................................ 34 6.3.1
Class: TokenClass ......................................................................................... 35 6.3.2
SubClass: TokenSubClass............................................................................. 35 6.3.3
RND: RandomNumber ................................................................................... 36 6.3.4
TID: TokenIdentifier ....................................................................................... 36 6.3.5
Amount: TransferAmount ............................................................................... 38 6.3.6
CRC: CyclicRedundancyCode ....................................................................... 39 6.3.7
Control: InitiateMeterTest/DisplayControlField ............................................... 40 6.3.8
MPL: MaximumPowerLimit ............................................................................. 41 6.3.9
MPPUL: MaximumPhasePowerUnbalanceLimit .............................................. 41 6.3.10
Rate: TariffRate ............................................................................................. 41 6.3.11
WMFactor: WaterMeterFactor ........................................................................ 41 6.3.12
Register: RegisterToClear ............................................................................. 41 6.3.13
NKHO: NewKeyHighOrder ............................................................................. 41 6.3.14
NKLO: NewKeyLowOrder............................................................................... 41 6.3.15
KENHO: KeyExpiryNumberHighOrder ............................................................ 41 6.3.16
KENLO: KeyExpiryNumberLowOrder ............................................................. 41 6.3.17
RO: RolloverKeyChange ................................................................................ 42 6.3.18
6.4
TCDUGeneration functions ................................................................................... 42
Definition of the TCDU ................................................................................... 42 6.4.1
Transposition of the Class bits ....................................................................... 42 6.4.2
TCDUGeneration function for Class 0,1 and 2 tokens .................................... 43 6.4.3
TCDUGeneration function for Set1stSectionDecoderKey token ...................... 44 6.4.4
TCDUGeneration function for Set2ndSectionDecoderKey token ..................... 46 6.4.5
6.5
Security functions ................................................................................................. 47
General requirements .................................................................................... 47 6.5.1
Key attributes and key changes ..................................................................... 47 6.5.2
DecoderKey generation ................................................................................. 55 6.5.3
STA: EncryptionAlgorithm07 .......................................................................... 60 6.5.4
DEA: EncryptionAlgorithm09 .......................................................................... 64 6.5.5
7
TokenCarriertoMeterInterface application layer protocol ................................................ 64
7.1 APDU: ApplicationProtocolDataUnit ...................................................................... 64
Data elements in the APDU ........................................................................... 64 7.1.1
Token ............................................................................................................ 65 7.1.2
AuthenticationResult ...................................................................................... 65 7.1.3
ValidationResult ............................................................................................ 65 7.1.4
TokenResult .................................................................................................. 66 7.1.5
7.2
APDUExtraction functions ..................................................................................... 67
Extraction process ......................................................................................... 67 7.2.1
Extraction of the 2 Class bits ......................................................................... 67 7.2.2
APDUExtraction function for Class 0 and Class 2 tokens ............................... 68 7.2.3
APDUExtraction function for Class 1 tokens .................................................. 69 7.2.4
APDUExtraction function for Set1stSectionDecoderKey and 7.2.5
Set2ndSectionDecoderKey tokens ................................................................. 69
7.3 Security functions ................................................................................................. 70
Key attributes and key changes ..................................................................... 70 7.3.1
DKR: DecoderKeyRegister............................................................................. 70 7.3.2
STA: DecryptionAlgorithm07 .......................................................................... 71 7.3.3
BS IEC 62055-41:2014
评论0