Controller redundant system, vehicle and controller redundant system control method

Through the data interaction between the dual controller architecture and interface module, the data processing results of the main controller are identified and output, which solves the problems of network paralysis and system disorder caused by controller failure in traditional control systems, and improves the security and reliability of the system .

CN119024674APending Publication Date: 2024-11-26BYD CO LTD

Patent Information

Application Number
CN202310594892.1
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2023-05-24
Publication Date
2024-11-26

AI Technical Summary

Technical Problem

In traditional control systems, there are problems in achieving information synchronization between controllers through shared spaces. If a controller fails, it may cause the entire network to be paralyzed, or the redundant backup controller makes the system disorder due to judgment errors.

Method used

Using a dual controller architecture and interface module for data interaction, obtain master control permission information and data processing results through interface module, identify the master controller and slave controller, output the master controller data processing results, and avoid a control in the redundant system. Network paralysis and system disorder caused by device failure.

Benefits of technology

Improves the security and reliability of the system, ensuring that the slave controller can switch quickly when the master controller fails, avoids data conflicts and errors, and ensures the continuous operation of the system.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119024674A_ABST
    Figure CN119024674A_ABST
Patent Text Reader

Abstract

The invention discloses a controller redundancy system, a vehicle and a controller redundancy system control method, the controller redundancy system comprises a first controller, a second controller and an interface module, one of the first controller and the second controller is a master controller, and the other is a slave controller; the interface module is respectively connected with the first controller and the second controller, and is used for acquiring data processing results of the first controller and the second controller, acquiring master control permission information of the first controller and the second controller, identifying a master controller and a slave controller in the first controller and the second controller according to the master control permission information, and sending the identified master controller and slave controller to the first controller and the second controller; according to the invention, the second controller is connected with the master controller and outputs the data processing result of the master controller, so that conflicts and errors caused by simultaneous access and data processing of the plurality of controllers are avoided, the security and reliability of the system are improved, and when the master controller fails or fails, the second controller can take over the control right to ensure the continuous operation of the system.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of automobile control technology, and in particular to a controller redundancy system, a vehicle and a controller redundancy system control method. Background Art

[0002] In the fields of rail transportation, industrial control, aerospace, weapon systems, etc., automated control systems are an indispensable part of the production process. The control system needs to coordinate the work of each component through information interaction to achieve efficient control and automated operation.

[0003] However, in traditional control systems, controllers use shared space to synchronize information, which has many problems. In addition, if the output of the redundant controller is directly connected to the CAN bus, if one controller fails, the bus may be paralyzed, which may cause the entire network to fail to work properly. Alternatively, it is not appropriate to judge the working status of each other by only communicating directly between the two controllers. If the backup controller makes a mistake, both controllers may work as the main controller, which will eventually cause the entire system to work in disorder. Summary of the invention

[0004] The present invention aims to solve at least one of the technical problems existing in the prior art. To this end, the first aspect of the present invention proposes a controller redundancy system. The controller redundancy system can prevent the failure of a controller in the redundant system from causing the entire network to fail to work properly, and can also prevent the failure of the redundant controller from causing the entire system to be disordered.

[0005] A second object of the present invention is to provide a vehicle.

[0006] The third objective of the present invention is to provide a controller redundant system control method.

[0007] In order to achieve the above-mentioned purpose, a controller redundancy system of an embodiment of the first aspect of the present invention includes: a first controller and a second controller, wherein one of the first controller and the second controller is a master controller and the other is a slave controller; an interface module, wherein the interface module is connected to the first controller and the second controller respectively, and is used to obtain data processing results of the first controller and the second controller, and obtain master control authority information of the first controller and the second controller, identify the master controller and the slave controller of the first controller and the second controller according to the master control authority information, and output the data processing results of the master controller.

[0008] According to the controller redundancy system of the embodiment of the present invention, a dual-controller architecture and an interface module are used for data interaction. The interface module is used to identify the master controller and the slave controller in the first controller and the second controller, and the data processing result of the master controller is output, thereby avoiding the failure of one controller in the redundant system causing the entire network to fail to work properly, and also avoiding the failure of the redundant controller to cause the entire system to be disordered, thereby improving the safety and reliability of the system.

[0009] In some embodiments, the controller redundancy system further includes: a communication bus, the communication bus is connected to the interface module, and the interface module outputs the data processing result of the main controller to the communication bus.

[0010] In some embodiments, the first controller includes a first data interface, and the second controller includes a second data interface; the first data interface is connected to the second data interface to achieve data synchronization and mutual status detection between the first controller and the second controller.

[0011] In some embodiments, the first data interface includes a first serial interface and a second serial interface; the second data interface includes a third serial interface and a fourth serial interface; the first serial interface is connected to the third serial interface to realize the interaction of control data between the first controller and the second controller; the second serial interface is connected to the fourth serial interface to realize the interaction of working status signals between the first controller and the second controller.

[0012] In some embodiments, the first data interface includes a first serial interface and a second serial interface; the second data interface includes a third serial interface and a fourth serial interface; the first serial interface is connected to the third serial interface to realize the interaction of control data between the first controller and the second controller; the second serial interface is connected to the fourth serial interface to realize the interaction of working status signals between the first controller and the second controller.

[0013] In some embodiments, the first controller includes a fifth serial interface and a first input-output interface; the interface module includes: a sixth serial interface, the sixth serial interface is connected to the fifth serial interface to realize data interaction between the interface module and the first controller; a second input-output interface, the second input-output interface is connected to the first input-output interface to obtain the master control authority information of the first controller.

[0014] In some embodiments, the second controller includes a seventh serial interface and a third input-output interface; the interface module includes: an eighth serial interface, the eighth serial interface is connected to the seventh serial interface to achieve communication between the interface module and the second controller; a fourth input-output interface, the fourth input-output interface is connected to the third input-output interface to obtain the master control authority information of the second controller.

[0015] In some embodiments, the interface module includes: a bus control unit, which is respectively connected to the sixth serial interface, the second input / output interface, the eighth serial interface and the fourth input / output interface, and is used to obtain control data of the first controller and / or the second controller, or send bus information to the first controller and / or the second controller, and identify the main controller according to the master control authority information; a bus transceiver unit, which is connected to the bus control unit and is used to send control data of the first controller and / or the second controller.

[0016] In some embodiments, the controller redundancy system further includes a first peripheral circuit module, and the first peripheral circuit module is connected to the interface module.

[0017] In some embodiments, the interface module includes: a first interface unit, which is connected to the first controller and is used to send the data processing results of the first controller; and a second interface unit, which is connected to the second controller and is used to send the data processing results of the second controller.

[0018] In some embodiments, the first controller also includes a ninth serial interface and a fifth input-output interface; the first interface unit includes: a tenth serial interface, the tenth serial interface is connected to the ninth serial interface to realize communication between the first interface unit and the first controller; a sixth input-output interface, the sixth input-output interface is connected to the fifth input-output interface to obtain the first master control authority information of the first controller.

[0019] In some embodiments, the first interface unit also includes: a first bus controller, the first bus controller is connected to the tenth serial interface and the sixth input and output interface, and is used to obtain control data of the first controller, and to identify whether the first controller is the master controller according to the first master control authority information; a first bus transceiver, the first bus transceiver is connected to the first bus controller, and is used to send control data of the first controller.

[0020] In some embodiments, the second controller also includes an eleventh serial interface and a seventh input-output interface; the second interface unit includes: a twelfth serial interface, the twelfth serial interface is connected to the eleventh serial interface to realize communication between the second interface and the second controller; an eighth input-output interface, the eighth input-output interface is connected to the seventh input-output interface to obtain the second master control authority information of the second controller.

[0021] In some embodiments, the second interface unit also includes: a second bus controller, the second bus controller is connected to the twelfth serial interface and the eighth input and output interface, and is used to obtain control data of the second controller, and to identify whether the second controller is the master controller according to the second master control authority information; a second bus transceiver, the second bus transceiver is connected to the second bus controller, and is used to send control data of the second controller.

[0022] In some embodiments, the controller redundancy system further includes: a second peripheral circuit module, which is respectively connected to the first controller and the first interface unit; and a third peripheral circuit module, which is respectively connected to the second controller and the second interface unit.

[0023] In some embodiments, the first controller further includes a third bus controller; the controller redundancy system further includes a third bus transceiver, and the third bus transceiver is connected to the third bus controller to implement communication between the first controller and the communication bus.

[0024] In some embodiments, the second controller further includes a fourth bus controller; the controller redundancy system further includes a fourth bus transceiver, and the fourth bus transceiver is connected to the fourth bus controller to implement communication between the second controller and the communication bus.

[0025] In some embodiments, the controller redundancy system further includes: a fourth peripheral circuit module, the fourth peripheral circuit module is connected to the first controller; and a fifth peripheral circuit module, the fifth peripheral circuit module is connected to the second controller.

[0026] In some embodiments, the controller redundancy system also includes: a first alarm module, the first alarm module is connected to the first controller, and is used to alarm when a failure occurs in the first controller or the second controller; a second alarm module, the second alarm module is connected to the second controller, and is used to alarm when a failure occurs in the second controller or the first controller.

[0027] In order to achieve the above object, the vehicle of the second embodiment of the present invention includes the controller redundancy system described in the above embodiment.

[0028] According to the vehicle of the embodiment of the present invention, by adopting the controller redundancy system described in the above embodiment, the master authority information and data processing results of the first controller and the second controller are obtained through the interface module, the master controller and the slave controller in the first controller and the second controller can be identified, and the data processing result of the master controller can be output, thereby avoiding conflicts and errors caused by multiple controllers accessing and processing data at the same time. In addition, it can avoid the failure of a controller in the redundant system causing the entire network to fail to work normally, and it can also avoid the failure of the redundant controller to cause the entire system to be disordered, thereby improving the safety and reliability of the system.

[0029] In order to achieve the above-mentioned purpose, a controller redundant system control method of an embodiment of the third aspect of the present invention, the controller redundant system includes a first controller, a second controller and an interface module, the interface module is connected to the first controller and the second controller respectively, and the controller redundant system control method includes: the interface module obtains the data processing results of the first controller and the second controller; the interface module obtains the master control authority information of the first controller and the second controller; the interface module determines the master controller of the first controller and the second controller according to the master control authority information, and outputs the data processing results of the master controller.

[0030] According to the controller redundant system control method of the embodiment of the present invention, based on the controller redundant system described in the above embodiment, a dual-controller architecture and an interface module are used for data interaction to ensure information synchronization between the first controller and the second controller. The master control authority information and data processing results of the first controller and the second controller are obtained through the interface module. The master controller and the slave controller in the first controller and the second controller can be identified, and the data processing results of the master controller can be output. This can avoid the failure of one controller in the redundant system causing the entire network to fail to work properly, and can also avoid the failure of the redundant controller to cause the entire system to be disordered, thereby improving the safety and reliability of the system.

[0031] In some embodiments, the controller redundancy system further includes a communication bus, the communication bus is connected to the interface module, and the interface module outputs the data processing results of the main controller, including: the interface module outputs the data processing results of the main controller to the communication bus.

[0032] In some embodiments, the controller redundant system control method further includes: the master controller and the slave controller respectively obtain each other's status information and data processing results, and monitor the working status according to each other's status information and the data processing results.

[0033] In some embodiments, the controller redundant system control method also includes: when the slave controller detects that the data processing result of the master controller is abnormal, the slave controller sends abnormal information to the master controller; the master controller sends the data processing result to the interface module in response to the abnormal information; the interface module determines the working status of the master controller according to the data processing result; when the interface module determines that the master controller is normal, the interface module continues to send the data processing result of the master controller to the communication bus, or, when the interface module determines that the master controller has a first preset abnormality, the interface module sends a master-slave controller switching instruction to the current master controller and the slave controller.

[0034] In some embodiments, the first preset abnormality includes power failure of the main controller or hardware failure of the main controller itself.

[0035] In some embodiments, the controller redundant system control method further includes: when a communication failure occurs between the master controller and the slave controller, both the master controller and the slave controller send out an alarm, and the authority identities of the current slave controller and the master controller are switched to each other.

[0036] In some embodiments, the controller redundant system control method also includes: when the interface module's status judgment result for the main controller is inconsistent with the slave controller's status judgment result for the main controller, the slave controller records an error count; when the main controller detects that the error count recorded by the slave controller reaches a counting threshold, an alarm is issued, and the slave controller stops working.

[0037] In some embodiments, the interface module includes a first interface unit and a second interface unit, the first interface unit is connected to the first controller, and the second interface unit is connected to the second controller, and the controller redundant system control method also includes: the first interface unit obtains the data processing results and first master control authority information of the first controller, and determines whether the first controller is the main controller based on the first master control authority information; the second interface unit obtains the data processing results and second master control authority information of the second controller, and determines whether the second controller is the main controller based on the second master control authority information.

[0038] In some embodiments, when the first interface unit determines that the first controller is the master controller according to the first master control authority information, the first interface unit is the master interface unit and the second interface unit is the slave interface unit, or, when the second interface unit determines that the second controller is the master controller according to the second master control authority information, the second interface unit is the master interface unit and the first interface unit is the slave interface unit; the controller redundant system control method also includes: when the slave controller detects that the data processing result of the master controller is abnormal, the slave controller sends abnormal information to the master controller; the master controller sends the data processing result to the main interface unit in response to the abnormal information; the main interface unit determines the working state of the master controller according to the data processing result; when the main interface unit determines that the master controller is normal, the main interface unit continues to output the data processing result of the master controller, or, when the main interface unit determines that the master controller has a second preset abnormality, the master-slave controller switching instruction is sent to the slave interface unit, and the slave interface unit sends the switching instruction to the slave controller to switch the current master control authority of the master controller and the slave controller.

[0039] In some embodiments, the second preset abnormality includes power failure of the main controller or hardware failure of the main controller itself.

[0040] In some embodiments, the controller redundant system control method further includes: the slave interface unit and the master interface unit respectively acquiring each other's interface status information, and judging each other's working status according to the interface status information.

[0041] In some embodiments, the controller redundant system control method also includes: when the slave interface unit detects that the master interface unit has failed, the slave interface unit sends master interface fault information to the slave controller; the slave controller sends master interface fault information to the master controller; and the master controller obtains interface status information of the master interface unit to determine the working status of the master interface unit.

[0042] Additional aspects and advantages of the present invention will be given in part in the following description and in part will be obvious from the following description, or will be learned through practice of the present invention. BRIEF DESCRIPTION OF THE DRAWINGS

[0043] The above and / or additional aspects and advantages of the present invention will become apparent and easily understood from the description of the embodiments in conjunction with the following drawings, in which:

[0044] Figure 1 is a schematic diagram of a controller redundancy system according to an embodiment of the present invention;

[0045] Figure 2is a schematic diagram of setting an interface module for a controller redundancy system according to an embodiment of the present invention;

[0046] Figure 3 is a schematic diagram of configuring a dual interface unit in a controller redundancy system according to an embodiment of the present invention;

[0047] Figure 4 is a schematic diagram of a controller directly connected to a communication bus according to an embodiment of the present invention;

[0048] Figure 5 is a schematic diagram of a vehicle according to one embodiment of the present invention;

[0049] Figure 6 is a flowchart of a controller redundant system control method according to an embodiment of the present invention.

[0050] Reference numerals:

[0051] Vehicle 100;

[0052] Controller redundancy system 1;

[0053] A first controller 10; a second controller 20; a communication bus 30; an interface module 40; a first peripheral circuit module 50; a second peripheral circuit module 60; a third peripheral circuit module 70; a fourth peripheral circuit module 80; and a fifth peripheral circuit module 90;

[0054] The first serial interface 11; the second serial interface 12; the third serial interface 21; the fourth serial interface 22; the fifth serial interface 13; the first input-output interface 14; the sixth serial interface 41; the second input-output interface 42; the seventh serial interface 23; the third input-output interface 24; the eighth serial interface 43; the fourth input-output interface 44; the bus control unit 45; the bus transceiver unit 46; the first interface unit 47; the second interface unit 48; the ninth serial interface 15; the fifth input-output interface 16; the eleventh serial interface 25; the seventh input-output interface 26; the third bus controller 17; the third bus transceiver 18; the fourth bus controller 27; the fourth bus transceiver 28; the first alarm module 19; the second alarm module 29;

[0055] The tenth serial interface 471; the sixth input-output interface 472; the first bus controller 473; the first bus transceiver 474; the twelfth serial interface 481; the eighth input-output interface 482; the second bus controller 483; the second bus transceiver 484; the thirteenth serial interface 475; the ninth input-output interface 476; the fourteenth serial interface 485; the tenth input-output interface 486; the first data interface 110; the second data interface 210. DETAILED DESCRIPTION

[0056] Embodiments of the present invention are described in detail below. The embodiments described with reference to the accompanying drawings are exemplary. Embodiments of the present invention are described in detail below.

[0057] In the fields of rail transportation, industrial control, aerospace, weapon systems, etc., in order to improve the reliability of the system, dual-machine redundant fault-tolerant technology has been widely used and developed. At present, there are many types of controller redundancy, and each has its own characteristics. If the controller redundancy system is classified according to the length of the controller switching time, it can be divided into cold backup, warm backup and hot backup; if it is classified according to the redundancy implementation method, it can be divided into software redundancy and hardware redundancy; if it is classified according to the redundancy of the controller, it can be divided into dual controller redundancy and multi-controller redundancy.

[0058] In terms of switching time, cold backup means that only one controller is in working state at the current moment. When this controller fails, another controller is powered on to take over the work of the original controller. In this way, controller redundancy can be achieved and the system can work in a low-power state. Although the switching time of this method is longer, it is a good choice for some systems that do not have strict requirements on switching time. Hot backup means that both controllers are in working state, one as the working host and the other as the backup working host. The two controllers work synchronously. When the working host fails, the backup working host immediately switches to the working host. Since the two controllers work synchronously in real time, the switching time is shorter than cold backup, but it also requires higher costs.

[0059] The hardware redundancy method mainly makes the key components or elements of the system redundant, so as to shield the impact of the faults that have occurred on the system. Due to the different sizes of redundant components, from small components to large systems, there are many levels of hardware redundancy, but they all rely on the redundancy of hardware resources to improve the reliability of the system. With the continuous advancement of technology, the size of various semiconductor devices has gradually decreased, and the price has continued to decrease, so the cost of hardware redundancy has also continued to decrease, which makes hardware redundancy easier to be accepted by people, and it has also become a very important method to improve system reliability. At present, there are four main types of hardware redundancy: power supply redundancy, controller redundancy, communication network redundancy and I / O (Input / Output) module redundancy. The main characteristics of hardware redundancy are that the switching process is relatively reliable and the switching time is relatively short. However, since it is a switching mechanism built entirely by hardware, the cost is relatively high.

[0060] The realization of software redundancy is based on hardware redundancy. The principles of software redundancy and hardware redundancy are the same, but the implementation methods are different, that is, the detection of the working status of the controller and the switching between the two controllers are realized by software. Compared with hardware redundancy, software redundancy is lower in cost and can be applied in various occasions, but the switching speed is far less than that of hardware redundancy. At present, software redundancy systems are widely used in many hot rolling water treatment systems, oil, natural gas and other control projects. With the continuous development of software redundancy technology, in many applications, advanced and complex hardware redundancy systems are not the only choice. Simple and low-cost software redundancy systems can also significantly improve the fault tolerance and reliability of the entire system, and will greatly reduce hardware costs and reduce the complexity of program design.

[0061] The present invention proposes a controller redundancy system based on the design principle of rail equipment redundancy system and the key technologies for realizing redundancy (master-slave controller switching, state detection, data synchronization, fault detection, etc.). Figure 1-Figure 4 A controller redundancy system according to an embodiment of the present invention is described.

[0062] Figure 1 is a schematic diagram of a controller redundancy system according to an embodiment of the present invention. Figure 1 As shown, the controller redundancy system 1 includes: a first controller 10 , a second controller 20 and an interface module 40 .

[0063] Among them, one of the first controller 10 and the second controller 20 is a master controller, and the other is a slave controller. The interface module 40 is connected to the first controller 10 and the second controller 20 respectively, and is used to obtain the data processing results of the first controller 10 and the second controller 20, and obtain the master control authority information of the first controller 10 and the second controller 20, identify the master controller and the slave controller of the first controller 10 and the second controller 20 according to the master control authority information, and output the data processing result of the master controller.

[0064] In some embodiments, the main controller plays a key role in the controller redundancy system 1. It is responsible for processing and analyzing the input data to generate corresponding output results. Data processing, calculation and decision-making are performed according to the system requirements and algorithm logic to achieve the control and automatic operation of the system. At the same time, the main controller has the master control authority to determine the operation mode, execution strategy and control instructions of the system. By coordinating and synchronizing the various components in the system, the main controller ensures the stability and consistency of the system, avoids competition conditions and data conflicts between multiple controllers, and provides unified data processing results. In addition, the main controller is also responsible for monitoring the working status and health of each component in the system, can detect faults and handle faults according to predetermined strategies, and ensure the continuous operation and fault recovery capabilities of the system.

[0065] In some embodiments, the slave controller acts as a backup controller in the controller redundancy system 1, providing redundancy and fault tolerance. The slave controller can monitor the working status of the master controller and implement switching when a master controller failure is detected. In this way, the slave controller can quickly take over the tasks of the master controller to avoid system interruptions and functional failures, thereby ensuring the stability and reliability of the system.

[0066] Specifically, when the system is in a normal working state, the two controllers are in a working state at the same time, performing the same task, having the same program, and requiring to execute the same program at the same time, but only the master controller will output data, while the slave controller will not output data. When working, the two controllers monitor each other's status and exchange data through the interface module 40 to ensure synchronous operation. When the master controller fails, the slave controller can quickly switch to the master controller to continue working, achieving uninterrupted operation.

[0067] In some embodiments, the controller will not switch when any fault occurs. The controller will only switch when the main controller fails, for example, the controller itself fails, or the communication bus 30 channel fails. In addition, the entire switching process must not exceed 100ms. After the switching is completed, the original slave controller will be changed to a stand-alone working mode because the original master controller is no longer working.

[0068] According to the controller redundancy system 1 of the embodiment of the present invention, a dual-controller architecture and an interface module 40 are used for data interaction to ensure information synchronization between the first controller 10 and the second controller 20. The master control authority information and data processing results of the first controller 10 and the second controller 20 are obtained through the interface module 40. The master controller and the slave controller in the first controller 10 and the second controller 20 can be identified, and the data processing results of the master controller can be output. This can avoid the failure of one controller in the redundant system causing the entire network to fail to work properly, and can also avoid the failure of the redundant controller to cause the entire system to be disordered, thereby improving the safety and reliability of the system.

[0069] In addition, if Figure 2 As shown, the controller redundancy system 1 further includes: a communication bus 30 . The communication bus 30 is connected to an interface module 40 , and the interface module 40 outputs the data processing result of the main controller to the communication bus 30 .

[0070] In some embodiments, the communication bus 30 plays a key role in information transmission and exchange in the controller redundancy system 1. It provides a reliable communication channel, connecting the data transmission path between the master controller, the slave controller and the interface module 40. Through the communication bus 30, the master controller can transmit the processed data results to other components or systems.

[0071] Specifically, the interface module 40 can output the data processing results of the main controller to the communication bus 30 by connecting to the communication bus 30. In this way, components or subsystems in other systems, such as other controllers, actuators, sensors, etc., can obtain the data processing results of the main controller by accessing the communication bus 30. Such a design enables each component in the system to obtain the data results generated by the main controller in a timely and accurate manner, thereby better realizing the coordinated operation and automatic control of the system.

[0072] In some embodiments, the design and implementation of the communication bus 30 needs to consider multiple factors, such as communication protocol, data transmission rate, fault tolerance, etc. It needs to be able to support efficient data transmission, have sufficient bandwidth and stability to ensure reliable data transmission and real-time performance. In addition, the communication bus 30 can also adopt appropriate communication protocols and mechanisms, such as conflict detection and resolution, error detection and correction, etc., to improve the reliability and security of the system.

[0073] In some embodiments, Figure 2 As shown, the first controller 10 includes a first data interface 110, and the second controller 20 includes a second data interface 210. The first data interface 110 is connected to the second data interface 210 to achieve data synchronization and mutual status detection between the first controller and the second controller.

[0074] Specifically, the first controller 10 provides a data transmission channel through the first data interface 110, and the second controller 20 provides another data transmission channel through the second data interface 210. The two data interfaces can be connected through a physical connection or a virtual communication mode to achieve data exchange and sharing between the two controllers.

[0075] Furthermore, through the connection between the first data interface 110 and the second data interface 210, the first controller 10 and the second controller 20 can perform data synchronization. This means that when one controller receives or generates new data, it will transmit the data to the other controller through the data interface, thereby maintaining data consistency between the two controllers. This data synchronization mechanism can ensure that the data between the two controllers is always kept up to date, avoiding control system errors or instability caused by data asynchrony.

[0076] In addition to data synchronization, the first data interface 110 and the second data interface 210 can also be used for mutual status detection. Through these interfaces, the first controller 110 can send status information to the second controller 210, and the second controller 210 can also send its own status information to the first controller 110. In this way, the two controllers can monitor each other's status to ensure the normal operation and reliability of each other. For example, one controller can send a heartbeat signal to another controller to confirm whether the other controller is in an active state.

[0077] In some embodiments, the first data interface 110 and the second data interface 210 include a plurality of serial interfaces for implementing the interaction of control data and working status signals between the first controller 10 and the second controller 20 .

[0078] The first data interface 110 includes a first serial interface 11 and a second serial interface 12, and the second data interface 210 includes a third serial interface 21 and a fourth serial interface 22. The first serial interface 11 is connected to the third serial interface 21 to implement the interaction of control data between the first controller 10 and the second controller 20. In an embodiment, the control data may include information such as control instructions, parameter settings, and command confirmation, which are used to guide the operation of the system and perform various operations.

[0079] The second serial interface 12 is connected to the fourth serial interface 22 to realize the interaction of the working state signal between the first controller 10 and the second controller 20. In an embodiment, the working state signal may include the health state, operation state, fault information, etc. of the system. Through this interaction, the first controller 10 and the second controller 20 can monitor each other's working state and take corresponding measures as needed, such as fault switching, alarm, etc.

[0080] In some embodiments, the controller redundancy system 1 further includes: a first alarm module 19 and a second alarm module 29 .

[0081] The first alarm module 19 is connected to the first controller 10 and is used to alarm when a fault occurs in the first controller 10 or the second controller 20. The second alarm module 29 is connected to the second controller 20 and is used to alarm when a fault occurs in the second controller 20 or the first controller 10.

[0082] Specifically, the first alarm module 19 is connected to the first controller 10 and is used to monitor the working state of the first controller 10. When the first controller 10 fails, the first alarm module 19 will sound an alarm, and the system will switch the controller. Similarly, the second alarm module 29 is connected to the second controller 20 and is used to monitor the working state of the second controller 20. When the second controller 20 fails, the second alarm module 29 will sound an alarm, and the system will switch the controller. In addition, if the connection between the controllers fails, both the first alarm module 19 and the second alarm module 29 will sound an alarm. This is because the function of the controller redundancy system 1 is to ensure the reliability and stability of the system. When any controller or connection fails, the system needs to perform corresponding alarms and processing.

[0083] Figure 2 Schematic diagram of a controller redundant system configuration interface module according to an embodiment of the present invention. Figure 2 As shown, one end of the interface module 40 is connected to the first controller 10 and the second controller 20 respectively, and the other end of the interface module 40 is connected to the communication bus 30, for realizing communication between the first controller 10 and the communication bus 30 and realizing communication between the second controller 20 and the communication bus 30.

[0084] In some embodiments, the interface module 40 has three main functions. First, it realizes the communication between the controller and the communication bus 30. Second, the interface module 40 isolates the controller from the communication bus 30, which can prevent the noise and interference on the bus from affecting the controller, and also prevent the controller failure from interfering with and affecting other devices on the bus, thereby enhancing the stability and reliability of the system. Third, the interface module 40 can also prevent the controller from switching incorrectly due to misjudgment from the controller.

[0085] like Figure 2 As shown, the first controller 10 includes a fifth serial interface 13 and a first input-output interface 14. The interface module 40 includes a sixth serial interface 41 and a second input-output interface 42. The sixth serial interface 41 is connected to the fifth serial interface 13 to implement data interaction between the interface module 40 and the first controller 10. The second input-output interface 42 is connected to the first input-output interface 14 to obtain the master control authority information of the first controller 10, and then make a fault switching decision in the controller redundancy system 1.

[0086] The master control authority information of the first controller 10 may refer to whether the first controller 10 currently has the master control right of the system, or may refer to the operating status, fault information, and other information related to the master control right of the first controller 10. Such information may be transmitted to the interface module 40 through the first input / output interface 14 and the second input / output interface 42.

[0087] For example Figure 2 As shown, the second controller 20 includes a seventh serial interface 23 and a third input-output interface 24. The interface module 40 includes: an eighth serial interface 43 and a fourth input-output interface 44. The eighth serial interface 43 is connected to the seventh serial interface 23 to realize communication between the interface module 40 and the second controller 20. The fourth input-output interface 44 is connected to the third input-output interface 24 to obtain the master control authority information of the second controller 20.

[0088] The master control authority information of the second controller 20 may refer to whether the second controller 20 currently has the master control right of the system, or may refer to the operating status, fault information and other information related to the master control right of the second controller 20. Such information may be transmitted to the interface module 40 through the second input / output interface 42.

[0089] In the embodiment, the interface module 40 further includes: a bus control unit 45 and a bus transceiver unit 46 .

[0090] Among them, the bus control unit 45 is respectively connected to the sixth serial interface 41, the second input and output interface 42, the eighth serial interface 43 and the fourth input and output interface 44, and is used to obtain control data of the first controller 10 and / or the second controller 20, or send bus information to the first controller 10 and / or the second controller 20, and identify the main controller according to the master control authority information.

[0091] Specifically, the bus control unit 45 coordinates the transmission of the control data of the controller and the information of the communication bus 30. When the first controller 10 or the second controller 20 sends its own data processing results to the interface module 40 through the serial interface in each working cycle, the bus control unit 45 will determine which controller currently has the master control right according to the master control authority information, and decide which controller's output data will be sent to the communication bus 30, so that even if the slave controller makes a mistake in judgment, the data will not be sent repeatedly to the bus.

[0092] The bus transceiver unit 46 is connected to the bus control unit 45 and is used to send control data of the first controller 10 and / or the second controller 20 .

[0093] Specifically, the bus transceiver unit 46 is responsible for sending the control data of the controller to the communication bus 30, and receiving bus information from the communication bus 30. When the first controller 10 or the second controller 20 needs to send control data to the communication bus 30, the bus transceiver unit 46 can forward the data to the communication bus 30. When the bus transceiver unit 46 receives bus information from the communication bus 30, the bus transceiver unit 46 can also send the information to the first controller 10 or the second controller 20.

[0094] like Figure 2 As shown, the controller redundancy system 1 further includes a first peripheral circuit module 50 , and the first peripheral circuit module 50 is connected to the interface module 40 .

[0095] In the embodiment, the first peripheral circuit module 50 mainly includes three modules: a power supply module, a clock module and a reset module. Among them, the power supply module is mainly responsible for providing the power supply required by the system. When the controller redundancy system 1 is running, all components need power supply, and the power supply module provides an appropriate and stable power supply voltage to ensure the normal operation of the entire controller system. The clock module is mainly responsible for providing the clock signal required by the system. In the controller redundancy system 1, all work must be synchronized and coordinated according to the clock signal to ensure the stability and reliability of the entire system. The reset module is mainly responsible for resetting the controller system. When the system encounters errors or other abnormal conditions during operation, in order to ensure the normal operation of the system, the controller needs to reset the system through the reset module to restore the normal state of the system.

[0096] In some embodiments, based on the hardware described in the above embodiments, the present invention adopts a software programming method, that is, a soft redundancy method, to detect the working status of the two controllers and complete the switching of the controllers. Specifically, the two controllers work at the same time, monitor each other's working status, exchange data regularly in each working cycle, and attach a CRC check code after the data. If the slave controller detects that the data is incomplete or the check result is not 0 (when the CRC check result is 0, it indicates that the data transmission is correct, if it is not 0, it indicates an error), a notification of data error is sent to the main controller. Upon receiving this notification, the main controller will send the data with the check bit to the interface module 40, and the interface module 40 will perform another check.

[0097] If the check result is 0, it means that the data of the master controller is correct, but the slave controller makes a mistake. At this time, the interface module 40 sends the data to the communication bus 30 normally. If the slave controller does not receive a switching command within a certain period of time, it will automatically increase the error counter by 8 (the counter will decrease by 8 when the data is correct). If the check result is not 0, it means that the data is indeed wrong, and a switching command is sent immediately to prepare to receive data again. At this time, the original slave controller alarms and changes to a stand-alone working mode.

[0098] If the master controller detects that the error counter value of the slave controller is greater than or equal to 16 (i.e., two consecutive errors), the master controller will alarm, causing the slave controller to stop working and the master controller to work as a single machine.

[0099] In the embodiment, if the slave controller detects that the main controller has a power failure or the controller itself has a hardware failure, this result is sent to the interface module 40, and the interface module 40 performs another detection. When the interface module 40 receives the notification sent by the slave controller, the interface module 40 will inquire about the current working status of the current main controller. If the main controller is in normal working condition, the interface module 40 will ignore the notification of the slave controller. If the slave controller does not receive a reply from the interface module 40 within a certain period of time, it will be determined that it has made a mistake in judgment and the main controller is still in normal working condition. It will add 8 to its own error counter. If the judgment is correct, the value of this counter will be cleared; if the main controller really fails, the interface module 40 will send a notification to the slave controller to inform it that the judgment is correct. In this way, the controller can be prevented from switching by mistake.

[0100] If a fault is detected in the connection between the controllers, both controllers will alarm and the slave controller will switch to the master controller. However, since only the connection between the controllers is faulty and the controllers themselves are not faulty, the interface module 40 will still send the output of the original master controller to the communication bus 30. This state will be maintained until the staff comes to repair the system.

[0101] In the embodiment, for the interface module 40 described in the above embodiment, the interface module 40 is connected to the first controller 10 and the second controller 20 at the same time, so as to realize the communication between the controller and the communication bus 30. In addition to this design structure, the interface module 40 can also be divided into two interface units to be connected to the two controllers respectively, so as to realize the data interaction between the controller and the communication bus 30.

[0102] Figure 3 Schematic diagram of a controller redundant system configuration interface module according to an embodiment of the present invention. Figure 3 As shown, the interface module 40 includes two interface units.

[0103] The first interface unit 47 is connected to the first controller 10 and is used to send the data processing results of the first controller 10. The first interface unit 47 acts as a communication bridge between the first controller 10 and the communication bus 30. When the first controller 10 completes the processing and analysis of the input data, it will generate corresponding output results. These output results may include control instructions, data transmission, status information, etc. The first interface unit 47 is responsible for sending these results to the communication bus 30 in the controller redundancy system so as to realize data interaction between the first controller 10 and the communication bus 30.

[0104] The second interface unit 48 is connected to the second controller 20 and is used to send the data processing results of the second controller 20. The second interface unit 48 acts as a communication bridge between the second controller 20 and the communication bus 30. When the second controller 20 completes the processing and analysis of the input data, it will generate corresponding output results. These output results may include control instructions, data transmission, status information, etc. The second interface unit 48 is responsible for sending these results to the communication bus 30 in the controller redundancy system, so as to realize data interaction between the second controller 20 and the communication bus 30.

[0105] The interface module 40 is designed as two interface units to realize the backup function in the controller redundancy system 1. If one interface unit is damaged, the other interface unit can still keep working, ensuring the stability and reliability of the system. At the same time, this can also improve the maintainability of the system, because when the interface unit needs to be repaired or replaced, the other interface unit can still be used to maintain the normal operation of the system, reducing downtime and impact.

[0106] In some embodiments, for a controller redundancy system 1 equipped with two interface units, the first controller 10 at this time also includes a ninth serial interface 15 and a fifth input-output interface 16. The first interface unit 47 includes a tenth serial interface 471 and a sixth input-output interface 472. The tenth serial interface 471 is connected to the ninth serial interface 15 to realize communication between the first interface unit 47 and the first controller 10. The sixth input-output interface 472 is connected to the fifth input-output interface 16 to obtain the first master authority information of the first controller 10.

[0107] In addition, if Figure 3 As shown, the first interface unit 47 also includes: a first bus controller 473 and a first bus transceiver 474 .

[0108] The first bus controller 473 is connected to the tenth serial interface 471 and the sixth input / output interface 472, and is used to obtain control data of the first controller 10, and to identify whether the first controller is the master controller according to the first master control authority information. The first bus transceiver 474 is connected to the first bus controller 473, and is used to send control data of the first controller 10.

[0109] Specifically, the first bus controller 473 is responsible for the acquisition and identification of control data, while the first bus transceiver 474 is responsible for the transmission of data. After the first bus controller 473 obtains the control data, it sends the data to the communication bus 30 through the first bus transceiver 474, so that other components connected to the communication bus 30 in the system can receive and process the data. Through the first bus controller 473 and the first bus transceiver 474, the first controller 10 can exchange and collaborate with other components connected to the communication bus 30 in real time, thereby realizing the control and automatic operation of the system.

[0110] Similarly, in some embodiments, for the controller redundancy system 1 equipped with two interface units, the second controller 20 at this time also includes the eleventh serial interface 25 and the seventh input-output interface 26. The second interface unit 48 has a twelfth serial interface 481 and an eighth input-output interface 482. The twelfth serial interface 481 is connected to the eleventh serial interface 25, and communication between the second interface and the second controller 20 can be achieved. The eighth input-output interface 482 is connected to the seventh input-output interface 26, and the second master control authority information of the second controller 20 can be obtained.

[0111] like Figure 3 As shown, the second interface unit 48 also includes: a second bus controller 483 and a second bus transceiver 484 .

[0112] The second bus controller 483 is connected to the twelfth serial interface 481 and the eighth input / output interface 482, and is used to obtain the control data of the second controller 20, and to identify whether the second controller 20 is the master controller according to the second master control authority information. The second bus transceiver 484 and the second bus controller 483 are used to send the control data of the second controller 20.

[0113] Specifically, the second bus controller 483 is responsible for the acquisition and identification of control data, while the second bus transceiver 484 is responsible for the transmission of data. After the second bus controller 483 obtains the control data, it sends the data to the communication bus 30 through the second bus transceiver 484, so that other components connected to the communication bus 30 in the system can receive and process the data. Through the second bus controller 483 and the second bus transceiver 484, the second controller 20 can exchange and collaborate with other components connected to the communication bus 30 in real time, thereby realizing the control and automatic operation of the system.

[0114] In some embodiments, the first interface unit 47 further includes a thirteenth serial interface 475 and a ninth input-output interface 476 . The second interface unit 48 further includes a fourteenth serial interface 485 and a tenth input-output interface 486 .

[0115] The thirteenth serial interface 475 is connected to the fourteenth serial interface 485 , and the ninth input / output interface 476 is connected to the tenth input / output interface 486 , so as to realize the communication between the first interface unit 47 and the second interface unit 48 .

[0116] like Figure 3 As shown, the controller redundancy system 1 further includes a second peripheral circuit module 60 and a third peripheral circuit module 70 .

[0117] The second peripheral circuit module 60 is respectively connected to the first controller 10 and the first interface unit 47. The third peripheral circuit module 70 is respectively connected to the second controller 20 and the second interface unit 48. The second peripheral circuit module 60 and the third peripheral circuit module 70 also include: a power module, a clock module and a reset module, so as to provide stable power supply, required clock signals and reset functions for the two controllers.

[0118] In general, the two controllers are connected to different interface units respectively, and the interface units are connected to the communication bus 30. Status detection signals will be sent between the controllers at regular intervals to ensure whether the other party is in normal working condition. Data will be transmitted in each working cycle, and a CRC checksum will be added at the end of the data to ensure the correctness and integrity of the data transmission.

[0119] When there is a problem in the communication between the slave controller and the master controller, the slave controller will make a final confirmation through all connections with the master controller. If all communication methods are invalid, it can be determined that the master controller may be powered off at present, and the slave controller will alarm and light up the corresponding fault indicator. If it is found through detection that the interface module 40 works normally but the controller does not work properly, it means that the controller itself may have a hardware failure. At this time, the slave controller will alarm and light up the corresponding fault indicator. When the two interface units communicate with each other or the interface unit detects the data of the communication bus 30, if the interface unit connected to the slave controller finds that there is a problem with the interface unit connected to the master controller, it will notify the slave controller, and the slave controller will then request the master controller to make a judgment.

[0120] In the embodiment, in addition to the two interface module 40 designs described in the above embodiments, the controller can also be directly connected to the communication bus 30. Although this design reduces redundancy, it can reduce costs.

[0121] Figure 4 is a schematic diagram of a controller directly connected to a communication bus according to an embodiment of the present invention, such as Figure 4As shown, in the controller redundancy system 1 without the interface module 40, the first controller 10 includes a third bus controller 17. At the same time, the system also includes a third bus transceiver 18, which is connected to the third bus controller 17, so as to realize the communication between the first controller 10 and the communication bus 30.

[0122] Specifically, the third bus controller 17 is a module inside the first controller 10, which is responsible for managing the communication between the first controller 10 and the third bus transceiver 18. When the first controller 10 needs to send control data to the communication bus 30, it can send the control data to the third bus transceiver 18 through the third bus controller 17, and the third bus transceiver 18 sends the control data to the communication bus 30. Similarly, when the first controller 10 needs to receive data from the communication bus 30, the third bus transceiver 18 can receive the data and send the data to the first controller 10.

[0123] In the embodiment, the second controller 20 includes a fourth bus controller 27. The controller redundancy system 1 also includes a fourth bus transceiver 28, which is connected to the fourth bus controller 27 to implement communication between the second controller 20 and the communication bus 30.

[0124] Specifically, the fourth bus controller 27 is a module inside the second controller 20, which is responsible for managing the communication between the second controller 20 and the fourth bus transceiver 28. When the second controller 20 needs to send data to the communication bus 30, it can send the data to the fourth bus transceiver 28 through the fourth bus controller 27, and the fourth bus transceiver 28 sends the data to the communication bus 30. Similarly, when the second controller 20 needs to receive data from the communication bus 30, the fourth bus transceiver 28 can receive the data and send the data to the second controller 20.

[0125] like Figure 4 As shown, the controller redundancy system 1 further includes: a fourth peripheral circuit module 80 and a fifth peripheral circuit module 90 .

[0126] The fourth peripheral circuit module 80 is connected to the first controller 10, and the fifth peripheral circuit module 90 is connected to the second controller 20. The fourth peripheral circuit module 80 and the fifth peripheral circuit module 90 also include: a power module, a clock module and a reset module.

[0127] In the embodiment, for the controller redundancy system 1 not equipped with the interface module 40, the present invention will also complete the detection of the states of the two controllers and the switching of the controllers by designing the software program. Of course, the controller will not be switched when any fault occurs. The controller will only be switched when the main controller fails, for example, the controller itself fails in hardware, or the communication bus 30 channel fails.

[0128] When the main control system fails, the slave controller determines whether the other controller fails by detecting its status signal and data synchronization terminal. If both are abnormal, an alarm will be immediately triggered and the controller will be switched to work as the main controller. When the main controller itself fails, it will still be detected according to the detection method when the power failure occurs. The slave controller can still determine whether the other controller fails by detecting the other controller's status signal and data synchronization terminal. If both the status signal and the data synchronization terminal are abnormal, an alarm will be immediately triggered and the controller will be switched. If the bus communication channel fails, when data transmission or reception is abnormal, it means that the bus communication channel may fail. At this time, a switching request can be submitted to the other controller. When the slave controller receives the switching request from the main controller, it will automatically switch to work as the main controller.

[0129] A vehicle according to an embodiment of a second aspect of the present invention will be described below.

[0130] Figure 5 is a schematic diagram of a vehicle according to an embodiment of the present invention, such as Figure 5 As shown, a vehicle 100 includes the controller redundancy system 1 described in the above embodiment.

[0131] According to the vehicle of the embodiment of the present invention, by adopting the controller redundancy system described in the above embodiment, the master control authority information and data processing results of the first controller and the second controller are obtained through the interface module, the master controller and the slave controller in the first controller and the second controller can be identified, and the data processing results of the master controller are output, thereby avoiding conflicts and errors caused by multiple controllers accessing and processing data at the same time. In addition, when the master controller fails or fails, the slave controller can quickly switch to the master controller to continue working, thereby ensuring the continuous operation of the control system and improving the safety and reliability of the system.

[0132] The following describes a controller redundancy system control method according to a third embodiment of the present invention, wherein the controller redundancy system comprises a first controller, a second controller and an interface module, and the interface module is connected to the first controller and the second controller respectively.

[0133] Figure 6 FIG. 1 is a flow chart of a controller redundant system control method according to an embodiment of the present invention. Figure 6As shown, the controller redundant system control method of the embodiment of the present invention at least includes the following steps S1-S3.

[0134] S1, obtaining data processing results of the first controller and the second controller through the interface module.

[0135] In some embodiments, when the interface module obtains data processing results of the first controller and the second controller, these data may be various types of information, such as sensor data, control instructions, status information, algorithm calculation results, etc., depending on the application and design of the system.

[0136] S2, obtaining the master control authority information of the first controller and the second controller through the interface module.

[0137] In some embodiments, the master control authority information may be information used to determine whether a certain controller has master control authority within a given time period. Through the decisions and instructions of the master controller, other controllers and components in the system coordinate and perform corresponding operations. The purpose of the master control authority information is to ensure that only one controller in the system is designated as the master controller, thereby avoiding conflicts and errors caused by multiple controllers accessing and processing data at the same time.

[0138] S3, the interface module determines the master controller of the first controller and the second controller according to the master control authority information, and outputs the data processing result of the master controller.

[0139] The reason for only outputting the data processing results of the main controller is to ensure the consistency and coordination of the system. If multiple controllers output their own data processing results, data inconsistency may occur, causing conflicts and confusion. This will undermine the stability and accuracy of the system and may even lead to incorrect control and unpredictable results. To avoid this, only outputting the data processing results of the main controller can ensure that each component in the system operates based on the same data, thereby achieving coordinated and consistent system behavior.

[0140] It should be noted that although only the data processing results of the main controller are output, this does not mean that the work of other controllers is meaningless. Other controllers may still be performing data processing and calculations, but their results are not directly used to control the overall behavior of the control system at this stage, but are coordinated and unified through the main controller. This design can make full use of the processing power and redundancy of multiple controllers to improve the reliability and performance of the system.

[0141] According to the controller redundant system control method of the embodiment of the present invention, based on the controller redundant system described in the above embodiment, a dual-controller architecture and an interface module are used for data interaction to ensure information synchronization between the first controller and the second controller. The master control authority information and data processing results of the first controller and the second controller are obtained through the interface module. The master controller and the slave controller in the first controller and the second controller can be identified, and the data processing results of the master controller are output, thereby avoiding conflicts and errors caused by multiple controllers accessing and processing data at the same time. Moreover, when the master controller fails or fails, the slave controller can quickly switch to the master controller to continue working, thereby ensuring the continuous operation of the control system and improving the safety and reliability of the system.

[0142] In some embodiments, the controller redundancy system further includes a communication bus, the communication bus is connected to the interface module, and the interface module outputs the data processing result of the main controller, including: the interface module outputs the data processing result of the main controller to the communication bus.

[0143] The communication bus can be an efficient data transmission medium, such as a serial bus or a parallel bus. It provides a centralized data exchange mechanism that allows multiple components to access and share data simultaneously. The interface module is responsible for outputting the data processing results of the main controller to the communication bus, and other components can obtain the results of the main controller by receiving and reading the data on the bus.

[0144] By outputting the data processing results of the main controller to the communication bus, the controller redundancy system realizes data interaction and sharing between the main controller and other components, promoting the coordination and overall control of the system. As a bridge connecting various components, the communication bus plays an important role in data transmission and communication.

[0145] In some embodiments, the controller redundancy system control method further includes: the master controller and the slave controller respectively obtain each other's status information and data processing results, and monitor the working status according to each other's status information and data processing results.

[0146] The status information may include the operating status of the controller, the progress of executing the task, the error status, etc. The data processing result may be the result obtained after the controller processes the input data, such as a calculation result, a control instruction, etc.

[0147] Specifically, by acquiring status information and data processing results from each other, the master controller and the slave controller can understand each other's working conditions, thereby realizing the monitoring and adjustment of the working conditions. This monitoring mechanism helps to improve the reliability and robustness of the system, and can timely discover and deal with potential problems to ensure the normal operation of the system.

[0148] In some embodiments, when the slave controller detects that the data processing result of the master controller is abnormal, it sends abnormal information to the master controller. The abnormal information may include abnormal type, error code, abnormal description, etc., so that the master controller can accurately understand what abnormal situation has occurred.

[0149] Specifically, when the master controller receives the abnormal information sent by the slave controller, it sends the data processing result to the interface module in response to the abnormal information. The interface module makes a judgment based on the received data processing result of the master controller to determine whether the working state of the master controller is normal. The judgment may involve checking the validity, consistency, range, etc. of the data processing result.

[0150] Furthermore, if the interface module determines that the working state of the main controller is normal, the data processing results of the main controller can continue to be sent to the communication bus for use by other components. If the interface module determines that the main controller has a first preset abnormality, a master-slave controller switching instruction can be sent to the current master controller and slave controller to trigger the controller switching operation.

[0151] In some embodiments, the first preset abnormality includes power failure of the main controller or hardware failure of the main controller itself.

[0152] Specifically, when the main controller loses power or a power failure causes a power outage, it cannot operate normally. This abnormal situation may occur in the case of a power failure, circuit failure, or power outage. A power outage will cause the main controller to stop working and be unable to continue processing data and executing control tasks.

[0153] Hardware failures of the main controller may include chip damage, circuit board failure, connector failure, etc. Such abnormalities may be caused by manufacturing defects, equipment aging, external interference, etc. Hardware failures can cause the main controller to fail to operate normally or produce incorrect data processing results.

[0154] In some embodiments, when a communication link between the master controller and the slave controller fails, they cannot transmit and communicate data normally.

[0155] Among them, communication failure may be caused by communication line damage, network interruption, communication protocol error, etc. This failure will cause the master controller and the slave controller to be unable to perform effective data transmission and information exchange, affecting the normal operation of the system.

[0156] Specifically, when the master controller and the slave controller detect a communication failure, both the master controller and the slave controller will trigger an alarm mechanism and send out an alarm signal. In addition, the authority identities of the current slave controller and the master controller can be switched with each other. By switching the roles of the master and slave controllers, the system can continue to control and operate, ensuring continuity and reliability.

[0157] In some embodiments, the interface module determines the status of the master controller and the slave controller to determine whether their working status is normal. When the interface module determines the status of the master controller and the slave controller inconsistently, it indicates that there is a difference between the two controllers, and a fault or error may have occurred.

[0158] Specifically, when the status judgment results of the master controller and the slave controller are inconsistent, the slave controller can record an error count, wherein the error count can be a counter for recording the number of errors that occur when the slave controller is inconsistent with the status judgment of the master controller.

[0159] Furthermore, the master controller may periodically detect the error count recorded by the slave controller. When the error count recorded by the slave controller reaches a preset count threshold, the master controller triggers an alarm mechanism and sends an alarm signal to notify the system operator or relevant personnel that a fault or error has occurred. At the same time, the master controller may request the slave controller to stop working to prevent the erroneous data processing results from further affecting the system.

[0160] In some embodiments, the interface module includes a first interface unit and a second interface unit, the first interface unit is connected to the first controller, and the second interface unit is connected to the second controller.

[0161] The first interface unit can obtain the data processing result and the first master control authority information of the first controller, and judge whether the first controller is the master controller according to the first master control authority information. The second interface unit can obtain the data processing result and the second master control authority information of the second controller, and judge whether the second controller is the master controller according to the second master control authority information.

[0162] The first interface unit and the second interface unit perform data exchange and master control judgment with the first controller and the second controller respectively. This design can realize the parallel operation and redundant backup of multiple controllers in the controller redundancy system, and determine who is the master controller by judging the master control authority information of each controller.

[0163] In some embodiments, the first interface unit and the second interface unit can be divided according to the judgment result of the master control authority information, one of which is a master interface unit and the other is a slave interface unit. If the first interface unit determines that the first controller is the master controller according to the first master control authority information, the first interface unit is the master interface unit and the second interface unit is the slave interface unit. If the second interface unit determines that the second controller is the master controller according to the second master control authority information, the second interface unit is the master interface unit and the first interface unit is the slave interface unit.

[0164] Specifically, the slave controller can monitor whether the data processing result of the master controller is abnormal. When the slave controller detects that the data processing result of the master controller is abnormal, it can send abnormal information to the master controller. After receiving the abnormal information, the master controller processes the abnormality and sends the data processing result to the master interface unit. The master interface unit determines the working state of the master controller based on the received data processing result. If the master interface unit determines that the master controller is normal, it continues to output the data processing result of the master controller. If the master interface unit determines that the master controller has a second preset abnormality, it sends a master-slave controller switching instruction to the slave interface unit, and the slave interface unit sends a switching instruction to the slave controller to switch the current master controller and the master control authority of the slave controller.

[0165] In some embodiments, the second preset abnormality includes power failure of the main controller or hardware failure of the main controller itself.

[0166] Specifically, when the main controller loses power or a power failure causes a power outage, it cannot operate normally. This abnormal situation may occur in the case of a power failure, circuit failure, or power outage. A power outage will cause the main controller to stop working and be unable to continue processing data and executing control tasks.

[0167] Hardware failures of the main controller may include chip damage, circuit board failure, connector failure, etc. Such abnormalities may be caused by manufacturing defects, equipment aging, external interference, etc. Hardware failures can cause the main controller to fail to operate normally or produce incorrect data processing results.

[0168] In some embodiments, the controller redundant system control method further includes: respectively acquiring interface status information of the slave interface unit and the master interface unit from each other, and determining each other's working status according to the interface status information.

[0169] The interface status information may include information on connection status, communication status, data transmission, etc. If the interface status information is normal, it means that the communication and data transmission between the interface units are normal, and the working status can also be judged as normal. If the interface status information is abnormal, it may indicate that there are connection failures, communication failures, or data transmission errors between the interface units, and the working status may be abnormal.

[0170] In some embodiments, the slave interface unit can monitor the working state and fault condition of the master interface unit in real time. When the slave interface unit detects that the master interface unit has a fault, such as a connection interruption, communication abnormality or other fault condition, the slave interface unit can send the master interface fault information to the corresponding slave controller. The master interface fault information may include the fault type, fault code, fault description, etc., so that the slave controller can understand the fault condition of the master interface unit.

[0171] Further, after receiving the main interface fault information from the controller, it is forwarded to the main controller. The main controller can actively obtain the interface status information of the main interface unit according to the received main interface fault information. By obtaining the interface status information, the main controller can accurately evaluate the working status of the main interface unit and take corresponding measures to handle the fault or switch the operation.

[0172] In the description of this specification, the description with reference to the terms "one embodiment", "some embodiments", "illustrative embodiments", "examples", "specific examples", or "some examples" means that the specific features, structures, materials, or characteristics described in conjunction with the embodiment or example are included in at least one embodiment or example of the present invention. In this specification, the schematic representation of the above terms does not necessarily refer to the same embodiment or example.

[0173] Although the embodiments of the present invention have been shown and described, it will be appreciated by those skilled in the art that various changes, modifications, substitutions and variations may be made to the embodiments without departing from the principles and spirit of the present invention, and that the scope of the present invention is defined by the claims and their equivalents.

Claims

1. A controller redundancy system, It is characterized in that include: A first controller and a second controller, wherein one of the first controller and the second controller is a master controller and the other is a slave controller; An interface module, wherein the interface module is connected to the first controller and the second controller respectively, and is used to obtain data processing results of the first controller and the second controller, and obtain master control authority information of the first controller and the second controller, identify the master controller and the slave controller in the first controller and the second controller according to the master control authority information, and output the data processing results of the master controller.

2. The controller redundancy system according to claim 1, It is characterized in that The controller redundancy system further comprises: A communication bus is connected to the interface module, and the interface module outputs the data processing result of the main controller to the communication bus.

3. The controller redundancy system according to claim 1 or 2, It is characterized in that The first controller includes a first data interface, and the second controller includes a second data interface; The first data interface is connected to the second data interface to achieve data synchronization and mutual status detection between the first controller and the second controller.

4. The controller redundancy system according to claim 2, It is characterized in that The first data interface includes a first serial interface and a second serial interface; The second data interface includes a third serial interface and a fourth serial interface; The first serial interface is connected to the third serial interface to implement the interaction of control data between the first controller and the second controller; The second serial interface is connected to the fourth serial interface to implement the interaction of working status signals between the first controller and the second controller.

5. The controller redundancy system according to claim 1, It is characterized in that The first controller includes a fifth serial interface and a first input-output interface; The interface module comprises: a sixth serial interface, the sixth serial interface being connected to the fifth serial interface to implement data interaction between the interface module and the first controller; A second input / output interface, wherein the second input / output interface is connected to the first input / output interface to obtain the master control authority information of the first controller.

6. The controller redundancy system according to claim 5, It is characterized in that The second controller includes a seventh serial interface and a third input and output interface; The interface module comprises: an eighth serial interface, the eighth serial interface being connected to the seventh serial interface to implement communication between the interface module and the second controller; A fourth input / output interface, wherein the fourth input / output interface is connected to the third input / output interface to obtain the master control authority information of the second controller.

7. The controller redundancy system according to claim 6, It is characterized in that The interface module comprises: a bus control unit, the bus control unit being connected to the sixth serial interface, the second input / output interface, the eighth serial interface and the fourth input / output interface respectively, and being used for acquiring control data of the first controller and / or the second controller, or sending bus information to the first controller and / or the second controller, and identifying a master controller according to master control authority information; A bus transceiver unit, which is connected to the bus control unit and is used to send control data of the first controller and / or the second controller.

8. The controller redundancy system according to claim 7, It is characterized in that The controller redundancy system further includes a first peripheral circuit module, and the first peripheral circuit module is connected to the interface module.

9. The controller redundancy system according to claim 1, It is characterized in that The interface module comprises: a first interface unit, the first interface unit being connected to the first controller and being used to send a data processing result of the first controller; A second interface unit, wherein the second interface unit is connected to the second controller and is used to send a data processing result of the second controller.

10. The controller redundancy system according to claim 9, It is characterized in that The first controller also includes a ninth serial interface and a fifth input-output interface; The first interface unit comprises: a tenth serial interface, the tenth serial interface being connected to the ninth serial interface to implement communication between the first interface unit and the first controller; A sixth input / output interface, wherein the sixth input / output interface is connected to the fifth input / output interface to obtain first master control authority information of the first controller.

11. The controller redundancy system according to claim 10, It is characterized in that The first interface unit also includes: a first bus controller, the first bus controller being connected to the tenth serial interface and the sixth input / output interface, and being used for acquiring control data of the first controller, and identifying whether the first controller is the master controller according to the first master control authority information; A first bus transceiver is connected to the first bus controller and is used to send control data of the first controller.

12. The controller redundancy system according to claim 9, It is characterized in that The second controller also includes an eleventh serial interface and a seventh input-output interface; The second interface unit comprises: a twelfth serial interface, the twelfth serial interface being connected to the eleventh serial interface to implement communication between the second interface and the second controller; An eighth input-output interface, wherein the eighth input-output interface is connected to the seventh input-output interface to obtain the second master control authority information of the second controller.

13. The controller redundancy system according to claim 12, It is characterized in that The second interface unit also includes: a second bus controller, the second bus controller being connected to the twelfth serial interface and the eighth input / output interface, and being used for acquiring control data of the second controller, and identifying whether the second controller is the master controller according to the second master control authority information; A second bus transceiver is connected to the second bus controller and is used to send control data of the second controller.

14. The controller redundancy system according to claim 9, It is characterized in that The controller redundancy system further comprises: A second peripheral circuit module, wherein the second peripheral circuit module is connected to the first controller and the first interface unit respectively; A third peripheral circuit module is connected to the second controller and the second interface unit respectively.

15. The controller redundancy system according to claim 2, It is characterized in that The first controller also includes a third bus controller; The controller redundancy system further includes a third bus transceiver, and the third bus transceiver is connected to the third bus controller to implement communication between the first controller and the communication bus.

16. The controller redundancy system according to claim 15, It is characterized in that The second controller also includes a fourth bus controller; The controller redundancy system further includes a fourth bus transceiver, which is connected to the fourth bus controller to implement communication between the second controller and the communication bus.

17. The controller redundancy system according to claim 16, It is characterized in that The controller redundancy system further comprises: a fourth peripheral circuit module, wherein the fourth peripheral circuit module is connected to the first controller; A fifth peripheral circuit module is connected to the second controller.

18. The controller redundancy system according to claim 1, It is characterized in that The controller redundancy system further comprises: A first alarm module, the first alarm module is connected to the first controller and is used to alarm when a failure occurs in the first controller or the second controller; A second alarm module, wherein the second alarm module is connected to the second controller and is used for generating an alarm when a failure occurs in the second controller or the first controller.

19. A vehicle, It is characterized in that A controller redundancy system comprising any one of claims 1-18.

20. A controller redundant system control method, It is characterized in that The controller redundancy system includes a first controller, a second controller and an interface module, wherein the interface module is connected to the first controller and the second controller respectively, and the controller redundancy system control method includes: The interface module obtains data processing results of the first controller and the second controller; The interface module obtains master control authority information of the first controller and the second controller; The interface module determines a master controller between the first controller and the second controller according to the master control authority information, and outputs a data processing result of the master controller.

21. The controller redundant system control method according to claim 20, It is characterized in that The controller redundancy system further includes a communication bus, which is connected to the interface module, and the interface module outputs the data processing result of the main controller, including: the interface module outputs the data processing result of the main controller to the communication bus.

22. The controller redundant system control method according to claim 20, It is characterized in that The controller redundancy system control method further includes: The master controller and the slave controller respectively obtain each other's state information and data processing results, and monitor the working state according to each other's state information and the data processing results.

23. The controller redundant system control method according to claim 22, It is characterized in that The controller redundancy system control method further includes: When the slave controller detects that the data processing result of the master controller is abnormal, the slave controller sends abnormal information to the master controller; The main controller sends the data processing result to the interface module in response to the abnormal information; The interface module determines the working state of the main controller according to the data processing result; When the interface module determines that the main controller is normal, the interface module continues to send the data processing results of the main controller to the communication bus, or, when the interface module determines that the main controller has a first preset abnormality, the interface module sends a master-slave controller switching instruction to the current master controller and the slave controller.

24. The controller redundant system control method according to claim 23, It is characterized in that The first preset abnormality includes power failure of the main controller or hardware failure of the main controller itself.

25. The controller redundant system control method according to claim 24, It is characterized in that The controller redundancy system control method further includes: When a communication failure occurs between the master controller and the slave controller, both the master controller and the slave controller send out an alarm, and the authority identities of the current slave controller and the master controller are switched to each other.

26. The controller redundant system control method according to claim 23, It is characterized in that The controller redundancy system control method further includes: When the state judgment result of the interface module on the master controller is inconsistent with the state judgment result of the slave controller on the master controller, the slave controller records an error count; When the master controller detects that the error count recorded by the slave controller reaches a count threshold, an alarm is issued, and the slave controller stops working.

27. The controller redundant system control method according to claim 22, It is characterized in that The interface module includes a first interface unit and a second interface unit, the first interface unit is connected to the first controller, and the second interface unit is connected to the second controller. The controller redundancy system control method further includes: The first interface unit obtains the data processing result and first master control authority information of the first controller, and determines whether the first controller is a master controller according to the first master control authority information; The second interface unit obtains the data processing result and second master control authority information of the second controller, and determines whether the second controller is a master controller according to the second master control authority information.

28. The controller redundant system control method according to claim 27, It is characterized in that When the first interface unit determines that the first controller is a master controller according to the first master control authority information, the first interface unit is a master interface unit and the second interface unit is a slave interface unit, or when the second interface unit determines that the second controller is a master controller according to the second master control authority information, the second interface unit is a master interface unit and the first interface unit is a slave interface unit; The controller redundancy system control method further includes: When the slave controller detects that the data processing result of the master controller is abnormal, the slave controller sends abnormal information to the master controller; The main controller sends the data processing result to the main interface unit in response to the abnormal information; The main interface unit determines the working state of the main controller according to the data processing result; When the master interface unit determines that the master controller is normal, the master interface unit continues to output the data processing results of the master controller, or, when the master interface unit determines that the master controller has a second preset abnormality, the master interface unit sends a master-slave controller switching instruction to the slave interface unit, and the slave interface unit sends a switching instruction to the slave controller to switch the master control authority of the current master controller and the slave controller.

29. The controller redundant system control method according to claim 28, It is characterized in that The second preset abnormality includes power failure of the main controller or hardware failure of the main controller itself.

30. The controller redundant system control method according to claim 29, It is characterized in that The controller redundancy system control method further includes: The slave interface unit and the master interface unit respectively obtain each other's interface status information, and determine each other's working status according to the interface status information.

31. The controller redundant system control method according to claim 30, It is characterized in that The controller redundancy system control method further includes: When the slave interface unit detects that the master interface unit fails, it sends master interface failure information to the slave controller; The slave controller sends the master interface fault information to the master controller; The main controller obtains the interface status information of the main interface unit to determine the working status of the main interface unit.

Citation Information

Patent Citations

  • Digital steering engine control system with scalable redundancy and shaft number and breakdown switching method

    CN103838230A

  • High-stability control system redundancy system and method

    CN104597814A

  • High-voltage frequency converter dual-controller redundant topology structure and control method

    CN110932645A

  • Main control station and hot standby redundancy control method thereof

    CN114355760A

  • Power module control system and method, electronic device and storage medium

    CN115561992A

Cited By

  • Method for redundancy control of controller, computing device and storage medium

    CN119472234A

  • Method, computing device, and storage medium for redundant control of a controller

    CN119472234B

  • Control system of safety controller, safety controller and subsea Christmas tree

    CN119668161A

  • Redundant control system for safety controller, safety controller and subsea tree

    CN119668161B

  • System and method for determining fault level of chassis domain controller

    CN120428698A