logo资料库

IEC-62055-52-2008.pdf

第1页 / 共56页
第2页 / 共56页
第3页 / 共56页
第4页 / 共56页
第5页 / 共56页
第6页 / 共56页
第7页 / 共56页
第8页 / 共56页
资料共56页,剩余部分请下载后查看
CONTENTS
FOREWORD
INTRODUCTION
1 Scope
2 Normative references
3 Terms, definitions and abbreviations
3.1 Terms and definitions
3.2 Abbreviations
3.3 Notation and terminology
3.4 Numbering conventions
4 STS protocol reference model
5 POSToTokenCarrierInterface: Physical layer protocol
6 TokenCarrierToMeterInterface: Physical layer protocol
6.1 TCDU
6.2 Physical connection and signal interfaces
6.3 Character transmission
6.4 Message syntax definitions
6.5 Message field definitions
6.6 Physical layer protocol functions
6.7 Server timing requirements
6.8 RegisterTable
6.9 Companion specifications and RegisterTable instantiations
7 Maintenance of STS entities and related services
7.1 General
7.2 RegisterTable maintenance
7.3 Register maintenance
7.4 tableID maintenance
7.5 FOIN maintenance
7.6 protocolVersion maintenance
7.7 serverStatus maintenance
7.8 tokenStatus maintenance
7.9 softwareVersion maintenance
Annex A (normative) Server state diagrams for request message processing
Bibliography
Figures
Figure 1 – Physical layers of the STS protocol stack
Figure 2 – Character transmission format
Figure 3– Server protocol flow diagram
Figure 4 – Inter-message timing responses
Figure 5 –Transmission error timing
Figure A.1 – Server state diagram for IDRequestProcessing function
Figure A.2 – Server state diagram for ReadCommandProcessing function
Figure A.3 – Server state diagram for WriteCommandProcessing function
Figure A.4 – Server state diagram for BreakCommandProcessing function
Figure A.5 – Server state diagram for undefined command
Tables
Table 1 – Data elements in the TCDU
Table 2 – Bit-encoding of a 7-bit character code
Table 3 – Character encoding example of a 14-bit binary number
Table 4 – Character encoding example of a 4-digit hexadecimal number
Table 5 – Character encoding example of a 4-digit decimal number
Table 6 – Message field definitions
Table 7 – Request messages supported by the server
Table 8 – Response messages supported by the server
Table 9 – Functions supported by the server
Table 10 – Server timing requirements to respond to a request message
Table 11 – Inter-character timing requirements
Table 12 – Transmission error recovery wait period
Table 13 – Generic format for RegisterTable
Table 14 – Generic format for Register
Table 15 – Predefined Registers and registerID values
Table 16 – Instance format for ProtocolVersion register
Table 17 – Defined protocolVersion values
Table 18 – Instance format for TableID register
Table 19 – Instance format for ServerStatus register
Table 20 – Defined serverStatus values
Table 21 – Instance format for SoftwareVersion register
Table 22 – Instance format for BinaryTokenEntry register
Table 23 – Instance format for TokenStatus register
Table 24 – Defined tokenStatus values
Table 25 – Instance format for TokenLockoutTimeRemaining register
Table 26 – Entities/services requiring maintenance service
) E ( 8 0 0 2 : 2 5 - 5 5 0 2 6 C E I 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
THIS PUBLICATION IS COPYRIGHT PROTECTED Copyright © 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 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. IEC Central Office 3, rue de Varembé CH-1211 Geneva 20 Switzerland Email: inmail@iec.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 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 variety 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 released. Available on-line and also by email. Electropedia: www.electropedia.org The world's 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 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: csc@iec.ch Tel.: +41 22 919 02 11 Fax: +41 22 919 03 00
INTERNATIONAL STANDARD IEC 62055-52 Edition 1.0 2008-05 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 ICS 35.100.20; 17.220.20; 91.140.50 PRICE CODE XA 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 reference model ........................................................................................12 5 POSToTokenCarrierInterface: Physical layer protocol ....................................................13 6 TokenCarrierToMeterInterface: Physical layer protocol................................................... 13 6.1 TCDU ....................................................................................................................13 6.1.1 General .....................................................................................................13 6.1.2 TokenData.................................................................................................13 6.1.3 AuthenticationResult..................................................................................14 6.1.4 ValidationResult ........................................................................................14 6.1.5 TokenResult ..............................................................................................14 6.2 Physical connection and signal interfaces ............................................................. 14 Interface options........................................................................................14 6.2.1 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 transmission..........................................................................................14 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 Message syntax definitions ...................................................................................17 6.4.1 General .....................................................................................................17 IDRequest message ..................................................................................17 6.4.2 6.4.3 IDResponse message................................................................................17 6.4.4 ReadCommand message...........................................................................17 6.4.5 WriteCommand message...........................................................................18 6.4.6 BreakCommand message ..........................................................................18 6.4.7 ACK: Acknowledge message .....................................................................18 6.4.8 NAK: NegativeAcknowledge message .......................................................18 6.4.9 Data message ...........................................................................................18 6.5 Message 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 Undefined command processing ................................................................26 6.6.7 TokenLockout function...............................................................................27 6.7 Server timing requirements....................................................................................27 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 RegisterTable........................................................................................................30 6.8.1 RegisterTable interface class ....................................................................30 6.8.2 Register interface class .............................................................................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 maintenance............................................................................................44 7.4 tableID maintenance .............................................................................................44 7.5 FOIN maintenance ................................................................................................45 7.6 protocolVersion maintenance ................................................................................45 serverStatus maintenance .....................................................................................45 7.7 tokenStatus maintenance ......................................................................................45 7.8 7.9 softwareVersion maintenance................................................................................45 Annex A (normative) Server state diagrams for request message processing....................... 46 Bibliography..........................................................................................................................51 Figure 1 – Physical layers of the STS protocol stack.............................................................12 Figure 2 – Character transmission format .............................................................................15 Figure 3– Server protocol flow diagram.................................................................................21 Figure 4 – Inter-message timing responses...........................................................................28 Figure 5 –Transmission error timing......................................................................................29 Figure A.1 – Server state diagram for IDRequestProcessing function.................................... 46 Figure A.2 – Server state diagram for ReadCommandProcessing function ............................ 47 Figure A.3 – Server 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 example 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 number ...................................... 17 Table 6 – Message field definitions .......................................................................................19 Table 7 – Request messages supported by the server .......................................................... 22 Table 8 – Response messages supported by 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 message.............................. 28 Table 11 – Inter-character timing requirements .....................................................................28 Table 12 – Transmission error recovery wait period ..............................................................29 Table 13 – Generic format for RegisterTable.........................................................................30 Table 14 – Generic format for Register .................................................................................31 Table 15 – Predefined Registers and registerID values ......................................................... 32 Table 16 – Instance format for ProtocolVersion register ........................................................ 33 Table 17 – Defined protocolVersion values ...........................................................................34 Table 18 – Instance format for TableID register ....................................................................34 Table 19 – Instance format for ServerStatus register ............................................................ 35 Table 20 – Defined serverStatus values ................................................................................36 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 TokenLockoutTimeRemaining 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 local 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 standardization 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 is 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 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 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 content 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 possible 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 equipment 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 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) Attention 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 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 management 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 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. Box 868, Ferndale 2160, Republic of South Africa. Tel: Fax: Email: Website: http://www.sts.org.za +27 11 789 1384 +27 11 789 1385 email@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 measurement, 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 13/1424/FDIS Report on voting 13/1428/RVD Full information on the voting for the approval of this standard can be 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 committee 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, • • amended. replaced by a revised edition, or A bilingual version of this publication may be issued at a later date.
分享到:
收藏