CN102043719B - Method for testing IEC61850 configuration description file - Google Patents

Method for testing IEC61850 configuration description file Download PDF

Info

Publication number
CN102043719B
CN102043719B CN201110000749.2A CN201110000749A CN102043719B CN 102043719 B CN102043719 B CN 102043719B CN 201110000749 A CN201110000749 A CN 201110000749A CN 102043719 B CN102043719 B CN 102043719B
Authority
CN
China
Prior art keywords
iec
describing document
configuration describing
configuration
tree
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201110000749.2A
Other languages
Chinese (zh)
Other versions
CN102043719A (en
Inventor
何磊
郝晓光
李铁成
张兵海
范辉
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
State Grid Corp of China SGCC
Electric Power Research Institute of State Grid Hebei Electric Power Co Ltd
Hebei Electric Power Construction Adjustment Test Institute
Original Assignee
State Grid Corp of China SGCC
Electric Power Research Institute of State Grid Hebei Electric Power Co Ltd
Hebei Electric Power Construction Adjustment Test Institute
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by State Grid Corp of China SGCC, Electric Power Research Institute of State Grid Hebei Electric Power Co Ltd, Hebei Electric Power Construction Adjustment Test Institute filed Critical State Grid Corp of China SGCC
Priority to CN201110000749.2A priority Critical patent/CN102043719B/en
Publication of CN102043719A publication Critical patent/CN102043719A/en
Application granted granted Critical
Publication of CN102043719B publication Critical patent/CN102043719B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Debugging And Monitoring (AREA)

Abstract

The invention relates to a method for testing an IEC61850 configuration description file, applicable to a digitalization substation and an intelligent substation. The method is concretely implemented by a configuration file analyzing module, a linked list storing and memory freeing module, a standard data template file and a checking module. The method comprises the following concrete steps: firstly loading an IEC61850 configuration description file into a computer memory to form a DOM (document object model) tree, then storing special node information of the tree in the memory into a linked list data structure; comparing the configuration description file element information stored in a linked list by operating the indicator of a linked list node; giving an alarm if the requirements are not met, and outputting the error type and the concrete position of the error in the configuration description file; and storing the test result into a text file. The invention has the advantage that whether the configuration description file meets the requirements specified by a standard can be automatically tested.

Description

A kind of method that IEC61850 configuration describing document is tested
Technical field
The present invention relates to a kind of method that IEC61850 configuration describing document is tested; whether meet the requirement of " DL/T 860 implements technical manual " and " IEC61850 engineering relay protection application model " for test I EC61850 configuration describing document, be applicable to the digital transformer substation and the intelligent substation that adopt IEC61850 communication.
Background technology
IEC61850 configuration describing document is the basis of automatic system of intelligent transformer station functional realiey.Because described configuration describing document grammer is complicated, contains much information, be easy to occur a series of legitimacy and standardization problem in engineer applied, in layoutprocedure, occur that various mistake is also inevitable in addition, so need strictly to test.Because the problem complexity of described configuration describing document is various, rely on manpower all to find, specific purpose tool (i.e. method of testing) can only be relied on.The instrument that can carry out described configuration describing document verification at present has a lot, as the XMLSpy etc. of IEDScout and Altova of SCL Checker, OMICRON of KEMA.Although these instruments are ripe but test function is incomplete, " DL/T 860 implements technical manual " and " IEC61850 engineering relay protection application model " especially for domestic nearest promulgation does not have power of test, cannot meet the needs of Practical Project test.In Practical Project, the test of part described configuration describing document can only be undertaken by the method for artificial check, and not only efficiency is low but also easily make mistakes.In the urgent need to a production domesticization, multiple functional testing tool in engineer applied, avoid artificial check.
Summary of the invention
Technical matters to be solved by this invention is to provide has a kind of multiple functional method of testing IEC61850 configuration describing document.
The technical solution adopted for the present invention to solve the technical problems:
The present invention is by configuration file parsing module, storage of linked list and internal memory release module, normal data template file and correction verification module specific implementation, and its step is as follows:
(1) carry out test by configuration file parsing module to IEC61850 configuration describing document to resolve:
Adopt the DOM Interface realization of Microsoft MSXML 4.0 to the parsing of IEC61850 configuration describing document; After utilizing DOM interface to read XML document, in internal memory, construct a data tree; Utilize the api interface function of MSXML 4.0, carry out the node adding, edit, move or delete optional position in dom tree;
(2) storage of linked list and internal memory release module is utilized to carry out storing and discharging: according to IEC61850 standard, list structure corresponding to be with it set to the definition of IEC61850 configuration describing document; Because IEC61850 configuration describing document is logically tree-like hierarchy, set chained list is tree structure;
Be resolved to after in internal memory at IEC61850 configuration describing document, the data in internal memory tree with specified data type node are extracted, be stored in linked list data structure, for the customizing messages in trial function access IEC61850 configuration describing document; In order to avoid there is RAM leakage when program exits, utilize chained list internal memory to discharge function, node carries out manual releasing one by one;
(3) normal data template file is utilized to deposit 55 kinds of DOType, 15 kinds of DAType and 19 kind of EnumType of standard " IEC61850 engineering relay protection application model " unified definition; In order to the definition of the Appendix D that checks whether the data type template of IEC61850 configuration describing document meets " IEC61850 engineering relay protection application model "; Described normal data template file is XML format;
(4) utilize the element information of correction verification module to the IEC61850 configuration describing document stored in described chained list to verify, if undesirable, report to the police, and the type of output error and the index of object element in IEC61850 configuration describing document.
The invention has the beneficial effects as follows and can test for " DL/T 860 implements technical manual " and " IEC61850 engineering relay protection application model "; whether automatic test I EC61850 configuration describing document meets the requirement of above-mentioned two domestic standards, and its test function is complete.
Accompanying drawing explanation
Fig. 1 is workflow diagram of the present invention;
Fig. 2 is the linked list data structure schematic diagram storing IEC61850 configuration describing document IED partial information;
Fig. 3 is for carrying out the workflow diagram of internal memory release to certain chained list (supposing that linked list head pointer is Head);
Fig. 4 is the BDA alignment programs process flow diagram in DAType;
Fig. 5 is the screenshot capture tested the IEC61850 configuration describing document of CSC103 molded line line protection device.
Embodiment
The present embodiment is by configuration file parsing module, storage of linked list and internal memory release module, normal data template file and correction verification module specific implementation, and its step is as follows:
(1) carry out test by configuration file parsing module to IEC61850 configuration describing document to resolve:
Adopt the DOM Interface realization of Microsoft MSXML 4.0 to the parsing of IEC61850 configuration describing document; After utilizing DOM interface to read XML document, in internal memory, construct a data tree; Utilize the api interface function of MSXML 4.0, carry out the node adding, edit, move or delete optional position in dom tree;
(2) storage of linked list and internal memory release module is utilized to carry out storing and discharging: according to IEC61850 standard, list structure corresponding to be with it set to the definition of IEC61850 configuration describing document; Because IEC61850 configuration describing document is logically tree-like hierarchy, set chained list is tree structure (being the linked list data structure schematic diagram storing described configuration describing document IED partial information see Fig. 2, Fig. 2);
Be resolved to after in internal memory at IEC61850 configuration describing document, the data in internal memory tree with specified data type node are extracted, be stored in linked list data structure, for the customizing messages in trial function access IEC61850 configuration describing document; In order to avoid there is RAM leakage when program exits, utilize chained list internal memory to discharge function, node carries out manual releasing one by one; See Fig. 3, Fig. 3 is the workflow diagram certain chained list (supposing that linked list head pointer is Head) being carried out to internal memory release;
(3) normal data template file is utilized to deposit 55 kinds of DOType, 15 kinds of DAType and 19 kind of EnumType of standard " IEC61850 engineering relay protection application model " unified definition; This way has certain dirigibility and versatility, even if standard logarithmic will change according to the regulation of template types and also need not revise test source program from now on, only needs Standard modification data template file to adapt to new standard.In order to the definition of the Appendix D that checks whether the data type template of IEC61850 configuration describing document meets " IEC61850 engineering relay protection application model "; Described normal data template file is XML format;
(4) correction verification module: correction verification module is the core of testing tool, by operating the pointer of chained list node, various verification (such as checking whether communication IP address repeats, and carries out uniqueness exactly compare the node of storing IP parameter in chained list) is carried out to the IEC61850 configuration describing document element information stored in chained list; If undesirable, report to the police, and the type of output error and the object element index in configuration file.
The workflow of the present embodiment is as follows:
First IEC61850 configuration describing document is loaded in calculator memory and forms a dom tree, and then the particular sections dot information in internal memory tree is stored in linked list data structure; By operating the pointer of chained list node, various comparison is carried out to the IEC61850 configuration describing document element information stored in chained list; Namely false alarm is sent if undesirable, and the type of output error and the particular location in IEC61850 configuration describing document thereof; Test result is saved in text; When finally creating chained list, the internal memory of dynamic assignment discharges, and specific works flow process as shown in Figure 1.
Here is an application example of the present embodiment:
In the debugging of certain 220KV digital transformer substation, utilize the IEC61850 configuration describing document of this method of testing to CSC103 molded line line protection device to test, found the various mistakes wherein existed, test result as shown in Figure 5.
Only for data type template comparison of coherence, this process is described below:
First resolve IEC61850 configuration describing document and be stored in chained list, then normal data template file being read in calculator memory dom tree, calling in MSXML 4.0 getElementsByTagName() function extracts the set (such as all DAType nodes) of specified data type node, the DAType of the IEC61850 configuration describing document preserved in each node and chained list is carried out comparison one by one, if there is difference, reports to the police.The comparison flow process of DOType and EnumType and DOType broadly similar.
During the BDA daughter element comprised under comparison DAType, have employed the way of two-way comparison.Normal data template file, compares with it for reference with the IEC61850 configuration describing document deposited in chained list by the first step, though can check out standard data template file defined in IEC61850 configuration describing document non-existent element.Second step with normal data template file for reference, IEC61850 configuration describing document information in chained list is compared with it, can check out in IEC61850 configuration describing document whether there is the undefined element of normal data template file, idiographic flow as shown in Figure 4.

Claims (1)

1., to the method that IEC 61850 configuration describing document is tested, it is characterized in that it is by configuration file parsing module, storage of linked list and internal memory release module, normal data template file and correction verification module specific implementation, its step is as follows:
(1) carry out test by configuration file parsing module to IEC 61850 configuration describing document to resolve:
Adopt the DOM Interface realization of Microsoft MSXML 4.0 to the parsing of IEC 61850 configuration describing document; After utilizing DOM interface to read XML document, in internal memory, construct a data tree; Utilize the api interface function of MSXML 4.0, carry out the node adding, edit, move or delete optional position in dom tree;
(2) storage of linked list and internal memory release module is utilized to carry out storing and discharging: according to IEC 61850 standard, list structure corresponding to be with it set to the definition of IEC 61850 configuration describing document; Because IEC 61850 configuration describing document is logically tree-like hierarchy, set chained list is tree structure;
Be resolved to after in internal memory at IEC 61850 configuration describing document, the data in internal memory tree with specified data type node are extracted, be stored in linked list data structure, for the customizing messages in trial function access IEC 61850 configuration describing document; In order to avoid there is RAM leakage when program exits, utilize chained list internal memory to discharge function, node carries out manual releasing one by one;
(3) normal data template file is utilized to deposit standard " IEC 61850 engineering relay protection application model " 55 kinds of DOType of unified definition, 15 kinds of DAType and 19 kind of EnumType; In order to the definition of the Appendix D that checks whether the data type template of IEC 61850 configuration describing document meets " IEC 61850 engineering relay protection application model "; Described normal data template file is XML format;
(4) utilize the element information of correction verification module to IEC 61850 configuration describing document stored in described chained list to verify, if undesirable, report to the police, and the type of output error and the index of object element in IEC 61850 configuration describing document.
CN201110000749.2A 2011-01-05 2011-01-05 Method for testing IEC61850 configuration description file Active CN102043719B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201110000749.2A CN102043719B (en) 2011-01-05 2011-01-05 Method for testing IEC61850 configuration description file

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201110000749.2A CN102043719B (en) 2011-01-05 2011-01-05 Method for testing IEC61850 configuration description file

Publications (2)

Publication Number Publication Date
CN102043719A CN102043719A (en) 2011-05-04
CN102043719B true CN102043719B (en) 2015-05-06

Family

ID=43909870

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201110000749.2A Active CN102043719B (en) 2011-01-05 2011-01-05 Method for testing IEC61850 configuration description file

Country Status (1)

Country Link
CN (1) CN102043719B (en)

Families Citing this family (14)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8990770B2 (en) * 2011-05-25 2015-03-24 Honeywell International Inc. Systems and methods to configure condition based health maintenance systems
CN102654937B (en) * 2012-05-15 2014-01-15 东北电力科学研究院有限公司 IEC61850 detection platform of power quality monitoring terminal and detection method thereof
CN102902748A (en) * 2012-09-18 2013-01-30 上海移远通信技术有限公司 Establishing method and managing method for file systems and random access memory (RAM) and communication chip of file systems
CN103324413B (en) * 2013-06-13 2017-02-08 青岛海信移动通信技术股份有限公司 Mobile terminal and method for processing memo information by using mobile terminal
CN103439612B (en) * 2013-09-02 2015-11-11 上海毅昊自动化有限公司 Based on the intelligent substation Auto-Test System of SCD
CN103903188A (en) * 2014-03-18 2014-07-02 国家电网公司 Controlling method of configuration file of intelligent transformer substation system
CN104360948A (en) * 2014-12-01 2015-02-18 国网重庆市电力公司江津供电分公司 IEC 61850 configuration file engineering consistency test method based on fuzzy algorithm
CN104795897B (en) * 2015-04-23 2016-08-24 广东电网有限责任公司电力调度控制中心 The configurable relay protecting method of intelligent substation and system
CN105279085A (en) * 2015-10-08 2016-01-27 国网天津市电力公司 Rule self-defining based smart substation configuration file test system and method
CN106338975B (en) * 2016-09-21 2018-12-04 浙江中控技术股份有限公司 A kind of alarm merging method and merger system of alarming
CN106656614B (en) * 2016-12-29 2019-07-26 山东鲁能智能技术有限公司 Customization forwarding table generation method and system based on distribution terminal equipment XML file
CN108270595A (en) * 2016-12-30 2018-07-10 北京亿阳信通科技有限公司 A kind of networking configuration method and device
CN109933523A (en) * 2019-01-30 2019-06-25 山东鲁能智能技术有限公司 IEC61850 model checking method, system, terminal device, computer readable storage medium
CN113010230B (en) * 2021-03-26 2024-02-09 广州市百果园网络科技有限公司 Configuration information processing method, device, equipment and storage medium

Non-Patent Citations (3)

* Cited by examiner, † Cited by third party
Title
基于IEC61850的数字化变电站中的规约测试技术;缪文贵等;《江苏电机工程》;20070831;第26卷;第75页到第76页、第82页正文第1-3部分及图1-3 *
基于SCL模型的IED配置器的设计与实现;兰森林等;《继电器》;20050616;第33卷(第12期);全文 *
智能电子装置的SCL文档配置工具的设计与实现;陈少君等;《继电器》;20071016;第35卷(第20期);第47页到第50页正文第2部分及图1-3 *

Also Published As

Publication number Publication date
CN102043719A (en) 2011-05-04

Similar Documents

Publication Publication Date Title
CN102043719B (en) Method for testing IEC61850 configuration description file
CN102005818B (en) Method for detecting consistency of SCD (System Configuration Document) and IED (Intelligent Electronic Device) model on line
CN103529377B (en) The Auto-Test System of intelligent transformer substation digital protection device and method
CN102622463B (en) Drawing-model uniformity based method for automatic check of design drawings
CN101706816B (en) Method for detecting digitized transformer station model
CN102331967B (en) Method for managing chip verification test cases
CN104793076A (en) Intelligent automatic test system and method
CN103578048A (en) Method for checking and comparing configuration related information of intelligent substation SCL documents
CN102355062B (en) IEC (International Electrotechnical Commission) 61850 relay protection model checking method
CN104598376A (en) Data driving layered automation test system and method
US20180307594A1 (en) System, method and storage device for cim/e model standard compliance test
CN108229799B (en) Multi-source heterogeneous power grid operation real-time data access system and method
CN105824001B (en) Method and system for testing IEC61850 conformance of digital electric energy meter
CN101867501A (en) Method and system for automatically testing consistence of SNMP (Simple Network Management Protocol) interface information model
CN102750301A (en) Blueprint generating method for integrated avionic system model aiming at architecture analysis and design language (AADL) description
CN103208087A (en) Power distribution network data checking method based on international electrotechnical commission (IEC) 61968 standard
CN109274178B (en) Automatic analysis system and method for power dispatching preposed operation information
CN108595390B (en) Method for verifying parameter consistency of SCD and IED of intelligent substation
CN108764750A (en) Main distribution network model modeling and topology analyzing method and system
CN105447261A (en) Inspection tool used for virtual loop of intelligent substation
CN103633736B (en) From the on-line monitoring communication means of power transformation substation to main website
CN109374994A (en) A kind of detection system suitable for protective relaying device
CN106055684A (en) SCD file comparison method of transformer substation
CN115794624A (en) Closed-loop testing method and system for single automation device of intelligent substation
CN103647760A (en) Manufacturing message specification (MMS) communication platform of intelligent substation digital protection device and access method of manufacturing message specification (MMS) communication platform

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
ASS Succession or assignment of patent right

Owner name: STATE GRID CORPORATION OF CHINA HEBEI ELECTRIC POW

Effective date: 20121219

Owner name: HEBEI ELECTRIC POWER CORPORATION ELECTRIC POWER RE

Free format text: FORMER OWNER: HEBEI ELECTRIC POWER RESEARCH INSTITUTE

Effective date: 20121219

C41 Transfer of patent application or patent right or utility model
TA01 Transfer of patent application right

Effective date of registration: 20121219

Address after: 050021 No. 238 South Sports street, Yuhua Road, Hebei, Shijiazhuang

Applicant after: Electric Power Research Institute of Hebei Electric Power Corporation

Applicant after: State Grid Corporation of China

Applicant after: Hebei Electric Power Construction & Adjustment Research Institute

Address before: 050021 No. 238 South Sports street, Hebei, Shijiazhuang

Applicant before: Hebei Electric Power Research Institute

C53 Correction of patent for invention or patent application
CB03 Change of inventor or designer information

Inventor after: He Lei

Inventor after: Hao Xiaoguang

Inventor after: Li Tiecheng

Inventor after: Zhang Binghai

Inventor after: Fan Hui

Inventor before: Wang Xiaowei

Inventor before: Fan Hui

Inventor before: Wang Peng

Inventor before: Tang Lei

Inventor before: Yang Xiao

COR Change of bibliographic data

Free format text: CORRECT: INVENTOR; FROM: WANG XIAOWEI FAN HUI WANG PENG TANG LEI YANG XIAO TO: HE LEI HAO XIAOGUANGLI TIECHENG ZHANG BINGHAI FAN HUI

C14 Grant of patent or utility model
GR01 Patent grant