Consistency comparison and synchronization method and equipment for multi-source configuration files of smart power grid
By building a multi-source data model and automatically comparing and synchronizing SCD, SSD and SPD configuration files in the smart grid, the multi-source configuration file consistency problem is solved, the consistency and real-timeness of configuration files are improved, the grid operation risks are reduced, and the management level is improved.
Patent Information
- Application Number
- CN202411880408.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-12-19
- Publication Date
- 2025-04-25
AI Technical Summary
The consistency problem between multi-source configuration files in smart grids leads to communication failures between devices and errors in automation control, increasing the risk of grid operation.
By building a multi-source data model, the name and description attribute data in the SCD, SSD and SPD files of the substation are automatically parsed and compared, and the automatic consistency comparison and synchronization of configuration files are achieved.
It significantly improves the consistency and real-time nature of the configuration files, reduces the risk of communication failures between equipment and automation control errors, reduces the risk of grid operation and maintenance costs, and improves the management level and intelligence of the grid.
Smart Images

Figure CN119884054A_ABST
Abstract
Description
Technical Field
[0001] The present invention belongs to the technical field of smart substations, and specifically relates to a smart grid multi-source configuration file consistency comparison and synchronization method, and also relates to a smart grid multi-source configuration file consistency comparison and synchronization device, which is suitable for smart grid multi-source configuration file management. Background Art
[0002] With the rapid development of smart grid technology, substations, as the core nodes of the power grid, have inestimable value in ensuring the safety, stability and efficient operation of the power grid. Substation configuration files include but are not limited to SCD (Substation Configuration Description), SSD (Substation Specification Description) and SPD (Substation Physical Circuit Description) released in 2024. These files play a vital role in the design, construction and operation and maintenance of substations.
[0003] However, in actual operation, these configuration files are often generated and maintained by multiple independent software tools or departments, resulting in increasingly prominent consistency issues between files. Due to the lack of a unified coordination mechanism when different tools or departments generate and modify configuration files, the representation of the same elements and attributes in different files may deviate or even contradict each other. This inconsistency not only increases the risk of power grid operation, but may also directly lead to communication failures between devices, affect the automation control and protection functions of the substation, and threaten the safe and stable operation of the entire power grid.
[0004] Traditional manual synchronization and verification methods are unable to cope with this challenge. As the scale and complexity of power grids continue to increase, the number and complexity of configuration files have increased dramatically, making manual synchronization and verification time-consuming and error-prone. In addition, the real-time requirements of smart grids also make manual methods unable to meet the needs of fast response and accurate synchronization.
[0005] In order to deal with these problems, the development of smart grids has put forward higher requirements for the management of configuration files. In particular, in terms of real-time and accuracy, the grid needs to be able to update information such as device status and operating parameters in real time, and synchronize these changes to all relevant configuration files to ensure coordinated operation and intelligent decision-making among various grid systems. However, the current lack of an effective automated synchronization and consistency comparison mechanism makes the realization of this goal difficult.
[0006] In summary, it is particularly urgent to develop a system and method that can automatically realize the consistency comparison and automatic synchronization of multi-source configuration files of smart grids. The system should have the ability to automatically identify and compare, accurately identify the same elements and attributes in different configuration files, and automatically perform consistency comparison. At the same time, the system should also have a real-time synchronization function, which can automatically synchronize the updated information to each configuration file to ensure the real-time and accuracy of the configuration file. Through such a system and method, the operating efficiency and management level of the smart grid can be significantly improved, providing a solid technical guarantee for the safe, stable and efficient operation of the power grid. Summary of the invention
[0007] The purpose of the present invention is to address the above-mentioned problems existing in the prior art, propose a method for comparing and synchronizing the consistency of multi-source configuration files of a smart grid, and also to provide a device for comparing and synchronizing the consistency of multi-source configuration files of a smart grid. The implementation of the present invention will significantly improve the operating efficiency and management level of the smart grid, and effectively reduce the risk of grid operation by reducing communication barriers and control errors caused by inconsistencies in configuration files. At the same time, the automation characteristics of the system also greatly reduce the workload of operation and maintenance personnel and improve work efficiency.
[0008] The above-mentioned purpose of the present invention is achieved by the following technical means:
[0009] The method for synchronizing and comparing the consistency of multi-source configuration files of a smart grid comprises the following steps:
[0010] Step 1: Parse the SCD file, SSD file and SPD file of the substation, and extract the name attribute data and description attribute data in the SCD file, SSD file and SPD file;
[0011] Step 2: Construct a multi-source data model. The multi-source data model includes multiple elements. Each element includes name attribute data and differential attributes describing attribute data for storing the extracted SCD files, SSD files, and SPD files, as well as comparison analysis attributes and status attributes.
[0012] Step 3: Automatically compare and analyze the differentiated attributes of the same element in the multi-source data model;
[0013] Step 4: Modify the differentiated attributes of the same element in the multi-source data model in a consistent manner;
[0014] Step 5: The modified differentiated attributes of the elements of the multi-source data model are synchronized to the SCD file, SSD file and SPD file respectively.
[0015] As described above, the elements of the multi-source data model include smart substation elements, which include area elements and bay elements, which include panel elements, which include one or more equipment or component elements, which include sub-equipment or sub-component elements, and which include connection point elements. Bay elements include equipment reference elements.
[0016] As mentioned above, the differentiated attributes include SCD name attribute, SCD description attribute, SSD name attribute, SSD description attribute, SPD name attribute and SPD description attribute;
[0017] The comparison analysis attributes include name analysis attributes and description analysis attributes;
[0018] The status attributes include SCD status attributes, SSD status attributes, and SPD status attributes.
[0019] As described above, the enumeration type of the status attribute includes "added", "deleted", "difference" and "consistent".
[0020] As described above, the automatic comparison and analysis of the differentiated attributes of the same element of the multi-source data model includes the following steps:
[0021] Case 1:
[0022] If the SCD name attribute, SSD name attribute and SPD name attribute are exactly the same, the name attribute will be automatically filled into the corresponding name analysis attribute, and the corresponding SCD status attribute, SSD status attribute and SPD status attribute will be updated to "consistent";
[0023] Case 2:
[0024] If the SCD name attribute, SSD name attribute, and SPD name attribute are not exactly the same and have values, the corresponding name analysis attribute is empty, and the corresponding SCD status attribute, SSD status attribute, and SPD status attribute are all "difference";
[0025] Case 3:
[0026] If the SCD name attribute, SSD name attribute, and SPD name attribute are not exactly the same and have null values, the corresponding name analysis attribute is null.
[0027] Furthermore, if the SCD name attribute is an empty value, the corresponding SCD status attribute is "deleted", and if the SCD name attribute has a value, the corresponding SCD status attribute is "added";
[0028] If the SSD name attribute is empty, the corresponding SSD status attribute is "deleted". If the SSD name attribute has a value, the corresponding SSD status attribute is "added".
[0029] If the SPD name attribute is empty, the corresponding SPD status attribute is "deleted". If the SPD name attribute has a value, the corresponding SPD status attribute is "added.
[0030] As described above, the automatic comparison and analysis of the differentiated attributes of the same element of the multi-source data model includes the following steps:
[0031] When the SCD state attribute, SSD state attribute and SPD state attribute of the same element are "difference", "deleted" or "added", one of the SCD name attribute, SCD description attribute and SSD name attribute of the same element with a value is selected through the user interaction interface to unify, and the unified name attribute is automatically filled into the corresponding name analysis attribute;
[0032] If the SCD description attribute, SSD description attribute, and SPD description attribute of the same element are the same, the same description attributes are automatically filled into the corresponding description analysis attributes.
[0033] If the SCD description attribute, SSD description attribute, and SPD description attribute of the same element are different, you can select one of the SCD description attribute, SSD description attribute, and SPD description attribute with a value to unify, and automatically fill the unified description attribute into the corresponding description analysis attribute. Manual output of other values other than the three is also supported.
[0034] The multi-source data model is updated so that the name analysis attribute and the description analysis attribute of the elements of the multi-source data model have values, and the SCD state attribute, the SSD state attribute, and the SPD state attribute are all "consistent".
[0035] As described above, the SCD file, SSD file, and SPD file are hashed before and after synchronization, and a new timestamp and version number are generated.
[0036] A computer device includes a memory and a processor, wherein the memory stores a computer program, and the processor implements the steps of the above-mentioned consistency comparison and synchronization method when executing the computer program.
[0037] A computer-readable storage medium stores a computer program, which implements the steps of the above-mentioned consistency comparison and synchronization method when executed by a processor.
[0038] A computer program product includes a computer program, which implements the steps of the above-mentioned consistency comparison and synchronization method when executed by a processor.
[0039] Compared with the prior art, the present invention has the following beneficial effects:
[0040] a) Significantly improve the consistency of configuration files (SCD files, SSD files, and SPD files): Through the automated comparison mechanism, the name attributes and description attributes of the same element in different configuration files can be accurately and quickly identified, and their consistency can be checked. This avoids possible omissions and errors in manual comparison, thereby improving the consistency and accuracy of configuration files.
[0041] b) Improve synchronization efficiency and real-time performance: The automated synchronization function quickly synchronizes updated information to all relevant configuration files. This shortens the synchronization cycle and reduces the need for manual intervention, allowing the power grid to respond more quickly to changes in device status and operating parameters, improving the real-time performance and response speed of the power grid.
[0042] c) Reduce operational risks and costs: As the consistency and real-time performance of configuration files have been significantly improved, the risks of communication failures between devices and failures of automation control and protection functions have been greatly reduced. This not only improves the safety and stability of the power grid, but also reduces power outages and maintenance costs caused by failures.
[0043] d) Improve the management level and intelligence of the power grid: The application of the system and method enables the power grid to manage configuration files more efficiently, realize intelligent decision-making and coordinated operation. This helps to improve the overall management level of the power grid and promote the further development of smart grids. BRIEF DESCRIPTION OF THE DRAWINGS
[0044] Figure 1 is a flow chart of the present invention;
[0045] Figure 2 It is a hierarchical architecture diagram of the multi-source data model;
[0046] Figure 3 It is a property diagram of the elements of the multi-source data model;
[0047] Figure 4 It is a schematic diagram of the automatic comparison and analysis results between the three configuration files SCD, SSD and SPD provided in an embodiment of the present invention;
[0048] Figure 5 It is a structural diagram of a computer device provided in an embodiment of the present invention. DETAILED DESCRIPTION
[0049] In order to facilitate those skilled in the art to understand and implement the present invention, the present invention is further described in detail below in conjunction with implementation examples. It should be understood that the implementation examples described herein are only used to illustrate and explain the present invention and are not used to limit the present invention.
[0050] Embodiment 1:
[0051] When facing the consistency problem among multiple configuration files, the existing technology still needs to be processed manually, which will bring a lot of manual workload and the reliability is difficult to guarantee.
[0052] In view of this, this embodiment proposes a smart grid multi-source configuration file consistency comparison and synchronization method. Figure 1 The embodiment of the present invention provides a flowchart of a method for synchronizing and comparing the consistency of multiple source configuration files of a smart grid, which includes the following steps:
[0053] Step 1: Parse the SCD file, SSD file and SPD file of the substation, and extract the name attribute data and description attribute data in the SCD file, SSD file and SPD file; specifically including:
[0054] 1) Configuration file acquisition: Get the SCD (Substation Configuration Description) file, SSD (Substation Specification Description) file and SPD (Substation Physical Circuit Description) file of the smart substation.
[0055] 2) Configuration file parsing: SCD files, SSD files and SPD files are all configuration files based on XML format. By parsing the structure of each file, the name attribute data and description attribute data in each file are extracted.
[0056] Step 2: Construct a multi-source data model for storing the name attribute data and description attribute data of the extracted SCD files, SSD files, and SPD files;
[0057] like Figure 2 As shown, the file hierarchy architecture of the multi-source data model includes a smart substation element Substation; specifically, the smart substation element Substation includes one or more region elements Region and bay elements Bay; the region element Region includes one or more cabinet elements Cubicle; the cabinet element Cubicle includes one or more device or component elements Device; the device or component element Device includes one or more sub-device or sub-component elements SubDevice; the sub-device or sub-component element SubDevice includes zero or one or more connection point elements Pin. The bay element Bay includes zero or one or more device reference elements DeviceRef.
[0058] like Figure 3As shown in the figure, each element in the multi-source data model contains 6 differentiation attributes, 2 comparison analysis attributes and 3 status attributes.
[0059] The six differentiated attributes are SCD name attribute ScdName, SCD description attribute ScdDesc, SSD name attribute SsdName, SSD description attribute SsdDesc, SPD name attribute SpdName, and SPD description attribute SpdDesc;
[0060] The two comparison analysis attributes are name analysis attribute name and description analysis attribute desc;
[0061] The three status attributes are the SCD status attribute ScdType, the SSD status attribute SsdType, and the SPD status attribute SpdType. All three status attributes are enumeration types, including four types of enumeration: addition, deletion, difference, and consistency.
[0062] The name attribute data and description attribute data of the extracted SCD file, SSD file and SPD file are stored in the name attribute and description attribute of the corresponding element in the multi-source data model.
[0063] For example: the name attribute data and description attribute data of the extracted SCD file are stored in the SCD name attribute ScdName and the SCD description attribute ScdDesc of the corresponding elements of the multi-source data model; the name attribute data and description attribute data of the extracted SSD file are stored in the SSD name attribute SsdName and the SSD description attribute SsdDesc of the corresponding elements of the multi-source data model; the name attribute data and description attribute data of the extracted SPD file are stored in the SPD name attribute SpdName and the SPD description attribute SpdDesc of the corresponding elements of the multi-source data model.
[0064] By building a multi-source data model, the name attributes and description attributes of the same element in different configuration files can be accurately and quickly identified, and their consistency can be checked. Significantly improve the consistency of configuration files (SCD files, SSD files, and SPD files): Through the automated comparison mechanism, possible omissions and errors in manual comparison are avoided, thereby improving the consistency and accuracy of configuration files.
[0065] Step 3: Automatically compare and analyze the differentiated attributes of the same element in the multi-source data model;
[0066] Automatically comparing the multi-source data model means automatically comparing the six differentiated attributes of each element of the multi-source data model.
[0067] like Figure 4As shown, the multi-source data model is automatically analyzed:
[0068] For the same element of the multi-source data model, the SCD name attribute ScdName, SSD name attribute Ssd Name, and SPD name attribute SpdName are automatically compared:
[0069] Case 1:
[0070] If the SCD name attribute ScdName, the SSD name attribute SsdName and the SPD name attribute SpdName are exactly the same, the name attribute (SCD name attribute ScdName or SSD name attribute SsdName or SPD name attribute SpdName) is automatically filled into the corresponding name analysis attribute name, and the corresponding SCD state attribute ScdType, SSD state attribute SsdType and SPD state attribute SpdType are all updated to "consistent";
[0071] Case 2:
[0072] If the SCD name attribute ScdName, the SSD name attribute SsdName, and the SPD name attribute SpdName are not exactly the same and have values, the corresponding name analysis attribute name is empty, and the corresponding SCD state attribute ScdType, SSD state attribute SsdType, and SPD state attribute SpdType are all "difference";
[0073] Case 3:
[0074] If the SCD name attribute ScdName, the SSD name attribute SsdName, and the SPD name attribute SpdName are not exactly the same and have null values, the corresponding name analysis attribute name is null.
[0075] Furthermore, if the SCD name attribute ScdName is an empty value, the corresponding SCD state attribute ScdType is "deleted", and if the SCD name attribute ScdName has a value, the corresponding SCD state attribute ScdType is "added";
[0076] If the SSD name attribute SsdName is an empty value, the corresponding SSD status attribute SsdType is "deleted". If the SSD name attribute SsdName has a value, the corresponding SSD status attribute SsdType is "added".
[0077] If the SPD name attribute SpdName is an empty value, the corresponding SPD status attribute SpdType is "deleted". If the SPD name attribute SpdName has a value, the corresponding SPD status attribute SpdType is "added.
[0078] Step 4: Modify the differentiated attributes of the same element in the multi-source data model in a consistent manner;
[0079] When the SCD state attribute ScdType, SSD state attribute SsdType and SPD state attribute SpdType of the same element are "difference", "deleted" or "added", select one of the SCD name attribute ScdName, SCD description attribute ScdDesc and SSD name attribute SsdName of the same element with a value through the user interaction interface to unify, and automatically fill the unified name attribute into the corresponding name analysis attribute name;
[0080] If the SCD description attribute ScdDesc, the SSD description attribute SsdDesc, and the SPD description attribute SpdDesc of the same element are the same, the same description attributes are automatically filled into the corresponding description analysis attribute desc.
[0081] If the SCD description attribute ScdDesc, SSD description attribute SsdDesc, and SPD description attribute SpdDesc of the same element are different, one of the SCD description attribute ScdDesc, SSD description attribute SsdDesc, and SPD description attribute SpdDesc with a value is selected to unify, and the unified description attribute is automatically filled into the corresponding description analysis attribute desc. Manual output of other values other than the three is also supported.
[0082] Update the multi-source data model so that the name analysis attribute name and the description analysis attribute desc of the elements of the multi-source data model have values, and the SCD state attribute ScdType, the SSD state attribute SsdType and the SPD state attribute SpdType are all "consistent".
[0083] Specifically include:
[0084] For the above situation 1, if the SCD description attribute ScdDesc, the SSD description attribute SsdDesc, and the SPD description attribute SpdDesc are consistent, the description attribute (SCD description attribute ScdDesc or SSD description attribute SsdDesc or SPD description attribute SpdDesc) is automatically filled into the corresponding description analysis attribute desc, and the corresponding name analysis attribute name and description analysis attribute desc both have values.
[0085] If the SCD description attribute ScdDesc, the SSD description attribute SsdDesc, and the SPD description attribute SpdDesc are inconsistent, select one of the SCD description attribute ScdDesc, the SSD description attribute SsdDesc, and the SPD description attribute SpdDesc through the user interaction interface (or manually input) to unify them, and automatically fill the unified description attribute (SCD description attribute ScdDesc or SSD description attribute SsdDesc or SPD description attribute SpdDesc) into the corresponding description analysis attribute desc.
[0086] For the above situations 2 and 3, select one of the SCD name attribute ScdNam e, SSD name attribute SsdName and SPD name attribute SpdName with a value (or manually input) through the user interaction interface for unification, and fill the unified name attribute into the corresponding name analysis attribute name; select one of the SCD description attribute ScdDesc, SSD description attribute SsdDesc and SPD description attribute SpdDesc (or manually input) through the user interaction interface for unification, and automatically fill the unified description attribute (SCD description attribute ScdDesc or SSD description attribute SsdDesc or SPD description attribute SpdDesc) into the corresponding description analysis attribute desc.
[0087] Update the multi-source data model so that the name analysis attribute name and the description analysis attribute desc of the elements of the multi-source data model have values, and the SCD state attribute ScdType, the SSD state attribute SsdType and the SPD state attribute SpdType are all "consistent".
[0088] Step 5: Consistency of elements in the multi-source data model The modified differentiated attributes are synchronized to the SCD file, SSD file, and SPD file respectively to ensure the consistency among the SCD file, SSD file, and SPD file;
[0089] Before data synchronization, perform hash operations on the SCD file, SSD file, and SPD file before synchronization to generate a unique hash value, and use the hash value as the unique identifier of the SCD file, SSD file, and SPD file before synchronization. Synchronize the SCD name attribute ScdName and the SCD description attribute ScdDesc to the corresponding position of the SCD file; synchronize the SSD name attribute SsdName and the SSD description attribute SsdDesc to the corresponding position of the SSD file; synchronize the SPD name attribute SpdName and the SPD description attribute SpdDesc to the corresponding position of the SPD file. Recalculate the hash value and generate a new timestamp and version number.
[0090] The automatic synchronization function of the present invention quickly synchronizes the updated information to all related configuration files, shortens the synchronization cycle, reduces the need for manual intervention, enables the power grid to respond more quickly to changes in equipment status and operating parameters, and improves the real-time performance and response speed of the power grid.
[0091] The comparison results between multiple source configuration files can be viewed directly on the user interface. The results are presented in a table to help quickly identify the differences between the configuration files.
[0092] In some embodiments, the step of automatically comparing and analyzing the differentiated attributes of each element of the multi-source data model is also included in the user interaction interface through a table: the results are presented in a table to help quickly identify the differences between the configuration files. The columns of the table are the SCD name attribute ScdName, the SCD description attribute ScdDesc, the SCD status attribute ScdType, the SSD name attribute SsdName, the SSD description attribute SsdDesc, the SSD status attribute SsdType, the SPD name attribute SpdName, the SPD description attribute SpdDesc, the SPD status attribute SpdType, the name analysis attribute nam e and the description analysis attribute desc of the specified element of the multi-source data model. Each row of the table corresponds to a specified element.
[0093] In some embodiments, a synchronization log display step is also included: the differentiated attributes, status attributes, and comparison analysis attributes of the specified elements before and after unification are displayed through a user interaction interface to track synchronization progress, troubleshoot synchronization errors, or conduct audits.
[0094] The consistency and real-time performance of the configuration files are significantly improved in the present invention, and the risk of inter-device communication failures and failure of automatic control and protection functions is greatly reduced. This not only improves the safety and stability of the power grid, but also reduces the power outage time and maintenance costs caused by failures. Improve the management level and intelligence of the power grid: The application of the system and method enables the power grid to manage configuration files more efficiently, realize intelligent decision-making and coordinated operation. This helps to improve the overall management level of the power grid and promote the further development of smart grids.
[0095] A person of ordinary skill in the art can understand that all or part of the processes in the above-mentioned embodiment methods can be implemented by instructing related hardware through a computer program. The computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above-mentioned methods.
[0096] Embodiment 2:
[0097] In one embodiment, a computer device is further provided, including a memory and a processor, wherein a computer program is stored in the memory, and the processor implements the steps in the above method embodiments when executing the computer program.
[0098] Embodiment 3:
[0099] In one embodiment, a computer-readable storage medium is provided, on which a computer program is stored. When the computer program is executed by a processor, the steps in the above-mentioned method embodiments are implemented.
[0100] Embodiment 4:
[0101] In one embodiment, a computer program product is provided, including a computer program, which implements the steps in the above method embodiments when executed by a processor.
[0102] It should be noted that the embodiments described in the present invention are merely examples of the spirit of the present invention. Those skilled in the art may make various modifications or additions to the described embodiments or replace them in similar ways, but they will not deviate from the spirit of the present invention or exceed the scope defined by the attached claims.
Claims
1. A method for synchronizing and comparing the consistency of multi-source configuration files of a smart grid, characterized in that: The following steps are involved: Step 1: Parse the SCD file, SSD file and SPD file of the substation, and extract the name attribute data and description attribute data in the SCD file, SSD file and SPD file; Step 2: Construct a multi-source data model. The multi-source data model includes multiple elements. Each element includes name attribute data and differential attributes describing attribute data for storing the extracted SCD files, SSD files, and SPD files, as well as comparison analysis attributes and status attributes. Step 3: Automatically compare and analyze the differentiated attributes of the same element in the multi-source data model; Step 4: Modify the differentiated attributes of the same element in the multi-source data model in a consistent manner; Step 5: The modified differentiated attributes of the elements of the multi-source data model are synchronized to the SCD file, SSD file and SPD file respectively.
2. According to claim 1, the smart grid multi-source configuration file consistency comparison and synchronization method is characterized in that: The elements of the multi-source data model include smart substation elements, which include area elements and bay elements, which include panel elements, which include one or more equipment or component elements, which include sub-equipment or sub-component elements, and which include connection point elements. Bay elements include equipment reference elements.
3. According to claim 1, the smart grid multi-source configuration file consistency comparison and synchronization method is characterized in that: The differentiated attributes include an SCD name attribute, an SCD description attribute, an SSD name attribute, an SSD description attribute, an SPD name attribute, and an SPD description attribute; The comparison analysis attributes include name analysis attributes and description analysis attributes; The status attributes include SCD status attributes, SSD status attributes, and SPD status attributes.
4. The method for synchronizing and comparing the consistency of multi-source configuration files of smart grid according to claim 3 is characterized in that: The enumeration type of the status attribute includes "added", "deleted", "difference" and "consistent".
5. The method for synchronizing and comparing the consistency of multiple source configuration files of a smart grid according to claim 4 is characterized in that: The automatic comparison and analysis of the differentiated attributes of the same element of the multi-source data model includes the following steps: Case 1: If the SCD name attribute, SSD name attribute and SPD name attribute are exactly the same, the name attribute will be automatically filled into the corresponding name analysis attribute, and the corresponding SCD status attribute, SSD status attribute and SPD status attribute will be updated to "consistent"; Case 2: If the SCD name attribute, SSD name attribute, and SPD name attribute are not exactly the same and have values, the corresponding name analysis attribute is empty, and the corresponding SCD status attribute, SSD status attribute, and SPD status attribute are all "difference"; Case 3: If the SCD name attribute, SSD name attribute, and SPD name attribute are not exactly the same and have null values, the corresponding name analysis attribute is null. Furthermore, if the SCD name attribute is empty, the corresponding SCD status attribute is "delete", and if the SCD name attribute has a value, the corresponding SCD status attribute is "add". If the SSD name attribute is empty, the corresponding SSD status attribute is "deleted". If the SSD name attribute has a value, the corresponding SSD status attribute is "added". If the SPD name attribute is empty, the corresponding SPD status attribute is "delete". If the SPD name attribute has a value, the corresponding SPD status attribute is "add.
6. The method for synchronizing and comparing the consistency of multiple source configuration files of a smart grid according to claim 5, characterized in that: The automatic comparison and analysis of the differentiated attributes of the same element of the multi-source data model includes the following steps: When the SCD state attribute, SSD state attribute and SPD state attribute of the same element are "difference", "deleted" or "added", select one of the SCD name attribute, SCD description attribute and SSD name attribute of the same element with a value through the user interaction interface to unify, and automatically fill the unified name attribute into the corresponding name analysis attribute; If the SCD description attribute, SSD description attribute, and SPD description attribute of the same element are the same, the same description attributes are automatically filled into the corresponding description analysis attributes. If the SCD description attribute, SSD description attribute, and SPD description attribute of the same element are different, you can select one of the SCD description attribute, SSD description attribute, and SPD description attribute with a value to unify, and automatically fill the unified description attribute into the corresponding description analysis attribute. Manual output of other values other than the three is also supported. Update the multi-source data model so that the name analysis attribute and the description analysis attribute of the elements of the multi-source data model have values, and the SCD state attribute, the SSD state attribute, and the SPD state attribute are all "consistent".
7. The method for synchronizing and comparing the consistency of multiple source configuration files of a smart grid according to claim 1, characterized in that: The SCD file, SSD file and SPD file are hashed before and after synchronization, and a new timestamp and version number are generated.
8. A computer device comprising a memory and a processor, wherein the memory stores a computer program, wherein: When the processor executes the computer program, the steps of the consistency comparison and synchronization method described in any one of claims 1 to 6 are implemented.
9. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the consistency comparison and synchronization method described in any one of claims 1 to 6 are implemented.
10. A computer program product, comprising a computer program, characterized in that When the computer program is executed by a processor, the steps of the consistency comparison and synchronization method described in any one of claims 1 to 6 are implemented.