Redundancy signal monitoring methods, devices, equipment, and storage media
By using fault counting and filtering conditions to select effective channels for signal voting, the accuracy and security issues of redundant signal monitoring in complex control systems are solved, enabling the system to operate efficiently and reliably in extreme environments.
Patent Information
- Application Number
- CN202411580957.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-11-07
- Publication Date
- 2025-11-14
- Estimated Expiration
- 2044-11-07
AI Technical Summary
Existing methods for monitoring redundant signals in complex control systems have low control accuracy, safety and automation levels, making it difficult to maintain efficient and reliable operation in extreme environments.
By acquiring the current signal, historical fault count, and preset filtering conditions of each signal channel, the system determines the signal fault flag and current fault count, filters valid channels for signal voting, and uses historical fault count and preset reset rules to handle abnormal signals, ensuring system stability.
It improves the autonomy and reliability of complex control systems, outputs effective voting results, and enhances the stability and safety of the system in extreme environments.
Smart Images

Figure CN119270746B_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of signal control technology, specifically to a redundancy signal monitoring method, apparatus, device, and storage medium. Background Technology
[0002] With the rapid development of energy demand and technology, the application of complex control systems in various fields is gradually increasing, such as aerospace, nuclear energy, and unmanned production lines. Especially in systems operating for extended periods without monitoring in complex environments, control systems are required to possess a high degree of autonomy and self-protection mechanisms to ensure their stability and reliability. With advancements in automation and information technology, complex control systems need to maintain high efficiency and reliability during prolonged autonomous operation. Furthermore, long-term operation may expose systems to extreme environments, such as radiation, high temperatures, low temperatures, mechanical stress, or electromagnetic interference. These complex environmental factors increase the risks of system operation; therefore, the system needs to possess stronger anti-interference and adaptability capabilities.
[0003] Redundancy signal voting algorithms play a crucial role in complex control systems. They effectively utilize internal system resources and leverage redundant design to improve fault tolerance and stability through comprehensive analysis of multiple redundant signal sources, enhancing system stability and performance without adding extra weight or cost. When the system encounters faults or abnormal signals, the voting algorithm compares and analyzes different signal sources, selecting the optimal signal for feedback and control, thus ensuring continued stable operation even in the event of failure. This method not only reduces the need for manual intervention but also improves the system's automation level and safety.
[0004] Currently, complex control systems mainly employ threshold design or multiple redundancy threshold design. This means that when the control signal acquired by the sensor exceeds a threshold, an action command is sent to the control system; or when the mode, median, or mean of multiple redundant control signals acquired by the sensor exceeds a threshold, an action command is sent to the control system. However, this method of monitoring redundant signals has relatively low control accuracy, safety, and automation. Summary of the Invention
[0005] In view of the shortcomings of the aforementioned related technologies, this application provides a redundancy signal monitoring method, apparatus, device, and storage medium to solve the above-mentioned technical problems.
[0006] This application provides a method for monitoring redundancy signals, including:
[0007] Obtain the current signal, the signal to be voted at the previous moment, and the historical fault count for each signal channel;
[0008] Based on preset filtering conditions and the current signal, determine the signal fault flag for each signal channel;
[0009] Based on the historical fault counts and signal fault flags of each signal channel, the current fault count of each signal channel is determined;
[0010] Based on the historical fault count, signal fault flag, and current fault count of each signal channel, determine whether there is a target channel in each signal channel that meets the preset reset rules;
[0011] If no target channel exists, each signal channel is determined as a valid channel, and a signal filtering step is performed. The signal filtering step includes: determining the current signal to be voted from among the valid signals and the previous time-to-be-voted signals based on the signal fault flags of each valid channel; the valid signal is the current signal corresponding to the valid channel.
[0012] If a target channel exists, then other signal channels besides the target channel are identified as valid channels, and the signal filtering step is executed.
[0013] The current voting signal is voted on for the first time to determine the current voting result.
[0014] In one embodiment of this application, based on preset filtering conditions and the current signal, the signal fault flag of each signal channel is determined, including:
[0015] When the current signal belongs to a preset range, the current signal is determined as a signal to be processed;
[0016] A second vote is performed on all signals to be processed to determine the signals that are within limits and signals that are beyond limits. The signal fault flag of the signal channel corresponding to the signal that is within limits is a first preset value, and the signal fault flag of the signal channel corresponding to the signal that is beyond limits is a second preset value.
[0017] When the current signal does not belong to the preset range, the current signal is determined to be an out-of-limit signal.
[0018] In one embodiment of this application, the historical fault count includes the fault count of the previous moment and the fault count of the moment before that, and the preset reset rule includes:
[0019] When the fault count at the previous moment equals the preset maximum value, or when the difference between the fault count at the moment before that and the fault count at the previous moment equals the preset waiting value and the fault count at the previous moment is greater than the preset minimum value, the difference between the fault count at the previous moment and the preset waiting value is determined as the current fault count.
[0020] When the difference between the fault count at the previous time and the fault count at the previous time is equal to the preset waiting value, the fault count at the previous time is equal to the preset minimum count value, and the signal fault flag is the first preset value, the preset initial value is determined as the current fault count.
[0021] When the difference between the fault count at the previous time and the fault count at the previous time is equal to the preset waiting value, the fault count at the previous time is equal to the preset minimum count value, and the signal fault flag is the second preset value, the preset fault value is determined as the current fault count.
[0022] If the fault count was a preset fault value at the previous moment and no reset signal was received, the preset fault value will be set as the current fault count.
[0023] In one embodiment of this application, determining the current fault count of each signal channel based on the historical fault count and signal fault flags of each signal channel includes:
[0024] If the historical fault count and signal fault flag meet the preset reset rules, then the current fault count is determined based on the preset reset rules;
[0025] If the historical fault count does not meet the preset reset rules, then when the signal fault flag is at the first preset value, the current fault count is reset to the preset initial value; when the signal fault flag is at the second preset value, the current fault count is obtained by accumulating the count based on the fault count at the previous moment.
[0026] In one embodiment of this application, a first vote is performed on the current voting signal to determine the current voting result, including:
[0027] When the number of current pending votes is 3, the median value of all current pending votes is determined as the current voting result;
[0028] When the number of current pending votes is equal to 2, the average of all current pending votes is determined as the current voting result;
[0029] When the number of signals to be voted is less than or equal to 1, the preset safety value will be used as the voting result.
[0030] In one embodiment of this application, the current signal to be voted is determined from among the valid signals and the previous time-pending signals based on the signal fault flags of each valid channel, including:
[0031] When the number of limit signals is less than the preset first number of signals, each of the previous time-to-vote signals is determined as the current time-to-vote signal;
[0032] When the number of limited signals is greater than or equal to the number of the first signals and less than the number of valid signals, the limited signal will be determined as the current voting signal, and the previous voting signal corresponding to the signal channel of the over-limit signal will be determined as the current voting signal.
[0033] When the number of limited signals equals the number of valid signals, each of the valid signals is determined as a signal to be voted on.
[0034] In one embodiment of this application, when the number of limit signals is less than a preset first number of signals, each signal to be voted at the previous moment is determined as the current signal to be voted, including:
[0035] When the number of valid signals is equal to 3 and the number of limit signals is less than the number of first signals, each of the previous time-to-vote signals is determined as the current time-to-vote signal.
[0036] When the number of valid signals is less than 3 and the number of limit signals is less than the number of first signals, the preset safety value will be used as the current signal to be voted on.
[0037] To achieve the above and other related objectives, this application provides a redundancy signal monitoring device, comprising:
[0038] The data acquisition module is used to acquire the current signal, the signal to be voted at the previous moment, and the historical fault count for each signal channel.
[0039] The first determination module is used to determine the signal fault flag of each signal channel based on preset filtering conditions and the current signal.
[0040] The second determining module is used to determine the current fault count of each signal channel based on the historical fault count and signal fault flag of each signal channel;
[0041] The third determination module is used to determine whether there is a target channel that meets the preset reset rules in each signal channel based on the historical fault count, signal fault flag and current fault count of each signal channel.
[0042] The first execution module is used to determine each signal channel as a valid channel if no target channel exists, and to perform a signal filtering step. The signal filtering step includes: determining the current signal to be voted from each valid signal and the previous time-to-be-voted signal according to the signal fault flag of each valid channel; the valid signal is the current signal corresponding to the valid channel.
[0043] The second execution module is used to determine other signal channels besides the target channel as valid channels and execute the signal filtering step if a target channel exists.
[0044] The fourth determining module is used to perform a first vote on the current voting signal and determine the current voting result.
[0045] To achieve the above and other related objectives, this application also provides an electronic device, the electronic device comprising:
[0046] One or more processors;
[0047] Memory used to store the executable program code of the processor;
[0048] The processor is configured to execute the program code to implement the aforementioned redundancy signal monitoring method.
[0049] To achieve the above and other related objectives, this application also provides a computer-readable storage medium that, when the instructions in the computer-readable storage medium are executed by a processor of an electronic device, enables the electronic device to perform the above-described redundancy signal monitoring method.
[0050] As described above, the redundancy signal monitoring method, apparatus, device, and storage medium provided in this application have the following beneficial effects:
[0051] This application discloses a redundancy signal monitoring method. This method, by setting historical fault counts and preset reset rules, assesses each signal channel upon acquiring the current signal to determine if a target channel satisfying the preset reset rules exists. Other signal channels besides the target channel are identified as valid channels. The current voting result is determined based on the valid signals from the valid channels and the signals to be voted on at the previous moment. This application provides a highly reliable redundancy signal monitoring method integrating fault counting, fault elimination, and fault recovery functions, outputting a valid current voting result, greatly improving the system's autonomy and reliability.
[0052] It should be understood that the above general description and the following detailed description are exemplary and explanatory only, and do not limit this application. Attached Figure Description
[0053] The accompanying drawings, which are incorporated in and form part of this specification, illustrate embodiments consistent with this application and, together with the description, serve to explain the principles of this application. It is obvious that the drawings described below are merely some embodiments of this application, and those skilled in the art can obtain other drawings based on these drawings without any inventive effort. In the drawings:
[0054] Figure 1 This is a flowchart illustrating a redundancy signal monitoring method in an exemplary embodiment of this application;
[0055] Figure 2 This is a structural block diagram of a redundancy signal monitoring device illustrated in an exemplary embodiment of this application. Detailed Implementation
[0056] The embodiments of this application will be described below with reference to the accompanying drawings and preferred embodiments. Those skilled in the art can easily understand other advantages and effects of this application from the content disclosed in this specification. This application can also be implemented or applied through other different specific embodiments, and various details in this specification can also be modified or changed based on different viewpoints and applications without departing from the spirit of this application. It should be understood that the preferred embodiments are only for illustrating this application and are not intended to limit the scope of protection of this application.
[0057] It should be noted that the illustrations provided in the following embodiments are only schematic representations of the basic concept of this application. Therefore, the drawings only show the components related to this application and are not drawn according to the actual number, shape and size of the components in the actual implementation. In the actual implementation, the form, quantity and proportion of each component can be arbitrarily changed, and the layout of the components may also be more complex.
[0058] In the following description, numerous details are explored to provide a more thorough explanation of embodiments of the present application. However, it will be apparent to those skilled in the art that embodiments of the present application may be practiced without these specific details. In other embodiments, well-known structures and devices are shown in block diagram form rather than in detail to avoid obscuring embodiments of the present application.
[0059] Please see Figure 1 , Figure 1 This is a flowchart illustrating a redundancy signal monitoring method according to an exemplary embodiment of this application. (Reference) Figure 1 It can be seen that this redundancy signal monitoring method may include:
[0060] Step S110: Obtain the current signal, the previous time-pending signal, and the historical fault count for each signal channel.
[0061] Each signal channel has a corresponding historical fault count, which can characterize whether the signal channel was faulty at various points in history.
[0062] In one embodiment of this application, the number of signal channels can be 2 or 3. That is, in this embodiment, the current signal can be one of the 2 input redundancy signals, or it can be one of the 3 input redundancy signals. In complex control systems, redundant signals can be used for control. Each signal (the current signal) can be acquired by a measuring sensor in the complex control system. Each measuring sensor can be used to measure the same physical quantity. Each measuring sensor is independent of the others. After acquiring the current signal, each measuring sensor can transmit it to the control processing device through the corresponding signal channel (the measuring sensor and the signal channel correspond one-to-one). The control processing device then executes the redundancy signal monitoring method provided in this embodiment.
[0063] It should be noted that in complex control systems, redundant signals are additional signals set up to improve reliability and fault tolerance. Redundant signals can be transmitted in parallel, with the aim of ensuring that the complex control system can still function normally even if a signal path fails.
[0064] In another possible implementation, the current signal can also be one of the signals in a redundant switch signal. For example, the current signal can be one of the signals in a triple-redundant switch signal.
[0065] Step S120: Based on preset filtering conditions and the current signal, determine the signal fault flag for each signal channel.
[0066] In one embodiment of this application, the signal fault flag of each signal channel can be determined based on preset filtering conditions and the current signal.
[0067] In one embodiment of this application, step S120, which determines the signal fault flag of each signal channel based on preset filtering conditions and the current signal, may include steps S121 to S123.
[0068] Step S121: When the current signal belongs to a preset range, the current signal is determined as the signal to be processed.
[0069] The current signal is the current signal corresponding to the current channel.
[0070] In one embodiment of this application, when the current signal falls within a preset range, the current signal can be identified as the signal to be processed. In complex control systems, the preset range can be 4~20mA (milliampere), where 4mA represents the minimum value (usually zero or the lower limit) and 20mA represents the maximum value (usually full scale or the upper limit). The 4~20mA current signal range is a widely used standard in industrial automation, primarily for analog signal transmission. Current signals have better anti-interference characteristics than voltage signals, and the 4mA lower limit provides a non-zero baseline, meaning that even if a sensor or circuit malfunctions (such as an open circuit), the system can identify the fault state by detecting a current below 4mA. The preset range can also be 6~80mA, and the preset range can be set according to the actual application requirements in the complex control system.
[0071] In one embodiment, the number of signals to be processed is an integer, and the number of signals to be processed can be greater than or equal to 0.
[0072] Step S122: Perform a second vote on all signals to be processed to determine the signals within the limit and the signals exceeding the limit among the signals to be processed.
[0073] Among them, the signal fault flag of the signal channel corresponding to the limit signal is the first preset value, and the signal fault flag of the signal channel corresponding to the over-limit signal is the second preset value.
[0074] In one embodiment of this application, a signal fault flag can be pre-set for the signal channel corresponding to the limit signal and the signal channel corresponding to the over-limit signal. After a second vote is performed on the signals to be processed, it can be determined whether each signal to be processed is a limit signal or an over-limit signal. After determining that the signal to be processed is a limit signal, the signal fault flag of each signal channel can be determined.
[0075] For example, the first preset value can be 0, and the second preset value can be 1.
[0076] In one embodiment, the process of performing a second vote on the signals to be processed to determine the signals within the limit and the signals exceeding the limit may include:
[0077] When the number of signals to be processed is greater than a third preset value, the signal difference between two adjacent signals is calculated after sorting the signals to be processed. Based on the signal difference and the difference tolerance, signals within the limit and signals exceeding the limit are determined. When the number of signals to be processed is less than or equal to the third preset value, each signal to be processed is determined as an signal exceeding the limit. The difference tolerance can be a preset value set based on expert experience.
[0078] For example, the signals to be processed can be x, y, and z, where x > y > z. Two signal differences can be obtained, xy and yz. If xy is less than the difference tolerance and yz is less than the difference tolerance, then x, y, and z are all signals within limits. If xy is less than the difference tolerance and yz is greater than or equal to the difference tolerance, then x and y are signals within limits, and z is an out-of-limit signal. If xy is greater than or equal to the difference tolerance and yz is greater than or equal to the difference tolerance, then x, y, and z are all out-of-limit signals.
[0079] For example, the signals to be processed can be x and y, where x > y, and a signal difference, xy, can be obtained. If xy is less than the difference tolerance, then x and y can be determined to be signals within limits; if xy is less than the difference tolerance, then x and y can be determined to be signals exceeding limits.
[0080] For example, the third preset value can be 1. The difference tolerance can be 5, and the difference tolerance can also be other preset values, which are not limited in this embodiment.
[0081] Step S123: When the current signal does not belong to the preset range, the current signal is determined to be an out-of-limit signal.
[0082] In one embodiment of this application, when the current signal does not belong to the preset range, the sensor at the measuring point corresponding to the current signal may be abnormal, or there may be other interference sources in the system. At this time, the signal channel corresponding to the current signal is unreliable. In order to ensure the safety and reliability of the system, the current signal can be identified as an out-of-limit signal to indicate that the signal is unusable.
[0083] In another possible implementation, when the current signal is one of the redundant switch signals, the preset filtering conditions may include: when the sum of all current signals is greater than a preset first sum value, setting the on flag to 1, the off flag to 0, setting the signal fault flag of the signal channel with the current signal being 1 to 0, and setting the signal fault flag of the signal channel with the current signal being 0 to 1, where setting the signal fault flag to 1 indicates a signal channel fault, and setting the signal channel to 0 indicates a normal signal channel. When the sum of all current signals is less than a preset first sum value, setting the on flag to 0, the off flag to 1, setting the signal fault flag of the signal channel with the current signal being 1 to 1, and setting the signal fault flag of the signal channel with the current signal being 0 to 0.
[0084] For example, the current number of signals can be 3, and the preset first sum value can be 2.
[0085] Step S130: Determine the current fault count of each signal channel based on the historical fault count and signal fault flag of each signal channel.
[0086] In one embodiment of this application, the current fault count of each signal channel can be determined based on the historical fault count and signal fault flags of each signal channel. The current fault count can indicate whether the corresponding signal channel needs to be reset at the current moment, or whether the signal channel is a faulty channel. Determining the current fault count also facilitates the filtering and voting of the signal at the next moment after it is acquired, so as to realize the automatic monitoring of redundant signals in complex control systems.
[0087] Step S140: Based on the historical fault count, signal fault flag, and current fault count of each signal channel, determine whether there is a target channel in each signal channel that meets the preset reset rules.
[0088] In one embodiment of this application, the existence of a target channel that meets the preset reset rules can be determined based on the historical fault count, signal fault flag, and current fault count of each signal channel. In this embodiment, if a signal channel needs to be reset at the current moment, or if a signal channel is a faulty channel at the current moment (i.e., the current signal of the signal channel needs to be blocked), then the signal channel is a target channel that meets the preset reset rules.
[0089] Step S150: If no target channel exists, each signal channel is determined as a valid channel, and a signal filtering step is performed. The signal filtering step includes: determining the current signal to be voted from among the valid signals and the previous time-pending signals based on the signal fault flags of each valid channel.
[0090] Among them, the valid signal is the current signal corresponding to the valid channel.
[0091] In one embodiment of this application, if there is no target channel, it indicates that the fault count at the previous moment is less than the preset maximum count. At this time, the measuring point sensor corresponding to the signal channel may not have failed, or although the measuring point sensor corresponding to the signal channel failed at the previous moment, it may have recovered to normal at the current moment and a valid signal can be obtained.
[0092] In one embodiment of this application, a signal fault flag can indicate whether the valid signal corresponding to the valid channel is abnormal. When the signal fault flag of the valid channel indicates that the valid signal is normal, the valid signal can be determined as the current signal to be voted; when the signal fault flag of the valid channel indicates that the valid signal is abnormal, the signal to be voted at the previous moment can be determined as the current signal to be voted.
[0093] It should be noted that after determining the current voting signal, the current voting result can be determined based on the current voting signal. After obtaining the next moment signal, the current signal is the previous moment signal for the next moment signal, and the next moment signal can be re-determined as the current signal.
[0094] In one possible implementation, when the current signal is one of the redundant switch signals, the signal filtering step may include: determining each valid signal as the current signal to be voted on.
[0095] Step S160: If a target channel exists, then other signal channels besides the target channel are identified as valid channels, and the signal filtering step is performed.
[0096] In one embodiment of this application, if a target channel exists, then among the measuring point sensors corresponding to each signal channel, there are measuring point sensors that need to be reset at the current moment. At this time, other signal channels besides the target channel can be determined as valid channels, and a signal filtering step can be performed to determine the current signal to be voted.
[0097] In one possible implementation, when the current signal is one of the redundant switch signals, if a target channel exists and the number of other signal channels besides the target channel is even, the signal to be voted at the previous moment is determined as the current signal to be voted. If a target channel exists and the number of other signal channels besides the target channel is odd, the valid signal is determined as the current signal to be voted.
[0098] Step S170: Perform the first vote on the current pending vote signal to determine the current voting result.
[0099] In one embodiment of this application, after determining the current voting signal, a first vote can be performed on the current voting signal to determine the current voting result. The complex control system can monitor system operation and execute relevant instructions based on the current voting result.
[0100] It should be noted that voting on signals is a method to ensure system reliability and security, especially in mission-critical systems, where it can yield more stable and reliable voting results.
[0101] In one possible implementation, when the current signal is one of the redundant switch signals, the number of consecutive times the open flag is set to 1 and the number of consecutive times the close flag is set to 1 can be determined, and the first voting result can be determined based on the current signal to be voted on. The voting result is either an open signal or a close signal; an open signal can be represented by 1, and a close signal can be represented by 0. If, including multiple consecutive moments from the current moment, the number of consecutive times the open flag is set to 1 equals a preset number of consecutive times, and the first voting result is an open signal, then the current voting result is an open signal. If, including multiple consecutive moments from the current moment, the number of consecutive times the open flag is set to 1 is less than the preset number of consecutive times, and the first voting result is an open signal, then the current voting result is the voting result of the previous moment. If, including multiple consecutive moments from the current moment, the number of consecutive times the close flag is set to 1 equals a preset number of consecutive times, and the first voting result is a close signal, then the current voting result is a close signal. If, including multiple consecutive moments from the current moment, the number of consecutive times the close flag is set to 1 is less than the preset number of consecutive times, and the first voting result is an open signal, then the current voting result is the voting result of the previous moment.
[0102] In one possible implementation, the historical fault count includes the fault count from the previous moment and the fault count from the moment before that, and the preset reset rules may include:
[0103] When the fault count at the previous moment equals the preset maximum value, or when the difference between the fault count at the moment before that and the fault count at the previous moment equals the preset waiting value and the fault count at the previous moment is greater than the preset minimum value, the difference between the fault count at the previous moment and the preset waiting value is determined as the current fault count.
[0104] When the difference between the fault count at the previous time and the fault count at the previous time is equal to the preset waiting value, the fault count at the previous time is equal to the preset minimum count value, and the signal fault flag is the first preset value, the preset initial value is determined as the current fault count.
[0105] When the difference between the fault count at the previous time and the fault count at the previous time is equal to the preset waiting value, the fault count at the previous time is equal to the preset minimum count value, and the signal fault flag is the second preset value, the preset fault value is determined as the current fault count.
[0106] If the fault count was a preset fault value at the previous moment and no reset signal was received, the preset fault value will be set as the current fault count.
[0107] In one embodiment of this application, the reset signal is a signal received by the control processing device after a manual reset. When the fault count equals a preset maximum value at any given time, the signal channel corresponding to that fault count can be reset. This reset operation is performed by the control processing device, for example, by sending a reset command to the sensor at the measurement point corresponding to that signal channel. Subsequently, at multiple time points, the fault count corresponding to that signal channel is calculated based on preset reset rules. If the difference between the fault count at the time two moments prior and the fault count at the previous moment equals a preset waiting value, the fault count at the previous moment equals a preset minimum value, and the signal fault flag is a second preset value, then the preset fault value can be determined as the current fault count. After determining that the current fault count is the preset fault value, a prompt message can be sent to the user terminal. This prompt message can be used to instruct the user to manually reset the target channel. After the user manually resets the target channel, the control processing device can receive the reset signal. The reset signal is received between the current time and the target time closest to the current time. The target time is the time when the difference between the fault count of the signal channel and the fault count of the previous time is equal to the preset waiting value, the fault count of the previous time is equal to the preset minimum count value, and the signal fault flag is the second preset value.
[0108] It should be noted that "previous moment" refers to the first moment before the current moment, and "the moment before that" refers to the second moment before the current moment; that is, "the moment before that" refers to the moment before the previous moment. In this embodiment, when the difference between the fault count at the moment before that and the fault count at the previous moment equals a preset waiting value, if the fault count at the previous moment is less than a preset minimum count, it indicates that the signal channel recovered normally at the previous moment, and the preset reset rule does not apply to the judgment of the signal channel in this case.
[0109] If the fault count at the previous time step minus the fault count at the previous time step equals a preset waiting value, and the pre-fault count at the previous time step is greater than a preset minimum value, it can be determined that the sensor at the measuring point corresponding to the target channel is performing a reset operation. At this time, this signal channel is the target channel, and the current signal corresponding to the target channel does not participate in the first vote. If the fault count at the previous time step equals the preset maximum count, it can be determined that the target channel has experienced faults at multiple consecutive time steps, including the previous time step. Therefore, a reset operation needs to be performed on the sensor at the measuring point corresponding to the target channel.
[0110] For example, the preset maximum count can be 6, the preset minimum count can be 1, the preset waiting value can be 1, the preset initial value can be 0, the preset fault value can be -1, and each preset value can also be other settings based on expert experience.
[0111] For example, the preset maximum count can be 6, the preset minimum count can be 1, the preset waiting value can be 1, the preset initial value can be 0, and the preset fault value can be -1. If the fault count at the previous moment was 6, then the current fault count can be 5. If the fault count at the moment before that was 6 and the fault count at the previous moment was 5, then the current fault count can be 4. If the fault count at the moment before that was 2 and the fault count at the previous moment was 1, and the signal fault flag is the first preset value, then the current fault count is the preset initial value 0. If the fault count at the moment before that was 2 and the fault count at the previous moment was 1, and the signal fault flag is the second preset value, then the current fault count is the preset initial value -1.
[0112] In one possible implementation, step S130, which determines the current fault count of each signal channel based on the historical fault count and signal fault flag of each signal channel, may include steps S131 and S132.
[0113] Step S131: If the historical fault count and signal fault flag meet the preset reset rules, then determine the current fault count based on the preset reset rules.
[0114] In one embodiment of this application, if the historical fault count and signal fault flag meet the preset reset rules, the current fault count is determined based on the preset reset rules.
[0115] For example, if the fault count at the previous moment is equal to the preset maximum value, or, the difference between the fault count at the moment before that and the fault count at the previous moment is equal to the preset waiting value and the fault count at the previous moment is greater than the preset minimum value, or, the difference between the fault count at the moment before that and the fault count at the previous moment is equal to the preset waiting value, the fault count at the previous moment is equal to the preset minimum value, and the signal fault flag is the first preset value, or, the difference between the fault count at the moment before that and the fault count at the previous moment is equal to the preset waiting value, the fault count at the previous moment is equal to the preset minimum value, and the signal fault flag is the second preset value, or, the fault count at the previous moment is the preset fault value and no reset signal has been received, then the current fault count can be determined according to the preset reset rules. The specific calculation method has been explained in detail above and will not be repeated here.
[0116] Step S132: If the historical fault count does not meet the preset reset rule, then when the signal fault flag is the first preset value, the current fault count is reset to the preset initial value; when the signal fault flag is the second preset value, the current fault count is obtained by accumulating the count based on the fault count at the previous moment.
[0117] In one embodiment of this application, if the historical fault count does not meet the preset reset rule, then when the signal fault flag is a first preset value, the current fault count is reset to a preset initial value; when the signal fault flag is a second preset value, the current fault count is obtained by accumulating the count based on the fault count at the previous moment.
[0118] If the historical fault count does not meet the following conditions: the fault count at the previous moment is equal to the preset maximum count value; or, the difference between the fault count at the moment before that and the fault count at the previous moment is equal to the preset waiting value and the fault count at the previous moment is greater than or equal to the preset minimum count value; or, the fault count at the previous moment is the preset fault value and no reset signal is received, then the current fault count can be determined based on the signal fault flag.
[0119] It should be noted that if the historical fault count does not meet the preset reset rule, the historical fault count can satisfy the following conditions: the fault count at the previous moment is less than the preset maximum count value, and the difference between the fault count at the moment before that and the fault count at the previous moment is not a preset waiting value; or, the historical fault count can satisfy the following conditions: the fault count at the previous moment is a preset fault value and a reset signal has been received.
[0120] After executing steps S121 to S123, the signal fault flags of each signal channel can be obtained. After determining the valid channels among the signal channels, the current count of the valid channels can be determined based on the signal fault flags and historical fault counts of each valid channel. When the signal fault flag of a valid channel is at the first preset value (that is, when the signal fault flag of a valid channel indicates that the valid signal is normal), the current fault count can be reset to the preset initial value.
[0121] For example, the default initial value can be 0.
[0122] For example, if the fault count was 3 at the previous moment and the current fault flag is the first preset value (the current signal corresponding to this signal channel is the in-limit signal), the current fault count can be 0, that is, the current fault count can be reset to the preset initial value.
[0123] In one embodiment of this application, when the signal fault flag is a second preset value, the current fault flag indicates that the valid signal is abnormal, and the current fault count can be obtained by accumulating the count based on the fault count at the previous moment (which can be incremented by 1).
[0124] For example, if the fault count was 3 at the previous moment and the current fault flag is the second preset value (the current signal corresponding to this signal channel is an over-limit signal), the current fault count can be 4.
[0125] In one embodiment, step S150, which involves determining the current voting signal from among the valid signals and the previous voting signal based on the fault flags of each valid signal, may include steps S151 to S153.
[0126] Step S151: When the number of limit signals is less than the preset number of first signals, each previous time-to-vote signal is determined as the current time-to-vote signal.
[0127] In one embodiment of this application, when the number of limited signals is less than the preset first number of signals, it indicates that there are multiple over-limit signals in the current signal acquired at the current time, and the limited signals in the current signal are also unreliable. The previous time-to-vote signal corresponding to each signal channel can be determined as the current time-to-vote signal. The previous time-to-vote result can be determined based on the previous time-to-vote signal. After executing step S134, the current voting result determined based on the current time-to-vote signal is equal to the previous time-to-vote result.
[0128] For example, the number of first signals can be 2.
[0129] In one possible implementation, when the number of valid signals is equal to 3 and the number of limit signals is less than the first number of signals, each previous time-to-vote signal is determined as the current time-to-vote signal; when the number of valid signals is less than 3 and the number of limit signals is less than the first number of signals, a preset safety value is used as the current time-to-vote signal.
[0130] Step S152: When the number of limited signals is greater than or equal to the number of first signals and less than the number of valid signals, the limited signal is determined as the current voting signal, and the previous voting signal corresponding to the signal channel of the over-limit signal is determined as the current voting signal.
[0131] In one embodiment of this application, when the number of limited signals is greater than or equal to the number of first signals and less than the number of valid signals, the limited signal at the current moment can be determined as the current voting signal, and the previous voting signal corresponding to the signal channel of the current over-limit signal can be determined as the current voting signal. That is, each valid signal's signal channel corresponds to a current voting signal.
[0132] Step S153: When the number of limited signals is equal to the number of valid signals, each valid signal is determined as a signal to be voted on.
[0133] In one embodiment of this application, when the number of limited signals is equal to the number of valid signals, it indicates that the current signal corresponding to each valid channel is a limited signal, and each valid signal can be determined as a signal to be voted on.
[0134] In one embodiment, step S170, which involves performing a first vote on the current voting signal and determining the current voting result, may include steps S171 to S173.
[0135] Step S171: When the number of current pending votes is equal to 3, determine the median value of all current pending votes as the current voting result.
[0136] In one embodiment of this application, when the number of current pending vote signals is equal to 3, the median value of all current pending vote signals is determined as the current voting result.
[0137] It should be noted that when the number of signals to be voted is the base number, the signals to be voted can be sorted and the median can be used to determine the current voting result.
[0138] Step S172: When the number of current pending votes is equal to 2, the average of all current pending votes is determined as the current voting result.
[0139] In one embodiment of this application, when the number of current signals to be voted is equal to 2, the average of all current signals to be voted is determined as the current voting result.
[0140] Step S173: When the number of current signals to be voted is less than or equal to 1, the preset safety value is used as the voting result.
[0141] In one embodiment of this application, the preset safety value should be within a preset range. Setting the preset safety value is to ensure that the complex control system can still maintain a basic safe operating state when there are insufficient or invalid current voting signals.
[0142] For example, the preset security value can be 13.
[0143] In one embodiment, please refer to Table 1, which illustrates a redundant signal monitoring history in an exemplary embodiment of this application.
[0144] Table 1
[0145] .
[0146] For example, based on Table 1, the preset waiting value is set to 1, the preset maximum value to 6, the preset minimum value to 1, the preset safety value to 13, and the difference tolerance to 5. Table 1 shows that the 4~20mA signal of the 1*3 signal has three signal channels. When a signal is greater than or equal to the difference tolerance, the fault count of the corresponding channel is incremented by 1, and the previous valid signal of that channel will be used in the current vote. When the fault count reaches the preset maximum value of 6, the signal of that channel (i.e., the target channel) will be temporarily blocked. When the automatic fault recovery count is reached, it will be checked again whether the signal of that channel exceeds the limit. If it does, the automatic fault recovery fails, the system will no longer use the signal of that channel, and the signal channel can only be manually restored. During the entire monitoring and voting process, when all three signals are pending votes, the voting result is the median value of the three signals; when two signals are pending votes, the voting result is the average of the two signals; when the number of pending votes is less than or equal to 1, the voting result is the preset safety value.
[0147] For the first moment, the signal of the second signal channel is an over-limit signal, but there is no data before the first moment. Therefore, a preset safety value can be used as the voting signal of the second signal channel.
[0148] At time 3, all three signal channels are in-limit signals (signals to be voted on), and the voting result is the median value of the three signal channels after sorting, which is 14.1696.
[0149] At time 4, all three signal channels are out-of-limit signals. Therefore, the voting signal at time 3 can be used as the voting signal at time 4, and the voting result is 14.1696.
[0150] From time 4 to time 9, the signals of the second channel are all out-of-limit signals, and the fault count continues to accumulate. During this process, the signal of the second channel takes the in-limit signal of the previous time, which is 14.1696. The voting result at time 4 is 16.7832.
[0151] At time 9, the fault count accumulates to the preset maximum value of 6, and the automatic reset count begins. The fault count of the second signal channel is decremented by the preset waiting value of 1 each time. During this process, the second signal channel (target channel) is blocked, and the first and second signal channels are valid channels.
[0152] At time 14, the fault count corresponding to the second signal channel reaches the preset minimum value. At time 15, the signal automatic recovery function is triggered. At this time, the voting result is the fault safety value. The signal shield of the second signal channel is released. It is determined whether the signal of the second signal channel exceeds the limit at time 15. If it does not exceed the limit, the signal is reset for use at time 16. The signal of the second signal channel 19.8130 does not exceed the limit. The signal reset is successful, and the path fault counter is cleared to zero.
[0153] After the signal is automatically reset, all three channels are valid at time 16, and the voting value is the median value of the sorted three channels, 12.8228.
[0154] In one embodiment, please refer to Table 2, which illustrates a redundant signal monitoring history as another exemplary embodiment of this application.
[0155] Table 2
[0156] .
[0157] For example, based on Table 2, the preset waiting value is set to 1, the preset maximum count is 6, the preset minimum count is 1, the preset safety value is 13, and the difference tolerance is 5. From the results in Table 2, it can be seen that the 4~20mA signal of the 1*2 signal has two signal channels. When the signal difference is greater than or equal to the difference tolerance, both signals are considered over-limit signals, the fault flag for both signals is 1, and the fault count for both signal channels is incremented by 1. When the fault count reaches the preset maximum value of 6, the channel signal will be temporarily blocked, and the output fault safety value will be used as the voting value. When the automatic fault recovery count is reached, it will again determine whether the signal of that channel is over-limit. If it is over-limit, the automatic fault recovery fails, and the system will no longer use that signal path. At this time, the signal channel can only be manually restored. When there are two signals waiting to be voted, the voting result is the average of the two signals; when the number of signals waiting to be voted is less than or equal to 1, the voting result is the preset safety value.
[0158] For the first moment, both signal channels are valid channels, and the fault flag of each valid signal is 1 (over-limit signal). There is no pending voting signal from the previous moment before this moment. Therefore, the preset safety value can be used as the pending voting signal for the first moment, and the voting result (preset safety value) for the first moment can be obtained.
[0159] For time points 2 and 3, the fault flags of all valid signals are 0, and both valid signals are pending voting signals. The voting result is the average of the two pending voting signals.
[0160] At time 4, the fault flags of both valid signals are 1 (over-limit signal).
[0161] Starting from sampling number 4, both channels of signal continuously exceed the limit, and the channel fault counter counts. During this process, the voting outputs a fault safety value of 13.0000.
[0162] When the sampling sequence number is 9, the fault counter accumulates to the preset maximum count value of 6, and starts to automatically reset the count. The difference between the previous fault count and the preset waiting value is determined as the current fault count, and the fault safety value of 13.0000 is output.
[0163] When the difference between the fault count at the previous time step and the fault count at the previous time step equals the preset waiting value, and the fault count at the previous time step equals the preset minimum count value (sampling number 14), the shielding of the two-channel signals is removed in the next time step (sampling number 15). It is then determined whether the signal exceeds the limit. If it does not exceed the limit, the signal is reset for use. As shown in sampling number 15, the two-channel signals do not exceed the limit, the signal reset is successful, and the channel fault counter is cleared to zero. At this time, both channel signals are valid, and the midpoint value of the sorted two-channel signals, 9.2365, is output.
[0164] In one embodiment, please refer to Table 3, which illustrates a redundant signal monitoring history as another exemplary embodiment of this application.
[0165] Table 3
[0166] .
[0167] The preset maximum count is set to 6, the preset consecutive count is set to 3, and the preset safety value is set to 0.
[0168] As shown in Table 3, the 1*3 switch signal has three signal input paths. After the signal enters the monitoring algorithm, the signal sum is first calculated. If the signal sum is greater than or equal to 2, the on flag is set to 1; otherwise, the off flag is set to 1. To prevent accidental activation, the switch count value for each signal input is calculated. When the switch count value of the on flag reaches a preset number of consecutive counts, a voting value of 1 is output; when the switch count value of the off flag reaches a preset number of consecutive counts, a voting value of 0 is output.
[0169] When the sampling sequence number is 1, the signal sum is greater than or equal to 2, the open flag is set to 1, the third channel is faulty, and the faulty channel count is incremented by 1. However, the open flag has not reached the maximum switch count value of 3, so the output safety value is 0.
[0170] When the sampling sequence number is 3, the signal sum is greater than or equal to 2, the open flag is set to 1, the third channel is fault-free, and the faulty channel count is decremented by 1. When the switch count value of the open flag reaches the maximum switch count value of 3, the voting value is output as 1.
[0171] When the sampling sequence number is 6, the signal sum is less than 2, the off flag is set to 1, the first channel is faulty, and the faulty channel count is incremented by 1. However, the off flag has not reached the maximum switch count value of 3, so the previous vote value of 1 is output.
[0172] When the sampling sequence number is 8, the signal sum is less than 2, the off flag is set to 1, the first channel is faulty, and the faulty channel count is incremented by 1. When the on flag reaches the maximum switch count value of 3, the output voting value is 0.
[0173] Figure 2This is a block diagram illustrating a redundancy signal monitoring device as shown in an exemplary embodiment of this application. Figure 2 As shown, the exemplary redundancy signal monitoring device 200 includes:
[0174] The data acquisition module 210 is used to acquire the current signal, the previous moment's pending voting signal, and the historical fault count corresponding to each signal channel;
[0175] The first determining module 220 is used to determine the signal fault flag of each signal channel based on preset filtering conditions and the current signal.
[0176] The second determining module 230 is used to determine the current fault count of each signal channel based on the historical fault count and signal fault flag of each signal channel;
[0177] The third determination module 240 is used to determine whether there is a target channel that meets the preset reset rules in each signal channel based on the historical fault count, signal fault flag and current fault count of each signal channel.
[0178] The first execution module 250 is used to determine each signal channel as a valid channel if no target channel exists, and to perform a signal filtering step. The signal filtering step includes: determining the current signal to be voted from each valid signal and the previous time-to-be-voted signal according to the signal fault flag of each valid channel; the valid signal is the current signal corresponding to the valid channel.
[0179] The second execution module 260 is used to determine other signal channels besides the target channel as valid channels and execute the signal filtering step if a target channel exists.
[0180] The fourth determining module 270 is used to perform a first vote on the current voting signal and determine the current voting result.
[0181] It should be noted that the redundancy signal monitoring device and the redundancy signal monitoring method provided in the above embodiments belong to the same concept. The specific operation methods of each module and unit have been described in detail in the method embodiments and will not be repeated here. In practical applications, the redundancy signal monitoring device provided in the above embodiments can be assigned to different functional modules as needed, that is, the internal structure of the system can be divided into different functional modules to complete all or part of the functions described above. This is not a limitation here.
[0182] Embodiments of this application also provide an electronic device, including: one or more processors; and a storage device for storing one or more programs, which, when executed by one or more processors, cause the electronic device to implement the redundancy signal monitoring method provided in the above embodiments.
[0183] Another aspect of this application provides a computer-readable storage medium storing a computer program thereon, which, when executed by a computer's processor, causes the computer to perform the redundancy signal monitoring method provided in the various embodiments described above. This computer-readable storage medium may be included in the electronic device described in the above embodiments, or it may exist independently and not assembled into the electronic device.
[0184] Another aspect of this application provides a computer program product or computer program including computer instructions stored in a computer-readable storage medium. A processor of a computer device reads the computer instructions from the computer-readable storage medium and executes the computer instructions, causing the computer device to perform the redundancy signal monitoring method provided in the various embodiments described above.
[0185] In the embodiments of this application, the terms "first" and "second" are used for descriptive purposes only and should not be construed as indicating or implying relative importance. The terms "comprising" and "including" as used throughout the specification and claims are open-ended terms and should therefore be interpreted as "comprising but not limited to".
[0186] The above embodiments are merely illustrative of the principles and effects of this application and are not intended to limit this application. Any person skilled in the art can modify or alter the above embodiments without departing from the spirit and scope of this application. Therefore, all equivalent modifications or alterations made by those skilled in the art without departing from the spirit and technical concept disclosed in this application should still be covered by the claims of this application.
Claims
1. A method for monitoring redundancy signals, characterized in that, include: Obtain the current signal, the signal to be voted at the previous moment, and the historical fault count for each signal channel; the historical fault count includes the fault count at the previous moment and the fault count at the moment before that. Based on preset filtering conditions and the current signal, determine the signal fault flag for each signal channel; Based on the historical fault counts and signal fault flags of each signal channel, the current fault count of each signal channel is determined; Based on the historical fault count, signal fault flag, and current fault count of each signal channel, determine whether there is a target channel in each signal channel that meets the preset reset rules; If no target channel exists, each signal channel is determined as a valid channel, and a signal filtering step is performed. The signal filtering step includes: determining the current signal to be voted from among the valid signals and the previous time-to-be-voted signals based on the signal fault flags of each valid channel; the valid signal is the current signal corresponding to the valid channel. If a target channel exists, then other signal channels besides the target channel are identified as valid channels, and the signal filtering step is executed. The current voting signal is subjected to a first vote to determine the current voting result; The preset reset rules include: When the fault count at the previous moment equals the preset maximum value, or when the difference between the fault count at the moment before that and the fault count at the previous moment equals the preset waiting value and the fault count at the previous moment is greater than the preset minimum value, the difference between the fault count at the previous moment and the preset waiting value is determined as the current fault count. When the difference between the fault count at the previous time and the fault count at the previous time is equal to the preset waiting value, the fault count at the previous time is equal to the preset minimum count value, and the signal fault flag is the first preset value, the preset initial value is determined as the current fault count. When the difference between the fault count at the previous time and the fault count at the previous time is equal to the preset waiting value, the fault count at the previous time is equal to the preset minimum count value, and the signal fault flag is the second preset value, the preset fault value is determined as the current fault count. If the fault count was a preset fault value at the previous moment and no reset signal was received, the preset fault value will be set as the current fault count.
2. The redundancy signal monitoring method according to claim 1, characterized in that, Based on preset filtering conditions and the current signal, determine the signal fault indicators for each signal channel, including: When the current signal belongs to a preset range, the current signal is determined as a signal to be processed; A second vote is performed on all signals to be processed to determine the signals that are within limits and signals that are beyond limits. The signal fault flag of the signal channel corresponding to the signal that is within limits is a first preset value, and the signal fault flag of the signal channel corresponding to the signal that is beyond limits is a second preset value. When the current signal does not belong to the preset range, the current signal is determined to be an out-of-limit signal.
3. The redundancy signal monitoring method according to claim 1, characterized in that, Based on the historical fault counts and signal fault flags of each signal channel, the current fault count of each signal channel is determined, including: If the historical fault count and signal fault flag meet the preset reset rules, then the current fault count is determined based on the preset reset rules; If the historical fault count does not meet the preset reset rules, then when the signal fault flag is at the first preset value, the current fault count is reset to the preset initial value; when the signal fault flag is at the second preset value, the current fault count is obtained by accumulating the count based on the fault count at the previous moment.
4. The redundancy signal monitoring method according to claim 1, characterized in that, The first vote is conducted on the current pending vote signal to determine the current voting result, including: When the number of current pending votes is 3, the median value of all current pending votes is determined as the current voting result; When the number of current pending votes is equal to 2, the average of all current pending votes is determined as the current voting result; When the number of signals to be voted is less than or equal to 1, the preset safety value will be used as the voting result.
5. The redundancy signal monitoring method according to claim 2, characterized in that, Based on the signal fault flags of each valid channel, the current signal to be voted is determined from among the valid signals and the signals pending vote in the previous moment, including: When the number of limit signals is less than the preset first number of signals, each of the previous time-to-vote signals is determined as the current time-to-vote signal; When the number of limited signals is greater than or equal to the number of the first signals and less than the number of valid signals, the limited signal will be determined as the current voting signal, and the previous voting signal corresponding to the signal channel of the over-limit signal will be determined as the current voting signal. When the number of limited signals equals the number of valid signals, each of the valid signals is determined as a signal to be voted on.
6. The redundancy signal monitoring method according to claim 5, characterized in that, When the number of limit signals is less than the preset first number of signals, each of the previous time-pending signals is determined as the current pending signal, including: When the number of valid signals is equal to 3 and the number of limit signals is less than the number of first signals, each of the previous time-to-vote signals is determined as the current time-to-vote signal. When the number of valid signals is less than 3 and the number of limit signals is less than the number of first signals, the preset safety value will be used as the current signal to be voted on.
7. A redundancy signal monitoring device, characterized in that, include: The data acquisition module is used to acquire the current signal, the signal to be voted at the previous moment, and the historical fault count for each signal channel; the historical fault count includes the fault count at the previous moment and the fault count at the moment before that. The first determination module is used to determine the signal fault flag of each signal channel based on preset filtering conditions and the current signal. The second determining module is used to determine the current fault count of each signal channel based on the historical fault count and signal fault flag of each signal channel; The third determination module is used to determine whether there is a target channel that meets the preset reset rules in each signal channel based on the historical fault count, signal fault flag and current fault count of each signal channel. The first execution module is used to determine each signal channel as a valid channel if no target channel exists, and to perform a signal filtering step. The signal filtering step includes: determining the current signal to be voted from each valid signal and the previous time-to-be-voted signal according to the signal fault flag of each valid channel; the valid signal is the current signal corresponding to the valid channel. The second execution module is used to determine other signal channels besides the target channel as valid channels and execute the signal filtering step if a target channel exists. The fourth determining module is used to perform a first vote on the current voting signal and determine the current voting result; The preset reset rules include: When the fault count at the previous moment equals the preset maximum value, or when the difference between the fault count at the moment before that and the fault count at the previous moment equals the preset waiting value and the fault count at the previous moment is greater than the preset minimum value, the difference between the fault count at the previous moment and the preset waiting value is determined as the current fault count. When the difference between the fault count at the previous time and the fault count at the previous time is equal to the preset waiting value, the fault count at the previous time is equal to the preset minimum count value, and the signal fault flag is the first preset value, the preset initial value is determined as the current fault count. When the difference between the fault count at the previous time and the fault count at the previous time is equal to the preset waiting value, the fault count at the previous time is equal to the preset minimum count value, and the signal fault flag is the second preset value, the preset fault value is determined as the current fault count. If the fault count was a preset fault value at the previous moment and no reset signal was received, the preset fault value will be set as the current fault count.
8. An electronic device, characterized in that, The electronic device includes: One or more processors; Memory used to store the executable program code of the processor; The processor is configured to execute the program code to implement the redundancy signal monitoring method as described in any one of claims 1 to 6.
9. A computer-readable storage medium, characterized in that, When the instructions in the computer-readable storage medium are executed by the processor of the electronic device, the electronic device is able to perform the redundancy signal monitoring method as described in any one of claims 1 to 6.
Citation Information
Patent Citations
Mutual monitoring method for redundant computer channels
CN109557808A
Method for monitoring comprehensive effectiveness of multi-redundancy system signals
CN117909168A