1、BSI Standards PublicationElectricity metering data exchange TheDLMS/COSEM suitePart 9-1: Communication profile using web-services to access a DLMS/COSEM server via a COSEM Access Service (CAS)PD IEC/TS 62056-9-1:2016National forewordThis Published Document is the UK implementation of IEC/TS62056-9-1
2、:2016.The UK participation in its preparation was entrusted to TechnicalCommittee PEL/13, Electricity Meters.A list of organizations represented on this committee can be obtained onrequest to its secretary.This publication does not purport to include all the necessary provisions ofa contract. Users
3、are responsible for its correct application. The British Standards Institution 2016.Published by BSI Standards Limited 2016ISBN 978 0 580 87212 9ICS 17.220.20; 35.100.01; 91.140.50Compliance with a British Standard cannot confer immunity fromlegal obligations.This Published Document was published un
4、der the authority of theStandards Policy and Strategy Committee on 31 May 2016. Amendments/corrigenda issued since publicationDate Text affectedPUBLISHED DOCUMENTPD IEC/TS 62056-9-1:2016IEC TS 62056-9-1 Edition 1.0 2016-05 TECHNICAL SPECIFICATION Electricity metering data exchange The DLMS/COSEM sui
5、te Part 9-1: Communication profile using web-services to access a DLMS/COSEM server via a COSEM Access Service (CAS) INTERNATIONAL ELECTROTECHNICAL COMMISSION ICS 17.220.20; 35.100.01; 91.140.50 ISBN 978-2-8322-3329-0 Registered trademark of the International Electrotechnical Commission Warning! Mak
6、e sure that you obtained this publication from an authorized distributor. colourinsidePD IEC/TS 62056-9-1:2016 2 IEC TS 62056-9-1:2016 IEC 2016 CONTENTS FOREWORD . 4 1 Scope 6 2 Normative references. 6 3 Terms, definitions and abbreviations 7 4 Relation to the IEC 62056 smart metering architecture .
7、 8 4.1 Overview. 8 4.2 Example: Using the S-FSK profile according to IEC 62056-8-3 . 8 5 Use cases . 8 5.1 General . 8 5.2 Use case: Device Access 9 5.2.1 Overview . 9 5.2.2 On-demand Device Access 9 5.2.3 Scheduled Device Access 11 5.2.4 Device Access with Data-Notification 14 5.3 Use case: Device
8、groups . 15 6 Web services interface model 15 7 Message organisation for the WS interface . 15 7.1 Overview. 15 7.2 IEC 62056 messages 15 7.2.1 Overview . 15 7.2.2 General . 15 7.2.3 Verbs . 16 7.2.4 Nouns 17 7.2.5 Payloads 17 7.2.6 Payload for noun Device Access 17 7.3 Common Message Envelope . 23
9、7.3.1 Overview . 23 7.3.2 General . 23 7.3.3 Message header structure 23 7.3.4 Request message structure 25 7.3.5 Response message structure . 27 7.3.6 Event message structure 30 7.3.7 Fault message structure . 31 8 Interface specification 32 8.1 Overview. 32 8.2 Interface using SOAP 32 8.2.1 Genera
10、l . 32 8.2.2 WSDL structure 33 8.2.3 SOAP envelope . 33 Annex A (informative) XML schema for the COSEM XML representation . 35 A.1 COSEMpdu . 35 A.2 XML schema for the payload definitions . 56 A.2.1 DeviceAccess 56 A.2.2 DeviceGroup 57 A.3 XML Schema for common message envelope 57 PD IEC/TS 62056-9-
11、1:2016IEC TS 62056-9-1:2016 IEC 2016 3 A.4 WSDL for interface using SOAP 58 Bibliography . 59 Figure 1 Reference model for the COSEM Access Client to DLMS/COSEM server connection via a COSEM Access Service 6 Figure 2 The smart metering architecture of IEC 62056. 8 Figure 3 Use case: On-demand Device
12、 Access . 10 Figure 4 Use case: Scheduled Device Access 12 Figure 5 Use case: Scheduled Device Access with Events 13 Figure 6 Use case: Device Access with Data-Notification 14 Figure 7 IEC 62056 messages between CAS Client and COSEM Access Service (CAS) . 16 Figure 8 DeviceAccess overview structure
13、17 Figure 9 DeviceGroups structure 18 Figure 10 CosemAccessDescriptor sub-structure 19 Figure 11 ACSEDescriptor sub-structure 19 Figure 12 XDLMSDescriptor substructure . 20 Figure 13 cosemAccessResult substructure 21 Figure 14 errorResult substructure . 21 Figure 15 ACSEResult substructure . 21 Figu
14、re 16 XDLMSResult substructure . 22 Figure 17 Common Message Envelope . 23 Figure 18 Common Message header structure 24 Figure 19 RequestMessage structure . 26 Figure 20 XML for RequestMessage to create DeviceAccess 27 Figure 21 ResponseMessage structure . 28 Figure 22 XML for ResponseMessage on cre
15、ate DeviceAccess . 29 Figure 23 EventMessage structure . 30 Figure 24 XML for EventMessage on change of DeviceAccess 31 Figure 25 FaultMessage structure 32 Figure 26 XML for FaultMessage on create of DeviceAccess 32 Figure 27 SOAP message with RequestMessage 34 PD IEC/TS 62056-9-1:2016 4 IEC TS 6205
16、6-9-1:2016 IEC 2016 INTERNATIONAL ELECTROTECHNICAL COMMISSION _ ELECTRICITY METERING DATA EXCHANGE THE DLMS/COSEM SUITE Part 9-1: Communication profile using web-services to access a DLMS/COSEM server via a COSEM Access Service (CAS) FOREWORD 1) The International Electrotechnical Commission (IEC) is
17、 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
18、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 t
19、he 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 conditi
20、ons 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 Nation
21、al 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
22、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 P
23、ublication and the corresponding national or regional publication shall be clearly indicated in the latter. 5) IEC itself does not provide any attestation of conformity. Independent certification bodies provide conformity assessment services and, in some areas, access to IEC marks of conformity. IEC
24、 is not responsible for any services carried out by independent certification bodies. 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
25、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
26、 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 s
27、ubject of patent rights. IEC shall not be held responsible for identifying any or all such patent rights. The main task of IEC technical committees is to prepare International Standards. In exceptional circumstances, a technical committee may propose the publication of a technical specification when
28、 the required support cannot be obtained for the publication of an International Standard, despite repeated efforts, or the subject is still under technical development or where, for any other reason, there is the future but no immediate possibility of an agreement on an International Standard. Tech
29、nical specifications are subject to review within three years of publication to decide whether they can be transformed into International Standards. IEC TS 62056-9-1, which is a technical specification, has been prepared by IEC technical committee 13: Electrical energy measurement and control. PD IE
30、C/TS 62056-9-1:2016IEC TS 62056-9-1:2016 IEC 2016 5 The text of this technical specification is based on the following documents: Enquiry draft Report on voting 13/1641/DTS 13/1662/RVC Full information on the voting for the approval of this technical specification can be found in the report on votin
31、g indicated in the above table. This publication has been drafted in accordance with the ISO/IEC Directives, Part 2. A list of all parts in the IEC 62056 series, published under the general title Electricity metering data exchange The DLMS/COSEM suite, can be found on the IEC website. The committee
32、has decided that the contents of this publication will remain unchanged until the stability date indicated on the IEC website under “http:/webstore.iec.ch“ in the data related to the specific publication. At this date, the publication will be transformed into an International standard, reconfirmed,
33、withdrawn, replaced by a revised edition, or amended. A bilingual version of this publication may be issued at a later date. IMPORTANT The colour inside logo on the cover page of this publication indicates that it contains colours which are considered to be useful for the correct understanding of it
34、s contents. Users should therefore print this document using a colour printer. PD IEC/TS 62056-9-1:2016 6 IEC TS 62056-9-1:2016 IEC 2016 ELECTRICITY METERING DATA EXCHANGE THE DLMS/COSEM SUITE Part 9-1: Communication profile using web-services to access a DLMS/COSEM server via a COSEM Access Service
35、 (CAS) 1 Scope This part of IEC 62056, which is a Technical Specification, defines how DLMS/COSEM servers can be accessed from a COSEM Access Client via an intermediate COSEM Access Service (CAS) providing Web services. The DLMS/COSEM server contains an application server supporting the data model o
36、f IEC 62056-6-1 / IEC 62056-6-2 and the application layer of IEC 62056-5-3. The underlying communication layers between the CAS and the DLMS/COSEM server are not covered by this specification. However, it is assumed that a profile standard exists describing how the underlying communication technolog
37、y is used in conjunction with IEC 62056-6-1/ IEC 62056-6-2 and IEC 62056-5-3. The Web services defined in this Technical Specification concern the G2 interface according to the architecture defined in IEC 62056-1-0. The contents of this document define the Web services between the COSEM Access Clien
38、t and the COSEM Access Service (CAS) as shown in Figure 1. IEC Figure 1 Reference model for the COSEM Access Client to DLMS/COSEM server connection via a COSEM Access Service The COSEM Access Client identifies the DLMS/COSEM server by its system title (see IEC 62056-5-3). 2 Normative references The
39、following documents, in whole or in part, are normatively referenced in this document and are indispensable for its application. For dated references, only the edition cited applies. For undated references, the latest edition of the referenced document (including any amendments) applies. IEC 61968-1
40、:2012, Application integration at electric utilities System interfaces for distribution management Part 1: Interface architecture and general recommendations IEC 61968-100:2013, Application integration at electric utilities System interfaces for distribution management Part 100: Implementation profi
41、les IEC 62056-1-0, Electricity metering data exchange Part 1-0: Smart metering standardization framework COSEM Access ClientCOSEM Access Service (CAS)DLMS/COSEM serverCASclientCASproviderDLMS/COSEM clientDLMS/COSEM serverDLMS/COSEM servicesWeb servicesPD IEC/TS 62056-9-1:2016IEC TS 62056-9-1:2016 IE
42、C 2016 7 IEC 62056-5-3, Electricity metering data exchange The DLMS/COSEM suite Part 5-3: DLMS/COSEM application layer IEC 62056-6-1, Electricity metering data exchange The DLMS/COSEM suite Part 6-1: Object Identification System (OBIS) IEC 62056-6-2, Electricity metering data exchange The DLMS/COSEM
43、 suite Part 6-2: COSEM interface classes IEC 62056-8-3, Electricity metering data exchange The DLMS/COSEM suite Part 8-3: Communication profile for PLC S-FSK neighbourhood networks 3 Terms, definitions and abbreviations For the purposes of this document, the following terms, definitions and abbrevia
44、tions apply. ACSE Association Control Service Element APDU Application Layer Protocol Data Unit CAC COSEM Access Client CAS COSEM Access Service CAS Provider Interface providing Web services to access the CAS CME Common Message Envelope COSEM Companion Specification for Energy Metering COSEM Access
45、Client Client accessing the DLMS/COSEM server via the COSEM Access Service CAS COSEM Access Service Service entity providing Web service based COSEM access towards the COSEM Access Client and acting as a DLMS/COSEM client towards the DLMS/COSEM server DLMS Device Language Message Specification DLMS/
46、COSEM server DLMS/COSEM server supporting the data models of IEC 62056-6-1 / IEC 62056-6-2 and the application layer of IEC 62056-5-3 HES Head End System, also known as Data Collection System IP Internet Protocol ISO International Organization for Standardization mRID CIM master resource identifier
47、NN Neighbourhood Network NNAP Neighbourhood Network Access Point REST REpresentational State Transfer SOAP Simple Object Access Protocol UUID Universal Unique Identifier WAN Wide area network WS Web services WSDL Web Services Definition Language xDLMS Extended DLMS XML eXtensible Markup Language XSD
48、 XML Schema PD IEC/TS 62056-9-1:2016 8 IEC TS 62056-9-1:2016 IEC 2016 4 Relation to the IEC 62056 smart metering architecture 4.1 Overview Considering the smart metering architecture introduced in IEC 62056-1-0 the abstract model of Figure 2 covers the communication between the HES and the NNAP as s
49、hown in Figure 2. Where the HES acts as COSEM Access Client, the NNAP provides the COSEM Access Service (CAS) and the DLMS/COSEM server corresponds to the metering device. The Web services defined in this TS concern the G2 interface. Typically, the communication technology used in the NN is not the same as the communication technology used in the WAN; i.e. the NN does not necessarily support IP based communication.