1、 IEC 62055-52 Edition 1.0 2008-05 INTERNATIONAL STANDARD Electricity metering Payment systems Part 52: Standard transfer specification (STS) Physical layer protocol for a two- way virtual token carrier for direct local connection IEC 62055-52:2008(E) THIS PUBLICATION IS COPYRIGHT PROTECTED Copyright
2、 2008 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 IECs member National
3、 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. IEC Central Office 3, rue de Varem
4、b CH-1211 Geneva 20 Switzerland Email: inmailiec.ch Web: www.iec.ch 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
5、 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. Catalogue of IEC publications: www.iec.ch/searchpub The IEC on-line Catalogue enables you to search by a var
6、iety of criteria (reference number, text, technical committee,). It also gives information on projects, withdrawn and replaced publications. IEC Just Published: www.iec.ch/online_news/justpub Stay up to date on all new IEC publications. Just Published details twice a month all new publications relea
7、sed. Available on-line and also by email. Electropedia: www.electropedia.org The worlds leading online dictionary of electronic and electrical terms containing more than 20 000 terms and definitions in English and French, with equivalent terms in additional languages. Also known as the International
8、 Electrotechnical Vocabulary online. Customer Service Centre: www.iec.ch/webstore/custserv If you wish to give us your feedback on this publication or need further assistance, please visit the Customer Service Centre FAQ or contact us: Email: csciec.ch Tel.: +41 22 919 02 11 Fax: +41 22 919 03 00 IE
9、C 62055-52 Edition 1.0 2008-05 INTERNATIONAL STANDARD Electricity metering Payment systems Part 52: Standard transfer specification (STS) Physical layer protocol for a two-way virtual token carrier for direct local connection INTERNATIONAL ELECTROTECHNICAL COMMISSION XA ICS 35.100.20; 17.220.20; 91.
10、140.50 PRICE CODE ISBN 2-8318-9747-5 2 62055-52 IEC:2008(E) CONTENTS FOREWORD.5 INTRODUCTION.7 1 Scope.9 2 Normative references .9 3 Terms, definitions and abbreviations 10 3.1 Terms and definitions 10 3.2 Abbreviations 10 3.3 Notation and terminology.11 3.4 Numbering conventions.12 4 STS protocol r
11、eference model 12 5 POSToTokenCarrierInterface: Physical layer protocol 13 6 TokenCarrierToMeterInterface: Physical layer protocol.13 6.1 TCDU13 6.1.1 General .13 6.1.2 TokenData.13 6.1.3 AuthenticationResult14 6.1.4 ValidationResult 14 6.1.5 TokenResult 14 6.2 Physical connection and signal interfa
12、ces .14 6.2.1 Interface options14 6.2.2 Option 1: Optical interface.14 6.2.3 Option 2: Current loop interface.14 6.2.4 Option 3: Voltage interface 14 6.3 Character transmission14 6.3.1 Transmission type .14 6.3.2 Transmission format 15 6.3.3 Transmission speed.15 6.3.4 Character encoding .15 6.4 Mes
13、sage syntax definitions .17 6.4.1 General .17 6.4.2 IDRequest message 17 6.4.3 IDResponse message17 6.4.4 ReadCommand message.17 6.4.5 WriteCommand message.18 6.4.6 BreakCommand message18 6.4.7 ACK: Acknowledge message .18 6.4.8 NAK: NegativeAcknowledge message .18 6.4.9 Data message .18 6.5 Message
14、 field definitions .19 6.6 Physical layer protocol functions .21 6.6.1 Server protocol flow diagram .21 6.6.2 IDRequestProcessing function.22 6.6.3 ReadCommandProcessing function .23 6.6.4 WriteCommandProcessing function .24 6.6.5 BreakCommandProcessing function 25 62055-52 IEC:2008(E) 3 6.6.6 Undef
15、ined command processing26 6.6.7 TokenLockout function.27 6.7 Server timing requirements27 6.7.1 Inter-message and inter-character timing.27 6.7.2 Transmission error timing 28 6.7.3 Message execution timing .29 6.8 RegisterTable30 6.8.1 RegisterTable interface class 30 6.8.2 Register interface class
16、.31 6.8.3 Predefined Registers and registerID values .32 6.9 Companion specifications and RegisterTable instantiations.43 7 Maintenance of STS entities and related services.43 7.1 General .43 7.2 RegisterTable maintenance.44 7.3 Register maintenance44 7.4 tableID maintenance .44 7.5 FOIN maintenance
17、 45 7.6 protocolVersion maintenance 45 7.7 serverStatus maintenance .45 7.8 tokenStatus maintenance 45 7.9 softwareVersion maintenance45 Annex A (normative) Server state diagrams for request message processing.46 Bibliography51 Figure 1 Physical layers of the STS protocol stack.12 Figure 2 Character
18、 transmission format .15 Figure 3 Server protocol flow diagram.21 Figure 4 Inter-message timing responses.28 Figure 5 Transmission error timing29 Figure A.1 Server state diagram for IDRequestProcessing function46 Figure A.2 Server state diagram for ReadCommandProcessing function 47 Figure A.3 Server
19、 state diagram for WriteCommandProcessing function 48 Figure A.4 Server state diagram for BreakCommandProcessing function .49 Figure A.5 Server state diagram for undefined command .50 Table 1 Data elements in the TCDU.13 Table 2 Bit-encoding of a 7-bit character code .15 Table 3 Character encoding e
20、xample of a 14-bit binary number .16 Table 4 Character encoding example of a 4-digit hexadecimal number 16 Table 5 Character encoding example of a 4-digit decimal number17 Table 6 Message field definitions.19 Table 7 Request messages supported by the server 22 Table 8 Response messages supported by
21、the server .22 Table 9 Functions supported by the server.22 4 62055-52 IEC:2008(E) Table 10 Server timing requirements to respond to a request message28 Table 11 Inter-character timing requirements .28 Table 12 Transmission error recovery wait period 29 Table 13 Generic format for RegisterTable.30 T
22、able 14 Generic format for Register .31 Table 15 Predefined Registers and registerID values.32 Table 16 Instance format for ProtocolVersion register33 Table 17 Defined protocolVersion values .34 Table 18 Instance format for TableID register 34 Table 19 Instance format for ServerStatus register 35 Ta
23、ble 20 Defined serverStatus values36 Table 21 Instance format for SoftwareVersion register .37 Table 22 Instance format for BinaryTokenEntry register.38 Table 23 Instance format for TokenStatus register .39 Table 24 Defined tokenStatus values .40 Table 25 Instance format for TokenLockoutTimeRemainin
24、g register.42 Table 26 Entities/services requiring maintenance service 44 62055-52 IEC:2008(E) 5 INTERNATIONAL ELECTROTECHNICAL COMMISSION _ ELECTRICITY METERING PAYMENT SYSTEMS Part 52: Standard transfer specification (STS) Physical layer protocol for a two-way virtual token carrier for direct loca
25、l connection FOREWORD 1) The International Electrotechnical Commission (IEC) is a worldwide organization for standardization comprising all national electrotechnical committees (IEC National Committees). The object of IEC is to promote international co-operation on all questions concerning standardi
26、zation in the electrical and electronic fields. To this end and in addition to other activities, IEC publishes International Standards, Technical Specifications, Technical Reports, Publicly Available Specifications (PAS) and Guides (hereafter referred to as “IEC Publication(s)”). Their preparation i
27、s entrusted to technical committees; any IEC National Committee interested in the subject dealt with may participate in this preparatory work. International, governmental and non- governmental organizations liaising with the IEC also participate in this preparation. IEC collaborates closely with the
28、 International Organization for Standardization (ISO) in accordance with conditions determined by agreement between the two organizations. 2) The formal decisions or agreements of IEC on technical matters express, as nearly as possible, an international consensus of opinion on the relevant subjects
29、since each technical committee has representation from all interested IEC National Committees. 3) IEC Publications have the form of recommendations for international use and are accepted by IEC National Committees in that sense. While all reasonable efforts are made to ensure that the technical cont
30、ent of IEC Publications is accurate, IEC cannot be held responsible for the way in which they are used or for any misinterpretation by any end user. 4) In order to promote international uniformity, IEC National Committees undertake to apply IEC Publications transparently to the maximum extent possib
31、le in their national and regional publications. Any divergence between any IEC Publication and the corresponding national or regional publication shall be clearly indicated in the latter. 5) IEC provides no marking procedure to indicate its approval and cannot be rendered responsible for any equipme
32、nt declared to be in conformity with an IEC Publication. 6) All users should ensure that they have the latest edition of this publication. 7) No liability shall attach to IEC or its directors, employees, servants or agents including individual experts and members of its technical committees and IEC
33、National Committees for any personal injury, property damage or other damage of any nature whatsoever, whether direct or indirect, or for costs (including legal fees) and expenses arising out of the publication, use of, or reliance upon, this IEC Publication or any other IEC Publications. 8) Attenti
34、on is drawn to the Normative references cited in this publication. Use of the referenced publications is indispensable for the correct application of this publication. 9) Attention is drawn to the possibility that some of the elements of this IEC Publication may be the subject of patent rights. IEC
35、shall not be held responsible for identifying any or all such patent rights. The International Electrotechnical Commission (IEC) draws attention to the fact that it is claimed that compliance with this International Standard may involve the use of a maintenance service concerning encryption key mana
36、gement and the stack of protocols on which the present International Standard IEC 62055-41 is based. See Clause C.1 of IEC 62055-41. The IEC takes no position concerning the evidence, validity and scope of this maintenance service. The provider of the maintenance service has assured the IEC that he
37、is willing to provide services under reasonable and non-discriminatory terms and conditions with applicants throughout the world. In this respect, the statement of the provider of the maintenance service is registered with the IEC. Information may be obtained from Address: The STS Association, P.O.
38、Box 868, Ferndale 2160, Republic of South Africa. Tel: +27 11 789 1384 Fax: +27 11 789 1385 Email: emailsts.org.za Website: http:/www.sts.org.za 6 62055-52 IEC:2008(E) International Standard IEC 62055-52 has been prepared by working group 15, of IEC technical committee 13: Electrical energy measurem
39、ent, tariff and load control. IEC 62055-52 is complementary to, and should be read in conjunction with, IEC 62055-41. The text of this standard is based on the following documents: FDIS Report on voting 13/1424/FDIS 13/1428/RVD Full information on the voting for the approval of this standard can be
40、found in the report on voting indicated in the above table. This publication has been drafted in accordance with the ISO/IEC Directives, Part 2. A list of all parts of IEC 62055 series, published under the general title Electricity metering Payment systems, can be found on the IEC website. The commi
41、ttee has decided that the contents of this publication will remain unchanged until the maintenance result date indicated on the IEC web site under “http:/webstore.iec.ch“ in the data related to the specific publication. At this date, the publication will be reconfirmed, withdrawn, replaced by a revi
42、sed edition, or amended. A bilingual version of this publication may be issued at a later date. 62055-52 IEC:2008(E) 7 INTRODUCTION The IEC 62055 series covers payment systems, encompassing the customer information systems, point of sales systems, token carriers, payment meters and the respective in
43、terfaces that exist between these entities. At the time of preparation of this part, IEC 62055 comprised the following parts, under the general title Electricity metering Payment systems: Part 21: Framework for standardization Part 31: Particular requirements Static payment meters for active energy
44、(classes 1 and 2) Part 41: Standard transfer specification(STS) Application layer protocol for one-way token carrier systems Part 51: Standard transfer specification(STS) Physical layer protocol for one-way numeric and magnetic card token carriers Part 52: Standard transfer specification(STS) Physic
45、al layer protocol for a two-way virtual token carrier for direct local connection The Part 4x series specifies application layer protocols and the Part 5x series specifies physical layer protocols. The protocol in this International Standard is based on the IEC 62056-21 communication protocol and ha
46、s been simplified by removing features from the IEC 62056-21 protocol, which are not required for the current requirements of data exchange between the VTC07 client device and the payment meter server. The main design objective in establishing the protocol has been the requirement to reduce the comp
47、lexity of the software that is needed to implement this protocol in the payment meter. This directly relates to a smaller memory size that can be translated into a cost saving or the ability to include additional software features for a given memory size. The Standard Transfer Specification (STS) is
48、 a secure message protocol that allows information to be carried between point of sale (POS) equipment and payment meters and it caters for several message types such as credit, configuration control, display and test instructions. It further specifies devices and Codes Of Practice that allows for t
49、he secure management (generation, storage, retrieval and transportation) of cryptographic keys used within the system. The national electricity utility in South Africa (Eskom) first developed and published the STS in 1993 and transferred ownership to the STS Association in 1998 for management and further development. Prior to the development of the STS, a variety of proprietary payment meters and POS equipment had be