CN113065256B - Calibration method of ICD (interface control document) model of intelligent device of transformer substation based on rule file - Google Patents

Calibration method of ICD (interface control document) model of intelligent device of transformer substation based on rule file Download PDF

Info

Publication number
CN113065256B
CN113065256B CN202110376527.4A CN202110376527A CN113065256B CN 113065256 B CN113065256 B CN 113065256B CN 202110376527 A CN202110376527 A CN 202110376527A CN 113065256 B CN113065256 B CN 113065256B
Authority
CN
China
Prior art keywords
verification
node
intelligent device
model
icd
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
CN202110376527.4A
Other languages
Chinese (zh)
Other versions
CN113065256A (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.)
Dongfang Electronics Co Ltd
Original Assignee
Dongfang Electronics Co Ltd
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 Dongfang Electronics Co Ltd filed Critical Dongfang Electronics Co Ltd
Priority to CN202110376527.4A priority Critical patent/CN113065256B/en
Publication of CN113065256A publication Critical patent/CN113065256A/en
Application granted granted Critical
Publication of CN113065256B publication Critical patent/CN113065256B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F30/00Computer-aided design [CAD]
    • G06F30/20Design optimisation, verification or simulation

Landscapes

  • Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Hardware Design (AREA)
  • Evolutionary Computation (AREA)
  • Geometry (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Stored Programmes (AREA)

Abstract

The invention discloses a method for verifying an ICD (interface control document) model of an intelligent device of a transformer substation based on a rule file, which comprises the following steps: carrying out XML format validity check on the ICD model of the intelligent device by using an XML analysis library; using a schema rule file of IEC61850 to check the syntax and the semantics of the ICD model of the intelligent device; selecting an existing or newly defined intelligent device ICD model normative verification rule file, analyzing the verification rule file to form a verification rule data structure, and performing model normative verification on the intelligent device ICD model by using the verification rule data structure; and outputting a checking result. According to the invention, on the premise of not changing the application program, new verification requirements are met by newly adding or revising the rule file, the repeated development workload of the verification tool is reduced to the maximum extent, and the same verification tool is ensured to continuously adapt to the verification requirements of ICD model verification of various intelligent devices, which are changed constantly.

Description

Calibration method of ICD (interface control document) model of intelligent device of transformer substation based on rule file
Technical Field
The invention relates to a method in the field of power systems, in particular to a method for verifying an ICD (interface control document) model of an intelligent device of a transformer substation based on a rule file.
Background
The communication foundation of the intelligent substation is an IEC61850 model system, the intelligent device operating in the substation needs to abstract the capability description of the intelligent device into an ICD model to be provided for a design institute or an intelligent substation debugging unit when wanting to access the in-substation network, the ICD model is generated by the intelligent device according to the actual design configuration of the substation site, and then the SCD model or the derivative model (CID, CCD and the like) thereof is transmitted to the intelligent device to complete the engineering configuration of the intelligent device. Obviously, the standard and the standardization of the ICD model of the intelligent device are guaranteed to be the premise of promoting IEC61850 protocol interconnection and intercommunication, however, in the intelligent substation configuration debugging and intelligent device detection process at the present stage, as intelligent device manufacturers are numerous and the technical levels are different, the standardization difference of the generated ICD model is large, and the problem is undoubtedly solved for an intelligent station debugging unit and an intelligent device detection mechanism.
Further, with the development of the domestic intelligent station technology being changed, the ICD model standard of the original intelligent device is developed to be new. Meanwhile, the IEC61850 technology and application are already expanded to the industries of new energy, petrochemical industry and the like, a plurality of new types of intelligent devices are produced, a large number of new ICD model standards are continuously emerged, and frequent upgrading and replacement of the original solidified ICD model checking mode and checking tool are necessarily brought. The problem of how to continuously ensure the standard consistency of various ICD models with minimum cost is a great problem in the front of device manufacturers, intelligent station debugging units and device detection mechanisms.
Patent CN201510266224.1 discloses a consistency check method for intelligent substation ICD models, and mainly provides a consistency check method for intelligent substation ICD models, which is used for comparing conflict and redundancy among a plurality of ICD files and is characterized in that differences or change contents among the ICD models are determined. The ICD file has a wide checking rule, so that each intelligent device manufacturer is allowed to add data set members, instantiated nodes, user-defined nodes and other contents under the permission of IEC61850 rules, one ICD model is used as a reference template to verify the other ICD model, the accuracy of the ICD model is greatly reduced, and the problem that the model checking requirement continuously changes due to the fact that the ICD file is complex in structure and not easy to expand is solved.
Disclosure of Invention
The invention provides a method for verifying an ICD (interface control document) model of an intelligent device of a transformer substation based on a rule file, which aims to: the defects of the prior art are overcome, and the continuously changing checking requirement of the ICD model checking of the multi-type intelligent device of the transformer substation is met.
The technical scheme of the invention is as follows:
a method for verifying an ICD (interface control document) model of an intelligent device of a transformer substation based on a rule file comprises the following steps:
s1: XML format validity check is carried out on the ICD model of the intelligent device by using an XML analysis library;
s2: using a schema rule file of IEC61850 to check the syntax and the semantics of the ICD model of the intelligent device;
s3: selecting an existing or newly defined intelligent device ICD model normative verification rule file, analyzing the intelligent device ICD model normative verification rule file to form a verification rule data structure, and performing model normative verification on the intelligent device ICD model by using the verification rule data structure;
s4: and outputting a checking result.
Further, the contents of the intelligent device ICD model normative verification rule file in step S3 include a root node definition, a child node definition, a node index, a node group definition, a node group index, a node nesting relationship definition, a node group nesting relationship definition, a node mandatory definition, an attribute mandatory definition, and an attribute value consistency definition; the root node definition and the child node definition both contain specific unique key values, the node index completes the reference by matching the key values through the keyref attribute, and the node index supports the realization of node nesting relationship definition by defining new child nodes.
Further, the step S3 of analyzing the ICD model normative verification rule file to form the verification rule data structure includes: firstly, searching a root node in a rule file as a starting point, then searching an index of the root node, loading a child node, a child node group, a child node nesting relation and a node mandatory rule defined under the index as a check rule data structure of the node, processing each newly defined child node and child node group by using a recursion mode, adding a check rule data structure corresponding to the child node and child node group, generating a full-node check rule data structure matched with an ICD tree structure by analogy, and finally searching check contents comprising an attribute mandatory definition and an attribute value consistency definition in the rule file to generate a specific supplementary check rule data structure.
Further, the step S3 of performing model normalization verification on the ICD model by using the verification rule data structure specifically includes: and analyzing the ICD model, finding out a root node of the ICD model, carrying out normative verification on the root node and a rule corresponding to the root node in the verification rule data structure, verifying whether the node nesting relationship and the node essential attribute are correct, then carrying out recursive processing on the searched child nodes and child node groups, completing normative verification on all related nodes by analogy, finally traversing all nodes of the model again aiming at the supplementary verification rule data structure, and verifying matched nodes meeting the characteristics according to the corresponding rules.
Further, the step S1 specifically includes verifying whether the ICD model of the intelligent device conforms to the XML grammar rule using a standard XML parsing library, and verifying whether all XML elements are related to closed tags, whether XML is correctly nested, and whether the XML document has a root element.
Further, step S2 specifically includes, using a schema rule file defined in the IEC61850 standard, verifying, by using a standard schema check library, whether the general syntax of the ICD model of the intelligent device is consistent with the requirements of the schema rule, and whether the general syntax and the semantic rule of the ICD model of the intelligent device are consistent with the requirements of the schema rule, including whether element naming is correct, whether a specific sub-element is missing, whether the ordering of multiple sub-elements is correct, whether sub-elements uniquely identifying the same exist under the same parent element, whether necessary attributes of the element are missing, and whether the attribute values of the element meet the requirements.
Further, in the process of performing model normative verification on the intelligent device ICD model by using the verification rule data structure in step S3, the items which do not pass the verification and the recursion levels, problem descriptions and problem level information where the items are located are written into the error information data structure.
Further, the step S4 of outputting the verification result includes: and sequencing the entries in the error information data structure according to a certain rule, and displaying the ordered entries on a result display interface of a verification tool or generating a verification result report to finish the whole verification process.
Further, the ICD model file which is not passed through the verification in the step S1 or the step S2 is directly output verification error result information, and the verification process is ended.
Compared with the prior art, the invention has the following beneficial effects: on the premise of not changing the application program, new verification requirements are met by adding or revising the rule file, repeated development workload of the verification tool is reduced to the maximum extent, and the same verification tool is ensured to continuously adapt to the verification requirements of ICD models of various intelligent devices, which are constantly changed.
Drawings
FIG. 1 is an overall flow diagram of the present invention;
fig. 2 is a schematic diagram of a verification rule file, a verification rule data structure and a verification process.
Detailed Description
The technical scheme of the invention is explained in detail in the following with the accompanying drawings:
as shown in fig. 1, a method for verifying an ICD model of a substation intelligent device based on a rule file includes the following steps:
s1: selecting an ICD model to be verified, verifying whether the ICD model of the intelligent device conforms to XML grammar rules by using a standard XML analysis library (class), and ensuring that all XML elements need to be related to closed tags, XML must be correctly nested, and an XML document must have root elements and the like. And for the ICD model file which does not conform to the XML format, the subsequent steps are skipped, error result information is directly given, and the verification process is ended.
S2: for the ICD model verified in the step S1, using a schema rule file defined in the IEC61850 standard, verifying, by using a standard schema verification library (class), whether the general syntax and the semantic rule of the ICD model of the intelligent device are consistent with the requirements of the schema rule, including whether element naming is correct, whether a specific sub-element is missing, whether the ordering of multiple sub-elements is correct, whether sub-elements with the same unique identifier exist under the same parent element, whether necessary attributes of the elements are missing, whether the attribute values of the elements meet the requirements, and the like. The step verifies the IEC61850 universal rule requirements of all types of ICD models, skips the subsequent steps for the non-compliant ICD model files, directly provides error result information and ends the verification process.
S3: and for the ICD model verified in the steps S1 and S2, verifying a specific rule according to the type of the intelligent device, and selecting an existing rule file or generating a corresponding rule file in a manual mode, a rule definition tool mode and the like according to the standard related to the ICD model of the intelligent device to be verified. As shown in fig. 2, the rule file content includes a Root node definition, a child node definition, a node index, a node group (a collection of several nodes satisfying a certain condition) definition, a node group index, a node nesting relationship definition, a node group nesting relationship definition, a node mandatory definition, an attribute value consistency definition, and the like, where the Root node definition is assigned with a specific unique Key value (e.g. Root _ Key), the node definition represents that the node is mandatory or optional with a use attribute value as required or optional, and assigns a unique Key value to the node, the node index completes the reference by matching the Key value with the keyref attribute, the definition of the nesting relation is completed by allowing a new sub-node or node group of Xu Dingyi in the node index, the sub-node characteristic which allows Xu Dingyi ambiguity in the sub-node group index (for example, a StaGGIO sub-node group must contain a DOI node starting with a name Ind and must contain a DAI sub-node with a name d and a text value RemOpBiEn), the necessary attribute of a specific name element (for example, LN must have a desc attribute) is allowed to be defined in the rule file, and the rules of consistency of a plurality of node specific attribute values (for example, the desc attribute of the DOI must be consistent with the dU) are also allowed.
The checking tool loads and analyzes a corresponding rule file according to the type of an ICD model of the intelligent device to be checked, a checking rule data structure is generated in an internal memory, a specific Key value (such as Root _ Key) of a Root node in the rule file is firstly searched as a starting point, then an index of the Root node is searched and rules such as child nodes, child node groups, child node nesting relation, node obligatoriness and the like defined under the index are loaded as the checking rule data structure of the node, each newly defined child node and child node group are processed in a recursion mode in the same way, a checking rule data structure corresponding to the child node and the child node group are added, a full-node checking rule data structure matched with the ICD tree-shaped structure is generated in the same way, finally contents such as attribute obligatoriness definition, attribute value consistency definition and the like in the rule file are searched, and a specific supplementary checking rule data structure is generated.
The checking tool analyzes an ICD model, finds out a Root node (such as SCL) of the ICD model, carries out normative checking with a Root node rule (Key value is Root _ Key) in a checking rule data structure, verifies whether a node nesting relation, node essential attributes and the like of the ICD model are correct, then synchronously recurs in an ICD model tree-shaped node and a whole node checking data structure by taking the Root node rule as a starting point, writes each entry which does not pass the checking into an error information data structure together with information such as a recursion level, a problem description and a problem level (error, warning, prompt and the like) of the searched child node and child node group by using a recursion mode homologies (a recursion processing function allows the hierarchy description of the current node to be transmitted, and is convenient for positioning the position of error information), and finally supplements the checking rule data structures such as attribute essential definitions, attribute value consistency definitions and the like, traverses all nodes of the ICD model again, matches the nodes which accord with the characteristics, checks the nodes by using corresponding rules, and does not write the error information data structures by the entry homologies.
S4: the items in the error information data structure are sorted according to a certain rule (such as problem level) and then displayed in a result display interface of a checking tool or generated in a checking result report, and the items are used as a basis of a test conclusion and can also guide an intelligent device manufacturer to correct the problem, and finally the whole checking work is completed.
The system and method shown in this embodiment may be implemented in other ways, for example, using the same hierarchical structure as the ICD model to define a hierarchical structure of the check rule file instead of the definition in the rule file, and using other ways (e.g., a database) for storing the check rule instead of the rule file.
The method changes the original curing verification mode only suitable for a specific intelligent device ICD model of the intelligent substation into a design mode which strictly depends on verification tool program codes and is difficult to upgrade and expand, and changes the design mode into a flexible mode which does not depend on the verification tool program codes and can define a verification rule file according to requirements to realize new verification requirements, thereby better solving the problems of production, detection and debugging of the intelligent device caused by frequent change of the verification rules of the intelligent device ICD model in the transitional period of IEC61850 technology development and popularization, effectively improving the standardization degree of various device ICD models of intelligent device manufacturers, greatly accelerating the detection efficiency of the verification of the intelligent device detection mechanism ICD model, and simultaneously, the verification method and the design idea can also be applied to other detection fields based on XML format model files, and have good application prospects and engineering practical values.

Claims (6)

1. A method for verifying an ICD (interface control document) model of an intelligent device of a transformer substation based on a rule file is characterized by comprising the following steps of: the method comprises the following steps:
s1: XML format validity check is carried out on the ICD model of the intelligent device by using an XML analysis library;
s2: using a schema rule file of IEC61850 to check the syntax and the semantics of the ICD model of the intelligent device;
s3: selecting an existing or newly defined intelligent device ICD model normative verification rule file, analyzing the intelligent device ICD model normative verification rule file to form a verification rule data structure, and performing model normative verification on the intelligent device ICD model by using the verification rule data structure;
s4: outputting a checking result;
the contents of the intelligent device ICD model normative verification rule file in the step S3 comprise a root node definition, a child node definition, a node index, a node group definition, a node group index, a node nesting relation definition, a node group nesting relation definition, a node mandatory definition, an attribute mandatory definition and an attribute value consistency definition; the root node definition and the child node definition both contain specific unique key values, the node indexes are matched with the key values through key attributes to complete reference, and the node indexes support realization of node nesting relation definition through defining new child nodes;
the analysis process for analyzing the normative verification rule file of the ICD model of the intelligent device to form the verification rule data structure is as follows: firstly, searching a root node in a rule file as a starting point, then searching an index of the root node, loading a child node, a child node group, a child node nesting relation and a node mandatory rule defined under the index as a check rule data structure of the node, processing each newly defined child node and child node group in a recursive mode, adding a check rule data structure corresponding to the child node and child node group, generating a full-node check rule data structure matched with an ICD tree structure in the same way, and finally searching check contents including an attribute mandatory definition and an attribute value consistency definition in the rule file to generate a specific supplementary check rule data structure;
the using of the verification rule data structure to perform model normative verification on the ICD model of the intelligent device specifically comprises the following steps: and analyzing the ICD model, finding out a root node of the ICD model, carrying out normative verification on the root node and a rule corresponding to the root node in the verification rule data structure, verifying whether the node nesting relationship and the node essential attribute are correct, then carrying out recursive processing on the searched child nodes and child node groups, completing normative verification on all related nodes by analogy, finally traversing all nodes of the model again aiming at the supplementary verification rule data structure, and verifying matched nodes meeting the characteristics according to the corresponding rules.
2. The method for verifying the ICD model of the substation intelligent device based on the rule file according to claim 1, wherein: the step S1 specifically comprises the steps of verifying whether the ICD model of the intelligent device conforms to XML grammar rules by using a standard XML parsing library, and verifying whether all XML elements are related to closed tags, whether XML is correctly nested and whether an XML document has root elements.
3. The method for verifying the ICD model of the substation intelligent device based on the rule file according to claim 1, wherein: step S2 specifically includes using a schema rule file defined in the IEC61850 standard, and verifying, by using a standard schema check library, whether the general syntax of the ICD model of the intelligent device is consistent with the requirements of the schema rule or not, whether element naming is correct or not, whether a specific sub-element is missing or not, whether the ordering of a plurality of sub-elements is correct or not, whether sub-elements with the same unique identifier exist under the same parent element or not, whether necessary attributes of the element are missing or not, and whether the attribute values of the element meet the requirements or not, by using a schema rule file defined in the IEC61850 standard.
4. The method for verifying the ICD model of the substation intelligent device based on the rule file as claimed in claim 1, wherein: and S3, in the process of carrying out model normative verification on the intelligent device ICD model by using the verification rule data structure, writing the items which do not pass the verification, the recursion levels of the items, the problem description and the problem level information into an error information data structure.
5. The method for verifying the ICD model of the substation intelligent device based on the rule file as claimed in claim 4, wherein: step S4, outputting the verification result includes: and sequencing the entries in the error information data structure according to a certain rule, and displaying the ordered entries on a result display interface of a verification tool or generating a verification result report to finish the whole verification process.
6. The method for verifying the ICD model of the substation intelligent device based on the rule file according to any one of claims 1 to 5, wherein: and S1 or S2, checking the ICD model file which is not passed, directly outputting error checking result information, and ending the checking process.
CN202110376527.4A 2021-04-08 2021-04-08 Calibration method of ICD (interface control document) model of intelligent device of transformer substation based on rule file Active CN113065256B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110376527.4A CN113065256B (en) 2021-04-08 2021-04-08 Calibration method of ICD (interface control document) model of intelligent device of transformer substation based on rule file

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110376527.4A CN113065256B (en) 2021-04-08 2021-04-08 Calibration method of ICD (interface control document) model of intelligent device of transformer substation based on rule file

Publications (2)

Publication Number Publication Date
CN113065256A CN113065256A (en) 2021-07-02
CN113065256B true CN113065256B (en) 2022-10-18

Family

ID=76566115

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110376527.4A Active CN113065256B (en) 2021-04-08 2021-04-08 Calibration method of ICD (interface control document) model of intelligent device of transformer substation based on rule file

Country Status (1)

Country Link
CN (1) CN113065256B (en)

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104933224A (en) * 2015-05-25 2015-09-23 国家电网公司 Quick configurator of electronic equipment for intelligent substation

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102355062B (en) * 2011-10-17 2013-04-03 浙江省电力公司电力科学研究院 IEC (International Electrotechnical Commission) 61850 relay protection model checking method
CN105956410B (en) * 2016-07-01 2018-09-21 中国南方电网有限责任公司 A kind of Universal-purpose quick detection method of IEC61850 full models
CN108874985B (en) * 2018-06-12 2020-11-03 东方电子股份有限公司 Distributed analysis configuration method for SCD (substation configuration description) file of intelligent substation

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104933224A (en) * 2015-05-25 2015-09-23 国家电网公司 Quick configurator of electronic equipment for intelligent substation

Also Published As

Publication number Publication date
CN113065256A (en) 2021-07-02

Similar Documents

Publication Publication Date Title
CN109446221B (en) Interactive data exploration method based on semantic analysis
CN112784345A (en) Method, system, terminal and medium for checking consistency of graph model based on knowledge graph
US6530072B1 (en) Rule based hierarchy generation in a circuit design verification system
CN105956410B (en) A kind of Universal-purpose quick detection method of IEC61850 full models
Waltersdorfer et al. Version management and conflict detection across heterogeneous engineering data models
CN102880468A (en) Code intelligent prompting method and system for electronic control unit (ECU) program development
CN110502227A (en) The method and device of code completion, storage medium, electronic equipment
CN105335246A (en) Method for automatically repairing program crash defect based on question-answer website analysis
CN109165209B (en) Data verification method, device, equipment and medium for object types in database
CN111625964A (en) Method, system and equipment for constructing transformer substation graph model based on logical relationship
CN115357678A (en) GIS automatic examination method and system based on structured natural language rule
CN108959391B (en) Apparatus, system, method, and storage medium for presenting database cluster architecture diagram
CN111191331A (en) Transformer substation graph-model data quality verification device and method based on CIM and SVG
CN107256315A (en) A kind of pipe stress analyzes the intelligent Drawing method of zooming figure
CN113065256B (en) Calibration method of ICD (interface control document) model of intelligent device of transformer substation based on rule file
CN117112400A (en) Automatic test case generation platform
CN109271350B (en) Database and information point table automatic comparison and synchronization method based on telecontrol communication
CN111414440B (en) Method and system for verifying control system algorithm configuration diagram by utilizing data flow isomorphism
CN114115843A (en) Low code production method of index data and visualized data processing system thereof
CN114385649A (en) Automatic updating system and method for interlocking logic rule configuration file
CN107291435A (en) AADL models are blended together under a kind of Uncertain environments and quantify analysis method
CN116628275B (en) Method for realizing bidirectional conversion between graph database and standardized topology
CN111796998B (en) AML language performance verification system
CN111796805B (en) AML language performance verification method
CN115242612B (en) Fault diagnosis method and device

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant