SCD (Substation Configuration Description) file management and control method and device based on webpage side
By receiving SCD files on the web page, calculating cyclic redundant verification codes and using semantic extraction models to identify changes, the problem of low verification accuracy in SCD file management is solved, and automated management and control is realized, improving efficiency and accuracy.
Patent Information
- Application Number
- CN202510681629.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-05-26
- Publication Date
- 2025-09-02
AI Technical Summary
The existing technology is difficult to achieve fine-grained tracking changes in SCD file management, version synchronization and comparison are difficult, and verification accuracy is low. Especially in the multi-user collaborative management scenario, existing tools cannot deeply understand the semantic level of files.
By receiving SCD files on the web page, calculating cyclic redundancy check codes, using a preset semantic extraction model to extract semantic features, identify changes, and generate inconsistent information to achieve automated management and control.
It improves the accuracy and efficiency of SCD file verification, reduces labor costs, and ensures the safety and reliability of substation configuration.
Smart Images

Figure CN120579532A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of substations, and in particular to a web-based SCD file management method and device. Background Art
[0002] In the SCD (Substation Configuration Description file) file management process, traditional methods mainly rely on manual recording or simple file archiving mechanisms, which makes it difficult to achieve fine-grained tracking of the change process. Especially in multi-user collaborative management scenarios, synchronization and comparison between different versions are very difficult, affecting the reliability and maintenance efficiency of SCD files. Most SCD file management methods rely on a combination of manual and auxiliary tools. For semantic errors in the SCD file itself, the auxiliary tools used in the existing technology are based on pre-made static semantic detection, such as expert rule bases, schema syntax verification rules, etc. For file changes, the existing technology uses customized text content comparison, such as using regular expressions or XML node structure-based methods to compare key fields and identify changes in SCD files. Current comparison methods only focus on changes in surface content and cannot deeply understand the semantic level of the file, resulting in low accuracy in SCD file verification. Summary of the Invention
[0003] The present invention provides a web-based SCD file management method and device, which can solve the problems in the prior art of difficulty in automatically tracking SCD file changes and low SCD file verification accuracy.
[0004] In order to solve the above technical problems, the present invention provides a web-based SCD file management method, comprising:
[0005] Receive the substation SCD file on the web page;
[0006] Calculate the cyclic redundancy check code corresponding to each IED device in the substation SCD file respectively to form a current check code list; wherein the cyclic redundancy check code includes the IED characteristic cyclic redundancy check code and the virtual circuit cyclic redundancy check code;
[0007] Based on the pre-stored check code list and the current check code list, performing an IED characteristic cyclic redundancy check on each of the IED devices in turn;
[0008] IED devices whose IED characteristic cyclic redundancy check codes are inconsistent with the pre-stored check code list are determined as IED devices to be processed;
[0009] Performing a virtual circuit cyclic redundancy check on the IED device to be processed based on a pre-stored check code list and the current check code list;
[0010] When the cyclic redundancy check code of the virtual circuit of the IED to be processed is inconsistent with the pre-stored check code list, a preset semantic extraction model is used to extract the semantic features of the substation SCD file;
[0011] Based on the semantic features of the substation SCD file, the substation SCD file is compared with a historical substation SCD file to determine a change point in the substation SCD file;
[0012] Inconsistency information is generated based on the change point, and the inconsistency information is sent to a web page interface.
[0013] As a preferred solution, the cyclic redundancy check code corresponding to each IED device in the substation SCD file is calculated separately to form a current check code list, including:
[0014] Parsing the substation SCD file in blocks to form a plurality of IED device SCD files; wherein each IED device SCD file corresponds to an IED device;
[0015] Extracting key characteristics of the IED terminal from the SCD file of the IED device to form formal information data;
[0016] generating an IED characteristic cyclic redundancy check code according to a preset IED rule and the form information data;
[0017] Extracting virtual circuit data from the SCD file of the IED device;
[0018] Generate a virtual circuit cyclic redundancy check code according to a preset virtual circuit rule and the virtual circuit data;
[0019] forming a cyclic redundancy check code based on the IED characteristic cyclic redundancy check code and the virtual loop cyclic redundancy check code;
[0020] According to a preset sorting rule, the cyclic redundancy check codes corresponding to the IED devices are sorted to form a current check code list.
[0021] As a preferred solution, extracting the key characteristics of the IED terminal from the SCD file of the IED device to form formal information data includes:
[0022] Extracting static description information of each IED device from the IED device SCD file; wherein the static description information includes IED device name, IED Chinese description, IED configuration parameters, IED device status and IED device version;
[0023] Key characteristics of the IED terminal are extracted according to the static description information of each IED device, and formal information data is generated according to the key characteristics of the IED terminal.
[0024] As a preferred solution, extracting virtual circuit data from the SCD file of the IED device includes:
[0025] Extracting the signal transmission paths and logical connection relationships between the IED devices from the SCD file of the IED device to form key dynamic information;
[0026] Virtual loop data is formed according to the key dynamic information.
[0027] As a preferred solution, before performing the IED characteristic cyclic redundancy check on each of the IED devices in sequence based on the pre-stored check code list and the current check code list, the method further includes:
[0028] Get the pre-stored verification code list in the local database;
[0029] Calculate the current hash value of each pre-stored cyclic redundancy check code in the pre-stored check code list in real time;
[0030] Comparing the current hash value with a pre-stored hash value; wherein the pre-stored hash value is generated when the pre-stored cyclic redundancy check code is stored in a local database;
[0031] When the current hash value is the same as the pre-stored hash value, the pre-stored check code list is used to perform an IED characteristic cyclic redundancy check on each of the IED devices.
[0032] As a preferred solution, the method of extracting semantic features of the substation SCD file using a preset semantic extraction model includes:
[0033] Using a preset semantic extraction model, parsing several file information of the substation SCD file; wherein the file information includes virtual terminal information, circuit information and IED device information;
[0034] Vectorizing the information of each file to obtain a plurality of information vectors;
[0035] The semantic structure and semantic regularity of each of the information vectors are analyzed to form a plurality of semantic features.
[0036] As a preferred solution, comparing the substation SCD file with historical substation SCD files based on semantic features of the substation SCD file to determine the change points in the substation SCD file includes:
[0037] Obtaining a pre-stored substation SCD file from a pre-stored check code list; wherein the historical substation SCD file includes a plurality of pre-stored semantic features;
[0038] Calculating the similarity between the substation SCD file and the pre-stored substation SCD file based on the semantic features of the substation SCD file and the pre-stored semantic features;
[0039] Obtaining abnormal semantic features inconsistent with the pre-stored substation SCD file by analyzing the similarity;
[0040] A change point in the substation SCD file is determined based on the abnormal semantic feature.
[0041] As a preferred solution, after determining the change point in the substation SCD file based on the abnormal semantic feature, the method further includes:
[0042] Comparing the change points with the preset important configuration table;
[0043] If the change point is retrieved in the preset important configuration table, an early warning signal is generated.
[0044] As a preferred solution, the training process of the preset semantic extraction model includes:
[0045] Obtain several historical substation SCD files from the local database on the web page;
[0046] Using a word segmentation tool to segment the historical substation SCD files respectively to form a number of semantic texts;
[0047] Using Word2Vec as the model framework, a semantic extraction model is constructed;
[0048] Using each of the semantic texts as training samples, performing unsupervised training on the semantic extraction model;
[0049] When the preset model conditions are met, it is determined that the semantic extraction model has completed model training to form a preset semantic extraction model.
[0050] Accordingly, the present invention provides a web-based SCD file management and control device, comprising: a file receiving module, a check code calculation module, a first verification module, a device under test determination module, a second verification module, a semantic extraction module, a change point determination module, and an information transmission module;
[0051] The file receiving module is used to receive the substation SCD file on the web page;
[0052] The check code calculation module is used to calculate the cyclic redundancy check code corresponding to each IED device in the substation SCD file respectively to form a current check code list; wherein the cyclic redundancy check code includes the IED characteristic cyclic redundancy check code and the virtual circuit cyclic redundancy check code;
[0053] The first verification module is used to perform an IED characteristic cyclic redundancy check on each of the IED devices in sequence based on a pre-stored verification code list and the current verification code list;
[0054] The device to be tested determining module is used to determine an IED device whose IED characteristic cyclic redundancy check code is inconsistent with the pre-stored check code list as an IED device to be processed;
[0055] The second verification module is used to perform a virtual circuit cyclic redundancy check on the IED device to be processed based on the pre-stored verification code list and the current verification code list;
[0056] The semantic extraction module is used to extract the semantic features of the substation SCD file using a preset semantic extraction model when the virtual circuit cyclic redundancy check code of the IED to be processed is inconsistent with the pre-stored check code list;
[0057] The change point determination module is used to compare the substation SCD file with the historical substation SCD file based on the semantic features of the substation SCD file to determine the change points in the substation SCD file;
[0058] The information transmission module is used to generate inconsistency information based on the change point and send the inconsistency information to the web page interface.
[0059] Compared with the prior art, the embodiments of the present invention have the following beneficial effects:
[0060] The present invention provides a web-based SCD file management method. When a substation SCD file is received on the web page, the cyclic redundancy check code corresponding to each IED device in the substation SCD file is automatically calculated to form a current check code list; a pre-stored check code list is obtained to perform an IED characteristic cyclic redundancy check and a virtual circuit cyclic redundancy check on each IED device; when a cyclic redundancy check code inconsistent with the pre-stored check code list is identified in the substation SCD file, a preset semantic extraction model is used to extract the semantic features of the substation SCD file, thereby identifying the change point in the substation SCD file, generating inconsistency information, and sending the inconsistency information to the web page interface to achieve automatic management of the substation SCD file. When the present invention receives the substation SCD file, the cyclic redundancy check code is automatically calculated and a cyclic redundancy check is performed based on the cyclic redundancy check code, saving labor costs and improving the verification efficiency of the SCD file; using semantic extraction to identify inconsistent information in the substation SCD file can effectively improve the accuracy of SCD file verification. BRIEF DESCRIPTION OF THE DRAWINGS
[0061] In order to more clearly illustrate the technical solution of the present application, the following is a brief introduction to the drawings required for use in the implementation. Obviously, the drawings described below are only some implementation methods of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without any creative work.
[0062] Figure 1 A flowchart of an embodiment of the web-based SCD file management method provided by the present invention;
[0063] Figure 2 A flowchart of another embodiment of the web-based SCD file management method provided by the present invention;
[0064] Figure 3 A schematic diagram of a flow chart of an embodiment of a cyclic redundancy check method provided by the present invention;
[0065] Figure 4 A schematic diagram of the structure of an embodiment of the web-based SCD file management and control device provided by the present invention. DETAILED DESCRIPTION
[0066] To make the objectives, technical solutions, and advantages of this application more clear, the technical solutions in this application will be clearly and completely described below in conjunction with the accompanying drawings in the embodiments of this application. Obviously, the described embodiments are only part of the embodiments of this application, not all of them. Based on the embodiments in this application, all other embodiments obtained by ordinary technicians in this field without making any creative efforts are within the scope of protection of this application.
[0067] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as commonly understood by those skilled in the art to which this application belongs; the terms used herein are only for the purpose of describing specific embodiments and are not intended to limit this application; the terms "including" and "having" and any variations thereof in the specification and claims of this application and the above-mentioned figure descriptions are intended to cover non-exclusive inclusions.
[0068] In the description of the embodiments of this application, the technical terms "first" and "second" are used only to distinguish different objects and should not be understood to indicate or imply relative importance or implicitly specify the quantity, specific order, or primary and secondary relationship of the indicated technical features. In the description of the embodiments of this application, the meaning of "plurality" is more than two, unless otherwise clearly and specifically defined.
[0069] References herein to "embodiments" mean that a particular feature, structure, or characteristic described in connection with the embodiments may be included in at least one embodiment of the present application. The appearance of this phrase in various places in the specification does not necessarily refer to the same embodiment, nor does it constitute an independent or alternative embodiment that is mutually exclusive of other embodiments. It is understood, both explicitly and implicitly, by those skilled in the art that the embodiments described herein may be combined with other embodiments.
[0070] In the description of the embodiments of this application, the term "and / or" is simply a description of the association relationship between associated objects, indicating that three relationships can exist. For example, A and / or B can represent the following three situations: A exists alone, A and B exist simultaneously, and B exists alone. In addition, the character " / " in this document generally indicates that the associated objects are in an "or" relationship.
[0071] In the description of the embodiments of the present application, the term "multiple" refers to more than two (including two). Similarly, "multiple groups" refers to more than two groups (including two groups), and "multiple pieces" refers to more than two pieces (including two pieces).
[0072] In the description of the embodiments of the present application, unless otherwise expressly specified or limited, technical terms such as "installed," "connected," "connected," and "fixed" should be understood in a broad sense. For example, they can refer to fixed connections, detachable connections, or integration; mechanical connections or electrical connections; direct connections or indirect connections through an intermediate medium; internal connections between two components or interactions between two components. Those skilled in the art can understand the specific meanings of the above terms in the embodiments of the present application based on specific circumstances.
[0073] Example 1
[0074] See also Figure 1To solve the problem of difficulty in automatically tracking SCD file changes and low SCD file verification accuracy in the prior art, an embodiment of the present invention provides a web-based SCD file management method, which includes steps 101 to 108. The specific steps are as follows:
[0075] Step 101: Receive the substation SCD file on the web page.
[0076] In an embodiment of the present invention, the substation SCD file is a key file used to describe system configuration information within the substation automation system. Users can upload the substation SCD file to the webpage via a browser. After receiving the uploaded substation SCD file, the webpage monitors the file and automatically records file changes, improving the sophistication of file version management. The substation SCD file contains information about multiple Intelligent Electronic Devices (IEDs).
[0077] Step 102: Calculate the cyclic redundancy check code corresponding to each IED device in the substation SCD file respectively to form a current check code list; wherein the cyclic redundancy check code includes the IED characteristic cyclic redundancy check code and the virtual circuit cyclic redundancy check code.
[0078] As a preferred solution of this embodiment, the cyclic redundancy check code corresponding to each IED device in the substation SCD file is calculated respectively to form a current check code list, including:
[0079] Parsing the substation SCD file in blocks to form a plurality of IED device SCD files; wherein each IED device SCD file corresponds to an IED device;
[0080] Extracting key characteristics of the IED terminal from the SCD file of the IED device to form formal information data;
[0081] generating an IED characteristic cyclic redundancy check code according to a preset IED rule and the form information data;
[0082] Extracting virtual circuit data from the SCD file of the IED device;
[0083] Generate a virtual circuit cyclic redundancy check code according to a preset virtual circuit rule and the virtual circuit data;
[0084] forming a cyclic redundancy check code based on the IED characteristic cyclic redundancy check code and the virtual loop cyclic redundancy check code;
[0085] According to a preset sorting rule, the cyclic redundancy check codes corresponding to the IED devices are sorted to form a current check code list.
[0086] In an embodiment of the present invention, a plurality of IED devices are recorded in the substation SCD file. When the substation SCD file is received on the web page, a cyclic redundancy check code of each IED device is generated in real time. The substation SCD file is verified based on the real-time generated cyclic redundancy check code, thereby improving the accuracy of the verification.
[0087] In an embodiment of the present invention, a substation SCD file contains information corresponding to multiple IED devices. For each IED, a cyclic redundancy check code (CRC) is calculated by separately calculating the IED characteristic CRC and the virtual circuit CRC. The substation SCD file is first parsed into blocks to generate multiple IED device SCD files. Each IED device SCD file corresponds to a specific IED device and contains the IED device's formal information data and virtual circuit data. A CRC is generated based on the information in the IED device SCD file. Generating the IED characteristic CRC requires first obtaining the IED terminal's key characteristics, thereby generating the IED device's formal information data based on the IED terminal's key characteristics. The IED characteristic CRC is generated based on preset IED rules and the formal information data. The preset IED rules are stored in a local database on the webpage, and each IED characteristic CRC in the pre-stored check code list is also generated based on the preset IED rules. The virtual circuit CRC requires first obtaining the IED device's virtual circuit data. The virtual circuit CRC is generated based on the preset virtual circuit rules and the virtual circuit data. The preset virtual circuit rules are stored in a local database on the web page. The cyclic redundancy check codes for each virtual circuit in the pre-stored check code list are also generated based on the preset virtual circuit rules. The cyclic redundancy check codes of the IED characteristics and the virtual circuit cyclic redundancy check codes generated in real time are combined to form the cyclic redundancy check codes of each IED device.
[0088] As a preferred solution of this embodiment, key characteristics of the IED terminal are extracted from the SCD file of the IED device to form formal information data, including:
[0089] Extracting static description information of each IED device from the IED device SCD file; wherein the static description information includes IED device name, IED Chinese description, IED configuration parameters, IED device status and IED device version;
[0090] Key characteristics of the IED terminal are extracted according to the static description information of each IED device, and formal information data is generated according to the key characteristics of the IED terminal.
[0091] In an embodiment of the present invention, key IED terminal characteristics are generated based on static description information of the IED device. This static description information includes the IED device name, IED Chinese description, IED configuration parameters, IED device status, and IED device version. This static description information can represent the IED device status, version, or other identification information. Based on this static description information, key IED terminal characteristics of the IED device can be extracted, thereby generating formal information data to facilitate the generation of an IED characteristic cyclic redundancy check code.
[0092] As a preferred solution of this embodiment, extracting virtual circuit data from the SCD file of the IED device includes:
[0093] Extracting the signal transmission paths and logical connection relationships between the IED devices from the SCD file of the IED device to form key dynamic information;
[0094] Virtual loop data is formed according to the key dynamic information.
[0095] In an embodiment of the present invention, virtual circuit data is generated based on key dynamic information from IEDs. This key dynamic information includes signal transmission paths and logical connections between different IEDs within a substation. For example, it identifies which devices exchange data via the GOOSE or SV mechanisms, as well as the specific signal content of these interactions. This key dynamic information can be used to generate virtual circuit data, facilitating the generation of cyclic redundancy check codes for the virtual circuits.
[0096] In an embodiment of the present invention, after generating cyclic redundancy check codes for each IED device, the cyclic redundancy check codes are sorted according to a preset sorting rule to form a current check code list. The preset sorting rule is stored in a local database on the webpage, and the preset sorting rule corresponds to the order of the IED devices in the pre-stored check code list.
[0097] Step 103: Based on the pre-stored check code list and the current check code list, perform an IED characteristic cyclic redundancy check on each of the IED devices in sequence.
[0098] As a preferred solution of this embodiment, before performing the IED characteristic cyclic redundancy check on each of the IED devices in sequence based on the pre-stored check code list and the current check code list, the method further includes:
[0099] Get the pre-stored verification code list in the local database;
[0100] Calculate the current hash value of each pre-stored cyclic redundancy check code in the pre-stored check code list in real time;
[0101] Comparing the current hash value with a pre-stored hash value; wherein the pre-stored hash value is generated when the pre-stored cyclic redundancy check code is stored in a local database;
[0102] When the current hash value is the same as the pre-stored hash value, the pre-stored check code list is used to perform an IED characteristic cyclic redundancy check on each of the IED devices.
[0103] In this embodiment of the present invention, after generating the current check code list, a pre-stored check code list is retrieved from a local database on the web page. By comparing the pre-stored check code list with the current check code list, a cyclic redundancy check (CRC) can be performed on the IED device. The CRC is divided into two parts: the IED characteristic CRC and the virtual circuit CRC.
[0104] In an embodiment of the present invention, the pre-stored verification code list is obtained from a local database on the web page. Before the pre-stored verification code list is used to verify the substation SCD file, the authenticity of the pre-stored verification code list is first verified.
[0105] In an embodiment of the present invention, when a pre-stored check code list is stored in a local database, digital signature technology is used to calculate the hash value of the cyclic redundancy check code for each IED device in the pre-stored check code list using the CRC-32 algorithm. The hash value and the cyclic redundancy check code are then stored together in the local database. When the pre-stored check code list needs to be used for cyclic redundancy check, the hash value of each cyclic redundancy check code in the pre-stored check code list is calculated in real time, and the current hash value calculated in real time is compared with the pre-stored hash value stored in the local database. If the current hash value matches the pre-stored hash value, it indicates that the data in the pre-stored check code list has not been tampered with during the data transmission process, and the pre-stored check code list can then be used for cyclic redundancy check.
[0106] In an embodiment of the present invention, when performing verification based on a pre-stored verification code list and a current verification code list, the IED characteristic cyclic redundancy check code of each IED device is first verified. The IED characteristic cyclic redundancy check is then performed on each IED device sequentially according to the order of the lists. If the IED characteristic cyclic redundancy check code of the first IED device in the current verification code list is the same as the IED characteristic cyclic redundancy check code corresponding to the pre-stored verification code list, it indicates that the current IED device and the IED device corresponding to the pre-stored verification code list are the same IED terminal, and verification of the IED device is determined to have passed. At this point, the IED characteristic cyclic redundancy check code of the next IED device in the order is then verified.
[0107] Step 104: IED devices whose IED characteristic cyclic redundancy check codes are inconsistent with the pre-stored check code list are determined as IED devices to be processed.
[0108] In an embodiment of the present invention, when performing an IED characteristic cyclic redundancy check, if it is detected that the IED characteristic cyclic redundancy check code of an IED device is inconsistent with the IED characteristic cyclic redundancy check code corresponding to the pre-stored check code list, it means that the current IED device and the IED device corresponding to the pre-stored check code list are not the same IED terminal. At this time, the IED device is determined as an IED device to be processed, so that the next step of verification can be performed on the IED device to be processed.
[0109] Step 105: performing a virtual circuit cyclic redundancy check on the IED device to be processed based on the pre-stored check code list and the current check code list.
[0110] In an embodiment of the present invention, when an IED device to be processed is detected whose IED characteristic cyclic redundancy check code is inconsistent with a pre-stored check code list, the virtual loop cyclic redundancy check code of the IED device to be processed is obtained, and the virtual loop cyclic redundancy check code of the corresponding IED device is retrieved from the pre-stored check code list, and the two virtual loop cyclic redundancy check codes are compared to further check whether the IED device has changed.
[0111] Step 106: When the cyclic redundancy check code of the virtual circuit of the IED to be processed is inconsistent with the pre-stored check code list, a preset semantic extraction model is used to extract semantic features of the substation SCD file.
[0112] In an embodiment of the present invention, when performing a virtual loop cyclic redundancy check (CRC) on a target IED, if the CRC code of the virtual loop is detected to be inconsistent with the CRC code corresponding to a pre-stored CRC code list, this indicates that the IED has changed. This inconsistency can be located by extracting semantic features from the substation SCD file. By performing a CRC on the substation SCD file, the present invention can quickly identify file changes, effectively reducing computational complexity compared to full file scanning.
[0113] As a preferred solution of this embodiment, a preset semantic extraction model is used to extract the semantic features of the substation SCD file, including:
[0114] Using a preset semantic extraction model, parsing several file information of the substation SCD file; wherein the file information includes virtual terminal information, circuit information and IED device information;
[0115] Vectorizing the information of each file to obtain a plurality of information vectors;
[0116] The semantic structure and semantic regularity of each of the information vectors are analyzed to form a plurality of semantic features.
[0117] In practical applications, existing technologies often use static grammar rules or expert rules for comparison, lacking an understanding of the semantics of SCD files. If the device name description of an IED changes while its function remains unchanged, existing technologies often fail to accurately identify these synonymous substitutions, resulting in false positives.
[0118] In an embodiment of the present invention, a preset semantic extraction model can be used to extract the semantic features of the substation SCD file and perform text semantic analysis, so that the comparison algorithm can understand the logical description of the IED device, and solve the problems that cannot be met by static semantic comparison methods, such as users modifying Chinese descriptions and adjusting context order, thereby improving the comparison accuracy and reducing false positives and missed reports.
[0119] In an embodiment of the present invention, a preset semantic extraction model is used to extract the semantic features of the substation SCD file. First, a word segmentation tool is used to parse multiple file information of the substation SCD file, and these file information are mapped into a high-dimensional vector space to capture their semantic information and obtain information vectors. By analyzing the semantic structure and semantic rules of each information vector, semantic features can be formed.
[0120] As a preferred solution of this embodiment, the training process of the preset semantic extraction model includes:
[0121] Obtain several historical substation SCD files from the local database on the web page;
[0122] Using a word segmentation tool to segment the historical substation SCD files respectively to form a number of semantic texts;
[0123] Using Word2Vec as the model framework, a semantic extraction model is constructed;
[0124] Using each of the semantic texts as training samples, performing unsupervised training on the semantic extraction model;
[0125] When the preset model conditions are met, it is determined that the semantic extraction model has completed model training to form a preset semantic extraction model.
[0126] In an embodiment of the present invention, the preset semantic extraction model can be trained using Word2Vec. First, the historical substation SCD file is obtained from the local database on the web page. The historical substation SCD file includes semantic texts such as virtual circuits, communication parameters, and IED terminal attributes. These semantic texts are used as training samples to perform unsupervised learning on Word2Vec, so that the content with similar semantics remains relatively close in the vector space. During model training, a Huffman tree is constructed using a hierarchical Softmax structure based on the set SCD label hierarchy structure, which can reduce the amount of calculation and improve the comparison efficiency. When the preset model conditions are met, the model training is stopped to form a preset semantic extraction model. Among them, the preset model conditions may include loss function convergence, relevant evaluation indicators, and reaching a preset number of iterations.
[0127] Step 107: Based on the semantic features of the substation SCD file, the substation SCD file is compared with historical substation SCD files to determine the change points in the substation SCD file.
[0128] As a preferred solution of this embodiment, based on the semantic features of the substation SCD file, the substation SCD file is compared with a historical substation SCD file to determine the change points in the substation SCD file, including:
[0129] Obtaining a pre-stored substation SCD file in a local database; wherein the historical substation SCD file includes a plurality of pre-stored semantic features;
[0130] Calculating the similarity between the substation SCD file and the pre-stored substation SCD file based on the semantic features of the substation SCD file and the pre-stored semantic features;
[0131] Obtaining abnormal semantic features inconsistent with the pre-stored substation SCD file by analyzing the similarity;
[0132] A change point in the substation SCD file is determined based on the abnormal semantic feature.
[0133] In an embodiment of the present invention, after extracting the semantic features of the substation SCD file using a preset semantic extraction model, the pre-stored substation SCD file is obtained in the pre-stored check code list. By comparing the semantic features of the substation SCD file with the pre-stored semantic features in the pre-stored substation SCD file, the cosine similarity calculation method is used to identify abnormal semantic features in the substation SCD file that are inconsistent with the pre-stored substation SCD file, thereby locating the position of the abnormal semantic features in the substation SCD file, determining the change points in the substation SCD file, and identifying changes in the content of the substation SCD file.
[0134] As a preferred solution of this embodiment, after determining the change point in the substation SCD file based on the abnormal semantic feature, the method further includes:
[0135] Comparing the change points with the preset important configuration table;
[0136] If the change point is retrieved in the preset important configuration table, an early warning signal is generated.
[0137] In an embodiment of the present invention, when a change point is detected in the substation SCD file, it is determined whether the change point is a critical configuration based on the preset important configuration table. If the change point is a critical configuration, an alarm is automatically triggered to ensure the security of the substation configuration.
[0138] Step 108: Generate inconsistency information based on the change point, and send the inconsistency information to the web page interface.
[0139] In this embodiment of the present invention, when a change point is detected in the substation SCD file, an inconsistency message is generated based on the change point. This inconsistency message is sent to a web interface, where users can view the inconsistency information, review the changes, and quickly roll back to previous versions, ensuring the correctness of the system configuration and the security of the substation configuration.
[0140] See also Figure 2, is a flow chart of another embodiment of the web-based SCD file management method provided by the present invention. The web page imports the substation SCD file entered by the user, extracts features from the imported substation SCD file to generate a cyclic redundancy check code, and loads a deep learning model. This deep learning model is used to subsequently extract semantic features from the substation SCD file. The substation SCD file is verified based on the cyclic redundancy check code. If the verification is normal, the web page's local database is queried to determine whether the substation SCD file is imported for the first time in the project. If so, it is stored in the local database; if not, the updated version and time of the substation SCD file are recorded. If the substation SCD file verification detects an anomaly, the loaded deep learning model is used to extract semantic features and identify the change points in the substation SCD file. The virtual terminal circuit information corresponding to the change points is extracted to generate inconsistency information. The inconsistency information is then pushed to the web page interface, allowing the user to modify the substation SCD file. Before pushing the inconsistency information, it is necessary to verify whether the message push link of the web page network is unobstructed. If it is detected to be unobstructed, the inconsistency information is pushed. The push test can verify whether the message push link of the web page network is unobstructed. For example, a test message can be sent to the web page via a web socket or HTTP API. Upon receiving the test message, the server returns an ACK frame. If the message is not delivered, the failure reason (e.g., network anomaly, server unavailability, etc.) is recorded. If the push is successful, the web page network's message push link is determined to be unobstructed. The generated inconsistency information can be encapsulated as JSON and pushed to the web page interface via the web interface.
[0141] See also Figure 3 , is a flow chart of an embodiment of the cyclic redundancy check method provided by the present invention. A cyclic redundancy check is performed on the substation SCD file. First, the cyclic redundancy check code of each IED device in the imported substation SCD file is calculated to generate an IED set list. The cyclic redundancy check code of each IED device stored locally is then traversed to form a local IED set list. The cyclic redundancy check code of the first IED device is extracted from each of the two IED set lists. The two cyclic redundancy check codes are compared. If they are consistent, the cyclic redundancy check code of the second IED device is extracted from each of the two IED set lists and the comparison is continued. If they are inconsistent, subsequent semantic feature extraction is performed to generate inconsistency information.
[0142] The implementation of the above embodiment has the following effects:
[0143] The present invention provides a web-based SCD file management method. When a substation SCD file is received on the web page, the cyclic redundancy check code corresponding to each IED device in the substation SCD file is automatically calculated to form a current check code list; a pre-stored check code list is obtained to perform an IED characteristic cyclic redundancy check and a virtual circuit cyclic redundancy check on each IED device; when a cyclic redundancy check code inconsistent with the pre-stored check code list is identified in the substation SCD file, a preset semantic extraction model is used to extract the semantic features of the substation SCD file, thereby identifying the change point in the substation SCD file, generating inconsistency information, and sending the inconsistency information to the web page interface to achieve automatic management of the substation SCD file. When the present invention receives the substation SCD file, the cyclic redundancy check code is automatically calculated and a cyclic redundancy check is performed based on the cyclic redundancy check code, saving labor costs and improving the verification efficiency of the SCD file; using semantic extraction to identify inconsistent information in the substation SCD file can effectively improve the accuracy of SCD file verification.
[0144] Example 2
[0145] See also Figure 4 , is a schematic structural diagram of an embodiment of a web-based SCD file management and control device provided by the present invention, the device comprising a file receiving module, a verification code calculation module, a first verification module, a device under test determination module, a second verification module, a semantic extraction module, a change point determination module, and an information transmission module;
[0146] The file receiving module is used to receive the substation SCD file on the web page;
[0147] The check code calculation module is used to calculate the cyclic redundancy check code corresponding to each IED device in the substation SCD file respectively to form a current check code list; wherein the cyclic redundancy check code includes the IED characteristic cyclic redundancy check code and the virtual circuit cyclic redundancy check code;
[0148] The first verification module is used to perform an IED characteristic cyclic redundancy check on each of the IED devices in sequence based on a pre-stored verification code list and the current verification code list;
[0149] The device to be tested determining module is used to determine an IED device whose IED characteristic cyclic redundancy check code is inconsistent with the pre-stored check code list as an IED device to be processed;
[0150] The second verification module is used to perform a virtual circuit cyclic redundancy check on the IED device to be processed based on the pre-stored verification code list and the current verification code list;
[0151] The semantic extraction module is used to extract the semantic features of the substation SCD file using a preset semantic extraction model when the virtual circuit cyclic redundancy check code of the IED to be processed is inconsistent with the pre-stored check code list;
[0152] The change point determination module is used to compare the substation SCD file with the historical substation SCD file based on the semantic features of the substation SCD file to determine the change points in the substation SCD file;
[0153] The information transmission module is used to generate inconsistency information based on the change point and send the inconsistency information to the web page interface.
[0154] As a preferred solution of this embodiment, the cyclic redundancy check code corresponding to each IED device in the substation SCD file is calculated respectively to form a current check code list, including:
[0155] Parsing the substation SCD file in blocks to form a plurality of IED device SCD files; wherein each IED device SCD file corresponds to an IED device;
[0156] Extracting key characteristics of the IED terminal from the SCD file of the IED device to form formal information data;
[0157] generating an IED characteristic cyclic redundancy check code according to a preset IED rule and the form information data;
[0158] Extracting virtual circuit data from the SCD file of the IED device;
[0159] Generate a virtual circuit cyclic redundancy check code according to a preset virtual circuit rule and the virtual circuit data;
[0160] forming a cyclic redundancy check code based on the IED characteristic cyclic redundancy check code and the virtual loop cyclic redundancy check code;
[0161] According to a preset sorting rule, the cyclic redundancy check codes corresponding to the IED devices are sorted to form a current check code list.
[0162] As a preferred solution of this embodiment, key characteristics of the IED terminal are extracted from the SCD file of the IED device to form formal information data, including:
[0163] Extracting static description information of each IED device from the IED device SCD file; wherein the static description information includes IED device name, IED Chinese description, IED configuration parameters, IED device status and IED device version;
[0164] Key characteristics of the IED terminal are extracted according to the static description information of each IED device, and formal information data is generated according to the key characteristics of the IED terminal.
[0165] As a preferred solution of this embodiment, extracting virtual circuit data from the SCD file of the IED device includes:
[0166] Extracting the signal transmission paths and logical connection relationships between the IED devices from the SCD file of the IED device to form key dynamic information;
[0167] Virtual loop data is formed according to the key dynamic information.
[0168] As a preferred solution of this embodiment, before performing the IED characteristic cyclic redundancy check on each of the IED devices in sequence based on the pre-stored check code list and the current check code list, the method further includes:
[0169] Get the pre-stored verification code list in the local database;
[0170] Calculate the current hash value of each pre-stored cyclic redundancy check code in the pre-stored check code list in real time;
[0171] Comparing the current hash value with a pre-stored hash value; wherein the pre-stored hash value is generated when the pre-stored cyclic redundancy check code is stored in a local database;
[0172] When the current hash value is the same as the pre-stored hash value, the pre-stored check code list is used to perform an IED characteristic cyclic redundancy check on each of the IED devices.
[0173] As a preferred solution of this embodiment, a preset semantic extraction model is used to extract the semantic features of the substation SCD file, including:
[0174] Using a preset semantic extraction model, parsing several file information of the substation SCD file; wherein the file information includes virtual terminal information, circuit information and IED device information;
[0175] Vectorizing the information of each file to obtain a plurality of information vectors;
[0176] The semantic structure and semantic regularity of each of the information vectors are analyzed to form a plurality of semantic features.
[0177] As a preferred solution of this embodiment, based on the semantic features of the substation SCD file, the substation SCD file is compared with a historical substation SCD file to determine the change points in the substation SCD file, including:
[0178] Obtaining a pre-stored substation SCD file from a pre-stored check code list; wherein the historical substation SCD file includes a plurality of pre-stored semantic features;
[0179] Calculating the similarity between the substation SCD file and the pre-stored substation SCD file based on the semantic features of the substation SCD file and the pre-stored semantic features;
[0180] Obtaining abnormal semantic features inconsistent with the pre-stored substation SCD file by analyzing the similarity;
[0181] A change point in the substation SCD file is determined based on the abnormal semantic feature.
[0182] As a preferred solution of this embodiment, after determining the change point in the substation SCD file based on the abnormal semantic feature, the method further includes:
[0183] Comparing the change points with the preset important configuration table;
[0184] If the change point is retrieved in the preset important configuration table, an early warning signal is generated.
[0185] As a preferred solution of this embodiment, the training process of the preset semantic extraction model includes:
[0186] Obtain several historical substation SCD files from the local database on the web page;
[0187] Using a word segmentation tool to segment the historical substation SCD files respectively to form a number of semantic texts;
[0188] Using Word2Vec as the model framework, a semantic extraction model is constructed;
[0189] Using each of the semantic texts as training samples, performing unsupervised training on the semantic extraction model;
[0190] When the preset model conditions are met, it is determined that the semantic extraction model has completed model training to form a preset semantic extraction model.
[0191] The implementation of the above embodiment has the following effects:
[0192] The present invention provides a web-based SCD file management and control device. When a substation SCD file is received on the web page, the device automatically calculates the cyclic redundancy check code corresponding to each IED device in the substation SCD file to form a current check code list; obtains a pre-stored check code list to perform an IED characteristic cyclic redundancy check and a virtual loop cyclic redundancy check on each IED device; when a cyclic redundancy check code inconsistent with the pre-stored check code list is identified in the substation SCD file, a preset semantic extraction model is used to extract the semantic features of the substation SCD file, thereby identifying the change point in the substation SCD file, generating inconsistency information, and sending the inconsistency information to the web page interface to achieve automatic management and control of the substation SCD file. When the present invention receives a substation SCD file, it automatically calculates the cyclic redundancy check code and performs a cyclic redundancy check based on the cyclic redundancy check code, saving labor costs and improving the verification efficiency of the SCD file; using semantic extraction to identify inconsistent information in the substation SCD file can effectively improve the accuracy of SCD file verification.
[0193] The specific embodiments described above further illustrate the objectives, technical solutions, and beneficial effects of the present invention. It should be understood that the above descriptions are merely specific embodiments of the present invention and are not intended to limit the scope of protection of the present invention. In particular, it should be noted that any modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of the present invention should be included within the scope of protection of the present invention for those skilled in the art.
Claims
1. A web-based SCD file management method, characterized in that: include: Receive the substation SCD file on the web page; Calculate the cyclic redundancy check code corresponding to each IED device in the substation SCD file respectively to form a current check code list; wherein the cyclic redundancy check code includes the IED characteristic cyclic redundancy check code and the virtual circuit cyclic redundancy check code; Based on the pre-stored check code list and the current check code list, performing an IED characteristic cyclic redundancy check on each of the IED devices in turn; IED devices whose IED characteristic cyclic redundancy check codes are inconsistent with the pre-stored check code list are determined as IED devices to be processed; Performing a virtual circuit cyclic redundancy check on the IED device to be processed based on a pre-stored check code list and the current check code list; When the cyclic redundancy check code of the virtual circuit of the IED to be processed is inconsistent with the pre-stored check code list, a preset semantic extraction model is used to extract the semantic features of the substation SCD file; Based on the semantic features of the substation SCD file, the substation SCD file is compared with a historical substation SCD file to determine a change point in the substation SCD file; Inconsistency information is generated based on the change point, and the inconsistency information is sent to a web page interface.
2. The web-based SCD file management method according to claim 1, characterized in that: The step of respectively calculating the cyclic redundancy check code corresponding to each IED device in the substation SCD file to form a current check code list includes: Parsing the substation SCD file in blocks to form a plurality of IED device SCD files; wherein each IED device SCD file corresponds to an IED device; Extracting key characteristics of the IED terminal from the SCD file of the IED device to form formal information data; generating an IED characteristic cyclic redundancy check code according to a preset IED rule and the form information data; Extracting virtual circuit data from the SCD file of the IED device; Generate a virtual circuit cyclic redundancy check code according to a preset virtual circuit rule and the virtual circuit data; forming a cyclic redundancy check code based on the IED characteristic cyclic redundancy check code and the virtual loop cyclic redundancy check code; According to a preset sorting rule, the cyclic redundancy check codes corresponding to the IED devices are sorted to form a current check code list.
3. The web-based SCD file management method according to claim 2, characterized in that: The key characteristics of the IED terminal are extracted from the SCD file of the IED device to form formal information data, including: Extracting static description information of each IED device from the IED device SCD file; wherein the static description information includes IED device name, IED Chinese description, IED configuration parameters, IED device status and IED device version; Key characteristics of the IED terminal are extracted according to the static description information of each IED device, and formal information data is generated according to the key characteristics of the IED terminal.
4. The web-based SCD file management method according to claim 2, characterized in that: Extracting virtual circuit data from the SCD file of the IED device includes: Extracting the signal transmission paths and logical connection relationships between the IED devices from the SCD file of the IED device to form key dynamic information; Virtual loop data is formed according to the key dynamic information.
5. The web-based SCD file management method according to claim 1, characterized in that: Before performing the IED characteristic cyclic redundancy check on each of the IED devices in sequence based on the pre-stored check code list and the current check code list, the method further includes: Get the pre-stored verification code list in the local database; Calculate the current hash value of each pre-stored cyclic redundancy check code in the pre-stored check code list in real time; Comparing the current hash value with a pre-stored hash value; wherein the pre-stored hash value is generated when the pre-stored cyclic redundancy check code is stored in a local database; When the current hash value is the same as the pre-stored hash value, the pre-stored check code list is used to perform an IED characteristic cyclic redundancy check on each of the IED devices.
6. The web-based SCD file management method according to claim 1, characterized in that: The extracting of semantic features of the substation SCD file using a preset semantic extraction model includes: Using a preset semantic extraction model, parsing several file information of the substation SCD file; wherein the file information includes virtual terminal information, circuit information and IED device information; Vectorizing the information of each file to obtain a plurality of information vectors; The semantic structure and semantic regularity of each of the information vectors are analyzed to form a plurality of semantic features.
7. The web-based SCD file management method according to claim 6, characterized in that: The comparing the substation SCD file with a historical substation SCD file based on the semantic features of the substation SCD file to determine the change points in the substation SCD file includes: Obtaining a pre-stored substation SCD file from a pre-stored check code list; wherein the historical substation SCD file includes a plurality of pre-stored semantic features; Calculating the similarity between the substation SCD file and the pre-stored substation SCD file based on the semantic features of the substation SCD file and the pre-stored semantic features; Obtaining abnormal semantic features inconsistent with the pre-stored substation SCD file by analyzing the similarity; A change point in the substation SCD file is determined based on the abnormal semantic feature.
8. The web-based SCD file management method according to claim 7, characterized in that: After determining the change point in the substation SCD file based on the abnormal semantic feature, the method further includes: Comparing the change points with the preset important configuration table; If the change point is retrieved in the preset important configuration table, an early warning signal is generated.
9. The web-based SCD file management method according to claim 5, characterized in that: The training process of the preset semantic extraction model includes: Obtain several historical substation SCD files from the local database on the web page; Using a word segmentation tool to segment the historical substation SCD files respectively to form a number of semantic texts; Using Word2Vec as the model framework, a semantic extraction model is constructed; Using each of the semantic texts as training samples, performing unsupervised training on the semantic extraction model; When the preset model conditions are met, it is determined that the semantic extraction model has completed model training to form a preset semantic extraction model.
10. A web-based SCD file management and control device, characterized in that: include: A file receiving module, a check code calculation module, a first verification module, a device under test determination module, a second verification module, a semantic extraction module, a change point determination module, and an information transmission module; The file receiving module is used to receive the substation SCD file on the web page; The check code calculation module is used to calculate the cyclic redundancy check code corresponding to each IED device in the substation SCD file respectively to form a current check code list; wherein the cyclic redundancy check code includes the IED characteristic cyclic redundancy check code and the virtual circuit cyclic redundancy check code; The first verification module is used to perform an IED characteristic cyclic redundancy check on each of the IED devices in sequence based on a pre-stored verification code list and the current verification code list; The device to be tested determining module is used to determine an IED device whose IED characteristic cyclic redundancy check code is inconsistent with the pre-stored check code list as an IED device to be processed; The second verification module is used to perform a virtual circuit cyclic redundancy check on the IED device to be processed based on the pre-stored verification code list and the current verification code list; The semantic extraction module is used to extract the semantic features of the substation SCD file using a preset semantic extraction model when the virtual circuit cyclic redundancy check code of the IED to be processed is inconsistent with the pre-stored check code list; The change point determination module is used to compare the substation SCD file with the historical substation SCD file based on the semantic features of the substation SCD file to determine the change points in the substation SCD file; The information transmission module is used to generate inconsistency information based on the change point and send the inconsistency information to the web page interface.