A method, apparatus, equipment, and medium for determining information related to the renovation and expansion of substations.
By acquiring the configuration file sets before and after the substation renovation, and using general configuration template file conversion and CRC difference calculation, the problem of verifying changes in bus differential protection circuits during substation renovation and expansion was solved, realizing the automatic determination of the scope of configuration changes and the accuracy of circuit connection relationships.
Patent Information
- Application Number
- CN202311116242.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-08-31
- Publication Date
- 2026-01-06
- Estimated Expiration
- 2043-08-31
AI Technical Summary
During the renovation and expansion of substations, existing technologies cannot effectively verify whether the circuit between the bus differential protection and the original operating equipment has changed, especially in the absence of SCD files or inconsistencies in the format of equipment manufacturers' proprietary configuration files, which makes it impossible to accurately determine the scope of configuration changes during renovation and expansion.
By acquiring the historical and current configuration file sets before and after the substation renovation, converting them into a unified format using a preset general configuration template file, calculating the CRC values before and after the renovation, and determining the renovation information based on the CRC difference, the automatic verification of the scope of configuration changes during renovation and expansion is achieved.
It improves the universality of verification for configuration changes during renovation and expansion, and can automatically determine renovation and expansion information under different equipment manufacturers and configuration file formats, ensuring the accuracy of loop connection relationships.
Smart Images

Figure CN117194336B_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of intelligent substation technology, and in particular to a method, apparatus, equipment and medium for determining substation renovation and expansion information. Background Technology
[0002] Smart substations have a high degree of integration and complex virtual terminal connections between equipment. During renovation and expansion, modifications to the configuration of some of the upgraded equipment require re-downloading the configuration and debugging and verification of the circuits related to the upgraded equipment to ensure that the newly added and changed circuits function correctly after the configuration is re-downloaded. This is particularly true for bus differential protection. Since the addition of new bays changes the bus differential protection configuration, there is no direct method to verify whether the circuit between the bus differential protection and the original operating equipment has changed after the configuration update. Therefore, the common practice is to de-energize the original operating equipment and re-run the virtual circuit between it and the bus differential protection to confirm that the circuit between the bus differential protection and the original operating equipment is normal after the renovation and expansion work.
[0003] To address the aforementioned issues, some existing technologies determine the range of configuration changes caused by substation expansion and renovation by statically comparing the Substation Configuration Description (SCD) files before and after the expansion and renovation. One feasible method is to extract communication parameters and virtual terminal connection configuration information, calculate the sub-cyclic redundancy check (CRC) between each IED in the SCD file, compare the changes in the sub-CRC between each IED in the SCD file before and after the expansion and renovation, and determine the range of circuit changes caused by the expansion and renovation.
[0004] The theoretical basis for the above method is that the configuration description principles of the SCD file before and after the renovation and expansion are consistent, ensuring that the methods for extracting communication parameters and virtual terminal connection configurations are consistent. However, for early smart substations, some stations do not have SCD files, or even if SCD files exist, equipment manufacturers create independent private configuration files based on the SCD files. These private configuration files may correspond to configuration files in various formats, leading to inconsistencies in the configuration description principles of the SCD file before and after the renovation and expansion. In this case, it is impossible to achieve configuration change verification by calculating CRC at the SCD level. Summary of the Invention
[0005] This invention provides a method, apparatus, equipment, and medium for determining substation renovation and expansion information, so as to realize automatic verification of the scope of substation renovation and expansion.
[0006] According to a first aspect of the present invention, a method for determining substation renovation and expansion information is provided, comprising:
[0007] Obtain the historical configuration file set of the intelligent devices included before the substation renovation, and the current configuration file set of the intelligent devices included after the substation renovation;
[0008] Based on a preset general configuration template file, determine a first configuration file set corresponding to the historical configuration file set, and a second configuration file set corresponding to the current configuration file set;
[0009] Based on the first configuration file set and the second configuration file set, the renovation and expansion information of the substation is determined.
[0010] According to a second aspect of the present invention, a device for determining information on the renovation and expansion of a substation is provided, characterized in that it comprises:
[0011] The file set acquisition module is used to acquire the historical configuration file set of the historical intelligent devices included before the substation renovation, and the current configuration file set of the current intelligent devices included after the substation renovation.
[0012] The file set determination module is used to determine, based on a preset general configuration template file, a first configuration file set corresponding to the historical configuration file set and a second configuration file set corresponding to the current configuration file set;
[0013] The information determination module is used to determine the renovation and expansion information of the substation based on the first configuration file set and the second configuration file set.
[0014] According to a third aspect of the present invention, an electronic device is provided, the electronic device comprising:
[0015] At least one processor; and
[0016] A memory communicatively connected to the at least one processor; wherein,
[0017] The memory stores a computer program that can be executed by the at least one processor, which is then executed by the at least one processor to enable the at least one processor to perform the substation renovation and expansion information determination method according to any embodiment of the present invention.
[0018] According to another aspect of the present invention, a computer-readable storage medium is provided, the computer-readable storage medium storing computer instructions, the computer instructions being configured to cause a processor to execute and implement the method for determining substation renovation and expansion information as described in any embodiment of the present invention.
[0019] The technical solution of this invention involves obtaining the historical configuration file set of the intelligent devices included before the substation renovation, and the current configuration file set of the current intelligent devices included after the renovation; determining a first configuration file set corresponding to the historical configuration file set and a second configuration file set corresponding to the current configuration file set based on a preset general configuration template file; and determining the substation renovation and expansion information based on the first and second configuration file sets. This method obtains the configuration file sets before and after the substation renovation and expansion, extracts the corresponding configuration parameters according to the preset general configuration template file to form the first and second configuration file sets, calculates the CRC before and after the renovation and expansion, and determines the substation renovation and expansion information based on the difference between the CRC values. This achieves automatic determination of the scope of configuration changes during renovation and expansion, improving the universality of the method.
[0020] It should be understood that the description in this section is not intended to identify key or essential features of the embodiments of the present invention, nor is it intended to limit the scope of the invention. Other features of the invention will become readily apparent from the following description. Attached Figure Description
[0021] To more clearly illustrate the technical solutions in the embodiments of the present invention, the accompanying drawings used in the description of the embodiments will be briefly introduced below. Obviously, the accompanying drawings described below are only some embodiments of the present invention. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.
[0022] Figure 1 This is a flowchart of a method for determining substation renovation and expansion information according to Embodiment 1 of the present invention;
[0023] Figure 2 This is a flowchart of a method for determining substation renovation and expansion information according to Embodiment 2 of the present invention;
[0024] Figure 3 This is a schematic diagram of a substation renovation and expansion information determination device according to Embodiment 3 of the present invention;
[0025] Figure 4 This is a schematic diagram of the structure of an electronic device that implements an embodiment of the present invention. Detailed Implementation
[0026] To enable those skilled in the art to better understand the present invention, the technical solutions of the present invention will be clearly and completely described below with reference to the accompanying drawings of the embodiments of the present invention. Obviously, the described embodiments are only some embodiments of the present invention, and not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative effort should fall within the scope of protection of the present invention.
[0027] It should be noted that the terms "first," "second," etc., in the specification, claims, and accompanying drawings of this invention are used to distinguish similar objects and are not necessarily used to describe a specific order or sequence. It should be understood that such data can be interchanged where appropriate so that the embodiments of the invention described herein can be implemented in orders other than those illustrated or described herein. Furthermore, the terms "comprising" and "having," and any variations thereof, are intended to cover a non-exclusive inclusion; for example, a process, method, system, product, or apparatus that comprises a series of steps or units is not necessarily limited to those steps or units explicitly listed, but may include other steps or units not explicitly listed or inherent to such processes, methods, products, or apparatus.
[0028] Example 1
[0029] Figure 1 This invention provides a flowchart of a method for determining substation renovation and expansion information according to Embodiment 1. This embodiment is applicable to determining the scope of renovation and expansion of smart substations. The method can be executed by a substation renovation and expansion information determining device, which can be implemented in hardware and / or software and can be configured in an electronic device. Figure 1 As shown, the method includes:
[0030] S110. Obtain the historical configuration file set of the historical intelligent devices included before the substation renovation, and the current configuration file set of the current intelligent devices included after the substation renovation.
[0031] In this embodiment, a substation can be understood as an intelligent substation including intelligent devices. Historical intelligent devices can be understood as the intelligent devices included in the substation before the renovation, such as intelligent terminals and intelligent secondary devices. The historical configuration file set can be understood as a set of historical configuration files composed of the process-level configuration files of all historical intelligent devices. These configuration files may be CCD files in a general format, or they may be private configuration files in various forms such as .xml, .cfg, and .txt. Current intelligent devices can be understood as the intelligent devices included in the substation after the renovation, such as intelligent terminals and intelligent secondary devices. The current configuration file set can be understood as a set of current configuration files composed of the process-level configuration files of all current intelligent devices.
[0032] Specifically, before substation renovation, the processor can search for the corresponding SCD files of each historical intelligent device in the relevant storage media, forming a historical configuration file set from all the SCD files of historical intelligent devices. Regardless of whether the historical intelligent device has an SCD file, the processor can retrieve configuration files from the device before downloading new configuration files to the device during renovation or expansion, thus forming a historical configuration file set. The processor can also download the configuration files from a pre-defined configuration file operation and control system before renovation or expansion, forming a historical configuration file set from these configuration files.
[0033] For example, taking a substation as an example, this substation has no SCD file. Each equipment manufacturer independently configures its process layer configuration file. Manufacturer A's equipment PL2201A configuration file is PL2201A.xml, Manufacturer B's equipment PM2201A configuration file is PM2201A.cfg, and Manufacturer C's equipment IL2201A configuration file is IL2201A.txt. The historical configuration file set M can be M = {A1, B1, C1, D1, ...}, where A1, B1, C1, D1, ... represent the process layer configuration file corresponding to each historical intelligent device. The current configuration file set N can be N = {A2, B2, C2, D2, ...}, where A2, B2, C2, D2, ... represent the process layer configuration file corresponding to each current intelligent device. Here, A1 corresponds to A2, B1 corresponds to B2, C1 corresponds to C2, D1 corresponds to D2, and so on. That is, the order of the configuration files in the configuration file set corresponds to the same intelligent device before and after the renovation and expansion.
[0034] S120. Based on the preset general configuration template file, determine the first configuration file set corresponding to the historical configuration file set and the second configuration file set corresponding to the current configuration file set.
[0035] It is important to know that a general configuration template file can be understood as a general format file used to convert configuration file sets of different formats into the same format. This general configuration template file describes the core configuration information related to the process layer configuration, which may include control block communication parameters, GOOSE and SV publish control block configuration parameters, GOOSE and SV subscribe control block configuration parameters, and corresponding virtual terminal connection configurations.
[0036] For example, control block communication parameters include: IED name parameter; GSE cbName parameter, ldInst parameter; Address parameters belonging to GSE cb, including MAC-Address, VLAN-ID, VLAN-PRIORITY, APPID, MinTime parameter, MaxTime parameter; SMV cbName parameter, ldInst parameter; Address parameters belonging to SMV cb, including MAC-Address, VLAN-ID, VLAN-PRIORITY, APPID parameter. GOOSE published control block configuration parameters include: GOCBrefname parameter under GOOSEPUB; GSEControl parameters, including appID, confRev, datSet, name, type; ConnectedAP parameters, including apName, iedName; PhysConn parameters, including type, P type; DataSet name parameter; FCDA parameters belonging to DataSet, including bType, daName, doName, fc, ldInst, lnClass, DAIname, sAddr. The SV release control block configuration parameters include: the SMVCBrefname parameter under SVPUB; SampledValueControl parameters, including confRev, datSet, multicast, name, nofASDU, smpRate, and smvID; ConnectedAP parameters, including apName and iedName; PhysConn parameters, including type and P type; DataSetname parameter; and the FCDA parameters belonging to the DataSet, including bType, daName, doName, fc, ldInst, lnClass, DOI name, SDI name, DAI name, and sAddr.The GOOSE subscription control block configuration parameters and corresponding virtual terminal connection configurations include: GOCBrefname under GOOSESUB; GSEControl parameters, including appID, confRev, datSet, name, and type; ConnectedAP parameters, including apName and iedName; GSE cbName and ldInst parameters; Address parameters belonging to GSE cb, including MAC-Address, VLAN-ID, VLAN-PRIORITY, APPID, MinTime, and MaxTime parameters; DataSet name parameter; and FCDA parameters belonging to DataSet, including bType, daName, doName, fc, ldInst, lnClass, lnInst, prefix, intAddr name, DAI name, and sAddr. The FCDA parameter intAddr name of the DataSet describes the virtual terminal connection configuration. The SV subscription control block configuration parameters and corresponding virtual terminal connection configurations include: SMVCBrefname under SVSUB; SampledValueControl parameters, including confRev, datSet, multicast, name, nofASDU, smpRate, and smvID; ConnectedAP parameters, including apName and iedName; SMV cbName and ldInst parameters; Address parameters belonging to the SMV cb, including MAC-Address, VLAN-ID, VLAN-PRIORITY, and APPID; DataSet name parameter; and FCDA parameters belonging to the DataSet, including bType, daName, doName, fc, ldInst, lnClass, DOI name, SDI name, DAI name, and sAddr. The FCDA parameter intAddrname of the DataSet described above describes the virtual terminal connection configuration.
[0037] In this embodiment, the first configuration file set can be understood as the historical configuration file set generated according to a general configuration template. The second configuration file set can be understood as the current configuration file set generated according to a general configuration template.
[0038] Specifically, since the configuration file sets corresponding to different secondary devices may have different formats, the processor can convert different configuration file sets into configuration file sets under a unified universal format based on a universal configuration template file that defines a common format. The processor can extract the corresponding configuration description portions of the required parameters from the preset universal configuration template file in the historical configuration file set according to set rules. For file formats from different manufacturers, conversion can be performed according to a pre-defined mapping relationship to form a first configuration file set corresponding to the historical configuration file set. The processor can also extract the corresponding configuration description portions of the required parameters from the preset universal configuration template file in the current configuration file set according to set rules. For file formats from different manufacturers, conversion can be performed according to a pre-defined mapping relationship to form a second configuration file set corresponding to the current configuration file set. Parameters that exist in the current and historical configuration file sets but not in the universal configuration file set are not reflected in the formed first and second configuration file sets. Parameters that exist in the universal configuration file set but not in the historical and current configuration file sets are retained as default values in the formed first and second configuration file sets.
[0039] For example, the historical configuration file set M′ can be M′={A′1,B′1,C′1,D′1,……}, and the current configuration file set N′ can be N′={A′2,B′2,C′2,D′2,……}.
[0040] S130. Determine the substation renovation and expansion information based on the first configuration file set and the second configuration file set.
[0041] In this embodiment, the renovation and expansion information can be understood as information used to indicate the scope of renovation and expansion of the substation.
[0042] Specifically, since the renovation and expansion of a substation can be determined by checking whether the virtual circuits between interconnected devices have changed, and the status of virtual circuits can be reflected by CRC values, in order to determine whether the devices with interconnected relationships and their corresponding virtual circuits in the substation have changed, the processor can generate a historical list of intelligent devices with virtual terminal connections before and after the renovation and expansion, and a current list of intelligent devices, based on a first configuration set and a second configuration set. CRC values are calculated using the configuration information of the intelligent devices and their corresponding sub-devices in the first configuration set and the historical intelligent device list to form a CRC list for the historical intelligent devices. Similarly, CRC values are calculated using the configuration information of the intelligent devices and their corresponding sub-devices in the second configuration set and the current intelligent device list to form a CRC list for the current intelligent devices. The corresponding items in the two CRC lists are then compared to identify groups with different values. Groups with different values indicate that the circuits between the corresponding intelligent devices have changed after the renovation and expansion, while groups with no difference indicate that the circuits between the corresponding intelligent devices have not changed. Information on whether the corresponding connection relationships have changed is then output, and this information is used as the renovation and expansion information.
[0043] The technical solution of this invention involves obtaining the historical configuration file set of the intelligent devices included before the substation renovation, and the current configuration file set of the current intelligent devices included after the renovation; determining a first configuration file set corresponding to the historical configuration file set and a second configuration file set corresponding to the current configuration file set based on a preset general configuration template file; and determining the substation renovation and expansion information based on the first and second configuration file sets. This method obtains the configuration file sets before and after the substation renovation and expansion, extracts the corresponding configuration parameters according to the preset general configuration template file to form the first and second configuration file sets, calculates the CRC before and after the renovation and expansion, and determines the substation renovation and expansion information based on the difference between the CRC values. This achieves automatic determination of the scope of configuration changes during renovation and expansion. This method can be used in different forms of device configuration files, improving its versatility.
[0044] Example 2
[0045] Figure 2 This is a flowchart illustrating a method for determining substation renovation and expansion information according to Embodiment 2 of the present invention. This embodiment is a further refinement based on the above embodiments. Figure 2 As shown, the method includes:
[0046] S210. Obtain the historical configuration file set of the historical intelligent devices included before the substation renovation, and the current configuration file set of the current intelligent devices included after the substation renovation.
[0047] S220. Obtain the preset configuration description mapping relationship.
[0048] It is important to know that for specific parameters existing in various private configuration files, which cannot be directly extracted and filled into the first configuration file set and the second configuration file set due to differences in description methods, a mapping relationship between the configuration description of each device manufacturer's private configuration file and the configuration description of the general configuration template file can be established based on the specific situation and the device manufacturer. This configuration description mapping relationship describes the method for extracting and filling information between the configuration description part of each device manufacturer's private configuration file and the configuration description part of the general configuration template file.
[0049] Specifically, the processor can obtain a preset configuration description mapping relationship from the storage medium.
[0050] S230. Based on the configuration description mapping relationship, determine the historical configuration parameters in the historical configuration file set and the current configuration parameters in the current configuration file set.
[0051] Specifically, the processor can determine the historical configuration parameters filled into the general configuration template file from the historical configuration file set based on the configuration description mapping relationship, and determine the current configuration parameters filled into the general configuration template file from the current configuration file set.
[0052] S240. Determine the first configuration file set based on historical configuration parameters and general configuration template files.
[0053] Specifically, the processor can fill historical configuration parameters into the corresponding items in the general configuration template file to generate the first configuration file set.
[0054] S250. Determine the second configuration file set based on the current configuration parameters and the general configuration template file.
[0055] Specifically, the processor can fill the current configuration parameters into the corresponding items in the general configuration template file to generate a second configuration file set.
[0056] For example, when device manufacturer A's private configuration file describes the control block communication parameter GSE cbName, the configuration description is GOOSE controlblockName. When device manufacturer B's private configuration file describes the control block communication parameter GSE cbName, the configuration description is GSE controlblockName. According to the configuration description mapping relationship, the value of the control block communication parameter GOOSE controlblockName in device manufacturer A's private configuration file is extracted and filled into the value of GSE cbName in the general configuration template file. Similarly, the value of the control block communication parameter GSE controlblockName in device manufacturer B's private configuration file is extracted and filled into the value of GSE cbName in the general configuration template file. This means that even when different device manufacturers' private configuration files have different descriptions of the same configuration description part in the general configuration template file, a first configuration file set and a second configuration file set can still be generated.
[0057] S260. Based on the historical configuration file set and the current configuration file set, determine the historical sub-device list corresponding to each historical smart device and the current sub-device list corresponding to each current smart device.
[0058] In this embodiment, the historical sub-device list can be understood as a list of sub-devices connected to the virtual terminals of the historical smart devices before the upgrade and expansion. The current sub-device list can be understood as a list of sub-devices connected to the virtual terminals of the current smart devices after the upgrade and expansion.
[0059] Specifically, the processor can determine the list of historical sub-devices corresponding to each historical smart device and the list of current sub-devices corresponding to each current smart device based on the virtual terminal connection relationships in the historical configuration file set and the current configuration file set.
[0060] Based on the above embodiments, the steps of determining the historical sub-device list corresponding to each historical smart device and the current sub-device list corresponding to each current smart device according to the historical configuration file set and the current configuration file set can be further optimized as follows:
[0061] a1. Extract the historical virtual terminal connection relationships from the historical configuration file set, and the current virtual terminal connection relationships from the current configuration file set.
[0062] In this embodiment, the historical virtual terminal connection relationship can be understood as the connection relationship between sub-devices connected to each smart device via virtual terminals before the renovation and expansion. The current virtual terminal connection relationship can be understood as the connection relationship between sub-devices connected to each smart device via virtual terminals after the renovation and expansion.
[0063] Specifically, the processor can parse the historical configuration file set and the current configuration file set, extract the historical virtual terminal connection relationships in the historical configuration file set, and the current virtual terminal connection relationships in the current configuration file set.
[0064] b1. Based on the historical virtual terminal connection relationship, determine the historical sub-devices connected to each historical smart device, and form a list of historical sub-devices corresponding to each historical smart device.
[0065] In this embodiment, the historical sub-device can be understood as a sub-device connected to the historical smart device via a virtual terminal.
[0066] Specifically, the processor can determine the historical sub-devices connected to each historical smart device based on the historical virtual terminal connection relationship, and form a list of historical sub-devices corresponding to each historical smart device.
[0067] For example, the list of historical sub-devices corresponding to each historical smart device can be represented as: A1: X1, Y1, Z1... and so on. Before the renovation and expansion, the historical smart device centered on A1 includes historical sub-devices with virtual terminal connections to it, such as X1, Y1, Z1... and then the corresponding list of historical sub-devices is formed with B1, C1, D1... as the centers in sequence.
[0068] c1. Based on the current virtual terminal connection relationship, determine the current sub-devices connected to each current smart device, and form a list of current sub-devices corresponding to each current smart device.
[0069] Specifically, the processor can determine the current sub-devices connected to each current smart device based on the current virtual terminal connection relationship, and form a list of current sub-devices corresponding to each current smart device.
[0070] For example, the current sub-device list corresponding to each current smart device can be represented as: A2: X2, Y2, Z2... and so on. After the renovation and expansion, the current smart device centered on A2, and the current sub-devices with virtual terminal connections to it include X2, Y2, Z2... Then, the corresponding current sub-device lists are formed with B2, C2, D2... as the centers in sequence.
[0071] S270. Based on the first configuration file set and the list of historical sub-devices, determine the list of historical verification codes between each historical smart device and its corresponding historical sub-device.
[0072] In this embodiment, the historical verification code list can be understood as a list composed of CRC values between historical smart devices and historical sub-devices.
[0073] Specifically, the processor can calculate the historical verification code value between each historical smart device and its corresponding historical sub-device using a set CRC algorithm based on the first configuration file set and the list of each historical sub-device, thereby forming a historical verification code list based on the historical verification code value.
[0074] Furthermore, based on the above embodiments, the step of determining the historical verification code list between each historical smart device and its corresponding historical sub-device according to the first configuration file set and the list of each historical sub-device can be optimized as follows:
[0075] a2. Extract the historical control block communication parameters, historical publish control block configuration parameters, and historical subscribe control block configuration parameters from the first configuration file as historical configuration information.
[0076] In this embodiment, the historical control block communication parameters can be understood as configuration parameters used to indicate the sending and receiving of data by the historical smart device before the upgrade or expansion. The historical publish control block configuration parameters can be understood as configuration parameters used to indicate the GOOSE and SV publish control block configuration parameters. The historical subscribe control block configuration parameters can be understood as the GOOSE and SV subscribe control block configuration parameters between the historical smart device and the historical sub-device.
[0077] Specifically, the processor can extract the historical control block communication parameters, historical publish control block configuration parameters, historical subscribe control block configuration parameters between two historical smart devices, and the corresponding virtual terminal connection configuration from the first configuration file as historical configuration information.
[0078] b2. For historical smart devices, determine the historical verification code between the historical smart device and its corresponding historical sub-devices based on the historical configuration information.
[0079] In this embodiment, the historical verification code can be understood as the verification code between the historical smart device before the renovation and expansion and the corresponding historical sub-devices.
[0080] Specifically, the processor can calculate the historical verification code between the historical smart device and its corresponding historical sub-devices according to the historical configuration information and the set CRC algorithm for the historical smart device.
[0081] c2. Determine the list of historical verification codes based on each historical verification code.
[0082] Specifically, the processor can generate a list of historical verification codes based on each historical verification code.
[0083] For example, following the description in the above example, the historical check code list can be: CRC(A1-X1), CRC(A1-Y1), CRC(A1-Z1)... and so on.
[0084] S280. Based on the second configuration file set and the list of current sub-devices, determine the current verification code list between each current smart device and its corresponding current sub-device.
[0085] In this embodiment, the current check code list can be understood as a list composed of the CRC values between the current smart device and the current sub-device.
[0086] Specifically, the processor can calculate the current verification code value between the current smart device and the corresponding current sub-device using the set CRC algorithm based on the second configuration file set and the list of each current sub-device, and then form a current verification code list based on the current verification code value.
[0087] Furthermore, based on the above embodiments, the step of determining the current verification code list between each current smart device and its corresponding current sub-device according to the second configuration file set and the list of each current sub-device can be optimized as follows:
[0088] a3. Extract the current control block communication parameters, current publish control block configuration parameters, and current subscribe control block configuration parameters from the second configuration file as the current configuration information.
[0089] Specifically, the processor can extract the current control block communication parameters, the current publishing control block configuration parameters, the current subscription control block configuration parameters between the two current smart devices, and the corresponding virtual terminal connection configuration from the second configuration file as the current configuration information.
[0090] b3. For the current smart device, determine the current verification code between the current smart device and each corresponding current sub-device based on the current configuration information.
[0091] In this embodiment, the current verification code can be understood as the verification code between the current smart device after the upgrade and expansion and the corresponding current sub-devices.
[0092] Specifically, the processor can calculate the current verification code between the current smart device and its corresponding sub-devices according to the current configuration information and the set CRC algorithm for the current smart device.
[0093] c3. Determine the current verification code list based on each current verification code.
[0094] Specifically, the processor can generate a list of current verification codes based on each current verification code.
[0095] For example, following the description in the above example, the current check code list can be: CRC(A2-X2), CRC(A2-Y2), CRC(A2-Z2)... and so on.
[0096] S290. Determine the substation renovation and expansion information based on the historical verification code list and the current verification code list.
[0097] Specifically, the processor can compare the historical verification code list with the current verification code list and determine the substation's renovation and expansion information based on the comparison results.
[0098] Based on the above embodiments, the step of determining the substation renovation and expansion information according to the historical verification code list and the current verification code list can be optimized as follows:
[0099] a4. For historical verification codes in the historical verification code list, compare the historical verification codes with the corresponding current verification codes in the current verification code list to determine whether the target smart device and target sub-device corresponding to the current verification code are in the difference group.
[0100] In this embodiment, the difference group can be understood as the group in which the loop between the smart device and the smart sub-device changes after the renovation and expansion.
[0101] Specifically, for historical verification codes in the historical verification code list, the processor can compare the historical verification codes with the corresponding current verification codes in the current verification code list. Based on whether the two are the same, it can determine whether the target smart device and target sub-device corresponding to the current verification code belong to the difference group. Groups without differences are designated as indifferent groups, and groups with differences are designated as difference groups.
[0102] For example, the processor can compare CRC(A1-X1) with CRC(A2-X2), compare CRC(A1-Y1) with CRC(A2-Y2), and so on. Based on the comparison results, the group with differences is determined to be A2-X2, and the group without differences is determined to be A2-Y2. That is, the loop between A2-X2 has changed, while the loop between A2-Y2 has not changed.
[0103] b4. Based on each difference group, determine the list of difference groups.
[0104] Specifically, the processor can generate a list of difference groups based on each difference group.
[0105] c4. Based on the list of difference groups, determine the substation renovation and expansion information.
[0106] Specifically, the processor can determine whether the connection relationships between corresponding smart devices have changed based on the difference group list, and use this information as renovation and expansion information. This determines the renovation and expansion information for the substation.
[0107] This second embodiment uses the following setup: It obtains the configuration file sets before and after the renovation, extracts the configuration information from these sets according to the configuration description mapping relationship, and fills it into a preset general configuration template file, forming a first configuration file set and a second configuration file set. These sets are then used to create a current sub-device list and a historical sub-device list. This allows for the determination of the current and historical verification code lists corresponding to the current and historical sub-device lists. By comparing the differences in the verification codes in the two lists, the difference groups indicating changes to the corresponding circuits are identified. The renovation and expansion information of the substation is determined based on the difference group list. This achieves automatic determination of the scope of configuration changes during renovation and expansion, improving the universality of the method.
[0108] Example 3
[0109] Figure 3 This is a schematic diagram of a substation renovation and expansion information determination device provided in Embodiment 3 of the present invention. Figure 3 As shown, the device includes: a file set acquisition module 31, a file set determination module 32, and an information determination module 33. Among them,
[0110] The file set acquisition module 31 is used to acquire the historical configuration file set of the historical intelligent devices included before the substation reconstruction, and the current configuration file set of the current intelligent devices included after the substation reconstruction.
[0111] The file set determination module 32 is used to determine, based on a preset general configuration template file, a first configuration file set corresponding to the historical configuration file set and a second configuration file set corresponding to the current configuration file set;
[0112] The information determination module 33 is used to determine the renovation and expansion information of the substation based on the first configuration file set and the second configuration file set.
[0113] The technical solution of this invention involves obtaining the historical configuration file set of the intelligent devices included before the substation renovation, and the current configuration file set of the current intelligent devices included after the renovation; determining a first configuration file set corresponding to the historical configuration file set and a second configuration file set corresponding to the current configuration file set based on a preset general configuration template file; and determining the substation renovation and expansion information based on the first and second configuration file sets. This method obtains the configuration file sets before and after the substation renovation and expansion, extracts the corresponding configuration parameters according to the preset general configuration template file to form the first and second configuration file sets, calculates the CRC before and after the renovation and expansion, and determines the substation renovation and expansion information based on the difference between the CRC values. This achieves automatic determination of the scope of configuration changes during renovation and expansion, improving the universality of the method.
[0114] Furthermore, the file set determination module 32 is specifically used for:
[0115] Retrieve the preset configuration description mapping relationship;
[0116] Based on the configuration description mapping relationship, determine the historical configuration parameters in the historical configuration file set and the current configuration parameters in the current configuration file set;
[0117] Based on the historical configuration parameters and the general configuration template file, determine the first configuration file set;
[0118] Based on the current configuration parameters and the general configuration template file, determine the second configuration file set.
[0119] Furthermore, the information determination module 33 includes:
[0120] The first determining unit is configured to determine, based on the historical configuration file set and the current configuration file set, a list of historical sub-devices corresponding to each historical smart device and a list of current sub-devices corresponding to each current smart device.
[0121] The second determining unit is used to determine the historical verification code list between each historical smart device and the corresponding historical sub-device based on the first configuration file set and each of the historical sub-device lists;
[0122] The third determining unit is used to determine the current verification code list between each current smart device and the corresponding current sub-device based on the second configuration file set and each current sub-device list;
[0123] The fourth determining unit is used to determine the renovation and expansion information of the substation based on the historical verification code list and the current verification code list.
[0124] Specifically, the first determining unit is used for:
[0125] Extract the historical virtual terminal connection relationships from the historical configuration file set, and the current virtual terminal connection relationships from the current configuration file set;
[0126] Based on the historical virtual terminal connection relationship, determine the historical sub-devices connected to each of the historical smart devices, and form a list of historical sub-devices corresponding to each of the historical smart devices;
[0127] Based on the current virtual terminal connection relationship, determine the current sub-devices connected to each current smart device, and form a list of current sub-devices corresponding to each current smart device.
[0128] Specifically, the second determining unit is used for:
[0129] Extract the historical control block communication parameters, historical publish control block configuration parameters, and historical subscribe control block configuration parameters from the first configuration file as historical configuration information;
[0130] For the aforementioned historical smart device, based on the historical configuration information, a historical verification code is determined between the historical smart device and each corresponding historical sub-device;
[0131] Based on each of the historical verification codes, determine the list of historical verification codes.
[0132] Specifically, the third determining unit is used for:
[0133] Extract the current control block communication parameters, current publish control block configuration parameters, and current subscribe control block configuration parameters from the second configuration file as the current configuration information;
[0134] For the current smart device, based on the current configuration information, determine the current verification code between the current smart device and each of the corresponding current sub-devices;
[0135] Based on each of the current verification codes, determine the list of current verification codes.
[0136] Specifically, the fourth determining unit is used for:
[0137] For the historical verification codes in the historical verification code list, compare the historical verification codes with the corresponding current verification codes in the current verification code list to determine whether the target smart device and target sub-device corresponding to the current verification code are in the difference group;
[0138] Based on each of the aforementioned difference groups, determine a list of difference groups;
[0139] Based on the list of difference groups, the renovation and expansion information of the substation is determined.
[0140] The substation renovation and expansion information determination device provided in this embodiment of the invention can execute the substation renovation and expansion information determination method provided in any embodiment of the invention, and has the corresponding functional modules and beneficial effects of the method.
[0141] Example 4
[0142] Figure 4A schematic diagram of an electronic device 40 that can be used to implement embodiments of the present invention is shown. The electronic device is intended to represent various forms of digital computers, such as laptop computers, desktop computers, workstations, personal digital assistants, servers, blade servers, mainframe computers, and other suitable computers. The electronic device can also represent various forms of mobile devices, such as personal digital processors, cellular phones, smartphones, wearable devices (e.g., helmets, glasses, watches, etc.), and other similar computing devices. The components shown herein, their connections and relationships, and their functions are merely illustrative and are not intended to limit the implementation of the invention described and / or claimed herein.
[0143] like Figure 4 As shown, the electronic device 40 includes at least one processor 41 and a memory, such as a read-only memory (ROM) 42 or a random access memory (RAM) 43, communicatively connected to the at least one processor 41. The memory stores computer programs executable by the at least one processor. The processor 41 can perform various appropriate actions and processes based on the computer program stored in the ROM 42 or loaded into the RAM 43 from storage unit 48. The RAM 43 may also store various programs and data required for the operation of the electronic device 40. The processor 41, ROM 42, and RAM 43 are interconnected via a bus 44. An input / output (I / O) interface 45 is also connected to the bus 44.
[0144] Multiple components in electronic device 40 are connected to I / O interface 45, including: input unit 46, such as keyboard, mouse, etc.; output unit 47, such as various types of monitors, speakers, etc.; storage unit 48, such as disk, optical disk, etc.; and communication unit 49, such as network card, modem, wireless transceiver, etc. Communication unit 49 allows electronic device 40 to exchange information / data with other devices through computer networks such as the Internet and / or various telecommunications networks.
[0145] Processor 41 can be a variety of general-purpose and / or special-purpose processing components with processing and computing capabilities. Some examples of processor 41 include, but are not limited to, a central processing unit (CPU), a graphics processing unit (GPU), various special-purpose artificial intelligence (AI) computing chips, various processors running machine learning model algorithms, a digital signal processor (DSP), and any suitable processor, controller, microcontroller, etc. Processor 41 performs the various methods and processes described above, such as the method for determining substation renovation and expansion information.
[0146] In some embodiments, the method for determining substation renovation and expansion information can be implemented as a computer program tangibly contained in a computer-readable storage medium, such as storage unit 48. In some embodiments, part or all of the computer program can be loaded and / or installed on electronic device 40 via ROM 42 and / or communication unit 49. When the computer program is loaded into RAM 43 and executed by processor 41, one or more steps of the substation renovation and expansion information determination method described above can be performed. Alternatively, in other embodiments, processor 41 can be configured to perform the substation renovation and expansion information determination method by any other suitable means (e.g., by means of firmware).
[0147] Various embodiments of the systems and techniques described above herein can be implemented in digital electronic circuit systems, integrated circuit systems, field-programmable gate arrays (FPGAs), application-specific integrated circuits (ASICs), application-specific standard products (ASSPs), systems-on-a-chip (SoCs), payload-programmable logic devices (CPLDs), computer hardware, firmware, software, and / or combinations thereof. These various embodiments may include implementations in one or more computer programs that can be executed and / or interpreted on a programmable system including at least one programmable processor, which may be a dedicated or general-purpose programmable processor, capable of receiving data and instructions from a storage system, at least one input device, and at least one output device, and transmitting data and instructions to the storage system, the at least one input device, and the at least one output device.
[0148] Computer programs used to implement the methods of the present invention may be written in any combination of one or more programming languages. These computer programs may be provided to a processor of a general-purpose computer, a special-purpose computer, or other programmable data processing device, such that when executed by the processor, the computer programs cause the functions / operations specified in the flowcharts and / or block diagrams to be performed. The computer programs may be executed entirely on a machine, partially on a machine, or as a standalone software package, partially on a machine and partially on a remote machine, or entirely on a remote machine or server.
[0149] In the context of this invention, a computer-readable storage medium can be a tangible medium that may contain or store a computer program for use by or in conjunction with an instruction execution system, apparatus, or device. A computer-readable storage medium may include, but is not limited to, electronic, magnetic, optical, electromagnetic, infrared, or semiconductor systems, apparatus, or devices, or any suitable combination thereof. Alternatively, a computer-readable storage medium may be a machine-readable signal medium. More specific examples of machine-readable storage media include electrical connections based on one or more wires, portable computer disks, hard disks, random access memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM or flash memory), optical fibers, portable compact disk read-only memory (CD-ROM), optical storage devices, magnetic storage devices, or any suitable combination thereof.
[0150] To provide interaction with a user, the systems and techniques described herein can be implemented on an electronic device having: a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to the user; and a keyboard and pointing device (e.g., a mouse or trackball) through which the user provides input to the electronic device. Other types of devices can also be used to provide interaction with the user; for example, feedback provided to the user can be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user can be received in any form (including sound input, voice input, or tactile input).
[0151] The systems and technologies described herein can be implemented in computing systems that include backend components (e.g., as data servers), or computing systems that include middleware components (e.g., application servers), or computing systems that include frontend components (e.g., user computers with graphical user interfaces or web browsers through which users can interact with implementations of the systems and technologies described herein), or any combination of such backend, middleware, or frontend components. The components of the system can be interconnected via digital data communication of any form or medium (e.g., communication networks). Examples of communication networks include local area networks (LANs), wide area networks (WANs), blockchain networks, and the Internet.
[0152] A computing system can include clients and servers. Clients and servers are generally located far apart and typically interact through communication networks. The client-server relationship is created by computer programs running on the respective computers and having a client-server relationship with each other. The server can be a cloud server, also known as a cloud computing server or cloud host, which is a hosting product within the cloud computing service system to address the shortcomings of traditional physical hosts and VPS services, such as high management difficulty and weak business scalability.
[0153] It should be understood that the various forms of processes shown above can be used, with steps reordered, added, or deleted. For example, the steps described in this invention can be executed in parallel, sequentially, or in different orders, as long as the desired result of the technical solution of this invention can be achieved, and no limitation is imposed herein.
[0154] The specific embodiments described above do not constitute a limitation on the scope of protection of this invention. Those skilled in the art should understand that various modifications, combinations, sub-combinations, and substitutions can be made according to design requirements and other factors. Any modifications, equivalent substitutions, and improvements made within the spirit and principles of this invention should be included within the scope of protection of this invention.
Claims
1. A method of determining retrofitting information of a substation, characterized by, The method comprises the following steps: obtaining a historical configuration file set of historical intelligent devices included in a substation before reconstruction and a current configuration file set of current intelligent devices included in the substation after reconstruction; determining a first configuration file set corresponding to the historical configuration file set and a second configuration file set corresponding to the current configuration file set according to a preset universal configuration template file; determining reconstruction information of the substation according to the first configuration file set and the second configuration file set; wherein the determination of the reconstruction information of the substation according to the first configuration file set and the second configuration file set comprises: determining a historical sub-device list corresponding to each of the historical intelligent devices and a current sub-device list corresponding to each of the current intelligent devices according to the historical configuration file set and the current configuration file set; determining a historical check code list between each of the historical intelligent devices and the corresponding historical sub-device according to the first configuration file set and each of the historical sub-device list; determining a current check code list between each of the current intelligent devices and the corresponding current sub-device according to the second configuration file set and each of the current sub-device list; determining the reconstruction information of the substation according to the historical check code list and the current check code list; wherein the determination of the historical sub-device list corresponding to each of the historical intelligent devices and the current sub-device list corresponding to each of the current intelligent devices according to the historical configuration file set and the current configuration file set comprises: extracting a historical virtual terminal connection relationship in the historical configuration file set and a current virtual terminal connection relationship in the current configuration file set; determining historical sub-devices connected to each of the historical intelligent devices according to the historical virtual terminal connection relationship and forming the historical sub-device list corresponding to each of the historical intelligent devices; determining current sub-devices connected to each of the current intelligent devices according to the current virtual terminal connection relationship and forming the current sub-device list corresponding to each of the current intelligent devices.
2. The method of claim 1, wherein, The determination of the first configuration file set corresponding to the historical configuration file set and the second configuration file set corresponding to the current configuration file set according to the preset universal configuration template file comprises: obtaining a preset configuration description mapping relationship; determining historical configuration parameters in the historical configuration file set and current configuration parameters in the current configuration file set according to the configuration description mapping relationship; determining the first configuration file set according to the historical configuration parameters and the universal configuration template file; determining the second configuration file set according to the current configuration parameters and the universal configuration template file.
3. The method of claim 1, wherein, The determination of the historical check code list between each of the historical intelligent devices and the corresponding historical sub-device according to the first configuration file set and each of the historical sub-device list comprises: extracting historical control block communication parameters, historical publishing control block configuration parameters and historical subscription control block configuration parameters in the first configuration file as historical configuration information; For the historical intelligent device, according to the historical configuration information, a historical check code between the historical intelligent device and each corresponding historical sub-device is determined; According to each historical check code, the historical check code list is determined.
4. The method of claim 1, wherein, The determination of the current check code list between each current intelligent device and the corresponding current sub-device according to the second configuration file set and each current sub-device list comprises: Extracting the current control block communication parameters, the current publishing control block configuration parameters and the current subscription control block configuration parameters in the second configuration file as current configuration information; For the current intelligent device, according to the current configuration information, a current check code between the current intelligent device and each corresponding current sub-device is determined; According to each current check code, the current check code list is determined.
5. The method of claim 1, wherein, The determination of the expansion information of the substation according to the historical check code list and the current check code list comprises: For the historical check code in the historical check code list, the historical check code and the corresponding current check code in the current check code list are compared to determine whether the target intelligent device and the target sub-device corresponding to the current check code are a difference group; According to each difference group, a difference group list is determined; According to the difference group list, the expansion information of the substation is determined.
6. A retrofitting information determination device of a substation, characterized by comprising: Comprise: The file set acquisition module is used for acquiring a historical configuration file set of historical intelligent devices included in a substation before reconstruction and a current configuration file set of current intelligent devices included in the substation after reconstruction; The file set determination module is used for determining a first configuration file set corresponding to the historical configuration file set and a second configuration file set corresponding to the current configuration file set according to a preset universal configuration template file; The information determination module is used for determining the expansion information of the substation according to the first configuration file set and the second configuration file set; The information determination module comprises: The first determination unit is used for determining a historical sub-device list corresponding to each historical intelligent device and a current sub-device list corresponding to each current intelligent device according to the historical configuration file set and the current configuration file set; The second determination unit is used for determining a historical check code list between each historical intelligent device and the corresponding historical sub-device according to the first configuration file set and each historical sub-device list; The third determination unit is used for determining a current check code list between each current intelligent device and the corresponding current sub-device according to the second configuration file set and each current sub-device list; The fourth determination unit is used for determining the expansion information of the substation according to the historical check code list and the current check code list; The first determination unit is specifically used for: Extracting a historical virtual terminal connection relationship in the historical configuration file set and a current virtual terminal connection relationship in the current configuration file set; According to the historical virtual terminal connection relationship, the historical sub-device connected by each historical intelligent device is determined, and a historical sub-device list corresponding to each historical intelligent device is formed; According to the current virtual terminal connection relationship, current sub-devices connected with each current smart device are determined, and a current sub-device list corresponding to each current smart device is formed.
7. An electronic device, comprising: The electronic device includes: at least one processor; and a memory connected with the at least one processor in communication; wherein The memory stores a computer program executable by the at least one processor, and the computer program is executed by the at least one processor to enable the at least one processor to execute the substation reconstruction information determination method of any one of claims 1-5.
8. A computer-readable storage medium, characterized in that, The computer readable storage medium stores computer instructions for enabling the processor to implement the substation reconstruction information determination method of any one of claims 1-5 when executed.
Citation Information
Patent Citations
Difference comparison method, system and device for intelligent substation bus difference reconstruction and expansion configuration file
CN109213976A