A substation secondary equipment setting data processing system and method
By using a combination of CPU, FLASH, RAM memory and ferroelectric chips in the secondary equipment of the substation, redundant backup and emergency storage of setpoint data are achieved, which solves the problem of equipment instability caused by failure to write or damage of setpoint files and improves the operational reliability of the equipment.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- NANJING GUODIAN NANZI POWER GRID AUTOMATION CO LTD
- Filing Date
- 2023-02-13
- Publication Date
- 2026-04-28
AI Technical Summary
When the setting data of the secondary equipment in the substation fails to be written or is damaged, it affects the normal operation of the equipment and leads to a decrease in reliability.
It employs a combination of CPU, FLASH, RAM memory and ferroelectric chip, and coordinates the interaction of setpoint data through hard-wired connections. It utilizes two independent storage areas of RAM memory and ferroelectric chip to back up and restore the setpoint array, ensuring emergency storage and abnormal recovery in the event of power failure.
It enables redundant backup and abnormal recovery of setting data, improves the operational stability of substation secondary equipment, prevents setting files from being damaged when the voltage is abnormal, and ensures that setting modification operations are recorded and saved in a timely manner under fault conditions.
Smart Images

Figure CN116089146B_ABST
Abstract
Description
Technical Field
[0001] This invention relates to a system and method for processing setpoint data of secondary equipment in substations, belonging to the technical field of secondary equipment in power systems. Background Technology
[0002] As the national economy develops, the demand for stable power supply is increasing, and the reliability requirements for substation secondary equipment are also increasing. The reliability of setting data in substation secondary equipment is now of paramount importance. Setting values specify various telemetry accuracies, output pulse widths, protection action thresholds, etc. Once the setting data becomes abnormal, it will seriously threaten the reliable operation of primary and secondary equipment in the substation.
[0003] Currently, the setting data of the secondary equipment in the substation is stored in the FLASH memory of the equipment as files. Each setting operation will trigger the read and write operation of the setting file. In the case of frequent setting operations or abnormal power supply of the device, there is a probability that the setting file will fail to be written. In severe cases, the setting file may even be damaged, which will affect the normal operation of the equipment after power is restored. Summary of the Invention
[0004] The purpose of this invention is to overcome the shortcomings of the prior art and provide a substation secondary equipment setting data processing system and method to solve the problem of substation secondary equipment affecting normal operation when the setting file is not written properly or is damaged.
[0005] To achieve the above objectives, the present invention is implemented using the following technical solution:
[0006] In a first aspect, this embodiment provides a substation secondary equipment setting data processing system, including: CPU, FLASH (flash memory), RAM (random access memory) and ferroelectric chip;
[0007] The CPU is connected to the FLASH, RAM memory and ferroelectric chip via hardwire to coordinate the fixed value data interaction between them.
[0008] The FLASH is used to store the setting file and the mapping configuration file. The setting file is used to store the device setting information, and the mapping configuration file contains the mapping relationship between the setting file and the setting array.
[0009] The RAM memory is used to allocate two independent storage spaces for a given value array after the device is powered on, including fixed value memory area 1 and area 2, for the CPU chip to obtain in real time.
[0010] The ferroelectric chip is used for backup and recovery when the set value is updated or the verification is abnormal, and for emergency storage of the set value array when the device power supply is abnormal.
[0011] When the CPU detects that a certain set value of the device has been changed by the interface or the background system, it updates the corresponding set value items in the set value arrays of RAM set value data area 1 and area 2. Then, it generates a new set value file by referring to the mapping configuration file for the set value array of area 1, and writes this file to FLASH to overwrite the old set value file. After that, the set value array of area 2 is written to the ferroelectric chip as a redundant backup of the set value data.
[0012] Furthermore, the CPU control method also includes:
[0013] When the CPU detects abnormal voltage fluctuations caused by external factors such as power failure or power outage, it immediately writes the fixed value array from fixed value memory area 2 to the ferroelectric chip as an emergency backup, completing the emergency storage of the fixed value data. At this time, to prevent file writing errors, even if the fixed values are modified, the fixed value array from fixed value memory area 1 will not be converted into a fixed value file and written to FLASH.
[0014] Furthermore, the CPU control method also includes:
[0015] Each time the device is powered on, a consistency check is performed on the fixed value arrays in fixed value memory areas 1 and 2.
[0016] If the two are consistent, the fixed value array in the current zone 1 is used. If they are inconsistent or the fixed value array in zone 1 cannot be initialized due to a corrupted fixed value file, the fixed value array in zone 2 is used. At the same time, the fixed value array in zone 2 is copied and overwritten to the fixed value array in zone 1. Finally, the fixed value array in zone 1 is regenerated with reference to the mapping relationship defined in the mapping configuration file, and the fixed value file in the current FLASH is overwritten to achieve abnormal recovery of the fixed value file.
[0017] Secondly, the present invention provides a method for processing setpoint data of secondary equipment in a substation, based on a data system, the system comprising: a CPU, FLASH, RAM memory and ferroelectric chip connected together; the RAM memory includes setpoint memory area 1 and area 2, which are used by the CPU chip to acquire data in real time;
[0018] The method includes the following steps:
[0019] Step A: The CPU reads and parses the mapping configuration file in the FLASH, forming a real-time mapping relationship between the fixed value file and the fixed value array in the CPU processor;
[0020] Step B: The CPU reads the fixed value file information from the FLASH memory and generates fixed value data through the real-time mapping relationship in Step A. This data exists as a specific array, and the architecture of the fixed value array is clearly defined in the mapping configuration file. This fixed value array is stored in fixed value memory area 1, while the fixed value array in the ferroelectric chip is read and stored in fixed value memory area 2.
[0021] If the ferroelectric chip does not contain a fixed value array, it indicates that the device is being initialized and powered on for the first time. In this case, the fixed value array in fixed value memory area 1 is copied to fixed value memory area 2, and the fixed value array in fixed value memory area 2 is written to the ferroelectric chip as a redundant backup of the fixed value data.
[0022] Furthermore, the CPU reads the fixed-value file information from the FLASH memory and generates a fixed-value array through real-time mapping relationships, including:
[0023] The fixed-value attributes in the fixed-value array are sorted in the same way as the fixed-value attributes in the fixed-value file.
[0024] The fixed value attributes in the fixed value file include: each fixed value's number, Chinese description, default value, unit, minimum value, maximum value, modification step size, and data type.
[0025] Furthermore, the method also includes:
[0026] Step C: Each time the device is powered on, a consistency check is performed on the fixed value arrays in fixed value memory areas 1 and 2;
[0027] If the two are consistent, the fixed value array in the current zone 1 is used. If they are inconsistent or the fixed value array in zone 1 cannot be initialized due to a corrupted fixed value file, the fixed value array in zone 2 is used. At the same time, the fixed value array in zone 2 is copied and overwritten to the fixed value array in zone 1. Finally, the fixed value array in zone 1 is regenerated with reference to the mapping relationship defined in the mapping configuration file, and the fixed value file in the current FLASH is overwritten to achieve abnormal recovery of the fixed value file.
[0028] Furthermore, the method also includes:
[0029] Step D: When a device setting is detected to have been changed by the interface or the backend system, the corresponding setting items in the RAM setting data area 1 and area 2 are updated simultaneously. Then, the setting array in area 1 is used to generate a new setting file according to the mapping relationship, and this file is written to the FLASH, overwriting the old setting file. Finally, the setting array in area 2 is written to the ferroelectric chip as a redundant backup of the setting data.
[0030] Step E: When abnormal voltage fluctuations are detected in the device due to external causes such as power failure or power loss, the CPU immediately writes the fixed value array in fixed value memory area 2 into the ferroelectric chip as an emergency backup, thus completing the emergency storage of the fixed value data.
[0031] To prevent errors when writing files, even if the fixed values are modified, the fixed value array in memory area 1 will no longer be converted into a fixed value file and written to FLASH.
[0032] Furthermore, the method also includes:
[0033] Step F: If a setting modification operation occurs simultaneously with step E, the new setting information will not be updated to the setting file in FLASH. Then, when the device is powered on again, step C will be executed to update and restore the setting file.
[0034] Compared with the prior art, the beneficial effects achieved by the present invention are as follows:
[0035] 1. This invention does not incur any hardware costs and can achieve redundant backup of setpoint parameters solely through software methods, thereby improving the error prevention capability of reading and writing setpoint files and enhancing the operational stability of substation secondary equipment.
[0036] 2. This invention enables emergency storage of setpoint parameters through software. To prevent FLASH file writing failure due to abnormal voltage fluctuations from damaging the setpoint file, the setpoint array in setpoint memory area 1 is no longer converted into a setpoint file and written to FLASH. Instead, the setpoint array in setpoint memory area 2 with the same setpoint information is written to the ferroelectric chip. This ensures that setpoint modification operations occurring during external power failure or power outage can be recorded and saved in a timely manner, while solving the problem of setpoint file modification failure under such fault conditions. This completes the emergency storage of setpoint data and improves the stability of substation secondary equipment operation.
[0037] 3. This invention achieves abnormal recovery of setpoint parameters through software methods. The setpoint array in the ferroelectric chip serves as the most reliable backup of the device's setpoint information. The setpoint data adopts a specific array structure, resulting in low memory usage and fast write speed. When the setpoint file is corrupted or fails to update correctly due to external faults, abnormal recovery of the setpoint file can be achieved through a specific mapping relationship. Attached Figure Description
[0038] Figure 1 This is a schematic diagram of the hardware system architecture scheme in an embodiment of the present invention;
[0039] Figure 2 This is a flowchart of the device power-on setting verification and anomaly recovery in an embodiment of the present invention;
[0040] Figure 3 This is a flowchart of the fixed value data modification and backup process in an embodiment of the present invention;
[0041] Figure 4 This is a flowchart of the emergency storage process for fixed-value data in an embodiment of the present invention;
[0042] Figure 5 This is an example diagram of the content of the value file in an embodiment of the present invention;
[0043] Figure 6This is an example diagram of the mapping configuration file content in an embodiment of the present invention;
[0044] Figure 7 This is an example diagram of the content of the fixed-value array in an embodiment of the present invention. Detailed Implementation
[0045] The present invention will be further described below with reference to the accompanying drawings. The following embodiments are only used to more clearly illustrate the technical solution of the present invention, and should not be used to limit the scope of protection of the present invention.
[0046] Example 1:
[0047] This embodiment provides a substation secondary equipment setting data processing system, including a substation secondary equipment setting data redundancy backup, emergency storage and anomaly recovery system, specifically including: CPU, FLASH, RAM memory and ferroelectric chip;
[0048] The CPU is connected to the FLASH, RAM memory and ferroelectric chip via hardwire to coordinate the fixed value data interaction between them.
[0049] The FLASH is used to store the setting file and the mapping configuration file. The setting file is used to store the device setting information, and the mapping configuration file contains the mapping relationship between the setting file and the setting array.
[0050] The RAM memory is used to allocate two independent storage spaces after the device is powered on, namely fixed value memory area 1 and area 2, for the CPU chip to obtain in real time.
[0051] The ferroelectric chip is used for backup and recovery when the set value is updated or the verification is abnormal, and for emergency storage of the set value array when the device power supply is abnormal.
[0052] The CPU has a built-in program that performs the following operations:
[0053] When the CPU detects that a certain set value of the device has been changed by the interface or the background system, it updates the corresponding set value items in the set value arrays of RAM set value data area 1 and area 2. Then, it generates a new set value file from the set value array of area 1 according to the mapping relationship and writes this file to FLASH, overwriting the old set value file. After that, the set value array of area 2 is written to the ferroelectric chip as a redundant backup of the set value data.
[0054] When abnormal voltage fluctuations are detected due to external factors such as power failure or power outage, the CPU immediately writes the fixed value array from memory area 2 to the ferroelectric chip as an emergency backup. To prevent FLASH write failures during abnormal voltage fluctuations from corrupting the fixed value file, even if the fixed values are modified, the fixed value array from memory area 1 is not converted into a fixed value file and written to FLASH. This ensures that fixed value modifications occurring during external power failures are recorded and saved promptly, resolving the issue of fixed value modification failure under this fault condition and completing emergency storage of fixed value data.
[0055] Each time the device is powered on, the CPU performs a consistency check on the fixed value arrays in fixed value memory areas 1 and 2.
[0056] If the two are consistent, the fixed value array in the current zone 1 is used. If they are inconsistent or the fixed value array in zone 1 cannot be initialized due to a corrupted fixed value file, the fixed value array in zone 2 is used. At the same time, the fixed value array in zone 2 is copied and overwritten to the fixed value array in zone 1. Finally, the fixed value array in zone 1 is regenerated with reference to the mapping relationship defined in the mapping configuration file, and the fixed value file in the current FLASH is overwritten to achieve abnormal recovery of the fixed value file.
[0057] Example 2:
[0058] like Figure 1 As shown, this embodiment provides a substation secondary equipment setting data processing system and method, including: CPU, FLASH, RAM memory and ferroelectric chip;
[0059] The CPU chip is connected to the FLASH, RAM memory and ferroelectric chips via hardwires on the PCB board to coordinate the fixed-value data exchange between them.
[0060] The FLASH chip is connected to the CPU chip via a data bus. It is used to store the setting file and the mapping configuration file. The setting file is used to store the device setting information, and the mapping configuration file contains the mapping relationship between the setting file and the setting array.
[0061] RAM memory is connected to the CPU chip via a data bus. It is used to allocate two independent storage spaces for a given value array after the device is powered on, so that the CPU chip can obtain them in real time.
[0062] Ferroelectric chips are connected to CPU chips via an I2C bus. They are used for backup and recovery when setpoint data is updated or verified abnormally, and for emergency storage of setpoint data when the device power supply is abnormal.
[0063] like Figure 2 , Figure 3 , Figure 4As shown, a substation secondary equipment setting data processing system and method includes the following steps:
[0064] Step 1: During the power-on debugging of the equipment on the production line, the initial setting file is downloaded to the equipment's FLASH using the debugging tool. After the equipment is put into engineering use, the power-on process is as follows: Figure 2 As shown, the CPU reads and parses the fixed value file in the FLASH memory. The structure of the fixed value file content is as follows: Figure 5 As shown, the relevant information for each fixed value is described using an "item" structure, including number, Chinese description, default value, unit, minimum value, maximum value, modification step size, and data type.
[0065] Step 2: The CPU reads and parses the mapping configuration file in the FLASH memory, forming a real-time mapping relationship between the fixed value file and the fixed value array in the CPU processor. Its content structure is as follows: Figure 6 As shown, the relevant information for each fixed value is ordered in the fixed value array, and this order is the same as the order of the relevant attributes in the fixed value file, simplifying the subsequent conversion between the fixed value array and the fixed value file. Furthermore, the mapping configuration file defines simplified codes for the Chinese description, unit, range, and data type of the fixed values, which simplifies the content of the fixed value array and reduces storage space. Calculations show that the fixed value array simplified by the mapping configuration file saves approximately 72% of storage space compared to the fixed value file. In this example, the fixed value file is generally larger than 15KB. If the fixed value file is directly written to the ferroelectric system, the time is approximately 500 milliseconds, while writing the simplified fixed value array (approximately 4.2 KB) to the ferroelectric system takes approximately 140 milliseconds, significantly reducing the emergency storage time for fixed value information in case of power failure.
[0066] Step 3: Parse the fixed-value file obtained in Step 1 into a fixed-value array based on the mapping relationship defined in the mapping configuration file, such as... Figure 7 That is Figure 5 The setpoint array corresponding to the setpoint file is stored in setpoint memory area 1, and the setpoint array in the ferroelectric chip is read and stored in setpoint memory area 2. If the setpoint array is not found in the ferroelectric chip, it indicates that the device is being powered on for the first time after leaving the production line. In this case, the setpoint array in setpoint memory area 1 is copied to setpoint memory area 2, and the setpoint array is also written to the ferroelectric chip as a redundant backup of the setpoint data.
[0067] Step 4: After initialization in Step 1, the device executes Steps 2 and 3 upon each power-on. Afterward, it performs a consistency check on the fixed-value arrays in memory areas 1 and 2. If they match, the fixed-value array in area 1 is used. If they do not match, or if the fixed-value array in area 1 cannot be initialized due to a corrupted fixed-value file, the fixed-value array in area 2 is used. Simultaneously, the fixed-value array in area 2 is copied and overwritten to the fixed-value array in area 1. Finally, the fixed-value file in area 1 is regenerated based on the mapping relationship defined in the mapping configuration file, and this regenerates the fixed-value file in the current FLASH memory, thus achieving abnormal recovery of the fixed-value file.
[0068] Step 5: As shown in the above steps, the array structures of the fixed-value arrays in fixed-value memory areas 1 and 2 are identical, and they have the same mapping relationship with the fixed-value file. This relationship is stored in FLASH as a mapping configuration file, with read-only file access permissions. The CPU can use this mapping configuration file to convert between the fixed-value arrays in fixed-value memory area 1 and the fixed-value file.
[0069] Step 6: When the device settings are detected to have been changed by the interface or the backend system, the corresponding settings items in RAM settings arrays 1 and 2 are updated simultaneously. Then, a new settings file is generated from the settings array in area 1 according to the mapping relationship, and this file is written to the FLASH, overwriting the old settings file. Finally, the settings array in area 2 is written to the ferroelectric chip as a redundant backup of the settings data.
[0070] Step 7: When abnormal voltage fluctuations are detected due to external factors such as power failure or power outage, the CPU immediately writes the fixed value array from memory area 2 to the ferroelectric chip as an emergency backup. To prevent FLASH write failures during abnormal voltage fluctuations from corrupting the fixed value file, even if the fixed values are modified, the fixed value array from memory area 1 will not be converted into a fixed value file and written to FLASH. This ensures that fixed value modifications occurring during external power failures are recorded and saved promptly, resolving the issue of fixed value modification failure under this fault condition and completing emergency storage of the fixed value data.
[0071] Step 8: If a setting modification operation occurs at the same time as step 7, the new setting information will not be updated to the setting file in FLASH. Then, when the device is powered on again, step 4 will be executed to update and restore the setting file.
[0072] It should be noted that redundancy backup, emergency storage, and anomaly recovery methods are parallel methods, and combining these three methods can improve the security of device setting information.
[0073] In this invention, each time a fixed value update or abnormal fluctuation in device power is detected, the fixed value array in fixed value memory area 2 is written to the ferroelectric chip connected to the CPU. This fixed value data uses a specific array structure, which has low memory usage and fast writing speed. Simultaneously, a configuration file mapping the fixed value array structure to the fixed value file is stored in FLASH. After the device powers on, the fixed value file in FLASH is parsed. If parsing is successful, the fixed value data is arranged in a specific array structure in fixed value memory area 1 according to the mapping relationship. At the same time, the fixed value array in the ferroelectric chip is read into fixed value memory area 2, and the arrays in the two memory areas are compared for consistency. If the data matches, the fixed value array in fixed value memory area 1 is used. If they do not match, or if the fixed value array in area 1 cannot be initialized due to a corrupted fixed value file, the fixed value array in area 2 is used. Simultaneously, the fixed value array in area 2 is copied and overwritten to the fixed value array in area 1. Finally, the fixed value array in area 1 is regenerated according to the mapping relationship defined in the configuration file, and the current fixed value file in FLASH is overwritten, thus overwriting any corrupted or incorrect fixed value files and achieving abnormal recovery of the fixed value file.
[0074] Currently, FLASH, RAM memory, and ferroelectric chips are all standard hardware designs for embedded systems. Therefore, this invention does not add any hardware costs and can achieve redundant backup, emergency storage, and anomaly recovery functions for setpoint parameters solely through software methods. At the same time, it also improves the error prevention capability of reading and writing setpoint files and enhances the stability of substation secondary equipment operation.
[0075] Those skilled in the art will understand that embodiments of this application can be provided as methods, systems, or computer program products. Therefore, this application can take the form of a completely hardware embodiment, a completely software embodiment, or an embodiment combining software and hardware aspects. Furthermore, this application can take the form of a computer program product embodied on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.
[0076] This application is described with reference to flowchart illustrations and / or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of this application. It will be understood that each block of the flowchart illustrations and / or block diagrams, and combinations of blocks in the flowchart illustrations and / or block diagrams, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, special-purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, generate instructions for implementing the flowchart... Figure 1 One or more processes and / or boxes Figure 1 A device that provides the functions specified in one or more boxes.
[0077] These computer program instructions may also be stored in a computer-readable storage medium that can direct a computer or other programmable data processing device to function in a particular manner, such that the instructions stored in the computer-readable storage medium produce an article of manufacture including instruction means, which are implemented in a process Figure 1 One or more processes and / or boxes Figure 1 The function specified in one or more boxes.
[0078] These computer program instructions may also be loaded onto a computer or other programmable data processing equipment to cause a series of operational steps to be performed on the computer or other programmable equipment to produce a computer-implemented process, thereby providing instructions that execute on the computer or other programmable equipment for implementing the process. Figure 1 One or more processes and / or boxes Figure 1 The steps of the function specified in one or more boxes.
[0079] The above description is only a preferred embodiment of the present invention. It should be noted that for those skilled in the art, several improvements and modifications can be made without departing from the technical principles of the present invention, and these improvements and modifications should also be considered within the scope of protection of the present invention.
Claims
1. A substation secondary equipment setting data processing system, characterized in that, include: CPU, FLASH, RAM memory and ferroelectric chips; The CPU is connected to the FLASH, RAM memory and ferroelectric chip via hardwire to coordinate the fixed value data interaction between them. The FLASH is used to store the setting file and the mapping configuration file. The setting file is used to store the device setting information, and the mapping configuration file contains the mapping relationship between the setting file and the setting array. The RAM memory is used to allocate two independent storage spaces for a given value array after the device is powered on, namely the fixed value memory area 1 and the fixed value memory area 2, for the CPU chip to obtain in real time; The ferroelectric chip is used for backup and recovery when the set value is updated or the verification is abnormal, and for emergency storage of the set value array when the device power supply is abnormal. When the CPU detects that a certain fixed value of the device has been modified by the interface or the background system, it updates the corresponding fixed value items in the fixed value arrays in fixed value memory areas 1 and 2. Then, it generates a new fixed value file from the fixed value array in area 1 according to the mapping relationship and writes this file to FLASH, overwriting the old fixed value file. After that, it writes the fixed value array in area 2 into the ferroelectric chip as a redundant backup of the fixed value data. The CPU reads and parses the mapping configuration file in the FLASH, and forms a real-time mapping relationship between the fixed value file and the fixed value array in the CPU; The CPU reads the fixed-value file information from the FLASH memory and generates fixed-value data through the real-time mapping relationship. This data exists as a specific array, the structure of which is explicitly defined in the mapping configuration file. This fixed-value array is stored in fixed-value memory area 1, while the fixed-value array from the ferroelectric chip is read and stored in fixed-value memory area 2. If the ferroelectric chip does not contain a fixed value array, it indicates that the device is being initialized and powered on for the first time. In this case, the fixed value array in fixed value memory area 1 is copied to fixed value memory area 2, and the fixed value array in fixed value memory area 2 is written to the ferroelectric chip as a redundant backup of the fixed value data.
2. The substation secondary equipment setting data processing system according to claim 1, characterized in that, The CPU control method further includes: When the CPU detects abnormal voltage fluctuations in the device due to power failure or external power loss, the CPU immediately writes the fixed value array in fixed value memory area 2 into the ferroelectric chip as an emergency backup, thus completing the emergency storage of the fixed value data. Even if the fixed values are modified, the fixed value array in memory area 1 will no longer be converted into a fixed value file and written to FLASH.
3. The substation secondary equipment setting data processing system according to claim 1, characterized in that, The CPU control method further includes: Each time the device is powered on, a consistency check is performed on the fixed value arrays in fixed value memory areas 1 and 2. If the two are consistent, the fixed value array in the current area 1 is used. If they are inconsistent or the fixed value array in area 1 cannot be initialized due to the corruption of the fixed value file, the fixed value array in area 2 is used. At the same time, the fixed value array in area 2 is copied and overwritten to the fixed value array in area 1. Finally, the fixed value array in area 1 is regenerated with reference to the mapping relationship defined in the mapping configuration file and the fixed value file in the current FLASH is overwritten to realize the abnormal recovery of the fixed value file.
4. A method for processing setpoint data of secondary equipment in a substation, based on the substation secondary equipment setpoint data processing system as described in claim 1; the method includes the following steps: Step A: The CPU reads and parses the mapping configuration file in the FLASH, forming a real-time mapping relationship between the fixed value file and the fixed value array in the CPU; Step B: The CPU reads the fixed value file information from the FLASH memory and generates fixed value data through the real-time mapping relationship. This data exists as a specific array, and the architecture of the fixed value array is clearly defined in the mapping configuration file. The fixed value array is stored in fixed value memory area 1, and the fixed value array in the ferroelectric chip is read and stored in fixed value memory area 2. If the ferroelectric chip does not contain a fixed value array, it indicates that the device is being initialized and powered on for the first time. In this case, the fixed value array in fixed value memory area 1 is copied to fixed value memory area 2, and the fixed value array in fixed value memory area 2 is written to the ferroelectric chip as a redundant backup of the fixed value data.
5. The substation secondary equipment setting data processing method according to claim 4, characterized in that, The CPU reads the fixed-value file information from the FLASH memory and generates a fixed-value array based on the real-time mapping relationship, including: The fixed-value attributes in the fixed-value array are sorted in the same way as the fixed-value attributes in the fixed-value file; The fixed value attributes in the fixed value file include: each fixed value's number, Chinese description, default value, unit, minimum value, maximum value, modification step size, and data type.
6. The substation secondary equipment setting data processing method according to claim 4, characterized in that, The method further includes: Step C: Each time the device is powered on, a consistency check is performed on the fixed value arrays in fixed value memory areas 1 and 2; If the two are consistent, the fixed value array in the current zone 1 is used. If they are inconsistent or the fixed value array in zone 1 cannot be initialized due to a corrupted fixed value file, the fixed value array in zone 2 is used. At the same time, the fixed value array in zone 2 is copied and overwritten to the fixed value array in zone 1. Finally, the fixed value array in zone 1 is regenerated with reference to the mapping relationship defined in the mapping configuration file, and the fixed value file in the current FLASH is overwritten to achieve abnormal recovery of the fixed value file.
7. The substation secondary equipment setting data processing method according to claim 6, characterized in that, The method further includes: Step D: When the device settings are detected to have been changed by the interface or the backend system, the corresponding settings items in the RAM settings data area 1 and area 2 are updated simultaneously. Then, the settings array in area 1 is used to generate a new settings file based on the mapping relationship, and this file is written to the FLASH, overwriting the old settings file. Finally, the settings array in area 2 is written to the ferroelectric chip as a redundant backup of the settings data. Step E: When abnormal voltage fluctuations are detected in the device due to power failure or external power loss, the CPU immediately writes the fixed value array in fixed value memory area 2 into the ferroelectric chip as an emergency backup, completing the emergency storage of the fixed value data. Even if the fixed value is modified, the fixed value array in fixed value memory area 1 will no longer be converted into a fixed value file and written to FLASH.
8. The substation secondary equipment setting data processing method according to claim 7, characterized in that, The method further includes: Step F: If a setting modification operation occurs simultaneously with step E, the new setting information will not be updated to the setting file in FLASH. Then, when the device is powered on again, step C will be executed to update and restore the setting file.
Citation Information
Patent Citations
Method, device and system for adjusting fixed value of relay protection equipment
CN102480124A
Relay protection device constant value modifying and checking system
CN103746337A