Vehicle-mounted annunciator control method and system based on dual-control redundancy design

The on-board signal control method with dual control redundancy design solves the problem of insufficient fault tolerance of traditional signals in train operation, achieves efficient and reliable signal processing and failover, adapts to the complex and changeable rail transit environment, and improves improve the stability and reliability of the system.

CN118770307APending Publication Date: 2024-10-15SHANGHAI INST OF TECH

Patent Information

Application Number
CN202410642341.2
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-05-23
Publication Date
2024-10-15

AI Technical Summary

Technical Problem

The traditional communication method of train dispatching system has the problems of simple structure, single function and low reliability, which results in insufficient fault tolerance and anti-interference ability of the signal machine during train operation, slow response speed, and inability to meet the complex and changing needs of rail transit.

Method used

Adopting a vehicle-mounted signal control method based on dual control redundancy design, through automatic synchronization, real-time monitoring and fault diagnosis of the first and second control modules, arbitration logic judgment and switching processing are realized to ensure that the system is safe when one control module fails. Seamlessly switch to another module to ensure continuous operation and efficient response of the signal machine.

Benefits of technology

It enhances the signal's fault tolerance and reliability, improves fault recovery capabilities and work efficiency, ensures safe and efficient operation of trains, adapts to complex and changeable rail transit environments, optimizes resource utilization and power consumption management, and provides better Great flexibility and maintainability, reducing system complexity.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118770307A_ABST
    Figure CN118770307A_ABST
Patent Text Reader

Abstract

The invention discloses a vehicle-mounted annunciator control method and system based on dual-control redundancy design, and the method comprises the steps: obtaining a data instruction to a first control module, and carrying out the data analysis and signal control; the information is automatically synchronized to the second control module and is sent to the vehicle-mounted signal machine to complete instruction operation; the working state is monitored in real time, if abnormity occurs, fault diagnosis is carried out, and if an unrepaired fault exists, a switching signal is sent to the second control module; and the second control module receives the switching signal, takes over work, feeds back and records state information, and performs fault recording and analysis. The system can be seamlessly switched to the other control module when one control module breaks down, continuous operation of the vehicle-mounted signal machine is ensured, logic arbitration is achieved, the states of the two monitoring modules are monitored and judged, the switching opportunity is determined, the autonomy and stability of the system can be enhanced, and the reliability of the system is improved. Meanwhile, resource utilization and power consumption management can be optimized, and flexibility and maintainability are improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of vehicle-mounted equipment, and in particular to a vehicle-mounted signal control method and system based on dual control redundancy design. Background Art

[0002] Rail transit wireless on-board signal is a communication device designed for rail transit train command and dispatch. Its main function is to continuously obtain the location information and status information of moving vehicles, and send this information to the dispatch center through the communication network. At the same time, it can receive dispatch instructions from the dispatch center at any time and guide the train to respond accordingly. Its existence plays a very important role in improving transportation efficiency and ensuring driving safety. In case of special circumstances, it can also be handled in time through the signal.

[0003] With the continuous expansion of urban scale and the increasing development of rail transit, the traditional communication mode of the train dispatching system can no longer meet the needs of the industry. The problems of simple structure, single function and low reliability of the on-board subsystem have restricted the development of the entire system. In view of the problems of long single-core processing time and slow response speed of existing signal machines, the present invention designs a vehicle-mounted signal machine control method based on dual MCU redundancy, so that it has stronger fault tolerance and reliability, can better adapt to the complex and changeable train operation conditions, and send various signals in a timely and accurate manner to ensure the safe and efficient operation of trains. Summary of the invention

[0004] The purpose of this section is to summarize some aspects of embodiments of the present invention and briefly introduce some preferred embodiments. Some simplifications or omissions may be made in this section and the specification abstract and the invention title of this application to avoid blurring the purpose of this section, the specification abstract and the invention title, and such simplifications or omissions cannot be used to limit the scope of the present invention.

[0005] In view of the above existing problems, the present invention is proposed. Therefore, the present invention provides a vehicle-mounted signal control method based on dual control redundancy design to solve the problem of how to enhance the fault tolerance and anti-interference ability of the signal during train operation, improve its fault recovery ability, and improve its working efficiency.

[0006] In order to solve the above technical problems, the present invention provides the following technical solutions:

[0007] In a first aspect, the present invention provides a vehicle signal control method based on dual control redundancy design, comprising:

[0008] Acquire data instructions from external sensors or devices, transmit them to the first control module, perform data analysis and signal control, and store the processed data;

[0009] Based on the data processed by the first control module, the data is automatically synchronized to the second control module, the first control module and the second control module work simultaneously, and the processed command signal is sent to the on-board signal machine to complete the command operation;

[0010] Monitor the working status of the first control module and the second control module in real time, and if an abnormality occurs in the first control module, perform fault diagnosis, perform arbitration logic judgment according to the fault diagnosis result, and if there is an unrepaired fault, send a switching signal to the second control module to start the switching process;

[0011] The second control module receives the switching signal and takes over the work of the first control module, feeds back and records the status information, performs continuous monitoring through arbitration logic judgment, and performs fault recording and analysis according to the fault diagnosis.

[0012] As a preferred solution of the vehicle signal control method based on dual control redundancy design described in the present invention, the automatic synchronization of the first control module and the second control module includes:

[0013] The automatic synchronization includes clock, state and data synchronization. The first control module and the second control module are powered on at the same time. When the task start instruction of the first control module reaches the second control module, the second control module is notified to start the task and enter the working mode at the same time.

[0014] The first control module resets the second control module through a reset signal connected to the second control module, and the second control module resets the first control module by controlling the non-shieldable signal of the first control module.

[0015] As a preferred solution of the vehicle signal control method based on dual control redundancy design described in the present invention, the abnormality includes:

[0016] Real-time monitoring of the working status includes heartbeat signal monitoring, operating status parameter monitoring, response speed monitoring, and communication connection status monitoring;

[0017] The heartbeat signal monitoring includes: the first control module sends the heartbeat signal to the second control module according to a preset period, and determines whether the second control module receives the heartbeat signal within a preset receiving time threshold;

[0018] The response speed monitoring includes: the first control module sends a response signal after receiving the instruction data, monitors the response time of the first control module in real time, and determines whether the response time exceeds a preset threshold;

[0019] The communication connection status monitoring includes completing the transmission of a data packet through the communication connection when the data of the first control module is processed or stored, and determining whether the monitoring communication data packet is complete;

[0020] The operating status parameter monitoring includes determining whether parameter abnormalities occur based on the operating parameters regularly reported by the first control module, including CPU usage and memory usage parameters.

[0021] As a preferred solution of the vehicle signal control method based on dual control redundancy design described in the present invention, the fault diagnosis includes:

[0022] Perform preliminary detection, including heartbeat signal and response speed detection. If the heartbeat signal is missing, record the time and frequency. If the command response time exceeds the preset threshold, record the command type and response time.

[0023] Obtain an error log through the log records of the first control module, analyze the error codes and events in the log, and read whether there are key error events in the log;

[0024] Detect whether communication data packets are lost or damaged, and count the number of communication errors;

[0025] Read and record the CPU usage and memory usage parameters of the first control module;

[0026] Perform a self-check on the hardware and software of the first control module to check whether there is a hardware or software fault.

[0027] As a preferred solution of the vehicle signal control method based on dual control redundancy design described in the present invention, the arbitration logic judgment includes:

[0028] According to the fault diagnosis result, it is determined that the first control module has a fault, and the fault diagnosis is repeated by sending a heartbeat signal request again and re-reading the status. If it is determined again that the fault exists, the first control module is repaired;

[0029] Performing a soft restart on the first control module to restore normal operation, detecting and releasing resources occupied by the first control module, and recording the type and frequency of the fault problem;

[0030] If the fault is repaired successfully, continue to monitor the working status of the first control module and the second control module in real time;

[0031] If the fault is not repaired successfully, the repair result is determined by arbitration logic, and a switching signal is generated and sent. After receiving the switching signal, the second control module takes over the work of the first control module and continues to complete data analysis and signal control.

[0032] As a preferred solution of the vehicle signal control method based on dual control redundancy design described in the present invention, wherein:

[0033] After the switching process is completed, the first control module is further diagnosed, a module isolation test is performed, the functions of the first control module are disabled one by one, and each functional unit is tested individually to determine the faulty module;

[0034] The second control module synchronizes the status information of the first control module, compares the operating status of the two, determines whether it is a separate fault, and monitors the judgment record through arbitration logic to determine the accuracy of fault detection;

[0035] Based on the fault diagnosis results, a fault report is generated, including detection steps, fault problems, repair data and final diagnosis results.

[0036] As a preferred solution of the vehicle signal control method based on dual control redundancy design described in the present invention, the fault recording and analysis includes:

[0037] Based on the data information of the fault event, the fault log is stored, and the state information of the first control module and the second control module when the fault occurs is recorded, and the relevant operating parameters and environmental data are saved;

[0038] Analyze the recorded fault logs, preliminarily determine the cause of the fault and the scope of impact, and conduct an in-depth analysis of the fault in combination with the operating status and monitoring records of the second control module to obtain analysis results;

[0039] Based on the analysis results, determine whether the hardware or software is faulty, and perform repairs, replacements, or patch repairs. After the repair is complete, perform a comprehensive test and perform performance tuning and improvement on the system.

[0040] In a second aspect, the present invention provides a vehicle signal control system based on a dual control redundancy design, comprising:

[0041] The microprocessor module is used to obtain data instructions from external sensors or devices, transmit them to the first control module, perform data analysis and signal control, and store the processed data;

[0042] An embedded chip module, used for automatically synchronizing to a second control module based on data processed by the first control module, the first control module and the second control module working simultaneously, and sending a processed command signal to the on-board signal machine to complete the command operation;

[0043] An arbitration logic judgment module, used for monitoring the working status of the first control module and the second control module in real time, and if an abnormality occurs in the first control module, performing a fault diagnosis, performing an arbitration logic judgment according to the fault diagnosis result, and if an unrepaired fault exists, sending a switching signal to the second control module to start the switching process;

[0044] The fault processing module is used for the second control module to receive the switching signal and take over the work of the first control module, feedback the status information and record it, perform continuous monitoring through arbitration logic judgment, and perform fault recording and analysis according to the fault diagnosis.

[0045] In a third aspect, the present invention provides an electronic device, comprising:

[0046] Memory and processor;

[0047] The memory is used to store computer executable instructions, and the processor is used to execute the computer executable instructions. When the computer executable instructions are executed by the processor, the steps of the vehicle signal control method based on dual control redundancy design are implemented.

[0048] In a fourth aspect, the present invention provides a computer-readable storage medium storing computer-executable instructions, which, when executed by a processor, implement the steps of the vehicle signal control method based on dual control redundancy design.

[0049] Compared with the prior art, the present invention has the following beneficial effects: the present invention has redundant backup and arbitration switching, which ensures that the system can seamlessly switch to another control module when a control module fails, ensuring the continuous operation of the on-board signal, realizing arbitration logic, monitoring and judging the status of the two monitoring modules, and deciding the timing of switching, which can enhance the autonomy and stability of the system, and enable the signal to achieve real-time response more efficiently, which is very valuable for application scenarios such as urban rail transit that have high requirements for continuous operation of the communication system and cannot tolerate fault interruptions; at the same time, it can optimize resource utilization and power consumption management, and the modular design allows each part of the system to be independently developed, tested and maintained, providing greater flexibility and maintainability, while giving full play to the advantages of each part, it can save costs, improve the integration and safety of the control panel, and help reduce the complexity of the overall system. The advantages of modular design and independent functional modules reduce the coupling between the parts in the system and improve the stability and reliability of the system. BRIEF DESCRIPTION OF THE DRAWINGS

[0050] In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the following briefly introduces the drawings required for describing the embodiments. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative labor. Among them:

[0051] Figure 1 A schematic diagram of the overall process of a vehicle signal control method based on dual control redundancy design according to an embodiment of the present invention;

[0052] Figure 2 A schematic diagram of a dual MCU redundant control principle of a vehicle signal control system based on a dual control redundant design according to an embodiment of the present invention;

[0053] Figure 3 A schematic diagram of dual MCU redundant control hardware configuration of a vehicle signal control system based on dual control redundant design according to an embodiment of the present invention;

[0054] Figure 4 A schematic diagram of the communication between the master and slave MCUs of a vehicle signal control system based on a dual control redundancy design according to an embodiment of the present invention;

[0055] Figure 5 A schematic diagram of redundant switching of a data selector of a vehicle signal control system based on a dual control redundancy design according to an embodiment of the present invention;

[0056] Figure 6 A schematic diagram of the master-slave MCU synchronization process of a vehicle signal control system based on a dual control redundancy design according to an embodiment of the present invention;

[0057] Figure 7 It is a schematic diagram of a system reliability simulation curve of a vehicle signal control system based on a dual control redundancy design according to an embodiment of the present invention. DETAILED DESCRIPTION

[0058] In order to make the above-mentioned purposes, features and advantages of the present invention more obvious and easy to understand, the specific implementation methods of the present invention are described in detail below in conjunction with the drawings of the specification. Obviously, the described embodiments are part of the embodiments of the present invention, but not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary persons in the art without creative work should fall within the scope of protection of the present invention.

[0059] In the following description, many specific details are set forth to facilitate a full understanding of the present invention, but the present invention may also be implemented in other ways different from those described herein, and those skilled in the art may make similar generalizations without violating the connotation of the present invention. Therefore, the present invention is not limited to the specific embodiments disclosed below.

[0060] Secondly, the term "one embodiment" or "embodiment" as used herein refers to a specific feature, structure, or characteristic that may be included in at least one implementation of the present invention. The term "in one embodiment" that appears in different places in this specification does not necessarily refer to the same embodiment, nor does it refer to a separate or selective embodiment that is mutually exclusive with other embodiments.

[0061] The present invention is described in detail with reference to schematic diagrams. When describing the embodiments of the present invention, for the sake of convenience, the cross-sectional diagrams showing the device structure will not be partially enlarged according to the general scale, and the schematic diagrams are only examples, which should not limit the scope of protection of the present invention. In addition, in actual production, the three-dimensional dimensions of length, width and depth should be included.

[0062] At the same time, in the description of the present invention, it should be noted that the directions or positional relationships indicated by the terms "upper, lower, inner and outer" are based on the directions or positional relationships shown in the drawings, and are only for the convenience of describing the present invention and simplifying the description, rather than indicating or implying that the device or element referred to must have a specific direction, be constructed and operated in a specific direction, and therefore cannot be understood as limiting the present invention. In addition, the terms "first, second or third" are only used for descriptive purposes and cannot be understood as indicating or implying relative importance.

[0063] In the present invention, unless otherwise clearly specified and limited, the terms "install, connect, connect" should be understood in a broad sense, for example: it can be a fixed connection, a detachable connection or an integral connection; it can also be a mechanical connection, an electrical connection or a direct connection, or it can be indirectly connected through an intermediate medium, or it can be the internal communication of two components. For ordinary technicians in this field, the specific meanings of the above terms in the present invention can be understood according to specific circumstances.

[0064] Example 1

[0065] Reference Figure 1-6 , is an embodiment of the present invention, and provides a vehicle signal control method based on dual control redundancy design, comprising:

[0066] S100, acquiring data instructions from an external sensor or device, transmitting the data to a first control module, performing data analysis and signal control, and storing the processed data.

[0067] The acquired data is transmitted to the first control module through the communication interface with the first control module, data analysis and signal control include analyzing data, executing operations, etc., and data is stored for backup and subsequent analysis.

[0068] In this embodiment, the first control module and the second control module perform the same task, one master and one slave, and use DMA automatic transmission to interact with data. Real-time data synchronization and decision algorithms are used to maintain data consistency. DMA automatically transmits data, which reduces the burden on the first control module and improves data transmission efficiency and stability. The automatic synchronization includes:

[0069] Automatic synchronization includes clock, state and data synchronization. The first control module and the second control module are powered on at the same time. When the task start instruction of the first control module reaches the second control module, the second control module is notified to start the task and enter the working mode at the same time.

[0070] The first control module resets the second control module through a reset signal connected to the second control module, and the second control module resets the first control module by controlling the non-shield signal of the first control module. No matter which of the two control modules sends an error, the other one can reset it, thereby improving the reliability of the signal machine.

[0071] Specifically, the upper computer transmits data signals to the host. When both the first control module and the second control module are working normally, the two control modules receive relevant data synchronously, but only the first control module is responsible for the main output signal to the lower computer, and the second control module is in a monitoring preparation state, only receiving external information, and is in a silent state for information sending, ready to take over the work at any time. In order to allow the task initialization of the two control modules to start synchronously, the master and slave MCUs must be powered on at the same time, and when the task start instruction of the first control module arrives, the second control module is notified to start the task, so that the second control module enters the working mode at the same time.

[0072] S200, based on the data processed by the first control module, the data is automatically synchronized to the second control module, the first control module and the second control module work simultaneously, and the processed command signal is sent to the on-board signal machine to complete the command operation.

[0073] Specifically, after the first control module completes the data output, it sends it to the embedded chip. The embedded chip parses the data and converts it into corresponding instructions, and sends the instructions to the signal machine to make it perform corresponding operations, such as controlling the signal machine to perform group calls, point calls, etc.

[0074] S300, monitor the working status of the first control module and the second control module in real time. If an abnormality occurs in the first control module, perform fault diagnosis, and make arbitration logic judgment based on the fault diagnosis result. If there is an unrepaired fault, send a switching signal to the second control module to start the switching process.

[0075] In this embodiment, when the first control module responsible for the main output fails, the second control module takes over and becomes the main output, and the first control module originally responsible for the main output automatically becomes the backup output after the fault is repaired and is on standby at any time, which can reduce the host switching frequency and improve the real-time performance of the communication system.

[0076] Furthermore, real-time monitoring of working status includes heartbeat signal monitoring, operating status parameter monitoring, response speed monitoring, and communication connection status monitoring;

[0077] Heartbeat signal monitoring includes: the first control module sends a heartbeat signal to the second control module according to a preset period, and determines whether the second control module receives the heartbeat signal within a preset receiving time threshold. Preferably, the preset period is 30 minutes, and the preset receiving time threshold is 2 minutes;

[0078] Response speed monitoring includes: the first control module sends a response signal after receiving the instruction data, monitors the response time of the first control module in real time, and determines whether the response time exceeds a preset threshold. Preferably, the preset threshold of the response time is 30s;

[0079] The communication connection status monitoring includes completing the transmission of the data packet through the communication connection when the data of the first control module is processed or stored, determining whether the communication data packet is complete, and detecting whether the data packet is lost or damaged;

[0080] The operation status parameter monitoring includes the operation parameters regularly reported by the first control module, including CPU usage and memory usage parameters, monitoring these status parameters, and determining whether there are parameter abnormalities, such as a continuously high CPU usage, memory leaks, etc.

[0081] Further, the fault diagnosis includes:

[0082] Perform preliminary detection, including heartbeat signal and response speed detection. If the heartbeat signal is missing, record the time and frequency. If the command response time exceeds the preset threshold, record the command type and response time.

[0083] Obtain error logs through the log records of the first control module, analyze error codes and events in the logs, and read whether there are key error events in the logs, including memory leaks, CPU overloads, communication failures, etc.;

[0084] Detect whether the communication data packets are lost or damaged, and count the number of communication errors, including the number of retransmissions, CRC check failures, etc.

[0085] Read and record the CPU usage and memory usage parameters of the first control module. If they are continuously too high, it may indicate that the system is overloaded. If memory leaks or is insufficient, record the relevant information.

[0086] Perform self-check on the hardware and software of the first control module to check whether there are hardware or software faults. Run the hardware self-check program of the main MCU to check whether there are hardware faults, such as abnormal voltage, overtemperature, etc.; run the software self-check program to check whether there are software abnormalities, such as program dead loop, resource lock, etc.

[0087] Furthermore, arbitration logic judgment includes:

[0088] According to the fault diagnosis result, it is determined that the first control module has a fault, and the fault diagnosis is repeated by sending a heartbeat signal request again and re-reading the status to avoid misjudgment. If it is confirmed that there is a fault again, the first control module is repaired;

[0089] Perform a soft restart on the first control module to restore normal operation, detect and release the resources occupied by the first control module, clear resource locks that may cause problems, and record the type and frequency of fault problems;

[0090] If the fault is repaired successfully, continue to monitor the working status of the first control module and the second control module in real time;

[0091] If the fault is not repaired successfully, the repair result is determined by arbitration logic, and a switching signal is generated and sent. After receiving the switching signal, the second control module takes over the work of the first control module and continues to complete data analysis and signal control. At the same time, the status information of the two control modules is fed back and the switching event is recorded for subsequent analysis and maintenance.

[0092] It should be noted that when a control module responsible for the main output fails, another control module takes over and becomes the main output. The MCU originally responsible for the main output automatically becomes the backup output after the fault is repaired and is on standby at all times. This can reduce the host switching frequency and improve the real-time performance of the communication system.

[0093] After the second control module takes over the work of the first control module, it maintains the working state of the system until the second control module fails, avoiding frequent switching, reducing system interruption and energy loss, and ensuring data synchronization and disturbance-free switching. If the second control module fails, the system will continue to monitor the status of the first control module and switch when necessary to ensure the continuity and stability of the system.

[0094] Preferably, after the switching process is completed, the first control module is further diagnosed, a module isolation test is performed, the functions of the first control module are disabled one by one, and each functional unit is tested individually to determine the faulty module;

[0095] The second control module synchronizes the status information of the first control module, compares the operating status of the two, determines whether it is a single fault, and monitors the judgment record through arbitration logic to determine the accuracy of fault detection;

[0096] Based on the fault diagnosis results, a fault report is generated, including detection steps, fault problems, repair data and final diagnosis results.

[0097] It should be noted that in the redundant system, when the first control module fails, it is necessary to ensure that it can switch to the second control module in a timely and accurate manner. At this time, the second control module has control of the system and can achieve the same load state before and after the redundant switching. The corresponding signal output by the faulty channel will not interfere with the controlled equipment, thus achieving disturbance-free switching. The master-slave switching method of the dual control modules can achieve real-time redundant fault tolerance, and can seamlessly switch when the first control module fails, ensuring the continuity and reliability of the system. At the same time, the configuration of the dual control modules can improve the computing power and reliability of the system, further enhance the effect of redundant fault tolerance, and enable the on-board signal machine to provide services more intelligently and conveniently.

[0098] S400, the second control module receives the switching signal and takes over the work of the first control module, feeds back the status information and records it, performs continuous monitoring through arbitration logic judgment, and performs fault recording and analysis according to fault diagnosis.

[0099] In this embodiment, fault recording and analysis include:

[0100] Based on the data information of the fault event, including the time of the fault, the type of fault, the detected abnormal situation, etc., the fault log is stored and saved to a persistent storage device to ensure that the data will not be lost. At the same time, the status information of the first control module and the second control module when the fault occurs is recorded, including CPU usage, memory usage, communication status, etc., and relevant operating parameters and environmental data, including temperature, voltage, etc., are saved;

[0101] Analyze the recorded fault logs, preliminarily determine the cause of the fault and the scope of impact, check whether there are similar historical fault records to identify potential systemic problems, conduct in-depth analysis of the fault in combination with the operating status and monitoring records of the second control module, and use diagnostic tools to conduct detailed analysis of the fault logs to obtain analysis results;

[0102] According to the analysis results, determine whether it is a hardware or software failure, perform repairs or replacements, or perform repair patches. After the repair is completed, conduct a comprehensive test, and perform performance tuning and improvement on the system to improve system stability and performance. This includes optimizing code, adjusting system parameters, and upgrading hardware components. Preferably, if the cause of the failure is a hardware problem, arrange for repair or replacement of the faulty hardware component, check other related hardware components, and prevent similar problems from happening again; if the cause of the failure is a software problem, develop and test a repair patch, deploy the repair patch, and conduct a comprehensive test to ensure that the system returns to normal. If the cause of the failure is a system architecture or configuration problem, make adjustments and optimizations, and update the system configuration file to ensure stable system operation.

[0103] It should be noted that the present invention has redundant backup and arbitration switching, which ensures that the system can seamlessly switch to another control module when a control module fails, ensuring the continuous operation of the on-board signal machine, and can realize arbitration logic, monitor and judge the status of the two monitoring modules, and decide the timing of switching, which can enhance the autonomy and stability of the system, and enable the signal machine to achieve real-time response more efficiently, which is very valuable for application scenarios such as urban rail transit that have high requirements for continuous operation of the communication system and cannot tolerate fault interruptions; at the same time, it can optimize resource utilization and power consumption management, and the modular design allows each part of the system to be independently developed, tested and maintained, providing greater flexibility and maintainability. While giving full play to the advantages of each part, it can save costs, improve the integration and safety of the control panel, and help reduce the complexity of the overall system. The advantages of modular design and independent functional modules reduce the coupling between the parts of the system and improve the stability and reliability of the system.

[0104] Applying redundant control to on-board signal communication can improve the reliability, stability and anti-interference ability of communication, thereby ensuring the safe transmission of data and the normal operation of the system, providing users with a better service experience.

[0105] The above is a schematic scheme of a vehicle signal control method based on dual control redundancy design in this embodiment. It should be noted that the technical scheme of the vehicle signal control method based on dual control redundancy design and the technical scheme of the vehicle signal control method based on dual control redundancy design mentioned above belong to the same concept. For details not described in detail in the technical scheme of the vehicle signal control method based on dual control redundancy design in this embodiment, please refer to the description of the technical scheme of the vehicle signal control method based on dual control redundancy design mentioned above.

[0106] In this embodiment, the vehicle signal control system based on the dual control redundancy design is as follows: Figure 2-3 ,include:

[0107] The microprocessor module is used to obtain data instructions from external sensors or devices, transmit them to the first control module, perform data analysis and signal control, and store the processed data;

[0108] The embedded chip module is used to automatically synchronize to the second control module based on the data processed by the first control module, so that the first control module and the second control module work simultaneously and send the processed command signal to the on-board signal machine to complete the command operation;

[0109] An arbitration logic judgment module is used to monitor the working status of the first control module and the second control module in real time. If an abnormality occurs in the first control module, a fault diagnosis is performed, and an arbitration logic judgment is performed according to the fault diagnosis result. If an unrepaired fault exists, a switching signal is sent to the second control module to start the switching process;

[0110] The fault processing module is used for the second control module to receive the switching signal and take over the work of the first control module, feedback the status information and record it, perform continuous monitoring through arbitration logic judgment, and record and analyze the fault according to fault diagnosis.

[0111] In this embodiment, the system adopts a rail transit dedicated signal machine body and a control board containing dual MCUs and an embedded intelligent chip. The control board adopts a dual MCU+CPLD structure. In the microprocessor module, the first control module is the main MCU and the second control module is the slave MCU. On the principle of not increasing a lot of costs, the peripheral circuits are shared and only a set of parallel core processing units is added. The dual MCUs are connected through a serial port, the CPLD is used to realize arbitration switching, the embedded intelligent chip is used to communicate with the signal machine, and the external power supply shares a set. The dual MCUs cooperate in parallel to complete data processing operations and system control.

[0112] The arbitration logic judgment module performs arbitration logic judgment through the hardware driver chip CPLD component, monitors the status of the master MCU and the slave MCU in real time, and is used to realize arbitration switching. The data communication diagram between the master and slave MCUs is shown in the figure. Figure 4 , CPLD components use a two-choice data selector to input and output data, such as Figure 5 As shown, the output interfaces of the two channels of the CPLD are connected to the data selector. According to the result of the arbitration logic judgment, a certain data path is selected by the data selector to be output to the embedded chip module.

[0113] Preferably, the dual MCUs use DMA (Direct Memory Access, DMA) automatic transmission to exchange data, and a button KEY1 that can stop the system is designed at the PA0 pin of the main MCU. The PA0 pin is externally connected to a pull-down resistor, one end of the button is connected to the PA0 pin, and the other end is connected to a 3.3V high level. When the button is pressed, the PA0 pin changes from a low level to a high level, and whether the button is pressed is detected by setting a hardware interrupt on the pin.

[0114] The system also includes a data acquisition module, which is used to cyclically collect positioning data, decode the data, and transmit it to the data storage module; a data storage module, which is used to receive and store data from the data acquisition module, receive instructions sent by the microprocessor module, and output a response signal; a power supply module, which is used to supply power to each module. Each module is connected through a motherboard for internal interconnection.

[0115] Specifically, the data acquisition module is responsible for acquiring data from external sensors or devices, and the acquired data is transmitted to the main MCU through the communication interface with the main MCU. When the main MCU receives the data, it processes the data and controls the system. The processed result data is stored in the data storage module for backup and subsequent analysis. At the same time, after the main MCU processes the instructions and data, it automatically synchronizes the result data to the slave MCU through DMA, such as Figure 6 As shown, master-slave MCU synchronization is achieved to ensure data synchronization and consistency between the dual MCUs. DMA automatically transmits data, reducing the burden on the master MCU and improving data transmission efficiency and stability. The main MCU's DMA loop collects positioning data, and a 512-byte buffer is opened in the main MCU's memory to store positioning data. The DMA transmission half and full transmission completion interrupts are set. When the interrupt occurs, the corresponding half of the data is taken away and the interrupt is cleared, so that the main MCU can handle other tasks of the system. At the same time, in order to avoid data overwriting problems in DMA transmission, the DMA transmission completion interrupt is directly cleared when the last positioning data has not been processed. The NEMA decoding library is used to decode the original positioning data to obtain positioning information such as speed, GPS time, and positioning accuracy.

[0116] Data storage module, in order to ensure the continuous operation of MCU and avoid data loss, uses Micro SD card to store the main MCU data. The main MCU and Micro SD card use SDIO (Secure Digital Input and Output, SDIO) to communicate. Micro SD card has 9 communication interfaces, including 3 power interfaces, 1 clock line interface, 4 data line interfaces and 1 command line interface. Use 3.3V voltage to power the data storage module, add 10K pull-up resistors to each data line and command line interface to increase the stability of the module. The DAT0, DAT1, DAT2, and DAT3 pins of the SD card storage module are connected to the PC8, PC9, PC10, and PC11 of the main MCU respectively for reading and writing data. When the SD card is in a busy state, the D0 pin is pulled low, indicating that it is being used. The CLK pin of the data storage module is connected to the PC12 pin of the core processor, and the core processor generates a timing signal to ensure the normal communication. The CMD pin of the data storage module is connected to the PD2 pin of the core processor. The core processor sends commands to the data storage module through this pin and can also receive response signals from the data storage module.

[0117] The embedded chip module is also a communication module. It communicates with the signal machine through the UART interface. When receiving the output command, it sends the command to the signal machine to operate the signal machine. It adopts the TTL serial port communication method and establishes a TCP remote connection with the host computer through the serial port AT command.

[0118] When the system detects an abnormality in the main MCU, it starts fault diagnosis to determine the specific cause of the fault. When the fault is confirmed and cannot be repaired immediately, the system switches the master and slave MCUs. The arbitration logic judgment module determines to switch to the slave MCU and sends the corresponding switching instructions. The switching instructions are transmitted to related modules, including data acquisition modules, data storage modules, etc., and their working states are switched to the slave MCU. The slave MCU takes over the tasks of the main MCU and starts to execute system control and data processing functions. The system records the fault event for subsequent fault analysis and maintenance, and restores to the redundant working mode of the dual MCU after repair.

[0119] After the slave MCU takes over the work of the main MCU, it maintains the working state of the system until the slave MCU fails, avoiding frequent MCU switching, reducing system interruptions and energy losses, while ensuring data synchronization and disturbance-free switching. If the slave MCU fails, the system will continue to monitor the status of the main MCU and switch when it fails to ensure the continuity and stability of the system.

[0120] This embodiment further provides an electronic device, which is applicable to the case of vehicle signal control based on dual control redundancy design, including:

[0121] A memory and a processor; the memory is used to store computer executable instructions, and the processor is used to execute computer executable instructions to implement the vehicle signal control method based on dual control redundancy design as proposed in the above embodiment.

[0122] This embodiment further provides a storage medium on which a computer program is stored. When the program is executed by a processor, the vehicle signal control method based on dual control redundancy design proposed in the above embodiment is implemented.

[0123] The storage medium proposed in this embodiment and the vehicle signal control method based on dual control redundancy design proposed in the above embodiment belong to the same inventive concept. The technical details not described in detail in this embodiment can be referred to the above embodiment, and this embodiment has the same beneficial effects as the above embodiment.

[0124] Through the above description of the implementation methods, the technicians in the relevant field can clearly understand that the present invention can be implemented by means of software and necessary general hardware, and of course it can also be implemented by hardware, but in many cases the former is a better implementation method. Based on such an understanding, the technical solution of the present invention is essentially or the part that contributes to the prior art can be embodied in the form of a software product, and the computer software product can be stored in a computer-readable storage medium, such as a computer floppy disk, read-only memory (ReadOnly, Memory, ROM), random access memory (RandomAccessMemory, RAM), flash memory (FLASH), hard disk or optical disk, etc., including a number of instructions for a computer device (which can be a personal computer, server, or network device, etc.) to perform the methods of various embodiments of the present invention.

[0125] Example 2

[0126] Reference Figure 7 , which is an embodiment of the present invention, provides a vehicle signal control method based on dual control redundancy design. In order to verify its beneficial effects, comparison results of two schemes are provided.

[0127] The reliability of the vehicle signal control method based on dual control redundancy design of the present invention is simulated and analyzed. The change of system reliability during the period of 0 to 1×104h is simulated and analyzed. The simulation results are as follows: Figure 7 As shown, R1(t) in the figure is a system reliability simulation curve of a single-core processor that does not adopt dual MCU redundancy technology, and R2(t) is a reliability simulation curve of a dual MCU redundant system designed by the present invention.

[0128] Through Figure 7 From the analysis of the two reliability curves, it can be seen that the reliability of the system without redundant technology decreases significantly with time. In contrast, the reliability of the dual MCU redundant control system designed by the present invention decreases very slowly with time, especially within the first 2000 hours, it can maintain a high reliability. Taking the system reliability of 0.95 as the evaluation standard, the trouble-free operation time of the system without redundant technology is only about 600 hours, and the trouble-free operation time of the redundant system designed by the present invention is about 2400 hours, which is 4 times as high as the former. From the above analysis, it can be seen that the vehicle signal control method of the dual MCU redundant communication control of the present design can significantly improve the reliability of the system and achieve the purpose of achieving high reliability.

[0129] It should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention and are not intended to limit the present invention. Although the present invention has been described in detail with reference to the preferred embodiments, those skilled in the art should understand that the technical solutions of the present invention may be modified or replaced by equivalents without departing from the spirit and scope of the technical solutions of the present invention, which should all be included in the scope of the claims of the present invention.

Claims

1. A vehicle signal control method based on dual control redundancy design, characterized in that: include: Acquire data instructions from external sensors or devices, transmit them to the first control module, perform data analysis and signal control, and store the processed data; Based on the data processed by the first control module, the data is automatically synchronized to the second control module, the first control module and the second control module work simultaneously, and the processed command signal is sent to the on-board signal machine to complete the command operation; Monitor the working status of the first control module and the second control module in real time, and if an abnormality occurs in the first control module, perform fault diagnosis, perform arbitration logic judgment according to the fault diagnosis result, and if there is an unrepaired fault, send a switching signal to the second control module to start the switching process; The second control module receives the switching signal and takes over the work of the first control module, feeds back and records the status information, performs continuous monitoring through arbitration logic judgment, and performs fault recording and analysis according to the fault diagnosis.

2. The vehicle signal control method based on dual control redundancy design according to claim 1 is characterized in that: The automatic synchronization between the first control module and the second control module includes: The automatic synchronization includes clock, state and data synchronization. The first control module and the second control module are powered on at the same time. When the task start instruction of the first control module reaches the second control module, the second control module is notified to start the task and enter the working mode at the same time. The first control module resets the second control module through a reset signal connected to the second control module, and the second control module resets the first control module by controlling the non-shieldable signal of the first control module.

3. The vehicle signal control method based on dual control redundancy design according to claim 1 or 2, characterized in that: The abnormal occurrences include: Real-time monitoring of the working status includes heartbeat signal monitoring, operating status parameter monitoring, response speed monitoring, and communication connection status monitoring; The heartbeat signal monitoring includes: the first control module sends the heartbeat signal to the second control module according to a preset period, and determines whether the second control module receives the heartbeat signal within a preset receiving time threshold; The response speed monitoring includes: the first control module sends a response signal after receiving the instruction data, monitors the response time of the first control module in real time, and determines whether the response time exceeds a preset threshold; The communication connection status monitoring includes completing the transmission of a data packet through the communication connection when the data of the first control module is processed or stored, and determining whether the monitoring communication data packet is complete; The operating status parameter monitoring includes determining whether parameter abnormalities occur based on the operating parameters regularly reported by the first control module, including CPU usage and memory usage parameters.

4. The vehicle signal control method based on dual control redundancy design as claimed in claim 3 is characterized in that: The fault diagnosis includes: Perform preliminary detection, including heartbeat signal and response speed detection. If the heartbeat signal is missing, record the time and frequency. If the command response time exceeds the preset threshold, record the command type and response time. Obtain an error log through the log records of the first control module, analyze the error codes and events in the log, and read whether there are key error events in the log; Detect whether communication data packets are lost or damaged, and count the number of communication errors; Read and record the CPU usage and memory usage parameters of the first control module; Perform a self-check on the hardware and software of the first control module to check whether there is a hardware or software fault.

5. The vehicle signal control method based on dual control redundancy design as claimed in claim 4, characterized in that: The arbitration logic judgment includes: According to the fault diagnosis result, it is determined that the first control module has a fault, and the fault diagnosis is repeated by sending a heartbeat signal request again and re-reading the status. If it is determined again that the fault exists, the first control module is repaired; Performing a soft restart on the first control module to restore normal operation, detecting and releasing resources occupied by the first control module, and recording the type and frequency of the fault problem; If the fault is repaired successfully, continue to monitor the working status of the first control module and the second control module in real time; If the fault is not repaired successfully, the repair result is determined by arbitration logic, and a switching signal is generated and sent. After receiving the switching signal, the second control module takes over the work of the first control module and continues to complete data analysis and signal control.

6. The vehicle signal control method based on dual control redundancy design as claimed in claim 5, characterized in that: After the switching process is completed, the first control module is further diagnosed, a module isolation test is performed, the functions of the first control module are disabled one by one, and each functional unit is tested individually to determine the faulty module; The second control module synchronizes the status information of the first control module, compares the operating status of the two, determines whether it is a separate fault, and monitors the judgment record through arbitration logic to determine the accuracy of fault detection; Based on the fault diagnosis results, a fault report is generated, including detection steps, fault problems, repair data and final diagnosis results.

7. The vehicle signal control method based on dual control redundancy design according to claim 1 or 6, characterized in that: The fault record and analysis include: Based on the data information of the fault event, the fault log is stored, and the state information of the first control module and the second control module when the fault occurs is recorded, and the relevant operating parameters and environmental data are saved; Analyze the recorded fault logs, preliminarily determine the cause of the fault and the scope of impact, and conduct an in-depth analysis of the fault in combination with the operating status and monitoring records of the second control module to obtain analysis results; Based on the analysis results, determine whether the hardware or software is faulty, and perform repairs, replacements, or patch repairs. After the repair is complete, perform a comprehensive test and perform performance tuning and improvement on the system.

8. A vehicle signal control system based on dual control redundancy design, applied to the vehicle signal control method based on dual control redundancy design as claimed in any one of claims 1 to 7, characterized in that: include, The microprocessor module is used to obtain data instructions from external sensors or devices, transmit them to the first control module, perform data analysis and signal control, and store the processed data; An embedded chip module, used for automatically synchronizing to a second control module based on data processed by the first control module, the first control module and the second control module working simultaneously, and sending a processed command signal to the on-board signal machine to complete the command operation; An arbitration logic judgment module, used for monitoring the working status of the first control module and the second control module in real time, and if an abnormality occurs in the first control module, performing a fault diagnosis, performing an arbitration logic judgment according to the fault diagnosis result, and if an unrepaired fault exists, sending a switching signal to the second control module to start the switching process; The fault processing module is used for the second control module to receive the switching signal and take over the work of the first control module, feedback the status information and record it, perform continuous monitoring through arbitration logic judgment, and perform fault recording and analysis according to the fault diagnosis.

9. An electronic device, comprising: Memory and processor; The memory is used to store computer executable instructions, and the processor is used to execute the computer executable instructions. When the computer executable instructions are executed by the processor, the steps of the vehicle signal control method based on dual control redundancy design as described in any one of claims 7 to 8 are implemented.

10. A computer-readable storage medium storing computer-executable instructions, which, when executed by a processor, implement the steps of the vehicle signal control method based on dual control redundancy design as described in any one of claims 7 to 8.

Citation Information

Patent Citations

  • Control system and method supporting redundancy switching function

    CN103955188A

  • Arbitration mode-based dual-redundancy hot backup system

    CN107065830A

  • Marine redundancy control system and method

    CN115913906A

  • Vehicle-mounted platform based on embedded software redundancy

    CN117002562A

Cited By

  • 3D printing method and system for redundant continuous production of double industrial personal computers

    CN119187610A

  • Data output system and control method of trackside safety platform, electronic equipment and storage medium

    CN119389277A

  • Shipborne satellite communication antenna key device automatic detection and switching system

    CN119788161A

  • Rail transit signal controller control system based on big data

    CN119975471A

  • Double-PLC redundant backup method and system

    CN120276364A