Data error correction method and device in relay protection device
By setting up multiple application CPUs and real-time storage units in the relay protection device, and using multiple checksum data replacement technology, the operation abnormality caused by abnormal displacement of the storage unit is solved, and the correction of multi-bit abnormal data and the replacement of correct data is realized.
Patent Information
- Application Number
- CN202411934661.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-12-26
- Publication Date
- 2025-05-13
AI Technical Summary
In the relay protection device, due to insufficient internal chip storage capacity, the storage unit is prone to abnormal displacement, resulting in errors in storage data, affecting the working status of the device, and the circuit breaker tripping or accidental tripping cannot be controlled in time.
A plurality of application CPUs are arranged in the relay protection device, each CPU is equipped with a real-time storage unit and a fixed storage unit. The real-time storage unit stores the same data for CPU to call, and the fixed storage unit is used as data backup. During operation, each real-time storage unit and other real-time storage units are checked against each other. If it is abnormal, the corresponding fixed storage unit will be checked, and the data that has been successfully checked will be replaced with the real-time storage unit to correct data errors.
Through multiple checksum data replacement, multiple bits of abnormal data in real-time storage units can be effectively corrected, error data from CPU calls, and errors in relay protection device operation problems caused by abnormal displacement.
Smart Images

Figure CN119988085A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of relay protection, and in particular to a data error correction method and device in a relay protection device. Background Art
[0002] Relay protection devices are mainly used to detect the operating status of power equipment and control the circuit breaker to trip when the operating status of the power equipment is abnormal, thereby cutting off the abnormally operating power equipment from the power system to avoid further damage to the power system.
[0003] With the development of digitalization and intelligence of power grids, the software programs of relay protection devices are becoming increasingly large and complex, and the requirements for the storage capacity of their internal chips are also getting higher and higher. However, the storage capacity of the internal chips of current relay protection devices is still insufficient, which makes the storage unit inside the relay protection device prone to abnormal displacement, causing errors in the stored data in the storage unit, which in turn affects the working state of the relay protection device, resulting in the inability to control the circuit breaker tripping in time or the control circuit breaker tripping by mistake.
[0004] In the related art, error correction code (ECC) technology is usually used to detect and correct abnormal displacement data in storage units, but ECC technology can usually only correct one-bit data errors and check two-bit data errors. It cannot realize continuous multi-bit data detection and correction, and cannot effectively solve the problem of abnormal operation of relay protection devices caused by abnormal displacement. Summary of the invention
[0005] The embodiment of the present invention provides a data error correction method and device in a relay protection device, so as to effectively solve the problem of abnormal operation of the relay protection device caused by abnormal data displacement.
[0006] In a first aspect, an embodiment of the present invention provides a data error correction method in a relay protection device, which is applied to a relay protection device, wherein the relay protection device comprises: a plurality of application CPUs, and each application CPU is equipped with a real-time storage unit and a fixed storage unit; wherein each real-time storage unit stores the same storage data for each application CPU to call and run; each fixed storage unit stores the same storage data for providing data backup for each real-time storage unit;
[0007] The method comprises:
[0008] During the operation of the relay protection device, for each real-time storage unit, the storage data in the real-time storage unit is mutually verified with the storage data in the remaining real-time storage units in sequence to obtain a plurality of first verification results;
[0009] For each first verification result, if the first verification result shows an abnormality, mutually verify the storage data in the two fixed storage units corresponding to the first verification result to obtain a second verification result;
[0010] If the second verification result is normal, the storage data in the fixed storage unit corresponding to the second verification result is replaced with the corresponding real-time storage unit to achieve error correction for the storage data in the real-time storage unit.
[0011] In a possible implementation, for each first verification result, after mutually verifying the storage data in the two fixed storage units corresponding to the first verification result to obtain the second verification result, the method further includes:
[0012] If the second verification result shows an abnormality, the first fixed storage unit and the remaining fixed storage units except the second fixed storage unit are mutually verified in sequence to obtain a plurality of third verification results;
[0013] The second fixed storage unit and the remaining fixed storage units except the first fixed storage unit are mutually verified in sequence to obtain a plurality of fourth verification results; wherein the first fixed storage unit and the second fixed storage unit are fixed storage units corresponding to the second verification results;
[0014] If the multiple third verification results are all normal and the multiple fourth verification results are all abnormal, the storage data in the first fixed storage unit is replaced respectively to the multiple real-time storage units corresponding to the first fixed storage unit, the second fixed storage unit, and the real-time storage unit corresponding to the second fixed storage unit.
[0015] In a possible implementation, after mutually verifying the second fixed storage unit and the remaining fixed storage units except the first fixed storage unit in sequence to obtain a plurality of fourth verification results, the method further includes:
[0016] If the plurality of third verification results all show abnormality, and the plurality of fourth verification results all show abnormality, mutually verify the remaining fixed storage units except the first fixed storage unit and the second fixed storage unit to obtain a plurality of fifth verification results;
[0017] If the multiple fifth verification results are all normal, the storage data in the fixed storage unit corresponding to any fifth verification result is replaced to the first fixed storage unit, the second fixed storage unit, the real-time storage unit corresponding to the first fixed storage unit, and the real-time storage unit corresponding to the second fixed storage unit.
[0018] In a possible implementation, after performing mutual verification on the remaining fixed storage units except the first fixed storage unit and the second fixed storage unit to obtain a plurality of fifth verification results, the method further includes:
[0019] If any fifth verification result shows an abnormality, an alarm message is generated to remind the user.
[0020] In a possible implementation, for each real-time storage unit, the stored data in the real-time storage unit is mutually verified with the stored data in the remaining real-time storage units in sequence to obtain a plurality of first verification results, including:
[0021] For each real-time storage unit, all stored data in the real-time storage unit are divided into different storage data sequences in sequence, and the check code corresponding to each storage data sequence is calculated respectively to obtain a first check code sequence;
[0022] respectively determining the second check code sequences corresponding to the remaining real-time storage units;
[0023] For each second check code sequence, each check code data in the first check code sequence is compared with the check code data at a corresponding position in the second check code sequence to obtain a first check result.
[0024] In a possible implementation, for each second check code sequence, each check code data in the first check code sequence is compared with the check code data at a corresponding position in the second check code sequence to obtain a first check result, including:
[0025] For each second check code sequence, when each check code data in the first check code sequence is the same as the check code data at the corresponding position in the second check code sequence, it is determined that the first check result is normal;
[0026] When any check code data in the first check code sequence is different from the check code data at the corresponding position in the second check code sequence, it is determined that the first check result shows an abnormality.
[0027] In a possible implementation, the method further includes:
[0028] When the relay protection device is powered on and initialized, the stored data in each fixed storage unit are mutually verified to obtain a plurality of initial verification results;
[0029] If the multiple initial verification results are all normal, the storage data in each fixed storage unit is restored to the corresponding real-time storage unit.
[0030] In a possible implementation, when the relay protection device is powered on and initialized, after mutually verifying the stored data in each fixed storage unit according to a preset verification method and obtaining a plurality of initial verification results, the method further includes:
[0031] If any of the initial verification results shows an abnormality, an alarm message is generated according to the storage data in each fixed storage unit corresponding to the initial verification result showing the abnormality to remind the user.
[0032] In a second aspect, an embodiment of the present invention provides a data error correction device in a relay protection device, which is applied to the relay protection device, wherein the relay protection device comprises: a plurality of application CPUs, and each application CPU is equipped with a real-time storage unit and a fixed storage unit; wherein each real-time storage unit stores the same storage data for each application CPU to call and run; each fixed storage unit stores the same storage data for providing data backup for each real-time storage unit;
[0033] The device comprises:
[0034] A real-time verification module is used to, during the operation of the relay protection device, for each real-time storage unit, sequentially verify the storage data in the real-time storage unit with the storage data in the remaining real-time storage units to obtain a plurality of first verification results;
[0035] A fixed verification module, for each first verification result, if the first verification result shows an abnormality, then mutually verify the storage data in the two fixed storage units corresponding to the first verification result to obtain a second verification result;
[0036] The data error correction module is used to replace the storage data in the fixed storage unit corresponding to the second verification result with the corresponding real-time storage unit if the second verification result shows that the second verification result is normal, so as to realize error correction for the storage data in the real-time storage unit.
[0037] The embodiment of the present invention provides a data error correction method and device in a relay protection device. By setting a plurality of application CPUs equipped with real-time storage units and fixed storage units, and storing the same storage data in each real-time storage unit and fixed storage unit, and during the operation of the relay protection device, each real-time storage unit is mutually verified to obtain a plurality of first verification results, and it is possible to detect whether there is an abnormal displacement in each real-time storage unit. When each real-time storage unit has an abnormal displacement, that is, when the first verification result shows an abnormality, the corresponding fixed storage unit is verified to obtain a second verification result, and when the second verification result is normal, the storage data of the fixed storage unit is replaced with the corresponding real-time storage unit. Among them, the probability of data displacement in the fixed storage unit is significantly lower than that in the real-time storage unit. The embodiment of the present invention can effectively correct the displacement data in the real-time storage unit by replacing the storage data in the fixed storage unit that has been successfully verified with the corresponding real-time storage unit, so as to avoid the CPU calling the wrong data. In addition, the embodiment of the present invention can simultaneously verify and correct multiple bits of abnormal data, thereby effectively solving the problem of abnormal operation of the relay protection device caused by abnormal displacement. BRIEF DESCRIPTION OF THE DRAWINGS
[0038] In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.
[0039] Figure 1 is a schematic structural diagram of a relay protection device provided by an embodiment of the present invention;
[0040] Figure 2 is a flow chart of an implementation method of a data error correction method in a relay protection device provided by an embodiment of the present invention;
[0041] Figure 3 is a flow chart of an implementation of a data error correction method in a relay protection device provided by another embodiment of the present invention;
[0042] Figure 4 It is a structural schematic diagram of a data error correction device in a relay protection device provided in one embodiment of the present invention. DETAILED DESCRIPTION
[0043] In the following description, specific details such as specific system structures, technologies, etc. are provided for the purpose of illustration rather than limitation, so as to provide a thorough understanding of the embodiments of the present invention. However, it should be clear to those skilled in the art that the present invention may be implemented in other embodiments without these specific details. In other cases, detailed descriptions of well-known systems, devices, circuits, and methods are omitted to prevent unnecessary details from obstructing the description of the present invention.
[0044] During the operation of the relay protection device, the storage unit inside it is prone to abnormal displacement, which causes errors in the stored data in the storage unit, thereby affecting the working state of the relay protection device. In the related art, the error correction code (ECC) technology is usually used to detect and correct the abnormal displacement data in the storage unit, but the ECC technology can usually only correct one-bit data errors and check two-bit data errors, and cannot realize continuous multi-bit data detection and correction, and cannot effectively solve the problem of abnormal operation of the relay protection device caused by abnormal displacement.
[0045] In order to realize the detection and correction of multi-bit data, in the implementation mode of the present application, multiple application CPUs are set in the relay protection device, and each application CPU is equipped with a real-time storage unit and a fixed storage unit. The same storage data is stored in each real-time storage unit for each application CPU to call, and the fixed storage unit provides data backup for each real-time storage unit. During the operation of the relay protection device, the embodiment of the present invention mutually verifies each real-time storage unit with the remaining real-time storage units, so that it can be determined whether an abnormal displacement occurs inside the real-time storage unit according to the verification result. After determining that the real-time storage unit has an abnormal displacement, the fixed storage unit corresponding to the real-time storage unit is further verified, and the fixed storage unit that has been successfully verified is replaced with the real-time storage unit, so as to realize the correction of the data in the real-time storage unit to avoid the CPU calling the wrong data. In addition, the embodiment of the present invention can simultaneously verify and correct multi-bit abnormal data, thereby effectively solving the problem of abnormal operation of the relay protection device caused by abnormal displacement.
[0046] In order to make the purpose, technical solutions and advantages of the present invention more clear, specific embodiments will be described below in conjunction with the accompanying drawings.
[0047] Figure 1 The schematic diagram of the structure of the relay protection device provided by the embodiment of the present invention is as follows. Figure 1As shown, the relay protection device mainly includes: a management function CPU and multiple application CPUs. Among them, the application CPU is mainly responsible for data sampling processing, protection calculation and export tripping control. The management function CPU is mainly responsible for the processing of events, recording, set values, external communications, human-machine interfaces and configurations. Each application CPU is equipped with a real-time storage unit and a fixed storage unit. The same storage data is stored in each real-time storage unit and each fixed storage unit. Among them, the access speed of the real-time storage unit is faster, so that the application CPU can call the storage data therein at any time. The fixed storage unit has better durability and is used to provide storage data backup for the real-time storage unit.
[0048] Here, the real-time storage unit may be a volatile storage unit with a fast access speed, such as a dynamic random access memory (DRAM), so that the application CPU can access the stored data inside the real-time storage unit at any time. The fixed storage unit may be a non-volatile storage unit with good persistence and relatively low probability of abnormal displacement, such as a Flash memory, which is used to provide data backup for the real-time storage unit, so that when an abnormal displacement occurs in the real-time storage unit, the stored data in the corresponding real-time storage unit can be replaced in time.
[0049] The embodiment of the present invention can generate multiple relay protection results by setting multiple application CPUs. If the multiple relay protection results are the same, corresponding action instructions are output according to the relay protection results to control the circuit breaker action. If the multiple relay protection results are different, an alarm message is generated to remind the user.
[0050] Figure 2 The implementation flow chart of the data error correction method in the relay protection device provided in the embodiment of the present invention is applied to the above relay protection device. The method is described in detail as follows:
[0051] Step 201, during the operation of the relay protection device, for each real-time storage unit, the storage data in the real-time storage unit is sequentially verified with the storage data in the remaining real-time storage units to obtain a plurality of first verification results.
[0052] According to the embodiment of the present invention, during the operation of the relay protection device, each real-time storage unit may be checked in pairs at regular intervals to detect whether there is any abnormal position change in each real-time storage unit.
[0053] When data verification is performed on each real-time storage unit, for each real-time storage unit, the real-time storage unit may be mutually verified with the remaining real-time storage units in sequence, thereby obtaining a plurality of first verification results.
[0054] Exemplarily, when the real-time storage units are A, B, C, and D, for real-time storage unit A, real-time storage unit A and real-time storage unit B can be mutually verified; real-time storage unit A and real-time storage unit C can be mutually verified; real-time storage unit A and real-time storage unit D can be mutually verified, thereby obtaining multiple first verification results.
[0055] In some embodiments, for each real-time storage unit, all stored data in the real-time storage unit can be divided into different storage data sequences in turn, and the check codes corresponding to each storage data sequence can be calculated respectively to obtain a first check code sequence; then, the second check code sequences corresponding to the remaining real-time storage units are determined respectively; then, for each second check code sequence, each check code data in the first check code sequence is compared with the check code data at the corresponding position in the second check code sequence to obtain a first check result.
[0056] In the embodiment of the present invention, a check algorithm such as an XOR check algorithm or an equal-division check algorithm can be used to sequentially calculate the check codes corresponding to each stored data sequence in the same real-time storage unit. The check codes corresponding to each stored data sequence in the same real-time storage unit constitute a first check code sequence. The calculation method of the second check code sequence is the same as that of the first check code sequence, which will not be repeated here.
[0057] On the basis of determining the first check code sequence and multiple second check code sequences, each check code data in the first check code sequence is compared with the check code data at the corresponding position in each second check code sequence to obtain multiple first check results.
[0058] Still taking the above-mentioned real-time storage units A, B, C, and D as an example, for the real-time storage unit A, all the stored data in the real-time storage unit A are divided into different stored data sequences in turn, and the check codes corresponding to each stored data sequence are calculated accordingly to obtain a first check code sequence a. Then, the second check code sequences b, c, and d corresponding to the real-time storage units B, C, and D are determined respectively. Subsequently, the first check code sequence a is compared with the second check code sequences b, c, and d respectively to obtain three first check results.
[0059] In some embodiments, for each second check code sequence, when each check code data in the first check code sequence is the same as the check code data at the corresponding position in the second check code sequence, it is determined that the first check result is normal; when any check code data in the first check code sequence is different from the check code data at the corresponding position in the second check code sequence, it is determined that the first check result is abnormal.
[0060] It is understandable that each check code data in the first check code sequence represents a section of the stored data sequence. If the check code data is different from the check code data at the corresponding position in the second check code sequence, it is determined that there is an abnormal position change in the stored data sequence corresponding to the check code data.
[0061] Accordingly, when replacing the stored data in the real-time storage unit, only the stored data in the stored data sequence with abnormal displacement can be replaced in a targeted manner.
[0062] Step 202 : for each first verification result, if the first verification result shows an abnormality, mutually verify the storage data in the two fixed storage units corresponding to the first verification result to obtain a second verification result.
[0063] If the first verification result is abnormal, it can be determined that at least one of the two real-time storage units corresponding to the first verification result has abnormal displacement. In order to correct the abnormal displacement data in the real-time storage unit, the embodiment of the present invention first performs mutual verification on the two fixed storage units corresponding to the first verification result to detect whether there is abnormal displacement in the fixed storage unit, so that the storage data in the real-time storage unit can be corrected according to the storage data in the fixed storage unit.
[0064] If the first verification result is normal, it can be determined that no abnormal displacement occurs in the two real-time storage units corresponding to the first verification result. At this time, there is no need to further verify the fixed storage unit, and the next real-time storage unit verification can be directly waited.
[0065] Step 203: If the second verification result is normal, the storage data in the fixed storage unit corresponding to the second verification result is replaced with the corresponding real-time storage unit to correct the error of the storage data in the real-time storage unit.
[0066] If the second verification result is normal, it can be determined that no abnormal displacement occurs in the two fixed storage units. At this time, the storage data in the two fixed storage units can be replaced with the corresponding real-time storage units to correct the storage data in the real-time storage units.
[0067] Taking into account the fast access speed of the real-time storage unit, during the operation of the relay protection device, the embodiment of the present invention regularly verifies the storage data in the real-time storage unit, thereby realizing rapid detection of the real-time storage unit while occupying fewer computing resources, so as to quickly determine whether there is any abnormal displacement in the real-time storage unit.
[0068] After determining that there is an abnormal displacement, in order to correct the abnormal displacement data in the real-time storage unit, the embodiment of the present invention first verifies the storage data in the fixed storage unit, and after determining that the verification is successful, replaces the storage data in the real-time storage unit with the storage data in the fixed storage unit, thereby correcting the abnormal displacement data. Here, in order to simplify the data detection process, after determining that the fixed storage unit is successfully verified, the embodiment of the present invention replaces the storage data in the two real-time storage units with the storage data in the two fixed storage units that have successfully verified.
[0069] In some embodiments, when the relay protection device is powered on and initialized, the stored data in each fixed storage unit can be mutually verified to obtain multiple initial verification results; if the multiple initial verification results are all normal, the stored data in each fixed storage unit is restored to the corresponding real-time storage unit. If any initial verification result is abnormal, an alarm message is generated based on the stored data in each fixed storage unit corresponding to the initial verification result showing the abnormality to remind the user.
[0070] Considering the fact that the real-time storage unit loses data when power is lost, the embodiment of the present invention restores the stored data in each fixed storage unit to the corresponding real-time storage unit when the relay protection device is powered on and initialized. At the same time, in order to ensure the accuracy of the data stored in the fixed storage unit, the stored data in each fixed storage unit is checked in advance to determine that the stored data in the fixed storage unit has not been abnormally changed.
[0071] If multiple initial verification results are normal, it is determined that no abnormal displacement occurs in each fixed storage unit. At this time, the storage data in each fixed storage unit can be restored to the corresponding real-time storage unit. If any initial verification result is abnormal, it is determined that there is an abnormal displacement in the fixed storage unit. At this time, timestamp data can be added to the storage data in each fixed storage unit corresponding to the initial verification result showing the abnormality, thereby generating an alarm message to remind the user. The alarm message includes the verification failure time and the verification failed data for the user to repair.
[0072] Compared with the prior art, the embodiment of the present invention sets multiple application CPUs in the relay protection device, and each application CPU is equipped with a real-time storage unit and a fixed storage unit. The same storage data is stored in each real-time storage unit for each application CPU to call, and the fixed storage unit provides data backup for each real-time storage unit. During the operation of the relay protection device, the embodiment of the present invention mutually verifies each real-time storage unit with the remaining real-time storage units, so that it can be determined whether an abnormal displacement occurs inside the real-time storage unit according to the verification result. After determining that the real-time storage unit has an abnormal displacement, the fixed storage unit is further verified, and the fixed storage unit that has successfully been verified is replaced with the real-time storage unit, thereby realizing the correction of the data in the real-time storage unit to avoid the CPU calling the wrong data. In addition, the embodiment of the present invention can verify and correct multiple bits of abnormal data at the same time, thereby effectively solving the problem of abnormal operation of the relay protection device caused by abnormal displacement.
[0073] The above embodiment mainly considers the data error correction method when the fixed storage unit does not have abnormal displacement. It can be understood that the fixed storage unit also has a certain probability of abnormal displacement. Considering the situation where the fixed storage unit has abnormal displacement, another embodiment of the present invention provides a new data error correction method, see Figure 3 , the method comprising:
[0074] Step 301, during the operation of the relay protection device, for each real-time storage unit, the storage data in the real-time storage unit is mutually verified with the storage data in the remaining real-time storage units in sequence to obtain a plurality of first verification results;
[0075] Step 302, for each first verification result, if the first verification result shows an abnormality, mutually verify the storage data in the two fixed storage units corresponding to the first verification result to obtain a second verification result;
[0076] Step 303: If the second verification result is normal, the storage data in the fixed storage unit corresponding to the second verification result is replaced with the corresponding real-time storage unit to correct the error of the storage data in the real-time storage unit.
[0077] The above steps 301-303 refer to Figure 2 The corresponding embodiments will not be described in detail here.
[0078] Step 304: If the second verification result shows an abnormality, the first fixed storage unit and the remaining fixed storage units except the second fixed storage unit are mutually verified in sequence to obtain a plurality of third verification results.
[0079] Step 305 , mutually verify the second fixed storage unit and the remaining fixed storage units except the first fixed storage unit in sequence to obtain a plurality of fourth verification results.
[0080] Here, the first fixed storage unit and the second fixed storage unit are fixed storage units corresponding to the second verification result.
[0081] If the second verification result is abnormal, it can be determined that at least one of the first fixed storage unit and the second fixed storage unit has an abnormal displacement.
[0082] In the embodiment of the present invention, the first fixed storage unit and the remaining fixed storage units except the second fixed storage unit are mutually verified in sequence to obtain a plurality of third verification results for determining whether there is an abnormal displacement in the first fixed storage unit.
[0083] Similarly, the embodiment of the present invention sequentially performs mutual verification on the second fixed storage unit and the remaining fixed storage units except the first fixed storage unit to obtain multiple fourth verification results for determining whether there is abnormal displacement in the second fixed storage unit.
[0084] Step 306, if multiple third verification results are all normal and multiple fourth verification results are all abnormal, the storage data in the first fixed storage unit is replaced to the real-time storage unit corresponding to the first fixed unit, the second fixed storage unit, and the real-time storage unit corresponding to the second fixed storage unit.
[0085] Here, if multiple third verification results all show normal, and multiple fourth verification results all show abnormal, it can be determined that no abnormal displacement occurs in the first fixed storage unit, and abnormal displacement occurs in the second fixed storage unit. At this time, the storage data in the first fixed storage unit can be replaced to the real-time storage unit corresponding to the first fixed unit, the second fixed storage unit, and the real-time storage unit corresponding to the second fixed storage unit, respectively, to correct the abnormal displacement data.
[0086] Similarly, if multiple third verification results all show abnormalities and multiple fourth verification results all show normality, it can be determined that abnormal displacement has occurred in the first fixed storage unit and no abnormal displacement has occurred in the second fixed storage unit. At this time, the storage data in the second fixed storage unit can be replaced respectively to the real-time storage unit corresponding to the second fixed unit, the first fixed storage unit, and the real-time storage unit corresponding to the first fixed storage unit to correct the abnormal displacement data.
[0087] In some embodiments, if the plurality of third verification results all show abnormalities and the plurality of fourth verification results all show abnormalities, then the remaining fixed storage units except the first fixed storage unit and the second fixed storage unit are mutually verified to obtain a plurality of fifth verification results;
[0088] If multiple fifth verification results are all normal, the storage data in the fixed storage unit corresponding to any fifth verification result is replaced to the first fixed storage unit, the second fixed storage unit, the real-time storage unit corresponding to the first fixed storage unit, and the real-time storage unit corresponding to the second fixed storage unit.
[0089] Here, if multiple third verification results and multiple fourth verification results all show abnormalities, it can be determined that both the first fixed storage unit and the second fixed storage unit have abnormal displacement. At this time, the remaining fixed storage units except the first fixed storage unit and the second fixed storage unit can be mutually verified in pairs. Obtain multiple fifth verification results. If multiple fifth verification results all show normal, the storage data in any fixed storage unit other than the first fixed storage unit and the second fixed storage unit can be replaced to a fixed storage unit, a second fixed storage unit, a real-time storage unit corresponding to the first fixed storage unit, and a real-time storage unit corresponding to the second fixed storage unit to achieve data error correction.
[0090] In some embodiments, if any fifth verification result shows an abnormality, an alarm message is generated to alert the user.
[0091] Here, if any fifth verification result shows an abnormality, it can be determined that in addition to the first fixed storage unit and the second fixed storage unit, abnormal displacement has also occurred in the remaining fixed storage units. At this time, the storage data in each storage unit corresponding to the verification result showing the abnormality can be added with timestamp data to generate an alarm message to remind the user. The verification results here include the first verification result, the second verification result, the third verification result, the fourth verification result and the fifth verification result. The storage unit here includes a real-time storage unit or a fixed storage unit.
[0092] That is to say, if any of the fifth verification results is abnormal, the storage data in the real-time storage unit corresponding to the first verification result, the fixed storage unit corresponding to the second verification result, the fixed storage unit corresponding to the third verification result, the fixed storage unit corresponding to the fourth verification result, and the fixed storage unit corresponding to the fifth verification result, which were previously detected to show abnormalities, will be added with timestamp data to generate an alarm message to remind the user.
[0093] In some embodiments, in order to improve the accuracy of data correction, if any third verification result shows an abnormality and any fourth verification result shows an abnormality, the process also jumps to the step of "mutually verifying the remaining fixed storage units except the first fixed storage unit and the second fixed storage unit to obtain multiple fifth verification results" and continues to execute subsequent steps.
[0094] When performing detection and error correction of stored data, the embodiment of the present invention first uses a mutual verification method of real-time storage units to quickly generate verification results, and when it is determined that the verification results are abnormal, the fixed storage units corresponding to the real-time storage units are mutually verified, so as to correct the data of the real-time storage units when it is determined that the corresponding fixed storage units have no abnormal displacement. Furthermore, the embodiment of the present invention also takes into account the possibility of abnormal displacement of fixed storage units, and thus further performs pairwise verification on the fixed storage units to determine the abnormal displacement in the fixed storage units, thereby ensuring the accuracy of data correction. The embodiment of the present invention uses a step-by-step verification method to quickly determine whether the stored data has abnormal displacement, and accurately correct the abnormal displacement data to avoid the application CPU calling erroneous data.
[0095] It should be understood that the order of execution of the steps in the above embodiment does not necessarily mean the order of execution. The execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiment of the present invention.
[0096] The following is an embodiment of the device of the present invention. For details not described in detail therein, reference may be made to the corresponding method embodiment described above.
[0097] Figure 4 The following is a schematic diagram showing the structure of a data error correction device in a relay protection device provided by an embodiment of the present invention. For ease of explanation, only the part related to the embodiment of the present invention is shown, which is described in detail as follows:
[0098] The data error correction device in the relay protection device is applied to the relay protection device, and the relay protection device includes: multiple application CPUs, and each application CPU is equipped with a real-time storage unit and a fixed storage unit; wherein each real-time storage unit stores the same storage data for each application CPU to call and run; each fixed storage unit stores the same storage data for providing data backup for each real-time storage unit.
[0099] like Figure 4 As shown, the data error correction device 4 in the relay protection device includes: a real-time verification module 41, a fixed verification module 42 and a data error correction module 43.
[0100] The real-time verification module 41 is used to mutually verify the storage data in each real-time storage unit with the storage data in the remaining real-time storage units in sequence during the operation of the relay protection device, so as to obtain a plurality of first verification results;
[0101] A fixed verification module 42, for each first verification result, if the first verification result shows an abnormality, then mutually verify the storage data in the two fixed storage units corresponding to the first verification result to obtain a second verification result;
[0102] The data error correction module 43 is used to replace the storage data in the fixed storage unit corresponding to the second verification result with the corresponding real-time storage unit if the second verification result shows that it is normal, so as to realize error correction for the storage data in the real-time storage unit.
[0103] Optionally, the data error correction module 43 is further used to:
[0104] If the second verification result shows an abnormality, the first fixed storage unit and the remaining fixed storage units except the second fixed storage unit are mutually verified in sequence to obtain a plurality of third verification results;
[0105] The second fixed storage unit and the remaining fixed storage units except the first fixed storage unit are mutually verified in sequence to obtain a plurality of fourth verification results; wherein the first fixed storage unit and the second fixed storage unit are fixed storage units corresponding to the second verification results;
[0106] If the plurality of third verification results are all normal and the plurality of fourth verification results are all abnormal, the storage data in the first fixed storage unit are replaced to the second fixed storage unit and the real-time storage unit corresponding to the second fixed storage unit respectively.
[0107] Optionally, the data error correction module 43 is further used to:
[0108] If the plurality of third verification results all show abnormality, and the plurality of fourth verification results all show abnormality, then mutually verify the remaining fixed storage units except the first fixed storage unit and the second fixed storage unit to obtain a plurality of fifth verification results;
[0109] If multiple fifth verification results are all normal, the storage data in the fixed storage unit corresponding to any fifth verification result is replaced to the first fixed storage unit, the second fixed storage unit, the real-time storage unit corresponding to the first fixed storage unit, and the real-time storage unit corresponding to the second fixed storage unit.
[0110] Optionally, the data error correction module 43 is further used to:
[0111] If any fifth verification result shows an abnormality, an alarm message is generated to remind the user.
[0112] Optionally, the real-time verification module 41 is specifically used for:
[0113] For each real-time storage unit, all stored data in the real-time storage unit are divided into different storage data sequences in sequence, and the check code corresponding to each storage data sequence is calculated respectively to obtain a first check code sequence;
[0114] respectively determining the second check code sequences corresponding to the remaining real-time storage units;
[0115] For each second check code sequence, each check code data in the first check code sequence is compared with the check code data at a corresponding position in the second check code sequence to obtain a first check result.
[0116] Optionally, the real-time verification module 41 is specifically used for:
[0117] For each second check code sequence, when each check code data in the first check code sequence is the same as the check code data at the corresponding position in the second check code sequence, it is determined that the first check result is normal;
[0118] When any check code data in the first check code sequence is different from the check code data at the corresponding position in the second check code sequence, it is determined that the first check result shows an abnormality.
[0119] Optionally, the fixed verification module 42 is further used for:
[0120] When the relay protection device is powered on and initialized, the stored data in each fixed storage unit are mutually verified to obtain multiple initial verification results;
[0121] If the multiple initial verification results are all normal, the storage data in each fixed storage unit is restored to the corresponding real-time storage unit.
[0122] Optionally, the fixed verification module 42 is further used for:
[0123] If any of the initial verification results shows an abnormality, an alarm message is generated according to the storage data in each fixed storage unit corresponding to the initial verification result showing the abnormality to remind the user.
[0124] The data error correction device in the relay protection device provided by the present device embodiment can be used to implement the data error correction method in the relay protection device described in the above method embodiment. Its implementation principle and technical effect are the same as those of the above method embodiment, and will not be repeated here.
[0125] In the above embodiments, the description of each embodiment has its own emphasis. For parts that are not described or recorded in detail in a certain embodiment, reference can be made to the relevant descriptions of other embodiments.
[0126] Those of ordinary skill in the art will appreciate that the templates, units, and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of the present invention.
[0127] If the module / unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the present invention implements all or part of the processes in the above-mentioned embodiment method, and can also be completed by instructing the relevant hardware through a computer program. The computer program can be stored in a computer-readable storage medium. When the computer program is executed by the processor, the steps of the data error correction method embodiments in the above-mentioned relay protection devices can be implemented. Among them, the computer program includes computer program code, and the computer program code can be in source code form, object code form, executable file or some intermediate form. The computer-readable medium may include: any entity or device that can carry the computer program code, recording medium, U disk, mobile hard disk, disk, optical disk, computer memory, read-only memory, random access memory, electric carrier signal, telecommunication signal and software distribution medium.
[0128] The embodiments described above are only used to illustrate the technical solutions of the present invention, rather than to limit the same. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that the technical solutions described in the aforementioned embodiments may still be modified, or some of the technical features may be replaced by equivalents. Such modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present invention, and should all be included in the protection scope of the present invention.
Claims
1. A data error correction method in a relay protection device, characterized in that: Applied to a relay protection device, the relay protection device comprises: a plurality of application CPUs, each of which is equipped with a real-time storage unit and a fixed storage unit; wherein each real-time storage unit stores the same storage data for each application CPU to call and run; each fixed storage unit stores the same storage data for providing data backup for each real-time storage unit; The method comprises: During the operation of the relay protection device, for each real-time storage unit, the storage data in the real-time storage unit is mutually verified with the storage data in the remaining real-time storage units in sequence to obtain a plurality of first verification results; For each first verification result, if the first verification result shows an abnormality, mutually verify the storage data in the two fixed storage units corresponding to the first verification result to obtain a second verification result; If the second verification result is normal, the storage data in the fixed storage unit corresponding to the second verification result is replaced with the corresponding real-time storage unit to achieve error correction for the storage data in the real-time storage unit.
2. The data error correction method in the relay protection device according to claim 1, characterized in that: For each first verification result, the storage data in the two fixed storage units corresponding to the first verification result are mutually verified to obtain a second verification result, further comprising: If the second verification result shows an abnormality, the first fixed storage unit and the remaining fixed storage units except the second fixed storage unit are mutually verified in sequence to obtain a plurality of third verification results; The second fixed storage unit and the remaining fixed storage units except the first fixed storage unit are mutually verified in sequence to obtain a plurality of fourth verification results; wherein the first fixed storage unit and the second fixed storage unit are fixed storage units corresponding to the second verification results; If the multiple third verification results are all normal and the multiple fourth verification results are all abnormal, the storage data in the first fixed storage unit is replaced respectively to the multiple real-time storage units corresponding to the first fixed storage unit, the second fixed storage unit, and the real-time storage unit corresponding to the second fixed storage unit.
3. The data error correction method in the relay protection device according to claim 2, characterized in that: After the second fixed storage unit and the remaining fixed storage units except the first fixed storage unit are mutually verified in sequence to obtain a plurality of fourth verification results, the method further includes: If the plurality of third verification results all show abnormality, and the plurality of fourth verification results all show abnormality, mutually verify the remaining fixed storage units except the first fixed storage unit and the second fixed storage unit to obtain a plurality of fifth verification results; If the multiple fifth verification results are all normal, the storage data in the fixed storage unit corresponding to any fifth verification result is replaced to the first fixed storage unit, the second fixed storage unit, the real-time storage unit corresponding to the first fixed storage unit, and the real-time storage unit corresponding to the second fixed storage unit.
4. The data error correction method in the relay protection device according to claim 3, characterized in that: After performing mutual verification on the remaining fixed storage units except the first fixed storage unit and the second fixed storage unit to obtain a plurality of fifth verification results, the method further includes: If any fifth verification result shows an abnormality, an alarm message is generated to remind the user.
5. The data error correction method in a relay protection device according to any one of claims 1 to 4, characterized in that: For each real-time storage unit, the storage data in the real-time storage unit is mutually verified with the storage data in the remaining real-time storage units in sequence to obtain a plurality of first verification results, including: For each real-time storage unit, all stored data in the real-time storage unit are divided into different storage data sequences in sequence, and the check code corresponding to each storage data sequence is calculated respectively to obtain a first check code sequence; respectively determining the second check code sequences corresponding to the remaining real-time storage units; For each second check code sequence, each check code data in the first check code sequence is compared with the check code data at a corresponding position in the second check code sequence to obtain a first check result.
6. The data error correction method in the relay protection device according to claim 5, characterized in that: For each second check code sequence, each check code data in the first check code sequence is compared with the check code data at a corresponding position in the second check code sequence to obtain a first check result, including: For each second check code sequence, when each check code data in the first check code sequence is the same as the check code data at the corresponding position in the second check code sequence, it is determined that the first check result is normal; When any check code data in the first check code sequence is different from the check code data at the corresponding position in the second check code sequence, it is determined that the first check result shows an abnormality.
7. The data error correction method in a relay protection device according to any one of claims 1 to 4, characterized in that: Also includes: When the relay protection device is powered on and initialized, the stored data in each fixed storage unit are mutually verified to obtain a plurality of initial verification results; If the multiple initial verification results are all normal, the storage data in each fixed storage unit is restored to the corresponding real-time storage unit.
8. The data error correction method in the relay protection device according to claim 7, characterized in that: When the relay protection device is powered on and initialized, the stored data in each fixed storage unit is mutually verified according to a preset verification method to obtain multiple initial verification results, and further includes: If any of the initial verification results shows an abnormality, an alarm message is generated according to the storage data in each fixed storage unit corresponding to the initial verification result showing the abnormality to remind the user.
9. A data error correction device in a relay protection device, characterized in that: Applied to a relay protection device, the relay protection device comprises: a plurality of application CPUs, each of which is equipped with a real-time storage unit and a fixed storage unit; wherein each real-time storage unit stores the same storage data for each application CPU to call and run; each fixed storage unit stores the same storage data for providing data backup for each real-time storage unit; The device comprises: A real-time verification module is used to, during the operation of the relay protection device, for each real-time storage unit, sequentially verify the storage data in the real-time storage unit with the storage data in the remaining real-time storage units to obtain a plurality of first verification results; A fixed verification module, for each first verification result, if the first verification result shows an abnormality, then mutually verify the storage data in the two fixed storage units corresponding to the first verification result to obtain a second verification result; The data error correction module is used to replace the storage data in the fixed storage unit corresponding to the second verification result with the corresponding real-time storage unit if the second verification result shows that the second verification result is normal, so as to realize error correction for the storage data in the real-time storage unit.
10. The data error correction device in the relay protection device according to claim 9, characterized in that: The data error correction module is also used for: If the second verification result shows an abnormality, the first fixed storage unit and the remaining fixed storage units except the second fixed storage unit are mutually verified in sequence to obtain a plurality of third verification results; The second fixed storage unit and the remaining fixed storage units except the first fixed storage unit are mutually verified in sequence to obtain a plurality of fourth verification results; wherein the first fixed storage unit and the second fixed storage unit are fixed storage units corresponding to the second verification results; If the plurality of third verification results are all normal and the plurality of fourth verification results are all abnormal, the storage data in the first fixed storage unit are replaced to the second fixed storage unit and the real-time storage unit corresponding to the second fixed storage unit respectively.