Relay protection reinforcement method and system against single event upset and storage medium
By sampling and detecting analog data of relay protection devices and combining the analysis of the status and variables of the starting relay, the problem of abnormal protection data caused by single-event upset was solved, and the reliability and stability of relay protection devices were improved.
Patent Information
- Application Number
- CN202410928409.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-11
- Publication Date
- 2025-12-09
- Estimated Expiration
- 2044-07-11
AI Technical Summary
Existing technologies have failed to effectively prevent abnormal analog data at the front end and abnormal protection data at the back end of relay protection devices caused by single-event upsets, thus affecting protection reliability.
By sampling and detecting anomalies in the analog data of the relay protection device, combined with the comparison of the starting relay status and starting variables, the comparison and analysis of starting variables and output variables, and the verification of the output messages of the protection CPU and the starting CPU, the prevention of single-event upsets can be achieved.
It improves the reliability of the relay protection device's output, prevents abnormal protection data and output bit errors caused by single-event upsets, and enhances the stability of the protection device.
Smart Images

Figure CN118944005B_ABST
Abstract
Description
TECHNICAL FIELD
[0001] The present application relates to the technical field of power system relay protection, and more particularly, to a relay protection reinforcement method and system against single event upset and a storage medium. BACKGROUND
[0002] With the increasing number of in-service relay protection devices, single event upset has become an important hidden danger to the safe and stable operation of relay protection.
[0003] Single event upset soft error mainly causes abnormal operation of relay protection devices by tampering with certain bit data. To solve this problem, various effective technologies have been adopted at home and abroad, including ECC (Error Checking and Correcting) technology, dual CPU architecture, three-to-two redundancy design, CRC check, positive and negative code check of fixed value, range self-check, etc. The selection of memory chips with ECC has become a standard for domestic relay protection devices, but ECC is a general practice in the semiconductor industry and is not a targeted technology for relay protection devices. To ensure the rapidity of relay protection, the dual CPU architecture is generally configured as a start-up board and a protection board, and the functions of the two board cards are not the same, which weakens the mutual check of the dual CPU. The positive and negative code check of fixed value is simple and has a certain error prevention function, but it is only used for fixed values and has a small application range. The three-to-two redundancy design can improve the reliability of the device, but it consumes a lot of resources. CRC check requires additional calculation, which sacrifices the rapidity of relay protection to a certain extent. Range self-check is mainly used for analog quantity check and has no correction function, and the transient process can easily cause the mislock of protection.
[0004] The application with publication number CN116701029A discloses a soft error real-time blocking and system recovery method for a relay protection device, which includes: decomposing and reconstructing the fault handling program of the relay protection device; reallocating the storage and memory of the relay protection device; setting an entry confirmation variable and abnormality judgment logic; reading the protection program and parameter file of the storage area to the corresponding running program and running parameter of the memory area respectively, assigning values to the entry confirmation variable, and synchronously executing the two running programs and respectively outputting the exit positive code and exit negative code; performing abnormality judgment on the exit positive code and exit negative code, if abnormal, real-time blocking the exit execution, performing program and parameter consistency check and recovery processing, otherwise, performing abnormality judgment on the entry confirmation variable, if the entry confirmation variable is normal, executing the exit operation, otherwise, restarting the system.
[0005] However, the above scheme only prevents the export bit error caused by single event upset from the back end of the relay protection device, ignores the data anomaly problem of analog data collected at the front end of the relay protection device, and more ignores the misoperation problem caused by memory data anomaly, cannot effectively prevent the protection data anomaly and export bit error caused by single event upset, and leads to poor protection reliability.
[0006] In view of the technical problems in the prior art that the protection data anomaly and export bit error caused by single event upset ultimately affect the protection reliability, no effective solution has been proposed so far. SUMMARY
[0007] In view of the deficiencies of the prior art, the present application provides a relay protection reinforcement method and system for single event upset and a storage medium.
[0008] According to one aspect of the present application, a relay protection reinforcement method for single event upset is provided, comprising:
[0009] Sampling analog data of a relay protection device, storing the sampled analog data in a sampling buffer, and sequentially reading the analog data from the sampling buffer for anomaly detection and repair;
[0010] After the analog data is normal or repaired without error, the analog data is transmitted to a software program for protection operation, and when a power system disturbance occurs, the state of a starting relay is compared with starting variables of a protection board and a starting board, and whether an abnormal situation occurs is determined according to the comparison result;
[0011] When it is determined according to the comparison result that no abnormal situation occurs, the starting variables and export variables of the relay protection device are compared and analyzed, and whether an abnormal situation occurs is determined according to the comparison and analysis result;
[0012] When it is determined according to the comparison and analysis result that no abnormal situation occurs, the outgoing messages of the protection CPU and the starting CPU are checked, and when the check is passed, the export relay is driven, wherein the sequentially reading the analog data from the sampling buffer for anomaly detection and repair specifically comprises:
[0013] Sequentially intercepting 3-point data windows from the sampling buffer;
[0014] When the data of the 3-point data windows are all less than the no-flow threshold, no anomaly is determined; when the data of two-point data windows are greater than the no-flow threshold, the analog data is detected and repaired through the following steps:
[0015] Linear interpolation is performed on the intercepted first and third data windows to obtain a virtual intermediate point;
[0016] whether the sign of the virtual intermediate point is same as that of the actual intermediate point, and when the signs are same, whether the difference between the modulus of the virtual intermediate point and that of the actual intermediate point is within a preset interval (-K, +K) according to the following formula:
[0017]
[0018] wherein A vir is the virtual intermediate point; A mid is the actual intermediate point, obtained through actual sampling; A1 is the first point data window, and A3 is the third point data window;
[0019] Further, considering the sampling error, the range of A1 and A3 is further extended to the adjacent points by half, the former point of A1 is B1, the latter point of A3 is B3, and the further processing formula of K is as follows:
[0020]
[0021] When the signs are different or the difference exceeds the preset interval, it is judged that the analog quantity data is abnormal, the abnormal analog quantity data is discarded, and the data of the virtual intermediate point is stored in the sampling buffer area in place of the data of the second point data window.
[0022] 2. The method of claim 1, wherein the state of the starting relay is compared with the starting variable of the protection board and the starting board, and whether an abnormal situation occurs is determined according to the comparison result, specifically comprising:
[0023] the state of the pin of the starting relay connected to the starting power supply is read in real time through a program, and is compared with the starting variable of the protection board and the starting board;
[0024] if the states are consistent, it is determined as normal; if the states are different, it is determined as abnormal;
[0025] in a time period T, if the abnormality occurs for the first time, the protection device is restarted; and in a time period T, if the abnormality occurs more than once, the protection is locked and an alarm is given.
[0026] Optionally, the state of the starting relay is compared with the starting variable of the protection board and the starting board, and whether an abnormal situation occurs is determined according to the comparison result, specifically comprising:
[0027] the state of the pin of the starting relay connected to the starting power supply is read in real time through a program, and is compared with the starting variable of the protection board and the starting board;
[0028] if the states are consistent, it is determined as normal; if the states are different, it is determined as abnormal;
[0029] If the abnormality occurs once in a time period T, the protection device is restarted; if the abnormality occurs more than once in a time period T, the protection is locked and an alarm is given.
[0030] Optionally, the starting variable and the exit variable of the relay protection device are compared and analyzed, and whether an abnormal situation occurs is determined according to the comparison and analysis result, and specifically comprising:
[0031] The starting variable and the exit variable of the relay protection device are compared and analyzed.
[0032] When the starting variable and the exit variable are both 0 or both 1, it is determined that no abnormal situation occurs.
[0033] When the starting variable is 1 and the exit variable is 0, it is determined that no abnormal situation occurs.
[0034] When the starting variable is 0 and the exit variable is 1, it is determined that an abnormal situation occurs.
[0035] Optionally, the method further comprises:
[0036] When it is determined according to the comparison result that an abnormal situation occurs and the abnormality occurs once in a time period T, the relay protection device is restarted.
[0037] When it is determined according to the comparison result that an abnormal situation occurs and the abnormality occurs more than once in a time period T, the relay protection device is locked and an alarm is given.
[0038] Optionally, the method further comprises:
[0039] When it is determined according to the comparison result that an abnormal situation occurs and the abnormality occurs once in a time period T, the relay protection device is restarted.
[0040] When it is determined according to the comparison result that an abnormal situation occurs and the abnormality occurs more than once in a time period T, the relay protection device is locked and an alarm is given.
[0041] Optionally, the method further comprises: when the verification is not passed, the relay protection device is locked and an alarm is given.
[0042] According to another aspect of the present application, a relay protection reinforcement system against single particle flip is provided, comprising:
[0043] An abnormality detection and repair module is configured to sample analog quantity data of the relay protection device, store the sampled analog quantity data in a sampling buffer, and read the analog quantity data from the sampling buffer in sequence for abnormality detection and repair.
[0044] An abnormality judging module is configured to transmit the analog quantity data to a software program for protection operation after the analog quantity data is not abnormal or is repaired without error, and compare the state of the starting relay with the starting variable of the protection board and the starting board when the power system is disturbed, and judge whether an abnormal situation occurs according to the comparison result.
[0045] A comparison analysis module is configured to compare and analyze the starting variable and the outlet variable of the relay protection device when it is judged that no abnormal situation occurs according to the comparison result, and judge whether an abnormal situation occurs according to the comparison analysis result.
[0046] A verification module is configured to verify the outgoing message of the protection CPU and the starting CPU when it is judged that no abnormal situation occurs according to the comparison analysis result, and drive the outlet relay outlet when the verification is passed.
[0047] The abnormality detection and repair of the analog quantity data by sequentially reading the analog quantity data from the sampling buffer includes the following steps.
[0048] Three continuous data windows are sequentially intercepted from the sampling buffer.
[0049] When the data in the three data windows are all less than the no-flow threshold, no abnormality is judged; when the data in two data windows are greater than the no-flow threshold, the analog quantity data is detected and repaired through the following steps:
[0050] Linear interpolation is performed on the first data window and the third data window to obtain a virtual intermediate point.
[0051] The sign of the virtual intermediate point is compared with the sign of the actual intermediate point, and when the signs are the same, the difference between the modulus of the virtual intermediate point and the modulus of the actual intermediate point is judged according to the following formula whether it is within a preset interval (-K, +K):
[0052]
[0053] In the formula, A vir is the virtual intermediate point; A mid is the actual intermediate point, which is obtained by actual sampling; A1 is the first data window, and A3 is the third data window.
[0054] Further, considering the sampling error, the range of A1 and A3 is further expanded by half to the adjacent points, the previous point of A1 is B1, the next point of A3 is B3, and the further processing formula of K is as follows:
[0055]
[0056] When the symbols are different or the gap exceeds the preset interval, it is judged that the analog quantity data is abnormal, the abnormal analog quantity data is discarded, and the data of the virtual intermediate point is stored in the sampling buffer area to replace the data of the second point data window.
[0057] Optionally, the state of the starting relay is compared with the starting variable of the protection board and the starting board, and whether an abnormal situation occurs is judged according to the comparison result, and specifically includes:
[0058] The state of the pin of the starting relay connected to the starting power supply is read in real time through a program, and is compared with the starting variable of the protection board and the starting board;
[0059] If the states are consistent, it is judged as normal, and if the states are different, it is judged as abnormal.
[0060] If the abnormality occurs for the first time in a time period T, the protection device is restarted, and if the abnormality occurs more than once in a time period T, the protection is locked and an alarm is given.
[0061] According to still another aspect of the present application, a computer readable storage medium is provided, which stores a computer program for executing the method of any one of the above aspects of the present application.
[0062] According to still another aspect of the present application, an electronic device is provided, which includes a processor, a memory for storing executable instructions of the processor, and the processor for reading the executable instructions from the memory and executing the executable instructions to implement the method of any one of the above aspects of the present application.
[0063] The present application aims at the analog quantity data in the front end of the relay protection device, and ensures the reliability of the analog quantity data sampling through the abnormal value detection and repair technology. For the rear end part of the relay protection device, the analysis and comparison of the starting relay state and the starting variable, the comparison and analysis of the starting variable and the outlet variable, and the comprehensive verification of the protection CPU and the starting CPU are proposed, which effectively prevent the outlet bit misoperation caused by the single event upset. The present application effectively prevents the protection data abnormality and the outlet bit error caused by the single event upset from the front and rear ends of the relay protection device, and improves the reliability of the outlet. The technical problem of the protection data abnormality and the outlet bit error caused by the single event upset in the prior art, which finally affects the protection reliability, is solved. BRIEF DESCRIPTION OF DRAWINGS
[0064] The exemplary embodiments of the present application can be more completely understood by reference to the following drawings:
[0065] Figure 1 is a flowchart of the single event upset reinforced relay protection method provided by an exemplary embodiment of the present application.
[0066] Figure 2 A structure diagram of a relay protection reinforcement system against single event upset provided by an embodiment of the present application is shown in the figure.
[0067] Figure 3 A structure of an electronic device provided by an example embodiment of the present application is shown in the figure. DETAILED DESCRIPTION
[0068] Hereinafter, example embodiments according to the present application will be described in detail with reference to the accompanying drawings. Obviously, the described embodiments are only a part of the embodiments of the present application, and are not intended to limit the whole embodiments of the present application.
[0069] It should be noted that: unless otherwise specified, the relative arrangement, numerical expression and values of the components and steps set forth in these embodiments do not limit the scope of the present application.
[0070] Those skilled in the art can understand that the terms "first", "second" and the like in the embodiments of the present application are only used to distinguish different steps, devices or modules, and do not represent any specific technical meaning, nor do they represent the inevitable logical order between them.
[0071] It should also be understood that in the embodiments of the present application, "a plurality of" can mean two or more, and "at least one" can mean one, two or more.
[0072] It should also be understood that for any component, data or structure mentioned in the embodiments of the present application, it can be understood as one or more in general, without explicit limitation or in the context of the opposite indication.
[0073] In addition, the term "and / or" in the present application is only a description of the association relationship between the associated objects, which means that there can be three relationships, for example, A and / or B can represent the existence of A alone, the existence of A and B together, and the existence of B alone. In addition, the character " / " in the present application generally represents an "or" relationship between the front and rear associated objects.
[0074] It should also be understood that the description of each embodiment of the present application emphasizes the differences between each embodiment, and the same or similar parts can be referred to each other, and for the sake of brevity, will not be repeated.
[0075] At the same time, it should be understood that in order to facilitate description, the size of each part shown in the drawings is not drawn in accordance with the actual proportional relationship.
[0076] The following description of at least one example embodiment is merely illustrative in nature and is in no way limiting on the application or its use.
[0077] Techniques, methods, and equipment known to those skilled in the art may not be discussed in detail, but where appropriate, they should be considered part of the specification.
[0078] It should be noted that similar labels and letters in the following figures indicate similar items; therefore, once an item is defined in one figure, it does not need to be discussed further in subsequent figures.
[0079] This invention proposes a relay protection hardening method, system, and electronic equipment for single-event upsets. Figure 1 This is a schematic flowchart of a relay protection hardening method for single-event upsets provided by an exemplary embodiment of the present invention. Figure 1 As shown, the relay protection hardening methods for single-event upsets include:
[0080] Step S1: Sample the analog data of the relay protection device, store the sampled analog data in the sampling buffer, and read the analog data from the sampling buffer in sequence for anomaly detection and repair;
[0081] Optionally, the step of sequentially reading analog data from the sampling buffer for anomaly detection and repair specifically includes: The step of sequentially reading analog data from the sampling buffer for anomaly detection and repair specifically includes:
[0082] Three consecutive data points are extracted sequentially from the sampling buffer.
[0083] When all three data windows contain data below the no-flow threshold, no anomaly detection is performed. When two data windows contain data above the no-flow threshold, the analog data is anomaly detected and repaired using the following steps:
[0084] Linear interpolation is performed on the first and third data windows to obtain a virtual intermediate point;
[0085] Determine whether the signs of the virtual intermediate point and the actual intermediate point are the same. If the signs are the same, determine whether the difference between the magnitude of the virtual intermediate point and the magnitude of the actual intermediate point is within the preset interval (-K, +K) using the following formula:
[0086]
[0087] In the formula, A vir A is a virtual intermediate point; mid The actual midpoint was obtained through actual sampling; A1 is the first data window, and A3 is the third data window;
[0088] Further, considering the sampling error, the range of A1 and A3 is further extended to the adjacent point by half, the former point of A1 is B1, the latter point of A3 is B3, and the further processing formula of K is as follows:
[0089]
[0090] When the symbols are different or the gap exceeds the preset interval, it is judged that the analog quantity data is abnormal, the abnormal analog quantity data is discarded, and the data of the virtual intermediate point is stored in the sampling buffer area instead of the data of the second point data window.
[0091] In the embodiment of the application, the control module of the relay protection device is composed of two CPUs, namely a starting CPU and a protection CPU, the two CPUs collect analog quantities through respective AD, and the two CPUs are started simultaneously to open the starting relay of the outlet board; in the starting condition, the protection board acts to make the outlet board send a tripping instruction.
[0092] After the relay protection device is powered on and runs, the analog quantity data of the relay protection device is sampled, and the sampled analog quantity data is stored in the sampling buffer area. Then, the relay protection device reads the data from the buffer area in sequence for abnormality detection and repair. Specifically, three consecutive point data windows are sequentially intercepted from the sampling buffer area, in the case of no flow, if the data in the data window are all less than the no-flow threshold I mk , no abnormality discrimination is performed; if two points of the data window are greater than the no-flow threshold I mk , sampling abnormality discrimination is carried out. Linear interpolation is performed on the first and third points to obtain a virtual intermediate point, and it is first judged whether the symbol of the virtual intermediate point is the same as that of the actual intermediate point; if the symbols are the same, it is further judged whether the modulus difference between the virtual intermediate point and the actual sampling intermediate point (the second point) is within the preset interval (-K, +K) according to the following formula (1); if the symbols are different or the interval is exceeded, it is judged that the sampling data is abnormal, the abnormal data is discarded, and the virtual intermediate point is stored in the analog quantity buffer instead of the actual intermediate point. The following formula is the sampling detection criterion:
[0093]
[0094] In the formula, A vir is a virtual intermediate point, which is obtained by linear interpolation of the data on both sides of the data window; A mid is an actual intermediate point, which is obtained by actual sampling; K is the deviation of the actual sampling value and the virtual sampling value, and the value of K is related to the sampling frequency.
[0095] Based on the sampling rate, the selection of K is as follows: the virtual point and the actual sampling value are both located between the first point and the third point, and the difference between the virtual point and the actual sampling value should be less than half of the difference between the first point and the third point, therefore, the value of K is as follows:
[0096]
[0097] In the formula, A1 and A3 are the first point and the third point of the data window respectively.
[0098] The values of A1 and A3 should be the two points adjacent to the zero-crossing point (the zero-crossing point is farthest), for example, the sampling rate is 4000 Hz, K is 0.07846; considering the sampling error, the range of A1 and A3 can be further expanded by half to the adjacent points, and the previous point of A1 is B1 and the next point of A3 is B3. Assuming that the sampling value of 0.0195 seconds is B1 and the sampling value of 0.0205 seconds is B3, the further processing formula of K is as follows, and the final value of K is 0.1174:
[0099]
[0100] Step S2: After the analog quantity data is normal or repaired without error, the analog quantity data is transmitted to the software program for protection operation, and when the power system is disturbed, the state of the starting relay is compared with the starting variable of the protection board and the starting board, and whether an abnormal condition occurs is judged according to the comparison result;
[0101] Optionally, the method further comprises: when it is judged according to the comparison result that an abnormal condition occurs and the abnormal condition occurs for the first time within a time period T, the relay protection device is self-restarted; and when it is judged according to the comparison result that an abnormal condition occurs and the abnormal condition occurs more than once within a time period T, the relay protection device is locked and an alarm is given.
[0102] In the embodiment of the application, a starting detection scheme combining software and hardware is proposed. The program reads the state of the starting power pin in real time and compares it with the starting state variable of the protection board and the starting board, if the states are consistent, it is judged as normal, if the states are different, it is judged as abnormal. If the abnormal condition occurs for the first time within a time period T, the protection device is self-restarted, and if the abnormal condition occurs more than once within a time period T, the protection is locked and an alarm is given.
[0103] Step S3: When it is judged according to the comparison result that no abnormal condition occurs, the starting variable and the outlet variable of the relay protection device are compared and analyzed, and whether an abnormal condition occurs is judged according to the comparison and analysis result;
[0104] Optionally, the starting variable and the exit variable of the relay protection device are compared and analyzed, and whether an abnormal situation occurs is judged according to the comparison and analysis result, and specifically includes: comparing and analyzing the starting variable and the exit variable of the relay protection device; when the starting variable and the exit variable are both 0 or both 1, it is judged that no abnormal situation occurs; when the starting variable is 1 and the exit variable is 0, it is judged that no abnormal situation occurs; when the starting variable is 0 and the exit variable is 1, it is judged that an abnormal situation occurs.
[0105] Optionally, the method further includes: when it is judged that an abnormal situation occurs according to the comparison and analysis result and the abnormal situation occurs for the first time within a time period T, the relay protection device is restarted; and when it is judged that an abnormal situation occurs according to the comparison and analysis result and the abnormal situation occurs more than once within a time period T, the relay protection device is locked and an alarm is given.
[0106] In the embodiment of the application, the program verifies the starting variable and the exit variable in real time, and when the starting variable and the exit variable are both 0 or both 1, it is judged that it is normal; when the starting variable is 1 and the exit variable is 0, it is judged that it is normal; and when the starting variable is 0 and the exit variable is 1, it is judged that it is abnormal. If the abnormal situation occurs for the first time within a time period T, the protection device is restarted; and if the abnormal situation occurs more than once within a time period T, the protection is locked and an alarm is given.
[0107] Step S4: when it is judged that no abnormal situation occurs according to the comparison and analysis result, the exit message of the protection CPU and the starting CPU is verified, and the exit relay is driven when the verification is passed.
[0108] Optionally, the method further includes: when the verification is not passed, the relay protection device is locked and an alarm is given.
[0109] In the embodiment of the application, when the protection CPU fills in the exit variable in real time, a positive-negative code backup mode is adopted, the exit instruction is sent in a combination of periodic sending and sudden change sending, there is no change in the exit, and the protection board sends a frame of positive-negative code+CRC message to the exit board every N seconds (for example, but not limited to, 5 seconds); when there is a change in the exit, the protection board continuously sends 3 frames of positive-negative code+CRC change messages to the exit board; and when the protection acts, the starting board sends the opening bit in the same format in addition to sending the starting message in advance, and sends the opening bit at the same time as the exit message of the protection board. After receiving the exit messages of the two CPUs, the exit board first verifies the correctness of the positive-negative code and the CRC code of the respective messages, and then verifies the exit messages of the two CPUs with each other to ensure the reliability of the exit.
[0110] In summary, the application is directed to analog quantity data in front of a relay protection device, and the reliability of analog quantity data sampling is ensured through abnormal value detection and repair technology. For the rear part of the relay protection device, the analysis and comparison of starting relay status and starting variable, the comparison and analysis of starting variable and outlet variable, and the comprehensive verification of protection CPU and starting CPU are proposed, which effectively prevents the outlet bit misoperation caused by single event upset. The application effectively prevents protection data abnormality and outlet bit error caused by single event upset from the front and rear of the relay protection device, and improves the reliability of the outlet. The technical problem of protection data abnormality and outlet bit error caused by single event upset in the prior art, which ultimately affects the reliability of protection, is solved.
[0111] Figure 2 Fig. 1 is a structural schematic diagram of a relay protection reinforcement system for single event upset provided by an exemplary embodiment of the application. As shown in Fig. 1, the system includes: Figure 2
[0112] an abnormality detection and repair module 210, configured to sample analog quantity data of the relay protection device, store the sampled analog quantity data in a sampling buffer, and read the analog quantity data from the sampling buffer in sequence for abnormality detection and repair;
[0113] an abnormality judgment module 220, configured to, after the analog quantity data is normal or repaired without error, transmit the analog quantity data to a software program for protection operation, and compare the status of a starting relay with starting variables of a protection board and a starting board during power system disturbance, and determine whether an abnormal situation occurs according to a comparison result;
[0114] a comparison and analysis module 230, configured to, when it is determined that no abnormal situation occurs according to the comparison result, compare and analyze starting variables and outlet variables of the relay protection device, and determine whether an abnormal situation occurs according to a comparison and analysis result;
[0115] a verification module 240, configured to, when it is determined that no abnormal situation occurs according to the comparison and analysis result, verify outgoing messages of the protection CPU and the starting CPU, and drive an outlet relay outlet when the verification is passed;
[0116] The reading of the analog quantity data from the sampling buffer in sequence for abnormality detection and repair specifically includes:
[0117] continuously intercepting 3-point data windows from the sampling buffer in sequence;
[0118] when the data in the 3-point data windows are all less than a no-flow threshold, no abnormality is determined; when the data in two-point data windows are greater than the no-flow threshold, the analog quantity data is detected and repaired through the following steps:
[0119] Linear interpolation is performed on the first point data window and the third point data window to obtain a virtual intermediate point;
[0120] It is judged whether the sign of the virtual intermediate point is same as that of the actual intermediate point, and when the signs are same, it is judged whether the difference between the modulus of the virtual intermediate point and that of the actual intermediate point is within a preset interval (-K, +K) according to the following formula:
[0121]
[0122] In the formula, A vir is the virtual intermediate point; A mid is the actual intermediate point, which is obtained through actual sampling; A1 is the first point data window, and A3 is the third point data window.
[0123] Further, considering the sampling error, the range of A1 and A3 is further expanded by half to the adjacent points, the former point of A1 is B1, the latter point of A3 is B3, and the further processing formula of K is as follows:
[0124]
[0125] When the signs are different or the difference exceeds the preset interval, it is judged that the analog quantity data is abnormal, the abnormal analog quantity data is discarded, and the data of the virtual intermediate point is stored in the sampling buffer area instead of the data of the second point data window.
[0126] Optionally, the state of the starting relay is compared with the starting variable of the protection board and the starting board, and whether an abnormal situation occurs is judged according to the comparison result, and specifically includes:
[0127] The state of the pin of the starting relay connected to the starting power supply is read in real time through a program, and is compared with the starting variable of the protection board and the starting board;
[0128] If the states are consistent, it is judged as normal, and if the states are different, it is judged as abnormal.
[0129] In a time period T, the abnormality occurs for the first time, the protection device is restarted; in a time period T, the abnormality occurs more than once, the protection is locked, and an alarm is given.
[0130] The relay protection reinforcement system for single event upset of the embodiment of the application corresponds to the relay protection reinforcement method for single event upset of another embodiment of the application, which will not be described here.
[0131] Figure 3 is the structure of the electronic device provided by an exemplary embodiment of the application. As shown in Figure 3 The electronic device 30 includes one or more processors 31 and a memory 32.
[0132] The processor 31 can be a central processing unit (CPU) or other form of processing unit having data processing and / or instruction executing capabilities, and can control other components in the electronic device to perform desired functions.
[0133] The memory 32 can include one or more computer program products that can include various forms of computer-readable storage media, such as volatile memory and / or non-volatile memory. The volatile memory, for example, can include random access memory (RAM), cache memory, and / or the like. The non-volatile memory, for example, can include read only memory (ROM), hard disk, flash memory, and / or the like. One or more computer program instructions can be stored on the computer-readable storage media, which the processor 31 can execute to implement the methods of the software programs of the various embodiments of the present application described above and / or other desired functions. In one example, the electronic device can further include an input device 33 and an output device 34, which are interconnected through a bus system and / or other forms of connection mechanisms (not shown).
[0134] In addition, the input device 33 can further include, for example, a keyboard, a mouse, and / or the like.
[0135] The output device 34 can output various information to the outside. The output device 34 can include, for example, a display, a speaker, a printer, a communication network and a remote output device connected thereto, and / or the like.
[0136] Of course, in order to simplify, Figure 3 Only some of the components of the electronic device related to the present application are shown in FIG. 1, and components such as a bus, an input / output interface, and / or the like are omitted. In addition, the electronic device can further include any other appropriate components according to a specific application.
[0137] In addition to the methods and devices described above, embodiments of the present application can also be a computer program product including computer program instructions that, when executed by a processor, cause the processor to perform the steps of the methods according to various embodiments of the present application described in the above "Exemplary Methods" section of the specification.
[0138] The computer program product can be written in any combination of one or more programming languages, including an object oriented programming language such as Java, C++ or the like, and conventional procedural programming languages, such as the "C" programming language or similar programming languages. The program code can execute entirely on the user's computing device, partly on the user's device, as a stand-alone software package, partly on the user's computing device and partly on a remote computing device or entirely on the remote computing device or server. The embodiments of the present application are not limited by the
[0139] Furthermore, embodiments of the present application can also be a computer readable storage medium, having stored thereon computer program instructions which, when executed by a processor, cause the processor to carry out the steps described in the above "Exemplary Method" section of the present specification for the methods according to various embodiments of the present application.
[0140] The computer readable storage medium can be any combination of one or more computer readable media. The computer readable medium can be a computer readable signal medium or a computer readable storage medium. A computer readable storage medium can be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, or apparatus or device, or any suitable combination of the foregoing. More specific examples (a non-exhaustive list) of the computer readable storage medium include an electrical connection having one or more wires, a portable disc, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or Flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
[0141] The above description sets forth numerous specific details regarding the described embodiments. However, it is understood that the foregoing description and examples are intended to be illustrative only and are not intended to limit the scope of the application as set forth in the appended claims. Various modifications and changes can be made thereto by those skilled in the art which fall within the scope of the application as outlined in the appended claims. Moreover, other implementations of the application will be apparent from consideration of the specification and the examples as contained herem. Therefore, the true scope of the application is not to be limited to the foregoing description but is to be accorded the full scope including equivalents and equivalent combinations thereof.
[0142] Each embodiment described in the specification is illustrative for understanding. Embodiments focus on the differences from other embodiments. The same or similar parts of each embodiment can be referred to each other. For system embodiments, since they are basically corresponding to method embodiments, the description is relatively simple. The relevant parts can be referred to the part of the method embodiment.
[0143] The block diagrams of the devices, systems, apparatuses, systems referred to in this disclosure are merely illustrative examples and are not intended to require or imply that the connections, arrangements, configurations be as shown in the block diagrams. As will be recognized by one of ordinary skill in the art, the devices, systems, apparatuses, systems can be connected, arranged, configured in any manner. Words such as "including," "containing," "comprising," and the like are to be construed in an inclusive fashion, indicating open-ended duration, and are intended to be equivalent to "including, but not limited to." As used herein, the terms "or" and "and" shall each be construed as the term "and / or" unless expressly indicated otherwise. As used herein, the term "such as" shall be construed as the phrase "such as but not limited to."
[0144] The methods and systems of the present application can be implemented in a number of ways. For example, the methods and systems of the present application can be implemented via software, hardware, firmware, or any combination of software, hardware, and firmware. The above described order of steps for the methods is merely illustrative, and the steps of the methods of the present application are not limited to the order specifically described above unless otherwise specifically stated. Furthermore, in some embodiments, the present application can also be implemented as a program recorded on a recording medium, which includes machine readable instructions for implementing the methods according to the present application. Thus, the present application also covers a recording medium storing a program for executing the methods according to the present application.
[0145] It is also to be noted that in the systems, apparatuses, and methods of the present application, various components or steps can be decomposed and / or recombined. Such decompositions and / or re-combinations are to be considered as equivalent to the present application. The above description of the disclosed aspects is given for illustrative purposes and is not intended to limit the aspects of the application in any way. Various modifications to these aspects will be readily apparent to those skilled in the art, and the generic principles defined herein can be applied to other aspects without departing from the scope of the application. Thus, the present application is not intended to be limited to the aspects shown herein, but is to be accorded the widest scope consistent with the principles and novel features disclosed herein.
[0146] The above description has been given for the purpose of illustration and description. Furthermore, this description is not intended to limit embodiments of the application to forms disclosed herein. Although several example aspects and embodiments have been discussed above, those of ordinary skill in the art will appreciate a variety of modifications, alternatives, permutations, additions, and sub-combinations of the described aspects and embodiments.
Claims
1. A method for single event upset hardened protection relaying, comprising: The method comprises the following steps: sampling analog quantity data of a relay protection device, storing the sampled analog quantity data in a sampling buffer, and reading the analog quantity data from the sampling buffer in sequence for abnormality detection and repair; after the analog quantity data is normal or is repaired without error, transmitting the analog quantity data to a software program for protection operation, and comparing a state of a starting relay with starting variables of a protection board and a starting board during power system disturbance, and judging whether an abnormal situation occurs according to a comparison result; when it is judged that no abnormal situation occurs according to the comparison result, comparing and analyzing starting variables and outlet variables of the relay protection device, and judging whether an abnormal situation occurs according to a comparison and analysis result; when it is judged that no abnormal situation occurs according to the comparison and analysis result, checking outgoing messages of a protection CPU and a starting CPU, and driving an outlet relay outlet when the checking is passed; wherein the reading of the analog quantity data from the sampling buffer in sequence for abnormality detection and repair specifically comprises: continuously intercepting 3-point data windows from the sampling buffer; when the data in the 3-point data windows are all less than a no-flow threshold, not performing abnormality discrimination; when the data in two-point data windows are greater than the no-flow threshold, performing abnormality detection and repair on the analog quantity data through the following steps: performing linear interpolation on the intercepted 1st point data window and 3rd point data window to obtain a virtual intermediate point; judging whether the sign of the virtual intermediate point is the same as that of an actual intermediate point, and when the signs are the same, judging whether the difference between the modulus of the virtual intermediate point and that of the actual intermediate point is within a preset interval (-K, +K) according to the following formula: In the formula, A vir is a virtual intermediate point; A mid is an actual intermediate point, obtained by actual sampling; A1 is a first point data window, and A3 is a third point data window. further, considering sampling errors, expanding the range of A1 and A3 by half to adjacent points, setting the previous point of A1 as B1 and the next point of A3 as B3, and further processing the formula of K as follows: when the signs are different or the difference exceeds the preset interval, judging that the analog quantity data is abnormal, discarding the abnormal analog quantity data, and storing the data of the virtual intermediate point in the sampling buffer instead of the data of the 2nd point data window.
2. The method of claim 1, wherein, the comparison of the state of the starting relay with the starting variables of the protection board and the starting board, and the judgment of whether an abnormal situation occurs according to the comparison result, specifically comprises: reading the state of a pin of the starting relay connected to a starting power supply in real time through a program, and comparing the state with the starting variables of the protection board and the starting board; if the states are consistent, it is judged as normal; if the states are different, it is judged as abnormal; in a time period T, when an abnormality occurs for the first time, the protection device is restarted; when an abnormality occurs more than once in a time period T, the protection is locked and an alarm is given.
3. The method of claim 1, wherein, the comparison and analysis of the starting variables and the outlet variables of the relay protection device, and the judgment of whether an abnormal situation occurs according to the comparison and analysis result, specifically comprises: comparing and analyzing the starting variables and the outlet variables of the relay protection device; when the starting variables and the outlet variables are both 0 or both 1, it is judged that no abnormal situation occurs; when the starting variables are 1 and the outlet variables are 0, it is judged that no abnormal situation occurs; when the starting variables are 0 and the outlet variables are 1, it is judged that an abnormal situation occurs.
4. The method of claim 1, wherein, the method further comprises the following steps: The relay protection device performs self-restart when the abnormal situation is determined according to the comparison result and the abnormal situation occurs for the first time within a time period T; The relay protection device is locked and an alarm is given when the abnormal situation is determined according to the comparison result and the abnormal situation occurs more than once within a time period T.
5. The method of claim 1, wherein, Further comprising: The relay protection device performs self-restart when the abnormal situation is determined according to the comparison result and the abnormal situation occurs for the first time within a time period T; The relay protection device is locked and an alarm is given when the abnormal situation is determined according to the comparison result and the abnormal situation occurs more than once within a time period T.
6. The method of claim 1, wherein, Further comprising: When the verification fails, the relay protection device is locked and an alarm is given.
7. A relay protection hardening system against single event upsets, characterized by, Comprising: An abnormality detection and repair module for sampling analog quantity data of the relay protection device, storing the sampled analog quantity data in a sampling buffer, and reading the analog quantity data from the sampling buffer in sequence for abnormality detection and repair; An abnormality determination module for, when the analog quantity data is normal or is repaired without error, transmitting the analog quantity data to a software program for protection operation, and comparing a state of a starting relay with starting variables of a protection board and a starting board when a power system is disturbed, and determining whether an abnormal situation occurs according to a comparison result; A comparison analysis module for, when it is determined that no abnormal situation occurs according to the comparison result, performing comparison analysis on starting variables and outlet variables of the relay protection device, and determining whether an abnormal situation occurs according to a comparison analysis result; A verification module for, when it is determined that no abnormal situation occurs according to the comparison analysis result, verifying outgoing messages of the protection CPU and the starting CPU, and driving an outlet relay outlet when the verification is passed; The reading of the analog quantity data from the sampling buffer in sequence for abnormality detection and repair specifically comprises: Successively intercepting three-point data windows from the sampling buffer; When the data in the three-point data windows are all less than a no-flow threshold, no abnormality is determined; when the data in two-point data windows are greater than the no-flow threshold, the analog quantity data is detected and repaired through the following steps: Linear interpolation is performed on the first and third data windows to obtain a virtual intermediate point; It is determined whether the sign of the virtual intermediate point is the same as that of an actual intermediate point, and when the signs are the same, it is determined whether a difference between a modulus of the virtual intermediate point and a modulus of the actual intermediate point is within a preset interval (-K, +K) according to the following formula: In the formula, A vir is a virtual intermediate point; A mid is an actual intermediate point, obtained by actual sampling; A1 is a first point data window, and A3 is a third point data window. Further, considering sampling errors, the range of A1 and A3 is further expanded by half to adjacent points, B1 is set as a previous point of A1, B3 is set as a next point of A3, and the further processing formula of K is as follows: When the signs are different or the difference exceeds the preset interval, it is determined that the analog quantity data is abnormal, the abnormal analog quantity data is discarded, and the data of the virtual intermediate point is stored in the sampling buffer in place of the data of the second data window.
8. The system of claim 7, wherein, The comparison of the state of the starting relay with the starting variables of the protection board and the starting board, and the determination of whether an abnormal situation occurs according to a comparison result specifically comprises: The program reads the state of the pin connecting the starting relay to the starting power supply in real time, and compares it with the starting variable of the protection board and the starting board; If the states are consistent, it is judged as normal; if the states are different, it is judged as abnormal; If the abnormality occurs for the first time within a time period T, the protection device is restarted; if the abnormality occurs more than once within a time period T, the protection is locked and an alarm is given. 9.A computer readable storage medium, the storage medium storing a computer program, the computer program being used to execute the method of any one of claims 1-6.
10. An electronic device, comprising: The electronic device comprises: a processor; a memory for storing executable instructions of the processor; the processor is used to read the executable instructions from the memory and execute the executable instructions to implement the method of any one of claims 1-6.
Citation Information
Patent Citations
Soft error real-time blocking and system recovery method for relay protection device
CN116701029A
Cache single event upset resisting effect verification method based on AT697
CN111708695A
Relay protection device and method for preventing single event upset
CN114825293A