Method and system for improving reliability of control signal of control device
By employing a self-testing and mutual-testing mechanism based on a multi-control unit and parallel bus architecture, the problem of unstable control signals in traditional control devices during CPU failures is solved, achieving redundancy and fault tolerance of control signals and improving the reliability and continuity of the control device.
Patent Information
- Application Number
- CN202411006765.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-25
- Publication Date
- 2024-11-12
AI Technical Summary
Traditional control devices are at risk of losing or malfunctioning control functions when the CPU fails, leading to instability in the generator excitation system and equipment damage.
It adopts a multi-control unit, high-speed bus and mutual test bus architecture. Each control unit independently calculates and performs self-test and mutual test through the high-speed bus and mutual test bus. The processing unit comprehensively judges the validity of the control signal and ensures the redundancy and fault tolerance of the control signal through configuration table and selection voting algorithm.
It effectively prevents control loss due to the failure of a single control unit or bus damage, ensures the reliability and continuity of control signals, reduces hardware complexity, and supports the expansion of business scenarios.
Smart Images

Figure CN118938743A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of industrial automation control, and in particular to a method and system for improving the reliability of control signals of a control device. Background Art
[0002] The control device regulates and controls the controlled equipment by sending control signals, so the reliability of the control signal plays a vital role in the controlled equipment. Taking the generator excitation system as an example, an erroneous pulse control signal will cause the trigger angle of a power device to be wrong. In the worst case, it will cause the excitation voltage of the generator to fluctuate, thereby affecting the stability of the generator's power generation. In the worst case, it will cause the thyristor to burn out due to overcurrent, causing the generator to unlink and cause power outages. Traditional control devices generally use single CPU control or master-slave CPU control. When using single CPU control, there is a risk of loss of control function when the CPU fails to stop the control calculation, and there is a risk of control error when the CPU fails to send the control signal by mistake; when using master-slave CPU control, a single CPU failure will lock all controls, and it is easy to lose control functions. Summary of the invention
[0003] The purpose of the present invention is to solve at least one technical problem in the background technology and to provide a method and system for improving the reliability of a control signal of a control device.
[0004] To achieve the above object, the present invention provides a method for improving the reliability of control signals of a control device, wherein the control device comprises: a plurality of control units, a plurality of processing units, a high-speed bus and a mutual detection bus; each control unit is connected to the high-speed bus; all control units are connected to the mutual detection bus; each processing unit is connected to the high-speed bus; each control unit is independent of each other, performs redundant calculations, and sends out respective control communication messages through the high-speed bus; each processing unit sends out respective control signals; each control communication message contains control information for all control signals;
[0005] The method comprises:
[0006] Each control unit performs self-check calculations and sends out its own self-check result message on the high-speed bus;
[0007] Each control unit sends mutual inspection messages to each other through the mutual inspection bus, performs mutual inspection calculations, and sends mutual inspection result messages to other control units on the high-speed bus;
[0008] Each processing unit receives all control communication messages, all self-test result messages and all mutual test result messages. Each processing unit determines whether each control unit and the control communication message sent by each control unit are normal and valid based on the control communication message, self-test result message and mutual test result message, then extracts the control signal from the valid control communication message and determines whether the control signal is valid. If valid, the corresponding control signal is controlled with the corresponding control signal state.
[0009] According to one aspect of the present invention, the high-speed bus is composed of multiple independent sub-high-speed buses or is formed by merging multiple sub-high-speed buses, each control unit is connected to its own sub-high-speed bus, and each processing unit is connected to all sub-high-speed buses.
[0010] According to one aspect of the present invention, the high-speed bus and the mutual inspection bus are merged into a total high-speed bus, and each control unit and each processing unit are connected to the total high-speed bus; each control unit transmits mutual inspection messages, control communication messages, self-inspection result messages and mutual inspection result messages on the total high-speed bus.
[0011] According to one aspect of the present invention, the control unit may calculate control information for sending one or more control signals, but all control information in all control communication messages sent by all control units covers all control signals sent by all processing units.
[0012] According to one aspect of the present invention, each of the processing units includes a configuration table; the configuration table configures a control signal issued by the corresponding processing unit; the configuration table configures one or more control signals; the processing unit controls the configured one or more control signals according to the configuration table, control communication messages, self-test result messages and mutual test result messages.
[0013] According to one aspect of the present invention, each control unit sends mutual inspection messages to each other through a mutual inspection bus and performs mutual inspection calculations, including:
[0014] A control unit sends a mutual inspection inquiry message to another control unit at regular intervals through the mutual inspection bus;
[0015] After receiving the mutual inspection inquiry message, another control unit replies with a mutual inspection response message to a certain control unit;
[0016] The mutual check inquiry message includes a time stamp and a mutual check code, and the mutual check response message includes a time stamp and a mutual check response code; the value of the mutual check response code is the value of the mutual check code plus one;
[0017] A control unit detects whether another control unit is normal by detecting the real-time and correctness of the mutual inspection response message; the detection method includes:
[0018] A control unit compares the time when it sends a mutual check inquiry message and receives a mutual check response message. If the difference between the two does not exceed the timeout period, it is normal. If it exceeds the timeout period, it is abnormal.
[0019] A certain control unit compares the values of the mutual check code and the mutual check reply code. If the mutual check reply code is one greater than the mutual check code, it is normal; otherwise, it is abnormal.
[0020] According to one aspect of the present invention, each control unit sends mutual inspection messages to each other through a mutual inspection bus and performs mutual inspection calculations, further comprising:
[0021] One of the control units initiates mutual inspection, and the initiation method includes:
[0022] Among the control units, the control unit with the smallest address sends the mutual inspection inquiry message first;
[0023] After receiving the mutual inspection inquiry message, another control unit with a larger address replies with a mutual inspection response message, and uses the replied mutual inspection response message as the mutual inspection inquiry message;
[0024] After receiving the mutual inspection response message, the control unit with a smaller address replies with a mutual inspection response message, and uses the replied mutual inspection response message as the mutual inspection inquiry message;
[0025] Repeat the above steps;
[0026] The control unit with a smaller address will resend the mutual inspection inquiry message after a certain period of time after the message is interrupted.
[0027] According to one aspect of the present invention, each processing unit determines whether each control unit and the control communication message sent by each control unit are normal and valid according to the control communication message, the self-test result message and the mutual test result message, and then extracts the control signal from the valid control communication message, and determines whether the control signal is valid. If valid, the corresponding control signal is controlled with the corresponding control signal state, including:
[0028] Each processing unit receives all control communication messages, all self-test result messages and all mutual test result messages;
[0029] Each processing unit comprehensively determines whether a control unit is normal based on the self-check result of a control unit and the mutual check results of other control units;
[0030] Each processing unit determines that the control communication message sent by the normal control unit is valid, otherwise it is invalid;
[0031] Each processing unit extracts control information from each valid control communication message and records the amount of control information z;
[0032] When each processing unit determines that more than z-1 control information states are the same among all the control information, it determines that the control information is valid, and then controls the corresponding control signal with the same control information states.
[0033] According to one aspect of the present invention, each processing unit comprehensively determines whether a control unit is normal based on a self-check result of a control unit and a mutual check result of the control unit by other control units, including:
[0034] When the self-test result of a control unit is normal and the mutual test results of other control units are normal, each processing unit determines that the control unit is normal;
[0035] When a control unit has no self-test result or the self-test result is abnormal, the control unit is determined to be abnormal;
[0036] When the self-test result of a control unit is normal but there is no mutual test result, the control unit is determined to be normal.
[0037] According to one aspect of the present invention, before determining whether a control unit is normal, each processing unit first determines whether the control unit needs to be determined based on the configuration table.
[0038] To achieve the above object, the present invention also provides a system for improving the reliability of control signals of a control device, wherein the control device comprises: a plurality of control units, a plurality of processing units, a high-speed bus and a mutual detection bus; each control unit is connected to the high-speed bus; all control units are connected to the mutual detection bus; each processing unit is connected to the high-speed bus; each control unit is independent of each other, performs redundant calculations, and sends out respective control communication messages through the high-speed bus; each processing unit sends out respective control signals; each control communication message contains control information for all control signals;
[0039] The system comprises:
[0040] Self-check module, each control unit performs self-check calculations and sends out its own self-check result message on the high-speed bus;
[0041] Mutual inspection module, each control unit sends mutual inspection messages to each other through the mutual inspection bus, performs mutual inspection calculations, and sends mutual inspection result messages to other control units on the high-speed bus;
[0042] Control signal judgment module, each processing unit receives all control communication messages, all self-check result messages and all mutual check result messages. Each processing unit judges whether each control unit and the control communication message sent by each control unit are normal and valid according to the control communication message, self-check result message and mutual check result message, then extracts the control signal from the valid control communication message, and judges whether the control signal is valid. If valid, the corresponding control signal is controlled with the corresponding control signal state.
[0043] To achieve the above objectives, the present invention also provides an electronic device, comprising a processor, a memory, and a computer program stored in the memory and executable on the processor, wherein the computer program, when executed by the processor, implements the method for improving the reliability of a control signal of a control device as described above.
[0044] To achieve the above objectives, the present invention also provides a computer-readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, the method for improving the reliability of a control signal of a control device as described above is implemented.
[0045] According to the scheme of the present invention, the present invention provides a method for improving the reliability of control signals of a control device, the designed multi-control unit architecture can effectively prevent control loss caused by failure of a single control unit, the designed parallel multi-high-speed bus architecture can prevent control loss caused by damage to a single bus, the designed flexible processing unit architecture can reduce hardware complexity and improve hardware scalability, the designed technical scheme combining monitoring mutual inspection and self-inspection items can not only correctly lock the control unit output when the control unit can identify its own fault, but also lock the output of the faulty unit through other control units to prevent false triggering when the control unit fails and cannot correctly identify its own fault and falsely reports self-inspection, and the designed selection voting comparison fault-tolerant algorithm can not only ensure that the control communication messages of the normal control units can participate in the control, as long as there is a normal control unit, the control can be guaranteed not to be lost, and can effectively filter the erroneous control messages to prevent control errors, realizing the organic unity of control signal output redundancy and fault tolerance, thereby further improving the reliability and continuity of the control equipment. BRIEF DESCRIPTION OF THE DRAWINGS
[0046] Figure 1 A schematic diagram showing a hardware architecture for improving the reliability of a control signal of a control device according to an embodiment of the present invention;
[0047] Figure 2 A simplified hardware architecture diagram schematically showing a method for improving the reliability of a control signal of a control device according to an embodiment of the present invention;
[0048] Figure 3 A schematic diagram of a monitoring mutual inspection method for improving the reliability of a control signal of a control device according to an embodiment of the present invention is schematically shown;
[0049] Figure 4 A flowchart schematically shows a selection, voting and comparison fault tolerance method for improving reliability of control signals of a control device according to an embodiment of the present invention;
[0050] Figure 5The figure schematically shows a method for improving the reliability of control signals of a control device based on hardware architecture, mutual monitoring and selection voting and comparative fault tolerance according to an embodiment of the present invention. DETAILED DESCRIPTION
[0051] The present invention will now be discussed with reference to exemplary embodiments. It should be understood that the embodiments discussed are only to enable those skilled in the art to better understand and thus implement the present invention, rather than implying any limitation on the scope of the present invention.
[0052] As used herein, the term “including” and variations thereof are to be interpreted as open-ended terms meaning “including, but not limited to.” The term “based on” is to be interpreted as “based, at least in part, on.” The terms “one embodiment” and “an embodiment” are to be interpreted as “at least one embodiment.”
[0053] Figure 1 A schematic diagram of a hardware architecture for improving the reliability of a control signal of a control device according to an embodiment of the present invention is shown as follows: Figure 1 As shown, in this embodiment, the control device includes:
[0054] Multiple control units U1~Un; multiple processing units C1~Cm, multiple high-speed buses B1~Bn and 1 mutual inspection bus S;
[0055] Each control unit U1~Un is connected to a respective high-speed bus B1~Bn;
[0056] All control units U1~Un are connected to the mutual inspection bus S;
[0057] Each processing unit C1-Cm is connected to all high-speed buses B1-Bn;
[0058] Each control unit is independent of each other, performs redundant calculations, and sends out its own control communication messages F1 to Fn on the high-speed bus;
[0059] Each processing unit C1-Cm sends a control signal P1-Pm;
[0060] Each control communication message F1-Fn includes control information for all control signals P1-Pm.
[0061] Based on the above control device, the method of the present invention includes:
[0062] Each control unit performs self-check calculations and sends out its own self-check result message SCF1~SCFn on the high-speed bus;
[0063] Each control unit sends mutual inspection messages HC12~HC1n, ..., HCn1~HCnn-1 to each other through the mutual inspection bus, and performs mutual inspection calculations, and sends mutual inspection result messages HCF12~HCF1n, ..., HCFn1~HCFnn-1 to other control units on the high-speed bus;
[0064] Each processing unit receives all control communication messages, all self-check result messages and all mutual check result messages, performs selection, voting and comparison fault-tolerant processing, and controls respective control signals.
[0065] In this embodiment, the combined processing function can be adjusted according to the computing power of each processing unit, and one or more control signals can be controlled separately to reduce the number of processing units, including:
[0066] Each processing unit includes a configuration table; the configuration table configures the control signal issued by the corresponding processing unit; the configuration table can configure one or more control signals; each processing unit is connected to all high-speed buses, receives all control communication messages, all self-test result messages and all mutual test result messages, and sends out the configured control signal according to the selection, voting and comparison fault-tolerant processing in the configuration table; the control information issued by all processing units redundantly covers all control signals P1~Pm.
[0067] In this implementation, bus functions may be merged according to the size of the communication volume and the limitation on communication delay, and the following options may be selected:
[0068] The high-speed buses B1 to Bn are merged into a high-speed bus B, that is, the high-speed buses B1 to Bn are sub-high-speed buses;
[0069] The high-speed buses B1-Bn and the mutual detection bus S are combined into a main high-speed bus BUS.
[0070] In this embodiment, the calculated control signal can be flexibly adjusted according to the computing capability of each control unit, including:
[0071] The control unit may only calculate the control information for sending one or more control signals, but the control information sent by all control units redundantly covers all control signals P1-Pm.
[0072] The hardware architecture of the control device provided by the present invention has been fully designed with hardware redundancy. The multi-control unit parallel computing architecture provided can effectively prevent the loss of control caused by the failure of a single control unit. The designed parallel multi-high-speed bus architecture can prevent the loss of control caused by damage to a single bus, fundamentally solving the problem of control loss caused by CPU failure in traditional control devices. The optimally designed elastic processing unit architecture can reduce the number of processing units and reduce hardware complexity on the one hand, and the configuration table solution provided on the other hand can flexibly expand the functions of the processing units and support the continuous expansion of the business scenarios applicable to the device.
[0073] Further, Figure 2 A simplified hardware architecture diagram for improving the reliability of control signals of a control device according to an embodiment of the present invention is schematically shown, which can reduce hardware complexity and cost, and reduce the demand for related devices. Figure 2 As shown, the control device includes:
[0074] Multiple control units U1~Un; processing unit C, main high-speed bus BUS (formed by merging high-speed buses B1~Bn and mutual detection bus S);
[0075] Each control unit U1~Un is connected to the main high-speed bus BUS;
[0076] The processing unit C is connected to the main high-speed bus BUS;
[0077] Each control unit U1~Un is independent of each other, performs redundant calculations, and sends out its own control communication messages F1~Fn on the high-speed bus;
[0078] The processing unit C sends control signals P1 to Pm;
[0079] Each control communication message F1-Fn contains control information for all control signals P1-Pm;
[0080] Each control unit performs self-check calculations and sends out its own self-check result message SCF1~SCFn on the main high-speed bus;
[0081] Each control unit sends mutual inspection messages HC12~HC1n, ..., HCn1~HCnn-1 to each other through the main high-speed bus, and performs mutual inspection calculations, and sends mutual inspection result messages HCF12~HCF1n, ..., HCFn1~HCFnn-1 to other control units on the main high-speed bus;
[0082] Processing unit C receives all control communication messages, all self-test result messages, and all mutual test result messages, performs selection processing according to the control unit in sequence, performs voting comparison fault tolerance processing according to the control signal in sequence, and controls all control signals P1 to Pm. In this embodiment, selection refers to the process of selecting valid control communication messages; voting comparison refers to the process of extracting control signals and confirming the state of the majority control signals. Selection combined with voting comparison can filter out faulty control units, and the remaining normal control units participate in control, thereby achieving fault tolerance of signal control.
[0083] Preferably, in this embodiment, the number of processing units is two or three, which can better reduce the computational complexity of the processing unit selection voting comparison algorithm without reducing the overall reliability, thereby alleviating the demand for computing resources of the processing units.
[0084] Further, Figure 3 A schematic diagram of a monitoring mutual inspection method for improving the reliability of a control signal of a control device according to an embodiment of the present invention is schematically shown, which is used for mutual inspection between control units; the control unit includes a detection control unit Ux (i.e., a certain control unit) and a detected control unit Uy (i.e., another control unit); the control units communicate through a mutual inspection bus; the mutual inspection method includes:
[0085] The detection control unit Ux sends a mutual detection inquiry message to the detected control unit Uy through the mutual detection bus;
[0086] After receiving the mutual inspection inquiry message, the detected control unit Uy replies a mutual inspection response message to the detection control unit Ux;
[0087] The mutual check inquiry message contains a time stamp and a mutual check code;
[0088] The mutual inspection response message includes a time stamp and a mutual inspection response code;
[0089] The value of the mutual check response code is the value of the mutual check code plus one;
[0090] The detection control unit Ux detects whether the detected control unit Uy is normal by detecting the real-time and correctness of the mutual detection response message; wherein the method for detecting the real-time and correctness of the mutual detection response message includes:
[0091] The detection control unit Ux compares the time when it sends the mutual inspection inquiry message and receives the mutual inspection response message. If the difference between the two does not exceed the timeout period (the time can be preset based on the reliability requirements of the control object and the bus communication delay), it is normal; if it exceeds the timeout period, it is abnormal.
[0092] The detection control unit Ux compares the values of the mutual check code and the mutual check response code. If the mutual check response code is one greater than the mutual check code, it is normal; otherwise, it is abnormal.
[0093] Furthermore, the mutual inspection between the control units further includes: the control unit uses the mutual inspection response message as the mutual inspection inquiry message, and sets a startup method, which can optimize the mutual inspection message and reduce the number of messages, including:
[0094] The detected control unit Uy uses the mutual inspection response message sent to the detection control unit Ux as the mutual inspection inquiry message of the detection Ux (i.e., the detection control unit Ux). The mutual inspection inquiry messages sent by Ux and Uy (i.e., the detected control unit Uy) to each other are both mutual inspection response messages in reply to each other; the startup method may include:
[0095] The detection control unit Ux and the detected control unit Uy send a mutual detection inquiry message first by the control unit with a smaller address;
[0096] After receiving the mutual inspection inquiry message, another control unit with a larger address replies with a mutual inspection response message, and uses the replied mutual inspection response message as the mutual inspection inquiry message;
[0097] After receiving the mutual inspection response message, the control unit with a smaller address replies with a mutual inspection response message, and uses the replied mutual inspection response message as the mutual inspection inquiry message;
[0098] Repeat the above steps;
[0099] The control unit with a smaller address (the last digit of the address is smaller) resends the mutual inspection inquiry message within a certain period of time after the message is interrupted.
[0100] In this implementation manner, the data types of the mutual check code and the mutual check response code are not limited to fixed integer or long integer types, and can be defined as any countable data type.
[0101] The monitoring mutual inspection method for improving the reliability of the control signal of the control device provided by the present invention can serve as a powerful supplement to self-inspection. On the basis of providing a conventional self-inspection function, it eliminates the blind spot where the control unit cannot correctly identify its own fault. It can not only correctly lock the control unit output when the control unit can identify its own fault, but also lock the faulty unit output through other control units when the control unit fails and cannot correctly identify its own fault and falsely reports self-inspection as normal, thereby preventing false control triggering.
[0102] Further, Figure 4 A flowchart of a selection, voting and comparison fault tolerance method for improving the reliability of a control signal of a control device according to an embodiment of the present invention is schematically shown, which is used for a processing unit to process a control communication message, a self-check result message and a mutual check result message to send a control signal; wherein the processing unit is, for example, a certain processing unit, and the processing unit communicates with the control unit via a high-speed bus, and the selection, voting and comparison fault tolerance method comprises:
[0103] Step S101, the processing unit receives control communication messages, self-test result messages of all control units, and mutual test result messages between control units;
[0104] Step S102, the processing unit comprehensively determines whether a control unit is normal based on the self-check result of a control unit and the mutual check results of other control units.
[0105] Step S103, the processing unit determines whether the control communication message sent by a normal control unit is valid, otherwise it is invalid;
[0106] Step S104, repeating step S102 and step S103, the processing unit sequentially determines whether all control units are normal, and determines all valid control communication messages;
[0107] Step S105, the processing unit extracts control information from each valid control communication message and records the amount of control information z;
[0108] Step S106 , the processing unit determines that there are z-1 or more control information in the same state among the z control information, determines that the calculation is valid, and controls the corresponding control signal with the same control information state.
[0109] Preferably, the control communication message pre-judgment can be increased to reduce the number of judgment control units and improve efficiency. Step S201 is added after step S101. The step S201 method includes: judging the control unit that needs to be selected according to the configuration table (since the control unit can calculate the control information for sending one or more control signals, the configuration table describes the control unit that sends the control signal controlled by the processing unit).
[0110] In this embodiment, some criteria may be used to reduce the amount of calculation for determining whether the control unit is normal. Specifically, step S102 includes:
[0111] The self-test results are normal and the mutual-test results are normal, so it is determined that the control unit is normal.
[0112] In this embodiment, some criteria may be used to increase the fault tolerance of determining whether the control unit is normal, and step S102 further includes:
[0113] There is no self-test result or the self-test result is abnormal, and the control unit is judged to be abnormal;
[0114] The self-test result is normal but there is no mutual test result, so it is determined that the control unit is normal.
[0115] The above-mentioned selection, voting and comparison fault-tolerance method for improving the reliability of control signals of control devices provided by the present invention can ensure that all normal control units can participate in the control, thereby realizing the control reliability of "N minus many" (indicating that there are N control units, when multiple control units among them are abnormal, the entire device is still reliable. For example, "N minus 1" means that one of the control units is abnormal, and the entire device is still reliable.) and can effectively filter erroneous control messages to prevent control errors, thereby realizing the organic unity of control signal output redundancy and fault tolerance.
[0116] Further, Figure 5 A schematic diagram of a method for improving the reliability of control signals of a control device based on the above hardware architecture, monitoring mutual inspection and selection voting comparison fault tolerance according to an embodiment of the present invention is schematically shown. The method is used to improve the reliability of control signals of embedded control devices. Figure 5 As shown, in the above hardware architecture, the control units U1~Un use the above-mentioned monitoring mutual inspection method to obtain the monitoring mutual inspection results together with the control communication message and the self-inspection results, which are connected to the processing unit C; in the processing unit, the above-mentioned selection voting comparison fault-tolerant method is used to calculate the control state of each control signal P1~Pm, and control the corresponding control signal P1~Pm.
[0117] According to the above scheme of the present invention, the present invention provides a complete set of methods for improving the reliability of control signals of embedded control devices. The designed multi-control unit architecture can effectively prevent control loss caused by failure of a single control unit, the designed flexible processing unit architecture can reduce hardware complexity and improve hardware scalability, the designed monitoring mutual inspection and self-inspection item combination technology can eliminate the blind spots where the control unit cannot correctly identify its own faults and falsely reports self-inspection on the basis of providing conventional self-inspection functions, the designed selection voting comparison fault-tolerant algorithm can ensure that normal control units can participate in control, thereby realizing the control reliability of "N minus many", and can effectively filter erroneous control messages to prevent control errors, thereby realizing the organic unity of control signal output redundancy and fault tolerance, thereby further improving the reliability and continuity of the control device.
[0118] Furthermore, in order to achieve the above object, the present invention also provides a system for implementing the above method for improving the reliability of control signals of a control device, the system comprising:
[0119] Self-check module, each control unit performs self-check calculations and sends out its own self-check result message on the high-speed bus;
[0120] Mutual inspection module, each control unit sends mutual inspection messages to each other through the mutual inspection bus, performs mutual inspection calculations, and sends mutual inspection result messages to other control units on the high-speed bus;
[0121] Control signal judgment module, each processing unit receives all control communication messages, all self-check result messages and all mutual check result messages, each processing unit judges whether each control unit and the control communication message sent by each control unit are normal and valid according to the control communication message, self-check result message and mutual check result message, then extracts the control signal from the valid control communication message, and judges whether the control signal is valid, if valid, the corresponding control signal is controlled by the majority control signal state.
[0122] Specifically, the process of the above method implemented by the system is as described above and will not be repeated here.
[0123] Furthermore, to achieve the above objectives, the present invention also provides an electronic device, comprising: a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the above method for improving the reliability of the control signal of the control device when executing the computer program.
[0124] The present invention also provides a computer-readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, the method for improving the reliability of a control signal of a control device is implemented.
[0125] Those skilled in the art will appreciate that the modules and algorithm steps described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of the present invention.
[0126] Those skilled in the art can clearly understand that, for the convenience and brevity of description, the specific working processes of the above-described devices and equipment can refer to the corresponding processes in the aforementioned method implementation methods, and will not be repeated here.
[0127] In the embodiments provided in the present application, it should be understood that the disclosed devices and methods can be implemented in other ways. For example, the device embodiments described above are only schematic. For example, the division of the modules is only a logical function division. There may be other division methods in actual implementation, such as multiple modules or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or modules, which can be electrical, mechanical or other forms.
[0128] The modules described as separate components may or may not be physically separated, and the components shown as modules may or may not be physical modules, that is, they may be located in one place or distributed on multiple network modules. Some or all of the modules may be selected according to actual needs to achieve the purpose of the embodiments of the present invention.
[0129] In addition, each functional module in the embodiment of the present invention may be integrated into one processing module, or each module may exist physically separately, or two or more modules may be integrated into one module.
[0130] If the functions are implemented in the form of software function modules and sold or used as independent products, they can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present invention can be essentially or partly embodied in the form of a software product that contributes to the prior art. The computer software product is stored in a storage medium and includes several instructions for enabling a computer device (which can be a personal computer, server, or network device, etc.) to perform all or part of the steps of the energy-saving signal sending / receiving method of each embodiment of the present invention. The aforementioned storage medium includes: various media that can store program codes, such as USB flash drives, mobile hard disks, ROM, RAM, magnetic disks, or optical disks.
[0131] The above description is only a preferred embodiment of the present application and an explanation of the technical principles used. Those skilled in the art should understand that the scope of the invention involved in the present application is not limited to the technical solution formed by a specific combination of the above technical features, but should also cover other technical solutions formed by any combination of the above technical features or their equivalent features without departing from the inventive concept. For example, the above features are replaced with the technical features with similar functions disclosed in this application (but not limited to) by each other.
[0132] It should be understood that the size of the serial numbers of each step in the content of the invention and the implementation methods of the present invention does not absolutely mean the order of execution. The execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the implementation methods of the present invention.
Claims
1. Methods for improving the reliability of control signals of control devices, It is characterized in that The control device comprises: a plurality of control units, a plurality of processing units, a high-speed bus and a mutual inspection bus; each control unit is connected to the high-speed bus; all control units are connected to the mutual inspection bus; each processing unit is connected to the high-speed bus; each control unit is independent of each other, performs redundant calculations, and sends out respective control communication messages through the high-speed bus; each processing unit sends out respective control signals; each control communication message contains control information for all control signals; The method comprises: Each control unit performs self-check calculations and sends out its own self-check result message on the high-speed bus; Each control unit sends mutual inspection messages to each other through the mutual inspection bus, performs mutual inspection calculations, and sends mutual inspection result messages to other control units on the high-speed bus; Each processing unit receives all control communication messages, all self-test result messages and all mutual test result messages. Each processing unit determines whether each control unit and the control communication message sent by each control unit are normal and valid based on the control communication message, self-test result message and mutual test result message, then extracts the control signal from the valid control communication message and determines whether the control signal is valid. If valid, the corresponding control signal is controlled with the corresponding control signal state.
2. The method for improving the reliability of control signals of a control device according to claim 1, It is characterized in that The high-speed bus is composed of a plurality of independent sub-high-speed buses or is formed by merging a plurality of sub-high-speed buses. Each control unit is connected to its own sub-high-speed bus, and each processing unit is connected to all sub-high-speed buses.
3. The method for improving the reliability of control signals of a control device according to claim 1, It is characterized in that The high-speed bus and the mutual inspection bus are combined into a general high-speed bus, and each control unit and each processing unit are connected to the general high-speed bus; each control unit transmits mutual inspection messages, control communication messages, self-inspection result messages and mutual inspection result messages on the general high-speed bus.
4. The method for improving the reliability of control signals of a control device according to claim 1, It is characterized in that The control unit calculates control information for sending one or more control signals; all control information in all control communication messages sent by all control units covers all control signals sent by all processing units.
5. The method for improving the reliability of control signals of a control device according to claim 1, It is characterized in that Each of the processing units includes a configuration table; the configuration table configures a control signal issued by the corresponding processing unit; the configuration table configures one or more control signals; the processing unit controls the configured one or more control signals according to the configuration table, control communication messages, self-test result messages and mutual test result messages.
6. The method for improving the reliability of control signals of a control device according to claim 1, It is characterized in that Each control unit sends mutual inspection messages to each other through the mutual inspection bus and performs mutual inspection calculations, including: A control unit sends a mutual inspection inquiry message to another control unit at regular intervals through the mutual inspection bus; After receiving the mutual inspection inquiry message, another control unit replies with a mutual inspection response message to a certain control unit; The mutual check inquiry message includes a time stamp and a mutual check code, and the mutual check response message includes a time stamp and a mutual check response code; the value of the mutual check response code is the value of the mutual check code plus one; A control unit detects whether another control unit is normal by detecting the real-time and correctness of the mutual inspection response message; the detection method includes: A control unit compares the time when it sends a mutual check inquiry message and receives a mutual check response message. If the difference between the two does not exceed the timeout period, it is normal. If it exceeds the timeout period, it is abnormal. A certain control unit compares the values of the mutual check code and the mutual check reply code. If the mutual check reply code is one greater than the mutual check code, it is normal; otherwise, it is abnormal.
7. The method for improving the reliability of control signals of a control device according to claim 6, It is characterized in that Each control unit sends mutual inspection messages to each other through the mutual inspection bus and performs mutual inspection calculations, including: One of the control units initiates mutual inspection, and the initiation method includes: Among the control units, the control unit with the smallest address sends the mutual inspection inquiry message first; After receiving the mutual inspection inquiry message, another control unit with a larger address replies with a mutual inspection response message, and uses the replied mutual inspection response message as the mutual inspection inquiry message; After receiving the mutual inspection response message, the control unit with a smaller address replies with a mutual inspection response message, and uses the replied mutual inspection response message as the mutual inspection inquiry message; Repeat the above steps; The control unit with a smaller address will resend the mutual inspection inquiry message after a certain period of time after the message is interrupted.
8. The method for improving the reliability of a control signal of a control device according to any one of claims 1 to 7, It is characterized in that Each processing unit determines whether each control unit and the control communication message sent by each control unit are normal and valid according to the control communication message, the self-check result message and the mutual check result message, then extracts the control signal from the valid control communication message, and determines whether the control signal is valid. If valid, the corresponding control signal is controlled with the corresponding control signal state, including: Each processing unit receives all control communication messages, all self-test result messages and all mutual test result messages; Each processing unit comprehensively determines whether a control unit is normal based on the self-check result of a control unit and the mutual check results of other control units; Each processing unit determines that the control communication message sent by the normal control unit is valid, otherwise it is invalid; Each processing unit extracts control information from each valid control communication message and records the amount of control information z; When each processing unit determines that more than z-1 control information states are the same among all the control information, it determines that the control information is valid, and then controls the corresponding control signal with the same control information states.
9. The method for improving the reliability of control signals of a control device according to claim 8, It is characterized in that Each processing unit comprehensively determines whether a control unit is normal based on the self-test result of a control unit and the mutual test results of other control units, including: When the self-test result of a control unit is normal and the mutual test results of other control units are normal, each processing unit determines that the control unit is normal; When a control unit has no self-test result or the self-test result is abnormal, the control unit is determined to be abnormal; When the self-test result of a control unit is normal but there is no mutual test result, the control unit is determined to be normal.
10. The method for improving the reliability of control signals of a control device according to claim 8, It is characterized in that Before determining whether a control unit is normal, each processing unit first determines whether the control unit needs to be determined based on the configuration table.
11. A system to improve the reliability of control signals from control devices, It is characterized in that The control device comprises: a plurality of control units, a plurality of processing units, a high-speed bus and a mutual inspection bus; each control unit is connected to the high-speed bus; all control units are connected to the mutual inspection bus; each processing unit is connected to the high-speed bus; each control unit is independent of each other, performs redundant calculations, and sends out respective control communication messages through the high-speed bus; each processing unit sends out respective control signals; each control communication message contains control information for all control signals; The system comprises: Self-check module, each control unit performs self-check calculations and sends out its own self-check result message on the high-speed bus; Mutual inspection module, each control unit sends mutual inspection messages to each other through the mutual inspection bus, performs mutual inspection calculations, and sends mutual inspection result messages to other control units on the high-speed bus; Control signal judgment module, each processing unit receives all control communication messages, all self-check result messages and all mutual check result messages, each processing unit judges whether each control unit and the control communication message sent by each control unit are normal and valid according to the control communication message, self-check result message and mutual check result message, then extracts the control signal from the valid control communication message, and judges whether the control signal is valid, if valid, the corresponding control signal is controlled by the majority control signal state.
12. Electronic equipment, It is characterized in that The method comprises a processor, a memory and a computer program stored in the memory and executable on the processor, wherein when the computer program is executed by the processor, the method for improving the reliability of a control signal of a control device as described in any one of claims 1 to 10 is implemented.
13. Computer readable storage medium, It is characterized in that The computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the method for improving the reliability of a control signal of a control device according to any one of claims 1 to 10 is implemented.
