1、 g49g50g3g38g50g51g60g44g49g42g3g58g44g55g43g50g56g55g3g37g54g44g3g51g40g53g48g44g54g54g44g50g49g3g40g59g38g40g51g55g3g36g54g3g51g40g53g48g44g55g55g40g39g3g37g60g3g38g50g51g60g53g44g42g43g55g3g47g36g58and load control Part 53: COSEM application layerThe European Standard EN 62056-53:2007 has the sta
2、tus of a British StandardICS 35.100.70; 91.140.50Electricity metering Data exchange for meter reading, tariff BRITISH STANDARDBS EN 62056-53:2007BS EN 62056-53:2007This British Standard was published under the authority of the Standards Policy and Strategy Committee on 30 June 2007 BSI 2007ISBN 978
3、0 580 50854 7Amendments issued since publicationAmd. No. Date CommentsThis publication does not purport to include all the necessary provisions of a contract. Users are responsible for its correct application.Compliance with a British Standard cannot confer immunity from legal obligations.National f
4、orewordThis British Standard was published by BSI. It is the UK implementation of EN 62056-53:2007. It is identical with IEC 62056-53:2006. It supersedes BS EN 62056-53:2002, which will be withdrawn on 1 February 2010.The UK participation in its preparation was entrusted to Technical Committee PEL/1
5、3, Electricity meters.A list of organizations represented on this committee can be obtained on request to its secretary.EUROPEAN STANDARD EN 62056-53 NORME EUROPENNE EUROPISCHE NORM April 2007 CENELEC European Committee for Electrotechnical Standardization Comit Europen de Normalisation Electrotechn
6、ique Europisches Komitee fr Elektrotechnische Normung Central Secretariat: rue de Stassart 35, B - 1050 Brussels 2007 CENELEC - All rights of exploitation in any form and by any means reserved worldwide for CENELEC members. Ref. No. EN 62056-53:2007 E ICS 91.140.50; 35.100.70 Supersedes EN 62056-53:
7、2002English version Electricity metering - Data exchange for meter reading, tariff and load control - Part 53: COSEM application layer (IEC 62056-53:2006) Equipements de mesure de lnergie lectrique - Echange des donnes pour la lecture des compteurs, le contrle des tarifs et de la charge - Partie 53:
8、 Couche application COSEM (CEI 62056-53:2006) Messung der elektrischen Energie - Zhlerstandsbertragung, Tarif- und Laststeuerung - Teil 53: COSEM-Anwendungsschicht (IEC 62056-53:2006) This European Standard was approved by CENELEC on 2007-02-01. CENELEC members are bound to comply with the CEN/CENEL
9、EC Internal Regulations which stipulate the conditions for giving this European Standard the status of a national standard without any alteration. Up-to-date lists and bibliographical references concerning such national standards may be obtained on application to the Central Secretariat or to any CE
10、NELEC member. This European Standard exists in three official versions (English, French, German). A version in any other language made by translation under the responsibility of a CENELEC member into its own language and notified to the Central Secretariat has the same status as the official version
11、s. CENELEC members are the national electrotechnical committees of Austria, Belgium, Bulgaria, Cyprus, the Czech Republic, Denmark, Estonia, Finland, France, Germany, Greece, Hungary, Iceland, Ireland, Italy, Latvia, Lithuania, Luxembourg, Malta, the Netherlands, Norway, Poland, Portugal, Romania, S
12、lovakia, Slovenia, Spain, Sweden, Switzerland and the United Kingdom. Foreword The text of document 13/1387/FDIS, future edition 2 of IEC 62056-53, prepared by IEC TC 13, Electrical energy measurement, tariff- and load control, was submitted to the IEC-CENELEC parallel vote and was approved by CENEL
13、EC as EN 62056-53 on 2007-02-01. This European Standard supersedes EN 62056-53:2002. The main changes with respect to EN 62056-53:2002 are as follows: the protocol of the COSEM-RELEASE service has been changed: depending on the communication profile used, these services may rely on the ACSE A_RELEAS
14、E services; the parsing order of the AARQ APDU has been changed; handling of repeated application association requests has been simplified; the Service_Class parameter of the COSEM-OPEN service is now linked to the response allowed field of the xDLMS-Initiate.request APDU; the Service_Class paramete
15、r of COSEM services for data exchange using LN referencing is now linked to bit 6 of the Invoke-Id-And-Priority parameter; a new, optional EXCEPTION APDU has been introduced. The server may send back this APDU after an erroneous service request; a general part about using the COSEM application layer
16、 in various communication profiles has been added; the description of using the COSEM Application layer in the 3-layer, connection-oriented, HDLC based communication profile has been amended; a new, TCP-UDP/IP based communication profile has been defined. The following dates were fixed: latest date
17、by which the EN has to be implemented at national level by publication of an identical national standard or by endorsement (dop) 2007-11-01 latest date by which the national standards conflicting with the EN have to be withdrawn (dow) 2010-02-01 The International Electrotechnical Commission (IEC) an
18、d CENELEC draw attention to the fact that it is claimed that compliance with this International Standard / European Standard may involve the use of a maintenance service concerning the stack of protocols on which the present standard IEC 62056-53 / EN 62056-53 is based. The IEC and CENELEC take no p
19、osition 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
20、statement of the provider of the maintenance service is registered with the IEC. Information may be obtained from: DLMS 1)User Association Geneva / Switzerland www.dlms.ch 1)Device Language Message Specification 2 EN 62056-53:2007Annex ZA has been added by CENELEC. _ Endorsement notice The text of t
21、he International Standard IEC 62056-53:2006 was approved by CENELEC as a European Standard without any modification. _ 3 EN 62056-53:2007CONTENTS 1 Scope.7 2 Normative references .7 3 Terms, definitions and abbreviations 8 4 The COSEM communications framework 10 4.1 Client/server type operation, com
22、munication profiles .10 4.2 Connection (association) oriented operation12 5 Overview: the COSEM application layer .12 5.1 Specification method .12 5.2 Application layer structure .12 5.3 Service specification .13 5.4 Layer management services15 5.5 Protocol specification 15 6 COSEM application layer
23、 Service specification16 6.1 Summary of services .16 6.2 Application association establishment and release 16 6.3 Special application associations 17 6.4 Data communication18 6.5 Client COSEM application layer services.19 6.6 Server COSEM application layer services38 6.7 Summary of COSEM application
24、 layer services and service parameters55 7 COSEM application layer protocol specification59 7.1 State definitions for the client side control function59 7.2 State definitions for the server side control function 61 7.3 Protocol for application association establishment/release 62 7.4 Protocol for da
25、ta communications74 8 Specification of COSEM data types 89 8.1 The COSEM APDUs89 8.2 The ACSE APDUs .90 8.3 Useful types 93 8.4 The xDLMS-Initiate.request/response/ConfirmedServiceError PDUs98 8.5 The conformance block .98 8.6 Definition of APDUs for data communication .99 Annex A (normative) The xD
26、LMS application service element105 Annex B (normative) Using the COSEM Application Layer in various communication profiles .107 Annex C (informative) AARQ and AARE encoding examples126 Annex D (informative) Data model and protocol .138 Bibliography139 INDEX 142 4 EN 62056-53:2007Annex ZA (normative)
27、 Normative references to international publications with theircorresponding European publications 145Figure 1 Client/server relationship in COSEM 10 Figure 2 Exchanging messages via the communication protocol 11 Figure 3 The COSEM application layer on the top of various lower layer stacks.11 Figure
28、4 A complete communication session in the CO environment 12 Figure 5 The structure of the COSEM application layers 13 Figure 6 Structure of the COSEM AL when the server is using SN references15 Figure 7 Summary of COSEM application layer services16 Figure 8 Normal service sequence for the COSEM-OPEN
29、 service17 Figure 9 Client side services for application association establishment 19 Figure 10 Client side services for releasing an application association.23 Figure 11 Client side data communication services 26 Figure 12 Client side services for event notification .35 Figure 13 Server side servic
30、es for application association establishment.38 Figure 14 Server side services for releasing an application association .40 Figure 15 Server side data communications services using LN referencing44 Figure 16 Partial state machine for the client side control function .60 Figure 17 Partial state machi
31、ne for the server side control function61 Figure 18 MSC for successful application association establishment preceded by a successful lower layer connection establishment 63 Figure 19 Graceful association release using the A-RELEASE service.69 Figure 20 Graceful release of an application association
32、 by disconnection the supporting layer 70 Figure 21 Aborting an application association following a PH-ABORT.indication 71 Figure 22 MSC for a confirmed GET service in case of success.75 Figure 23 MSC for a confirmed SET service in case of success .75 Figure 24 MSC for the SET service in case of fai
33、lure .76 Figure 25 MSC for the ACTION service (simplest case) .76 Figure 26 Long data with the GET service in three data blocks 81 Figure 27 Long data transfer in three data blocks with the SET service83 Figure 28 Long data transfer with the ACTION service.85 Figure 29 MSC for the ReadRequest/Respon
34、se services .87 Figure B.1 Identification/addressing scheme in the 3-layer, connection-oriented, HDLC based communication profile 110 Figure B.2 Data link layer services provided to and used by the client COSEM application layer .111 Figure B.3 Data link layer services provided to and used by the se
35、rver COSEM application layer .112 Figure B.4 Example: EventNotificaton triggered by the client .115 Figure B.5 Multi-drop configuration and its model 116 Figure B.6 Master/ Slave operation on the multi-drop bus 116 Figure B.7 COSEM as a standard Internet application protocol 118 Figure B.8 Examples
36、for lower-layer protocols in the TCP-UDP/IP based profiles 119 Figure B.9 Identification/addressing scheme in the TCP-UDP/IP based profile(s).120 Figure B.10 Summary of TCP/UDP layer services on the client and server side .121 Figure D.1 The three-step approach of COSEM .138 5 EN 62056-53:2007Table
37、1 Mapping between client side LN and server side SN referencing services .37 Table 2 Application layer services summary55 Table 3 Summary of the service parameters in the COSEM-OPEN service primitives.56 Table 4 Summary of the service parameters in the COSEM-RELEASE service primitives .57 Table 5 Su
38、mmary of the service parameters in the COSEM-ABORT service primitives .57 Table 6 Summary of the service parameters in the COSEM GET service primitives .57 Table 7 Summary of the service parameters in the COSEM SET service primitives58 Table 8 Summary of the service parameters in the COSEM ACTION se
39、rvice primitives .58 Table 9 Summary of the service parameters in the COSEM EventNotification service primitives 59 Table 10 Mapping between the EventNotification and InformationReport services88 Table B.1 Application associations and data exchange in the 3-layer, connection-oriented, HDLC based pro
40、file113 Table B.2 Application associations and data exchange in the TCP-UDP/IP based profile .123 6 EN 62056-53:2007ELECTRICITY METERING DATA EXCHANGE FOR METER READING, TARIFF AND LOAD CONTROL Part 53: COSEM application layer 1 Scope This part of IEC 62056 specifies the COSEM application layer in t
41、erms of structure, services and protocols for COSEM clients and servers, and defines how to use the COSEM application layer in various communication profiles. It defines services for establishing and releasing application associations, and data communication services for accessing the methods and at
42、tributes of COSEM interface objects, defined in IEC 62056-62, using either logical name (LN) or short name (SN) referencing. Annex A describes the xDLMS application service element. Annex B defines how to use the COSEM application layer in various communication profiles. Annex C includes encoding ex
43、amples for APDUs. Annex D gives an explanation of the role of data models and protocols in electricity meter data exchange. 2 Normative references The following referenced documents are indispensable for the application of this document. For dated references, only the edition cited applies. For unda
44、ted references, the latest edition of the referenced document (including any amendments) applies. IEC 60050-300:2001, International Electrotechnical Vocabulary (IEV) Electrical and electronic measurements and measuring instruments Part 311: General terms relating to measurements Part 312: General te
45、rms relating to electrical measurements Part 313: Types of electrical measuring instruments Part 314: Specific terms according to the type of instrument IEC 61334-4-41:1996, Distribution automation using distribution line carrier systems Part 4: Data communication protocols Section 41: Application p
46、rotocols Distribution line message specification IEC 61334-6:2000, Distribution automation using distribution line carrier systems Part 6: A-XDR encoding rule IEC 62051:1999, Electricity metering Glossary of terms IEC 62051-1:2004, Electricity metering Data exchange for meter reading, tariff and loa
47、d control Glossary of Terms Part 1: Terms related to data exchange with metering equipment using DLMS/COSEM IEC 62056-21:2002, Electricity metering Data exchange for meter reading, tariff and load control Part 21: Direct local data exchange 7 EN 62056-53:2007IEC 62056-42:2002, Electricity metering D
48、ata exchange for meter reading, tariff and load control Part 42: Physical layer services and procedures for connection-oriented asynchronous data exchange IEC 62056-46:2002, Electricity metering Data exchange for meter reading, tariff and load control Part 46: Data link layer using HDLC protocol Ame
49、ndment 12IEC 62056-47, Electricity metering Data exchange for meter reading, tariff and load control Part 47: COSEM transport layer for IP networks IEC 62056-61, Ed.2, Electricity metering Data exchange for meter reading, tariff and load control Part 61: Object identification system (OBIS)IEC 62056-62, Ed.2, Electricity meter