Redundancy signal monitoring method and device, equipment and storage medium
By obtaining the current signal and historical fault count of the signal channel, filtering the effective signal channels and voting, the problem of low accuracy and safety of redundant signal monitoring in complex control systems is solved, and the system autonomy and reliability are improved.
Patent Information
- Application Number
- CN202411580957.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-11-07
- Publication Date
- 2025-01-07
- Estimated Expiration
- 2044-11-07
AI Technical Summary
The existing redundant signal monitoring methods have low control accuracy, safety and automation in complex control systems, making it difficult to maintain the stability and reliability of the system in long-term unmanned monitoring and extreme environments.
By obtaining the current signal, historical fault count and preset reset rules of each signal channel, the signal fault flag and current fault count are determined, the effective signal channel is filtered, and the current voting is conducted to determine the current voting results, improving the autonomy and reliability of the system.
High-reliability redundant signal monitoring is achieved, the system autonomy and reliability is improved, ensuring stable operation in case of failures, and manual intervention is reduced.
Smart Images

Figure CN119270746A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of signal control technology, and in particular to a redundant signal monitoring method, device, equipment and storage medium. Background Art
[0002] With the rapid development of energy demand and technology, the application of complex control systems in many fields has gradually increased, such as aerospace, nuclear energy, unmanned production lines, etc. Especially in systems that operate for a long time without human monitoring and in complex environments, the control system is required to have a high degree of autonomy and self-protection mechanism to ensure its stability and reliability. With the advancement of automation technology and information technology, complex control systems need to maintain efficient and reliable performance in autonomous operation for a long time. In addition, long-term operation may cause the system to be in extreme environments, such as radiation, high temperature, low temperature, mechanical stress or electromagnetic interference. The impact of these complex environments increases the risk of system operation, so the system needs to have stronger anti-interference and adaptability.
[0003] Redundancy signal voting algorithm plays a vital role in complex control systems. It can effectively utilize the internal resources of the system, take advantage of the redundant design of the system, and improve the fault tolerance and stability of the system through comprehensive analysis of multiple redundant signal sources, thereby improving the stability and performance of the system without adding extra weight and cost. When the system encounters a fault or abnormal signal, the voting algorithm can compare and analyze different signal sources, select the optimal signal for feedback and control, and ensure that the system can continue to operate stably when it fails. This method not only reduces the necessity of manual intervention, but also improves the automation and safety of the system.
[0004] At present, complex control systems mainly adopt threshold design or multi-redundant threshold design, that is, when the control signal obtained by the sensor exceeds the threshold, an action instruction is sent to the control system; or when the mode, median or average of multiple redundant control signals obtained by the sensor exceeds the threshold, an action instruction is sent to the control system. However, the control accuracy, safety and automation of this redundant signal monitoring method are relatively low. Summary of the invention
[0005] In view of the shortcomings of the related technologies mentioned above, the present application provides a redundant signal monitoring method, device, equipment and storage medium to solve the above technical problems.
[0006] The present application provides a redundant signal monitoring method, comprising: Obtain the current signal, the signal to be voted on at the previous moment, and the historical fault count corresponding to each signal channel; Based on the preset screening conditions and the current signal, determine the signal fault flag of each signal channel; Determine the current fault count of each signal channel based on the historical fault count and signal fault flag of each signal channel; Based on the historical fault counts, signal fault flags, and current fault counts of each signal channel, determining whether there is a target channel in each signal channel that meets a preset reset rule; If the target channel does not exist, each signal channel is determined as a valid channel, and a signal screening step is performed, the signal screening step comprising: determining the current signal to be voted on from each valid signal and the signal to be voted on at the previous moment according to the signal fault flag of each valid channel; the valid signal is the current signal corresponding to the valid channel; If there is a target channel, other signal channels except the target channel are determined as valid channels, and the signal screening step is performed; A first vote is performed on the current signal to be voted on to determine a current voting result.
[0007] In one embodiment of the present application, based on the preset screening conditions and the current signal, the signal fault flag of each signal channel is determined, including: When the current signal belongs to a preset interval, determining the current signal as a signal to be processed; Performing a second vote on all signals to be processed to determine in-limit signals and out-of-limit signals among the signals to be processed, wherein the signal fault flag of the signal channel corresponding to the in-limit signal is a first preset value, and the signal fault flag of the signal channel corresponding to the out-of-limit signal is a second preset value; When the current signal does not belong to the preset interval, the current signal is determined as an over-limit signal.
[0008] In one embodiment of the present application, the historical fault count includes a fault count at a previous moment and a fault count at a moment before that, and the preset reset rule includes: When the fault count at the previous moment is equal to the preset maximum count value, or when the difference between the fault count at the previous moment 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 count 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 moment 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 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 moment 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 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 at a previous moment is a preset fault value and no reset signal is received, the preset fault value is determined as the current fault count.
[0009] In one embodiment of the present application, 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 the signal fault flag meet the preset reset rule, the current fault count is determined based on the preset reset rule; If the historical fault count does not meet the preset reset rule, 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.
[0010] In one embodiment of the present application, performing a first vote on the current signal to be voted on to determine a current voting result includes: When the number of the current pending vote signals is equal to 3, the middle value of all the current pending vote signals is determined as the current voting result; When the number of current pending vote signals is equal to 2, the average of all current pending vote signals is determined as the current voting result; When the number of the current signals to be voted is less than or equal to 1, the preset safety value is used as the voting result.
[0011] In one embodiment of the present application, according to the signal fault flag of each valid channel, the current signal to be voted is determined from each valid signal and the signal to be voted at the previous moment, including: When the number of limit signals is less than the preset first signal number, each previous moment pending vote signal is determined as the current pending vote signal; When the number of limit signals is greater than or equal to the first signal number and less than the number of valid signals, the limit signal is determined as the current signal to be voted, and the signal to be voted at the previous moment corresponding to the signal channel of the over-limit signal is determined as the current signal to be voted; When the number of limit signals is equal to the number of valid signals, each of the valid signals is determined as a signal to be voted.
[0012] In one embodiment of the present application, when the number of limit signals is less than the preset first signal number, each previous moment pending vote signal is determined as the current pending vote 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 signal to be voted at the previous moment is determined as the current signal to be voted; When the number of valid signals is less than 3 and the number of limit signals is less than the first signal number, the preset safety value is used as the current signal to be voted.
[0013] To achieve the above objectives and other related objectives, the present application provides a redundant signal monitoring device, comprising: A data acquisition module is used to obtain the current signal corresponding to each signal channel, the signal to be voted at the previous moment, and the historical fault count; A first determination module, used to determine a signal fault flag of each signal channel based on a preset screening condition and a current signal; A second determination module is used to determine the current fault count of each signal channel based on the historical fault count and the signal fault flag of each signal channel; A third determination module is used to determine whether there is a target channel that meets a preset reset rule 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 for determining each signal channel as a valid channel if the target channel does not exist, and executing a signal screening step, wherein the signal screening step includes: determining a current signal to be voted on from each valid signal and a signal to be voted on at a previous moment according to a signal fault flag of each valid channel; the valid signal is a current signal corresponding to the valid channel; A second execution module, configured to determine other signal channels except the target channel as valid channels if there is a target channel, and execute the signal screening step; The fourth determination module is used to perform a first vote on the current signal to be voted on to determine a current voting result.
[0014] To achieve the above objectives and other related objectives, the present application also provides an electronic device, the electronic device comprising: one or more processors; a memory for storing program code executable by the processor; The processor is configured to execute the program code to implement the above-mentioned redundancy signal monitoring method.
[0015] To achieve the above objectives and other related objectives, the present application also provides a computer-readable storage medium. When the instructions in the computer-readable storage medium are executed by a processor of an electronic device, the electronic device can execute the above-mentioned redundancy signal monitoring method.
[0016] As described above, the present application provides a redundant signal monitoring method, device, equipment and storage medium, which have the following beneficial effects: A redundant signal monitoring method in the present application sets a historical fault count and a preset reset rule. After acquiring the current signal, the method judges each signal channel to determine whether there is a target channel that meets the preset reset rule, determines other signal channels except the target channel as valid channels, and determines the current voting result based on the valid signal of the valid channel and the signal to be voted at the previous moment. The present application provides a high-reliability redundant signal monitoring method that integrates the functions of fault counting, fault elimination, and fault recovery, outputs a valid current voting result, and greatly improves the autonomy and reliability of the system.
[0017] It should be understood that the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the present application. BRIEF DESCRIPTION OF THE DRAWINGS
[0018] The drawings herein are incorporated into the specification and constitute a part of the specification, showing embodiments consistent with the present application, and together with the specification, are used to explain the principles of the present application. Obviously, the drawings described below are only some embodiments of the present application, and for those of ordinary skill in the art, other drawings can be obtained based on these drawings without creative work. In the drawings: Figure 1 is a flow chart of a redundant signal monitoring method shown in an exemplary embodiment of the present application; Figure 2 It is a structural block diagram of a redundant signal monitoring device shown in an exemplary embodiment of the present application. DETAILED DESCRIPTION
[0019] The following will describe the implementation methods of the present application with reference to the accompanying drawings and preferred embodiments. Those skilled in the art can easily understand other advantages and effects of the present application from the contents disclosed in this specification. The present application can also be implemented or applied through other different specific implementation methods, and the details in this specification can also be modified or changed in various ways based on different viewpoints and applications without departing from the spirit of the present application. It should be understood that the preferred embodiments are only for illustrating the present application, not for limiting the scope of protection of the present application.
[0020] It should be noted that the illustrations provided in the following embodiments are only schematic illustrations of the basic concept of the present application, and thus the drawings only show components related to the present application rather than being drawn according to the number, shape and size of components in actual implementation. In actual implementation, the type, quantity and proportion of each component may be changed at will, and the component layout may also be more complicated.
[0021] In the following description, a large number of details are discussed to provide a more thorough explanation of the embodiments of the present application. However, it is obvious to those skilled in the art that the embodiments of the present application can be implemented without these specific details. In other embodiments, well-known structures and devices are shown in the form of block diagrams rather than in detail to avoid making the embodiments of the present application difficult to understand.
[0022] See also Figure 1 , Figure 1 FIG. 1 is a flowchart of a redundant signal monitoring method shown in an exemplary embodiment of the present application. Figure 1 It can be seen that the redundancy signal monitoring method may include: Step S110, obtaining the current signal, the signal to be voted at the previous moment, and the historical fault count corresponding to each signal channel.
[0023] Each signal channel has a corresponding historical fault count, and the historical fault count can represent whether the signal channel has a fault at each moment in history.
[0024] In one embodiment of the present application, the number of signal channels may be 2 or 3, that is, in the embodiment of the present application, the current signal may be one of the 2 input redundancy signals, and the current signal may also be one of the 3 input redundancy signals. In complex control systems, redundant signals (Redundant Signal) may be used for control, and each signal (current signal) may be obtained by a measuring point sensor in the complex control system. Each measuring point sensor may be used to measure the same physical quantity, and each measuring point sensor is independent of each other. After each measuring point sensor obtains the current signal, it may be transmitted to the control processing device through the corresponding signal channel (the measuring point sensor corresponds to the signal channel one by one), and the control processing device executes the redundant signal monitoring method provided in the embodiment of the present application.
[0025] It should be noted that in a complex control system, redundant signals are additional signals set up to improve reliability and fault tolerance. Redundant signals can be transmitted in parallel to ensure that the complex control system can still work normally even if a signal path fails.
[0026] In another possible implementation, the current signal may also be one of the redundant switch signals, for example, one of the three redundant switch signals.
[0027] Step S120: Determine the signal fault flag of each signal channel based on the preset screening conditions and the current signal. In one embodiment of the present application, the signal fault flag of each signal channel may be determined based on a preset screening condition and a current signal.
[0028] In one embodiment of the present application, step S120 is a process of determining a signal fault flag of each signal channel based on a preset screening condition and a current signal, and may include steps S121 to S123.
[0029] Step S121: when the current signal belongs to a preset interval, the current signal is determined as a signal to be processed.
[0030] Among them, the current signal is the current signal corresponding to the current channel.
[0031] In one embodiment of the present application, when the current signal belongs to a preset interval, the current signal can be determined as a signal to be processed. In a complex control system, the preset interval can be 4~20mA (milliampere), where 4mA represents the minimum value (usually the zero point or the lower limit) and 20mA represents the maximum value (usually the full scale or the upper limit). The 4~20mA current signal range is a standard widely used in the field of industrial automation, mainly used for the transmission of analog signals. The current signal has better anti-interference characteristics than the voltage signal, and the lower limit of 4mA provides a non-zero baseline, which means that even if the sensor or line fails (such as an open circuit), the system can identify the fault state by detecting a current lower than 4mA. The preset interval can also be 6~80mA, and the preset interval can be set according to the actual application requirements in the complex control system.
[0032] In one embodiment, the number of signals to be processed is an integer, and the number of signals to be processed may be greater than or equal to zero.
[0033] Step S122: performing a second vote on all the signals to be processed to determine the in-limit signals and out-of-limit signals among the signals to be processed.
[0034] The signal fault flag of the signal channel corresponding to the limit signal is a first preset value, and the signal fault flag of the signal channel corresponding to the out-of-limit signal is a second preset value.
[0035] In one embodiment of the present application, a signal fault flag of a signal channel corresponding to a limit signal and a signal fault flag of a signal channel corresponding to an over-limit signal can be pre-set, and after a second vote is performed on the signal to be processed, each signal to be processed can be determined to be 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.
[0036] Exemplarily, the first preset value may be 0, and the second preset value may be 1.
[0037] In one embodiment, the process of performing a second vote on the signal to be processed to determine the in-limit signal and the out-of-limit signal in the signal to be processed may include: When the number of signals to be processed is greater than a third preset value, the signal difference between two adjacent signals to be processed is calculated after the signals to be processed are sorted, and based on the signal difference and the difference tolerance, the in-limit signal and the out-of-limit signal 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 out-of-limit signal. The difference tolerance may be a preset value set based on expert experience.
[0038] Exemplarily, the signal to be processed may be x, y, z, and x>y>z, and two signal differences may be obtained, namely xy and yz. If xy is less than the difference tolerance, and yz is less than the difference tolerance, then it can be determined that x, y, and z are all in-limit signals; if xy is less than the difference tolerance, and yz is greater than or equal to the difference tolerance, then it can be determined that x and y are in-limit signals 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 it can be determined that x, y, and z are all out-of-limit signals.
[0039] Exemplarily, the signals to be processed may be x and y, and x>y, and a signal difference xy may be obtained. If xy is less than the difference tolerance, it can be determined that x and y are both in-limit signals; if xy is less than the difference tolerance, it can be determined that x and y are out-of-limit signals.
[0040] Exemplarily, the third preset value may be 1. The difference tolerance may be 5, and the difference tolerance may also be other preset values, which are not limited in the embodiment of the present application.
[0041] Step S123: When the current signal does not belong to the preset interval, the current signal is determined as an out-of-limit signal.
[0042] In one embodiment of the present application, when the current signal does not belong to the preset interval, the measuring point sensor 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 determined as an over-limit signal to indicate that the signal is unusable.
[0043] In another possible implementation, when the current signal is one of the redundant switch signals, the preset screening conditions may include: when the sum of the current signals is greater than a preset first sum value, the open flag is set to 1, the close flag is set to 0, the signal fault flag of the signal channel whose current signal is 1 is set to 0, and the signal fault flag of the signal channel whose current signal is 0 is set to 1, wherein the signal fault flag is set to 1 to indicate a signal channel fault, and the signal channel is set to 0 to indicate a normal signal channel. When the sum of the current signals is less than the preset first sum value, the open flag is set to 0, the close flag is set to 1, the signal fault flag of the signal channel whose current signal is 1 is set to 1, and the signal fault flag of the signal channel whose current signal is 0 is set to 0.
[0044] Exemplarily, the number of current signals may be 3, and the preset first sum value may be 2.
[0045] Step S130, determining the current fault count of each signal channel based on the historical fault count and the signal fault flag of each signal channel.
[0046] In one embodiment of the present application, the current fault count of each signal channel can be determined based on the historical fault count and signal fault flag 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 can also facilitate the screening and voting of the next moment signal after obtaining the next moment signal, so as to realize the automatic monitoring of redundant signals in complex control systems.
[0047] Step S140 , based on the historical fault counts, signal fault flags, and current fault counts of each signal channel, it is determined whether there is a target channel in each signal channel that meets a preset reset rule.
[0048] In one embodiment of the present application, it is possible to determine whether there is a target channel that meets the preset reset rule based on the historical fault count, signal fault flag, and current fault count of each signal channel. In this embodiment of the present application, if the signal channel needs to be reset at the current moment, or the signal channel is a faulty channel at the current moment (that is, the current signal of the signal channel needs to be shielded), then the signal channel is the target channel that meets the preset reset rule.
[0049] Step S150, if the target channel does not exist, each signal channel is determined as a valid channel, and a signal screening step is performed, the signal screening step including: according to the signal fault flag of each valid channel, determining the current signal to be voted from each valid signal and the signal to be voted at the previous moment.
[0050] The valid signal is the current signal corresponding to the valid channel.
[0051] In one embodiment of the present application, if the target channel does not exist, 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 the measuring point sensor corresponding to the signal channel may have failed at the previous moment, but may have recovered to normal at the current moment, and a valid signal can be obtained.
[0052] In one embodiment of the present application, the 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.
[0053] It should be noted that after determining the current signal to be voted on, the current voting result can be determined based on the current signal to be voted on. After obtaining the next moment signal, for the next moment signal, the current signal is the previous moment signal, and the next moment signal can be re-determined as the current signal.
[0054] In a possible implementation, when the current signal is one of the redundancy switch signals, the signal screening step may include: determining each valid signal as the current signal to be voted.
[0055] Step S160: If the target channel exists, the signal channels other than the target channel are determined as valid channels, and a signal screening step is performed.
[0056] In one embodiment of the present application, if there is a target channel, there is a measuring point sensor among the measuring point sensors corresponding to each signal channel that needs to be reset at the current moment. At this time, other signal channels except the target channel can be determined as valid channels, and a signal screening step is performed to determine the current signal to be voted on.
[0057] In a possible implementation, when the current signal is one of the redundancy switch signals, if there is a target channel and the number of signal channels other than the target channel is an even number, the signal to be voted at the previous moment is determined as the current signal to be voted. If there is a target channel and the number of signal channels other than the target channel is an odd number, the valid signal is determined as the current signal to be voted.
[0058] Step S170, performing a first vote on the current signal to be voted on, and determining the current voting result.
[0059] In one embodiment of the present application, after determining the current signal to be voted on, a first vote can be performed on the current signal to be voted on to determine the current voting result, and the complex control system can monitor system operation and execute related instructions based on the current voting result.
[0060] It should be noted that voting on signals is a method to ensure system reliability and security, especially in mission-critical systems, which can obtain more stable and reliable voting results.
[0061] In a possible implementation, when the current signal is one of the redundant switch signals, the continuous number of times the on flag is 1 can be determined, the continuous number of times the off flag is 1 can be determined, and the first voting result can be determined based on the current signal to be voted. The voting result is an on signal or an off signal, the on signal can be represented by 1, and the off signal can be represented by 0. If the continuous number of times the on flag is 1 is equal to the preset continuous number of times for multiple continuous moments including the current moment, the first voting result is an on signal, and the current voting result is an on signal; if the continuous number of times the on flag is 1 is less than the preset continuous number of times for multiple continuous moments including the current moment, the first voting result is an on signal, and the current voting result is the voting result of the previous moment; if the continuous number of times the off flag is 1 is equal to the preset continuous number of times for multiple continuous moments including the current moment, the first voting result is an off signal, and the current voting result is an off signal; if the continuous number of times the off flag is 1 is less than the preset continuous number of times for multiple continuous moments including the current moment, the first voting result is an on signal, and the current voting result is the voting result of the previous moment.
[0062] In a possible implementation, the historical fault count includes the fault count at the previous moment and the fault count at the moment before that, and the preset reset rule may include: When the fault count at the previous moment is equal to the preset maximum count value, or when the difference between the fault count at the previous moment 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 count 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 moment 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 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 moment 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 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 at a previous moment is a preset fault value and no reset signal is received, the preset fault value is determined as the current fault count.
[0063] In one embodiment of the present application, the reset signal is a signal received by the control processing device after manual reset. After the fault count is equal to the preset maximum count at any time, the signal channel corresponding to the fault count can be reset. The reset operation is performed by the control processing device, for example, a reset instruction can be sent to the measuring point sensor corresponding to the signal channel. At multiple moments thereafter, the fault count corresponding to the signal channel is calculated based on the preset reset rule. If the difference between the fault count at the previous moment and the fault count at the previous moment corresponding to the signal channel is equal to the preset waiting value, the fault count at the previous moment is equal to the preset minimum count, and the signal fault flag is the 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, and the 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 receiving time of the reset signal is between the current moment and the target moment closest to the current moment. The target moment is the moment when the fault count of the signal channel is the difference between the fault count of the previous moment and the fault count of the previous moment equals the preset waiting value, the fault count of the previous moment is equal to the preset minimum count value, and the signal fault flag is the second preset value.
[0064] It should be noted that the previous moment is the first moment before the current moment, the previous moment is the second moment before the current moment, that is, the previous moment is the moment before the previous moment. In the embodiment of the present application, when the difference between the fault count at the previous moment and the fault count at the previous moment is equal to the preset waiting value, if the fault count at the previous moment is less than the preset minimum count value, it indicates that the signal channel has returned to normal at the previous moment, and the preset reset rule is not applicable to the judgment of the signal channel at this time.
[0065] If the fault count at the previous moment minus the fault count at the previous moment is equal to the preset waiting value and the pre-fault count at the previous moment is greater than the preset minimum value, it can be determined that the measuring point sensor corresponding to the target channel is performing a reset operation. At this time, the signal channel is the target channel, and the current signal corresponding to the target channel does not participate in the first vote. When the fault count at the previous moment is equal to the preset maximum count value, it can be determined that the target channel has failed at multiple consecutive moments including the previous moment, so it is necessary to reset the measuring point sensor corresponding to the target channel. Exemplarily, the preset maximum count value may be 6, the preset minimum count value may be 1, the preset waiting value may be 1, the preset initial value may be 0, the preset fault value may be -1, and each preset value may also be other set values based on expert experience.
[0066] Exemplarily, the preset maximum count value may be 6, the preset minimum count value may be 1, the preset waiting value may be 1, the preset initial value may be 0, and the preset fault value may be -1. If the fault count at the previous moment is 6, the current fault count may be 5. If the fault count at the previous moment is 6, the fault count at the previous moment is 5, the current fault count may be 4. If the fault count at the previous moment is 2, the fault count at the previous moment is 1, and the signal fault flag is the first preset value, the current fault count is the preset initial value 0. If the fault count at the previous moment is 2, the fault count at the previous moment is 1, and the signal fault flag is the second preset value, the current fault count is the preset initial value -1.
[0067] In a possible implementation, the process of determining the current fault count of each signal channel based on the historical fault count and the signal fault flag of each signal channel in step S130 may include step S131 and step S132.
[0068] Step S131: if the historical fault count and the signal fault flag meet the preset reset rule, the current fault count is determined based on the preset reset rule.
[0069] In one embodiment of the present application, if the historical fault count and the signal fault flag meet the preset reset rule, the current fault count is determined based on the preset reset rule.
[0070] Exemplarily, if the fault count at the previous moment is equal to the preset maximum count value, or the difference between the fault count at the previous moment 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 count value, or the difference between the fault count at the previous moment 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 count value, and the signal fault flag is the first preset value, or the difference between the fault count at the previous moment 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 count 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 is received, then the current fault count can be determined according to the preset reset rule. The specific calculation method has been described in detail above and will not be repeated here.
[0071] 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, reset the current fault count to the preset initial value; when the signal fault flag is the second preset value, accumulate the count based on the fault count at the previous moment to obtain the current fault count.
[0072] In one embodiment of the present 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.
[0073] If the historical fault count does not satisfy that the fault count at the previous moment is equal to the preset maximum count value, or the difference between the fault count at the previous moment 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, the current fault count can be determined based on the signal fault flag.
[0074] It should be noted that if the historical fault count does not meet the preset reset rule, the historical fault count may satisfy that the fault count at the previous moment is less than the preset maximum count, and the difference between the fault count at the previous moment and the fault count at the previous moment is not the preset waiting value; or, the historical fault count may satisfy that the fault count at the previous moment is the preset fault value and a reset signal is received.
[0075] After executing steps S121 to S123, the signal fault flag of each signal channel can be obtained. After determining the valid channel in each signal channel, the current count of the valid channel can be determined according to the signal fault flag of each valid channel and the historical fault count. When the signal fault flag of the valid channel is the first preset value (that is, when the signal fault flag of the valid channel indicates that the valid signal is normal), the current fault count can be reset to the preset initial value.
[0076] Exemplarily, the preset initial value may be 0.
[0077] Exemplarily, when the fault count at the previous moment is 3 and the current fault flag is the first preset value (the current signal corresponding to the signal channel is a limit signal), the current fault count can be 0, that is, the current fault count can be reset to the preset initial value.
[0078] In one embodiment of the present application, when the signal fault flag is the second preset value, the current fault flag represents that the valid signal is abnormal, and the count can be accumulated (may be added by 1) based on the fault count at the previous moment to obtain the current fault count.
[0079] Exemplarily, when the fault count at the previous moment is 3 and the current fault flag is the second preset value (the current signal corresponding to the signal channel is an over-limit signal), the current fault count may be 4.
[0080] In one embodiment, the process of determining the current signal to be voted on from the valid signals and the signals to be voted on at the previous moment according to the fault flags of the valid signals in step S150 may include steps S151 to S153.
[0081] Step S151: when the number of limit signals is less than the preset first signal number, each signal to be voted at the previous moment is determined as the current signal to be voted.
[0082] In one embodiment of the present application, when the number of in-limit signals is less than the preset first signal number, it indicates that there are multiple out-of-limit signals in the current signal obtained at the current moment, and the in-limit signal in the current signal is also unreliable. The signal to be voted at the previous moment corresponding to each signal channel can be determined as the current signal to be voted, and the voting result at the previous moment can be determined based on the signal to be voted at the previous moment. After executing step S134, the current voting result determined based on the current signal to be voted is equal to the voting result at the previous moment.
[0083] Exemplarily, the first signal quantity may be 2.
[0084] 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, the signal to be voted on at each previous moment is determined as the current signal to be voted on; when the number of valid signals is less than 3 and the number of limit signals is less than the first number of signals, the preset safety value is used as the current signal to be voted on.
[0085] Step S152, when the number of in-limit signals is greater than or equal to the first signal number and less than the number of valid signals, the in-limit signal is determined as the current signal to be voted on, and the signal to be voted on at the previous moment corresponding to the signal channel of the out-of-limit signal is determined as the current signal to be voted on.
[0086] In one embodiment of the present application, when the number of in-limit signals is greater than or equal to the first signal number and less than the number of valid signals, the in-limit signal at the current moment can be determined as the current signal to be voted on, and the signal channel of the over-limit signal at the previous moment corresponding to the signal to be voted on at the current moment can be determined as the current signal to be voted on, that is, each signal channel of a valid signal corresponds to a current signal to be voted on.
[0087] Step S153: when the number of limit signals is equal to the number of valid signals, each valid signal is determined as a signal to be voted.
[0088] In one embodiment of the present application, when the number of limit signals is equal to the number of valid signals, it indicates that the current signals corresponding to each valid channel are all limit signals, and each valid signal can be determined as a signal to be voted.
[0089] In one embodiment, the process of performing a first vote on the current signal to be voted on in step S170 to determine the current voting result may include steps S171 to S173.
[0090] Step S171: when the number of the current signals to be voted is equal to 3, the middle value of all the current signals to be voted is determined as the current voting result.
[0091] In one embodiment of the present application, when the number of the current signals to be voted on is equal to 3, the middle value of all the current signals to be voted on is determined as the current voting result.
[0092] It should be noted that when the number of the signals to be voted on is a cardinality, the signals to be voted on may be sorted and the median may be determined as the current voting result.
[0093] Step S172: when the number of the current signals to be voted is equal to 2, the average of all the current signals to be voted is determined as the current voting result.
[0094] In one embodiment of the present application, when the number of current signals to be voted on is equal to 2, the average value of all current signals to be voted on is determined as the current voting result.
[0095] Step S173: when the number of the signals to be voted is less than or equal to 1, the preset safety value is used as the voting result.
[0096] In one embodiment of the present application, the preset safety value should belong to a preset range. The preset safety value is set to ensure that the complex control system can still maintain a basic safe operating state when the current signal to be voted is insufficient or the current signal to be voted fails.
[0097] Exemplarily, the preset safety value may be 13.
[0098] In one embodiment, please refer to Table 1, which is a redundant signal monitoring history record shown in an exemplary embodiment of the present application.
[0099] Table 1 .
[0100] For example, based on Table 1, it can be seen that the preset waiting value is set to 1, the preset maximum value is 6, the preset minimum value is 1, the preset safety value is 13, and the difference tolerance is 5. As can be seen from Table 1, there are three signal channels for the 1*3 4~20mA signal. When there is a signal greater than or equal to the difference tolerance, the fault count of the corresponding channel is increased by 1, and the last valid signal of the channel will be used in the current vote. When the fault count reaches the preset maximum value of 6, the signal of the channel (the channel is also the target channel) will be temporarily shielded. When the fault automatic recovery count is reached, it will be judged again whether the channel signal exceeds the limit. If it exceeds the limit, the fault automatic recovery fails, and the system no longer uses the channel signal, and the signal channel can only be manually restored. In the entire monitoring voting process, when the three signals are all waiting for voting signals, the voting result is the middle value of the three signals; when there are two signals as waiting for voting signals, the voting result is the mean of the two signals; when the number of waiting for voting signals is less than or equal to 1, the voting result is the preset safety value.
[0101] At the first moment, the signal of the second signal channel is an over-limit signal, but there is no data before the first moment, so the preset safety value can be used as the pending voting signal of the second signal channel; At the third moment, the signals of the three signal channels are all in-limit signals (signals to be voted), and the voting result is the middle value of 14.1696 after the three-channel signals are sorted; At the fourth moment, the signals of the three signal channels are all over-limit signals. At this time, the signal to be voted at the third moment can be determined as the signal to be voted at the fourth moment, and the voting result is 14.1696; From the 4th moment to the 9th moment, the signals of the second channel are all over-limit signals, and the fault count continues to accumulate. In this process, the signal of the second channel takes the limit signal of the previous moment, 14.1696, and the voting result at the 4th moment is 16.7832; At the 9th moment, 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 reduced by the preset waiting value 1 each time. During this process, the second signal channel (target channel) is shielded, and the first signal channel and the second signal channel are valid channels; At the 14th moment, the fault count corresponding to the second signal channel reaches the preset minimum value, and the signal automatic recovery function is triggered at the 15th moment. At this time, the voting result is the fail-safe value, and the signal shielding of the second signal channel is released. It is determined whether the signal of the second signal channel exceeds the limit at the 15th moment. If it does not exceed the limit, the signal is reset at the 16th moment. The signal 19.8130 of the second signal channel does not exceed the limit, the signal is reset successfully, and the channel fault counter is cleared; When the signal is automatically reset, at the 16th moment, all three-channel signals are valid, and the voting value is the middle value of 12.8228 after the three-channel signals are sorted.
[0102] In one embodiment, please refer to Table 2, which is a redundant signal monitoring history record shown in another exemplary embodiment of the present application.
[0103] Table 2 .
[0104] Exemplarily, based on Table 2, it can be seen that the preset waiting value is set to 1, the preset maximum count value is 6, the preset minimum count value is 1, the preset safety value is 13, and the difference tolerance is 5. From the results in Table 2, it can be obtained that there are two signal channels for the 1*2 4~20mA signal. When the signal difference is greater than or equal to the difference tolerance, both signals are over-limit signals, the fault flags of the two signals are 1, and the fault counts of the two signal channels are increased by 1. When the fault count reaches the preset maximum value of 6, the channel signal will be temporarily shielded, and the fault safety value will be output as the voting value. When the fault automatic recovery count is reached, it will be judged again whether the signal of the signal channel is over-limit. If it is over-limit, the fault automatic recovery fails, and the system no longer uses the channel signal. At this time, the signal channel can only be manually restored. When there are two signals to be voted, the voting result is the average of the two signals; when the number of signals to be voted is less than or equal to 1, the voting result is the preset safety value.
[0105] At the first moment, both signal channels are valid channels, and the fault flag of each valid signal is 1 (over-limit signal). Before this moment, there is no pending signal for voting at the previous moment. Therefore, the preset safety value can be used as the pending signal for voting at the first moment, and the voting result at the first moment (preset safety value) can be obtained.
[0106] At the second and third moments, the fault flags of all valid signals are 0, the two valid signals are both pending signals, and the voting result is the average of the two pending signals; For the 4th moment, the fault flags of the two valid signals are both 1 (overlimit signal); Starting from sampling number 4, the signals of the two channels continue to exceed the limit, and the channel fault counter counts. In this process, the voting output fail-safe value 13.0000; When the sampling sequence number is 9, the fault counter accumulates to the preset maximum count value of 6, and begins to enter the automatic reset count. The difference between the fault count at the previous moment and the preset waiting value is determined as the current fault count, and the fail-safe value 13.0000 is output; When the difference between the fault count at the previous moment and the fault count at the previous moment is equal to the preset waiting value, and the fault count at the previous moment is equal to the preset minimum count value (sampling number is 14), the next beat (sampling number is 15) releases the shielding of the two-channel signal to determine whether it exceeds the limit. If it does not exceed the limit, reset the signal for use. As shown when the sampling number is 15, the two-channel signal does not exceed the limit, the signal reset is successful, and the channel fault counter is cleared. At this time, both channel signals are valid, and the middle value of the two channel signals after sorting is output, which is 9.2365.
[0107] In one embodiment, please refer to Table 3, which is a redundant signal monitoring history record shown in another exemplary embodiment of the present application.
[0108] Table 3 .
[0109] Set the preset maximum count value to 6, the preset number of consecutive times to 3, and the preset safety value to 0.
[0110] From the results in Table 3, it can be seen that the 1*3 switch signal has three signal input channels. After the signal enters the monitoring algorithm, the signal sum is calculated first. 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 false touches, the switch count value of each beat signal input is calculated. When the switch count value of the on flag reaches the preset number of consecutive times, the voting value 1 is output, and when the switch count value of the off flag reaches the preset number of consecutive times, the voting value 0 is output.
[0111] When the sampling sequence number is 1, the signal and value is greater than or equal to 2, and the open flag is set to 1. At this time, the third channel fails, and the fault channel count is increased by 1. However, the open flag has not reached the maximum switch count value of 3, and the output safety value is 0; When the sampling sequence number is 3, the signal and value is greater than or equal to 2, and the open flag is set to 1. At this time, the third channel has no fault, and the fault channel count is reduced by 1. The switch count value of the open flag reaches the maximum switch count value of 3, and the output voting value is 1; When the sampling sequence number is 6, the signal and value are less than 2, and the off flag is set to 1. At this time, the first channel is faulty, and the fault channel count is increased by 1. However, the off flag has not reached the maximum switch count value of 3, and the previous vote value 1 is output; When the sampling sequence number is 8, the signal and value are less than 2, and the off flag is set to 1. At this time, the first channel fails, and the fault channel count increases by 1. The on flag reaches the maximum switch count value of 3, and the output voting value is 0.
[0112] Figure 2 FIG. 1 is a block diagram of a redundant signal monitoring device shown in an exemplary embodiment of the present application. Figure 2 As shown, the exemplary redundant signal monitoring device 200 includes: The data acquisition module 210 is used to obtain the current signal, the signal to be voted at the previous moment, and the historical fault count corresponding to each signal channel; A first determination module 220, configured to determine a signal fault flag of each signal channel based on a preset screening condition and a current signal; A second determination module 230, configured to determine a current fault count of each signal channel based on a historical fault count and a signal fault flag of each signal channel; The third determination module 240 is used to determine whether there is a target channel that meets the preset reset rule 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 250 is used to determine each signal channel as a valid channel if the target channel does not exist, and perform a signal screening step, wherein the signal screening step includes: determining a current signal to be voted from each valid signal and a signal to be voted at a previous moment according to a signal fault flag of each valid channel; the valid signal is a current signal corresponding to the valid channel; A second execution module 260 is configured to determine other signal channels except the target channel as valid channels if there is a target channel, and execute the signal screening step; The fourth determination module 270 is used to perform a first vote on the current signal to be voted on to determine a current voting result.
[0113] It should be noted that the redundant signal monitoring device provided in the above embodiment and the redundant signal monitoring method provided in the above embodiment belong to the same concept, wherein the specific manner in which each module and unit performs the operation has been described in detail in the method embodiment, and will not be repeated here. In practical applications, the redundant signal monitoring device provided in the above embodiment can allocate the above functions to different functional modules as needed, that is, divide the internal structure of the system into different functional modules to complete all or part of the functions described above, and this is not limited here.
[0114] An embodiment of the present application also provides an electronic device, comprising: one or more processors; a storage device for storing one or more programs, when the one or more programs are executed by one or more processors, the electronic device implements the redundant signal monitoring method provided in the above-mentioned embodiments.
[0115] Another aspect of the present application also provides a computer-readable storage medium having a computer program stored thereon, which, when executed by a processor of a computer, causes the computer to execute the redundant signal monitoring method provided in each of the above embodiments. The computer-readable storage medium may be included in the electronic device described in the above embodiments, or may exist independently without being assembled into the electronic device.
[0116] Another aspect of the present application also provides a computer program product or a computer program, which includes a computer instruction stored in a computer-readable storage medium. A processor of a computer device reads the computer instruction from the computer-readable storage medium, and the processor executes the computer instruction, so that the computer device executes the redundant signal monitoring method provided in each of the above embodiments.
[0117] In the embodiments of the present application, the terms "first" and "second" are used for descriptive purposes only and should not be understood as indicating or implying relative importance. "Including" and "comprising" mentioned throughout the specification and claims are open-ended terms and should be interpreted as "including but not limited to".
[0118] The above embodiments are merely illustrative of the principles and effects of the present application, and are not intended to limit the present application. Anyone familiar with the technology may modify or change the above embodiments without violating the spirit and scope of the present application. Therefore, all equivalent modifications or changes made by a person of ordinary skill in the art without departing from the spirit and technical ideas disclosed in the present application shall still be covered by the claims of the present application.
Claims
1. A redundant signal monitoring method, characterized in that: include: Obtain the current signal, the signal to be voted on at the previous moment, and the historical fault count corresponding to each signal channel; Based on the preset screening conditions and the current signal, determine the signal fault flag of each signal channel; Determine the current fault count of each signal channel based on the historical fault count and signal fault flag of each signal channel; Based on the historical fault counts, signal fault flags, and current fault counts of each signal channel, determining whether there is a target channel in each signal channel that meets a preset reset rule; If the target channel does not exist, each signal channel is determined as a valid channel, and a signal screening step is performed, the signal screening step comprising: determining the current signal to be voted on from each valid signal and the signal to be voted on at the previous moment according to the signal fault flag of each valid channel; the valid signal is the current signal corresponding to the valid channel; If there is a target channel, other signal channels except the target channel are determined as valid channels, and the signal screening step is performed; A first vote is performed on the current signal to be voted on to determine a current voting result.
2. The redundant signal monitoring method according to claim 1, characterized in that: Based on the preset screening conditions and the current signal, determine the signal fault signs of each signal channel, including: When the current signal belongs to a preset interval, determining the current signal as a signal to be processed; Performing a second vote on all signals to be processed to determine in-limit signals and out-of-limit signals among the signals to be processed, wherein the signal fault flag of the signal channel corresponding to the in-limit signal is a first preset value, and the signal fault flag of the signal channel corresponding to the out-of-limit signal is a second preset value; When the current signal does not belong to the preset interval, the current signal is determined as an over-limit signal.
3. The redundant signal monitoring method according to claim 2, characterized in that: The historical fault count includes the fault count at the previous moment and the fault count at the moment before that, and the preset reset rule includes: When the fault count at the previous moment is equal to the preset maximum count value, or when the difference between the fault count at the previous moment 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 count 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 moment 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 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 moment 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 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 at a previous moment is a preset fault value and no reset signal is received, the preset fault value is determined as the current fault count.
4. The redundant signal monitoring method according to claim 3, 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 the signal fault flag meet the preset reset rule, the current fault count is determined based on the preset reset rule; If the historical fault count does not meet the preset reset rule, 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.
5. The redundant signal monitoring method according to claim 1, characterized in that: Performing a first vote on the current signal to be voted on to determine a current voting result, including: When the number of the current pending vote signals is equal to 3, the middle value of all the current pending vote signals is determined as the current voting result; When the number of current pending vote signals is equal to 2, the average of all current pending vote signals is determined as the current voting result; When the number of the current signals to be voted is less than or equal to 1, the preset safety value is used as the voting result.
6. The redundant signal monitoring method according to claim 2, characterized in that: According to the signal fault flag of each valid channel, the current signal to be voted is determined from each valid signal and the signal to be voted at the previous moment, including: When the number of limit signals is less than the preset first signal number, each previous moment pending vote signal is determined as the current pending vote signal; When the number of limit signals is greater than or equal to the first signal number and less than the number of valid signals, the limit signal is determined as the current signal to be voted, and the signal to be voted at the previous moment corresponding to the signal channel of the over-limit signal is determined as the current signal to be voted; When the number of limit signals is equal to the number of valid signals, each of the valid signals is determined as a signal to be voted.
7. The redundant signal monitoring method according to claim 6, characterized in that: When the number of limit signals is less than the preset first signal number, each previous moment pending voting signal is determined as the current pending voting 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 signal to be voted at the previous moment is determined as the current signal to be voted; When the number of valid signals is less than 3 and the number of limit signals is less than the first signal number, the preset safety value is used as the current signal to be voted.
8. A redundant signal monitoring device, characterized in that: include: A data acquisition module is used to obtain the current signal corresponding to each signal channel, the signal to be voted at the previous moment, and the historical fault count; A first determination module, used to determine a signal fault flag of each signal channel based on a preset screening condition and a current signal; A second determination module is used to determine the current fault count of each signal channel based on the historical fault count and the signal fault flag of each signal channel; A third determination module is used to determine whether there is a target channel that meets a preset reset rule 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 for determining each signal channel as a valid channel if the target channel does not exist, and executing a signal screening step, wherein the signal screening step includes: determining a current signal to be voted on from each valid signal and a signal to be voted on at a previous moment according to a signal fault flag of each valid channel; the valid signal is a current signal corresponding to the valid channel; A second execution module, configured to determine other signal channels except the target channel as valid channels if there is a target channel, and execute the signal screening step; The fourth determination module is used to perform a first vote on the current signal to be voted on to determine a current voting result.
9. An electronic device, characterized in that: The electronic device comprises: one or more processors; a memory for storing program code executable by the processor; The processor is configured to execute the program code to implement the redundancy signal monitoring method according to any one of claims 1 to 7.
10. A computer-readable storage medium, characterized in that: When the instructions in the computer-readable storage medium are executed by a processor of an electronic device, the electronic device is enabled to execute the redundant signal monitoring method as claimed in any one of claims 1 to 7.
Citation Information
Patent Citations
Triplex redundancy-based realization method for fly-by-light fight control system
CN102736630A
Mutual monitoring method for redundant computer channels
CN109557808A
Channel fault determination method for tri-redundancy servo actuating system and handling method thereof
CN110673467A
Method for monitoring comprehensive effectiveness of multi-redundancy system signals
CN117909168A
Redundancy system, redundancy management method, and readable storage medium
WO2023045093A1
Cited By
Auxiliary monitoring method and device for displacement signal of rod for training plane
CN121680478A