Processor state non-contact monitoring method, module and system based on operating temperature
By monitoring the operating temperature and ambient temperature of the processor to determine its abnormal conditions, the problem of insufficiently accurate processor monitoring in the existing technology is solved, and reliable non-contact monitoring of the processor status and timely abnormality detection are achieved.
Patent Information
- Application Number
- CN202210011018.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-01-06
- Publication Date
- 2024-10-22
- Estimated Expiration
- 2042-01-06
AI Technical Summary
Existing processor monitoring methods cannot accurately determine the overall operating status of the processor, especially when part of the processor is abnormal or the signal line is disconnected, and traditional watchdog circuits are difficult to distinguish processor frequency offset problems, resulting in unreliable monitoring.
By obtaining the operating temperature and ambient temperature of the processor, calculate the temperature rise value, determine whether there is an abnormality in the processor, use the temperature change cycle and temperature rise value range to determine the health status of the processor, and perform reset processing when necessary.
It realizes non-contact monitoring of the status of the processor, improves the accuracy and reliability of monitoring, can detect abnormal conditions of the processor in a timely manner, and avoids the risk of disconnection through non-contact methods.
Smart Images

Figure CN114518183B_ABST
Abstract
Description
Technical Field
[0001] The invention belongs to the field of computer technology, and in particular relates to a method, module and system for non-contact monitoring of processor status based on operating temperature. Background Art
[0002] A fail-safe computer (hereinafter referred to as a safe computer) is defined as a computer with a 2-out-of-2 architecture. A 2-out-of-2 architecture means that each system has two processors (homogeneous or heterogeneous). Each processor performs the same function and compares the operating results at a fixed period. Only when the operating results of the two processors are consistent, the device controlled by the computer can output. When the comparison is inconsistent or any processor fails, the system will cut off the output and fall to the safe side, which is usually manifested as an emergency stop of the train on the railway.
[0003] Since the operating environment of rail transit safety computers is usually unattended, in order to avoid a processor crash or abnormal situation, each processor usually needs to be monitored. The traditional method uses a watchdog circuit for monitoring, that is, the processor periodically sends a dynamic waveform to the watchdog circuit, that is, a "feed the dog" signal. If the watchdog circuit does not receive the feed the dog signal within a certain period of time, it will reset and restart the processor by pulling down the processor's reset signal.
[0004] The processor is the intelligent device of the entire system. It can easily monitor other functional units in the system, but it cannot monitor its own status. In addition, modern high-performance processors are very complex structures with various abnormal conditions. It is difficult to comprehensively judge the overall status of a high-performance processor by monitoring a certain variable. Processor monitoring has always been a difficult point.
[0005] The development trend of modern trains is to continuously increase the speed, shorten the departure interval, and make the equipment monitoring more comprehensive. The processor, as the core computing unit of the equipment, has also become more computationally demanding. It is often necessary to use high-performance processors of X86 and ARM architectures and install operating systems for multi-threaded management. As the overall complexity increases, the number of freezes and downtimes increases, and status monitoring becomes more important.
[0006] At present, the processor monitoring method is usually: the processor regularly sends a dynamic "feeding dog" signal to the "watchdog" circuit. If the watchdog circuit does not receive the feeding dog signal within a certain period of time, it will reset the processor by pulling down the processor's reset signal. However, the existing methods are based on the normal operation or complete failure of the processor. If a specific part of the processor is abnormal, or the signal line is broken, it will affect the accuracy of processor monitoring.
[0007] The current processor monitoring method has the following defects:
[0008] A. The processor's "feed dog" signal and the watchdog's reset signal may be disconnected, and reliable monitoring and reset cannot be guaranteed;
[0009] B. The processor is actually composed of many functional units and co-processors. Currently, it is impossible to fully determine whether the overall operation of the processor is normal by only relying on the periodic "feed the dog" signal. For example, if the main program has crashed but the co-timer still generates a "feed the dog" signal, the watchdog circuit still believes that the processor is working normally;
[0010] C. Since the traditional watchdog feeding timing threshold is very large, even if the processor operating frequency has a large deviation, the watchdog still determines that the processor is working normally and cannot distinguish the processor frequency deviation problem. Summary of the invention
[0011] In view of the above problems, the present invention proposes a method, module and system for non-contact monitoring of processor status based on operating temperature changes. By monitoring the operating temperature of the processor, the operating status of the processor of a secure computer can be monitored without contact or connection.
[0012] The present invention discloses a non-contact monitoring method of a processor state based on operating temperature, comprising the following steps:
[0013] Obtain the standard cycle of the processor's operating temperature and the temperature rise value safety threshold range;
[0014] Obtaining the real-time operating temperature of the processor;
[0015] Determining whether the processor is in an abnormal condition according to the real-time operating temperature, the standard cycle, and the temperature rise value safety threshold range;
[0016] The temperature rise value is calculated based on the operating temperature of the processor and the ambient temperature of the processor.
[0017] Furthermore, the step of determining whether the processor is abnormal includes:
[0018] Calculating and obtaining a measured temperature rise value of the processor according to the real-time operating temperature;
[0019] Determining whether the measured temperature rise value is within the temperature rise value safety threshold range;
[0020] When the measured temperature rise value exceeds the temperature rise value safety threshold range and reaches a first threshold, analyzing whether the real-time operating temperature changes periodically:
[0021] When the real-time operating temperature shows a periodic change, it is determined that the leakage current of the processor increases, and it is determined that the health of the processor decreases;
[0022] When the real-time operating temperature does not present a periodic change, it is determined that the processor has a first abnormal condition.
[0023] Furthermore, the first abnormal condition is a failure of a minimum unit of the processor; wherein the minimum unit of the processor includes: a processor body, a power management chip, a clock, a RAM and a ROM.
[0024] Further,
[0025] When the measured temperature rise value is lower than the temperature rise value safety threshold range and reaches a second threshold, it is determined that the processor has a second abnormal condition.
[0026] Further, when the second abnormal condition occurs, it is analyzed whether the real-time operating temperature changes periodically:
[0027] When the real-time operating temperature shows periodic changes, determining that the second abnormal condition is that part of the processor function is running;
[0028] When the real-time operating temperature does not present a periodic change, it is determined that the second abnormal condition is that the processor stops working.
[0029] Further, when the measured temperature rise value is within the temperature rise value safety threshold range, the measurement period of the real-time operating temperature change is calculated and obtained according to the real-time operating temperature;
[0030] Determine whether the time deviation between the measurement period and the standard period is greater than a third threshold,
[0031] When the time deviation between the measurement period and the standard period is greater than a third threshold, it is determined that a third abnormal condition exists in the processor.
[0032] Furthermore, the third abnormal condition includes crystal oscillator frequency deviation, software freeze and processor internal failure.
[0033] Further,
[0034] When the time deviation between the measurement period and the standard period does not exceed a third threshold, checking whether the processor receives a dog feeding signal;
[0035] When it is confirmed that the dog feeding signal is received, it is determined that the processor works normally;
[0036] Otherwise, it is determined that the processor has a fourth abnormal condition.
[0037] Furthermore, after the step of determining whether the processor is in an abnormal condition, the method further includes the following steps:
[0038] When it is determined that the processor is in an abnormal condition, resetting the processor through a reset signal;
[0039] and after resetting the processor by using a reset signal, determining whether the processor is in an abnormal condition;
[0040] When the processor still has an abnormal condition, the power supply circuit of the processor is disconnected through a relay to forcibly reset the processor.
[0041] Furthermore, it is characterized in that
[0042] The operating temperature of the processor is measured and collected by at least two sets of collection equipment respectively, and the real-time operating temperature is calculated and obtained;
[0043] The ambient temperature of the processor is collected by a temperature detection device arranged at a position far away from the processor.
[0044] The present invention also provides a processor state non-contact monitoring module based on operating temperature, comprising:
[0045] A first acquisition unit is used to acquire a standard cycle of the processor operating temperature and a temperature rise value safety threshold range;
[0046] A second acquisition unit, used to acquire the real-time operating temperature of the processor;
[0047] A first judgment unit, configured to judge whether the processor is in an abnormal condition according to the real-time operating temperature, the standard cycle and the temperature rise value safety threshold range;
[0048] The temperature rise value is calculated based on the operating temperature of the processor and the ambient temperature of the processor.
[0049] Furthermore, the first determination unit implements the following steps when determining whether the processor is abnormal:
[0050] Calculating and obtaining a measured temperature rise value of the processor according to the real-time operating temperature;
[0051] Determining whether the measured temperature rise value is within the temperature rise value safety threshold range;
[0052] When the measured temperature rise value exceeds the temperature rise value safety threshold range and reaches a first threshold, analyzing whether the real-time operating temperature changes periodically:
[0053] When the real-time operating temperature shows a periodic change, it is determined that the leakage current of the processor increases, and it is determined that the health of the processor decreases;
[0054] When the real-time operating temperature does not present a periodic change, it is determined that the processor has a first abnormal condition.
[0055] Furthermore, the first abnormal condition is a failure of a minimum unit of the processor; wherein the minimum unit of the processor includes: a processor body, a power management chip, a clock, a RAM and a ROM.
[0056] Furthermore, the first determination unit implements the following steps when determining whether the processor is abnormal:
[0057] When the measured temperature rise value is lower than the temperature rise value safety threshold range and reaches a second threshold, it is determined that the processor has a second abnormal condition.
[0058] Furthermore, the first determination unit implements the following steps when determining whether the processor is abnormal:
[0059] When the real-time operating temperature shows periodic changes, determining that the second abnormal condition is that part of the processor function is running;
[0060] When the real-time operating temperature does not present a periodic change, it is determined that the second abnormal condition is that the processor stops working.
[0061] Furthermore, the first determination unit implements the following steps when determining whether the processor is abnormal:
[0062] When the measured temperature rise value is within the temperature rise value safety threshold range, calculating and obtaining a measurement period of the real-time operating temperature change according to the real-time operating temperature;
[0063] Determine whether the time deviation between the measurement period and the standard period is greater than a third threshold,
[0064] When the time deviation between the measurement period and the standard period is greater than a third threshold, it is determined that a third abnormal condition exists in the processor.
[0065] Furthermore, the third abnormal condition includes crystal oscillator frequency deviation, software freeze and processor internal failure.
[0066] Furthermore, the first determination unit implements the following steps when determining whether the processor is abnormal:
[0067] When the time deviation between the measurement period and the standard period does not exceed a third threshold, checking whether the processor receives a dog feeding signal;
[0068] When it is confirmed that the dog feeding signal is received, it is determined that the processor works normally;
[0069] Otherwise, it is determined that the processor has a fourth abnormal condition.
[0070] Furthermore, the monitoring module also includes:
[0071] A first reset unit, configured to reset the processor through a reset signal when it is determined that the processor is in an abnormal condition;
[0072] a second judging unit, configured to judge whether the processor is in an abnormal condition after the first resetting unit resets the processor;
[0073] The second resetting unit is used to disconnect the power supply circuit of the processor through a relay to forcibly reset the processor when the second judging unit judges that the processor still has an abnormal condition.
[0074] The present invention also provides a non-contact monitoring system for processor status based on operating temperature, comprising the monitoring module of the present invention, and also comprising a first temperature sensor, a second temperature sensor, a third temperature sensor and a relay respectively connected to the monitoring module by signal;
[0075] The first temperature sensor and the second temperature sensor are arranged at intervals within the power ground copper area of the processor, and the first temperature sensor and the second temperature sensor are redundant with each other and are used to measure the operating temperature of the processor when it is working;
[0076] The third temperature sensor is arranged at a position far away from the processor and is used to collect the ambient temperature of the processor.
[0077] The relay is arranged on the power supply circuit of the processor and is used for switching on or off the power supply circuit of the processor.
[0078] The present invention discloses a non-contact monitoring method, module and system for processor status based on operating temperature. The method utilizes the periodic working characteristics of the safety computer to extract the temperature, which is a factor that can objectively reflect the working condition of the processor. The method adopts a non-contact processor monitoring method to monitor the operating condition of the processor, and can obtain the abnormal condition of the processor in real time. The method of the present invention does not conventionally consider the overheating of the processor, but monitors the operating condition of the processor from the variation cycle of the operating temperature of the processor and the law of the temperature rise amplitude, which is closer to the actual condition of the operating condition of the processor, and the monitoring result is safer and more reliable.
[0079] Other features and advantages of the present invention will be described in the following description, and partly become apparent from the description, or understood by practicing the present invention. The purpose and other advantages of the present invention can be realized and obtained by the structures pointed out in the description, claims and drawings. BRIEF DESCRIPTION OF THE DRAWINGS
[0080] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the following briefly introduces the drawings required for use in the embodiments or the description of the prior art. Obviously, the drawings described below are some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.
[0081] Figure 1 A flow chart of a method for non-contact monitoring of processor status based on operating temperature according to an embodiment of the present invention is shown;
[0082] Figure 2 A schematic diagram of the structure of a processor state non-contact monitoring module based on operating temperature according to an embodiment of the present invention is shown;
[0083] Figure 3 A schematic diagram of the structure of a non-contact monitoring system for processor status based on operating temperature according to an embodiment of the present invention is shown;
[0084] Figure 4 A flow chart of a processor status monitoring and exception handling method according to an embodiment of the present invention is shown. DETAILED DESCRIPTION
[0085] In order to make the purpose, technical solution and advantages of the embodiments of the present invention clearer, the technical solution in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0086] Rail transit equipment platform equipment usually uses a 2-in-2 structure safety computer, which is a cage plug-in structure. The two processors are located on different boards and in different positions of the cage. Each board is independently powered and communicates through isolated serial buses such as Ethernet and SPI (Serial Peripheral Interface).
[0087] The safety computer needs a fixed period to perform functional calculations and compare calculation results, usually in a period of 50-250ms. Therefore, the calculation volume of the safety computer will increase every 50-250ms. Since the calculation volume is proportional to the heat generated by the processor (the calculation volume is proportional to the power consumption, and the power consumption of the processor is finally converted into heat energy), the heat generated by the safety computer also changes periodically. Through observation and comparison with high-speed temperature sensors, the temperature change cycle around the safety computer processor is exactly the same as the processor operation cycle, and the temperature difference between operation and idle is about 2-3°C (related to the position of the temperature sensor. Generally, the temperature sensor is set 20mm around the processor and within the copper plating range of the processor power ground). In addition, since the function of the equipment is basically fixed, the temperature rise of the safety computer (the difference between the computer temperature and the ambient temperature) is relatively fixed.
[0088] Based on this, the method of the present invention utilizes the periodic working characteristics of the security computer to extract temperature, a factor that can objectively reflect the working condition of the processor, to monitor the operating status of the processor and to obtain the abnormal condition of the processor in real time.
[0089] like Figure 1 As shown, according to a specific embodiment of the present invention, a non-contact monitoring method of a processor state based on operating temperature of the present invention comprises the following steps:
[0090] Obtain the standard cycle of the processor's operating temperature and the temperature rise value safety threshold range;
[0091] Get the real-time operating temperature of the processor;
[0092] Determine whether the processor is abnormal based on the real-time operating temperature, standard cycle and temperature rise value safety threshold range;
[0093] The temperature rise value is calculated based on the operating temperature of the processor and the ambient temperature of the processor.
[0094] Furthermore, corresponding processing can be performed according to the monitoring results: when it is determined that the processor is abnormal, an alarm signal is output, and the abnormal condition of the processor is processed.
[0095] See also Figure 4 , wherein the step of determining whether the processor is abnormal includes:
[0096] 1. Calculate and obtain the measured temperature rise value of the processor's temperature change based on the real-time operating temperature;
[0097] Determine whether the measured temperature rise value is within the temperature rise value safety threshold range;
[0098] When the measured temperature rise value exceeds the temperature rise value safety threshold range and reaches the first threshold, further analysis is performed to determine whether the temperature of the processor changes periodically:
[0099] When the temperature of the processor changes periodically, it is judged that the leakage current of the processor increases, and the health of the processor decreases;
[0100] When the temperature of the processor does not present a periodic change, it is determined that the processor has a first abnormal condition.
[0101] A first alarm signal is output, and the processor is reset through a reset signal.
[0102] After the processor is reset, the processor is detected, and when the processor still has the first abnormal condition, the processor is forced to be reset by re-powering the processor.
[0103] Specifically, the first abnormal condition is a failure of a minimum unit of a processor; wherein the minimum unit of the processor includes: a processor, a power management chip, a clock, a RAM (random access memory), and a ROM (read-only memory).
[0104] 2. When the measured temperature rise value is lower than the temperature rise value safety threshold range and reaches the second threshold, it is determined that the processor has a second abnormal condition:
[0105] When the second abnormal condition occurs, analyze whether the temperature of the processor changes periodically:
[0106] When the temperature of the processor shows periodic changes, it is determined that the second abnormal condition is that some functions of the processor are running;
[0107] When the temperature of the processor does not present a periodic change, it is determined that the second abnormal condition is that the processor stops working.
[0108] 3. When the measured temperature rise value is within the temperature rise value safety threshold range, the temperature change measurement period of the processor is calculated and obtained according to the real-time operating temperature;
[0109] Compare the measurement cycle with the standard cycle to analyze whether the change cycle of the measured temperature rise value is normal:
[0110] 3.1 Determine whether the time deviation between the measurement period and the standard period is greater than the third threshold value,
[0111] When the time deviation between the measurement period and the standard period is greater than a third threshold, it is determined that the processor has a third abnormal condition.
[0112] Specifically, the third abnormal condition includes crystal oscillator frequency deviation, software stuck and processor internal fault.
[0113] Further, when it is determined that the processor has the first abnormal condition, the second abnormal condition and the third abnormal condition, the abnormal condition of the processor is processed and an alarm signal is output.
[0114] Among them, the processing methods for the processor include:
[0115] First reset the processor through the reset signal;
[0116] If the processor is still detected to be abnormal after a preset time or a preset number of resets, the processor is forcibly reset by re-energizing the processor.
[0117] That is, by setting a forced reset start threshold: when the reset signal is used to reset, if the abnormal condition of the processor cannot be resolved after exceeding a predetermined number of times, it is converted to a forced reset.
[0118] 3.2 When the time deviation between the measurement cycle and the standard cycle does not exceed the third threshold, it means that the temperature rise change cycle is normal, and further check whether the processor receives the dog feeding signal;
[0119] When it is confirmed that the dog feeding signal is received, it is judged that the processor is working normally;
[0120] Otherwise, it is determined that the processor has a fourth abnormal condition.
[0121] The fourth abnormal condition is that the processor receives an abnormal dog feeding signal.
[0122] like Figure 2 As shown, the present invention also provides a processor state non-contact monitoring module based on operating temperature, comprising:
[0123] A first acquisition unit is used to acquire a standard cycle of the processor operating temperature and a temperature rise value safety threshold range;
[0124] A second acquisition unit is used to acquire the real-time operating temperature of the processor when it is working;
[0125] A first judgment unit is used to judge whether the processor is abnormal according to the real-time operating temperature, the standard cycle and the temperature rise value safety threshold range;
[0126] The temperature rise value is calculated based on the operating temperature of the processor and the ambient temperature of the processor.
[0127] Furthermore, the monitoring module also includes:
[0128] It also includes a first reset unit, which is used to reset the processor through a reset signal when it is determined that the processor is in an abnormal condition;
[0129] A second judgment unit, configured to judge whether the processor is in an abnormal condition after the first reset unit resets the processor;
[0130] The second reset unit is used to disconnect the power supply circuit of the processor through a relay to forcibly reset the processor when the second judgment unit judges that the processor still has an abnormal condition.
[0131] The alarm unit is used to output an alarm signal when it is determined that the processor is abnormal; usually, the first reset unit and the second reset unit reset the processor while outputting a processor abnormality alarm or a processor failure alarm.
[0132] Specifically, in a specific embodiment of the present invention,
[0133] The operating temperature of the processor is measured and collected by at least two sets of collection equipment respectively, and the real-time operating temperature is calculated and obtained;
[0134] The temperature of the environment where the processor is located is collected by a temperature detection device arranged at a position far away from the processor;
[0135] Then, the first acquisition unit obtains the standard cycle and the temperature rise value safety threshold range according to the collected data; the second acquisition unit obtains the real-time operating temperature of the processor according to the collected data, and further obtains the measured temperature rise value and the measurement cycle.
[0136] like Figure 3 As shown, the present invention also provides a non-contact monitoring system for processor status based on operating temperature, comprising the monitoring module of the present invention, and also comprising a first temperature sensor, a second temperature sensor, a third temperature sensor and a relay connected to the monitoring module by signal;
[0137] The first temperature sensor and the second temperature sensor are arranged at intervals within the power ground copper area of the processor, and the first temperature sensor and the second temperature sensor are redundant with each other and are used to measure and collect the operating temperature of the processor in real time;
[0138] The third temperature sensor is arranged at a position far away from the processor. Specifically, the third temperature sensor is arranged at a position far away from the heat dissipation position of the processor and is used to collect the ambient temperature of the processor.
[0139] The relay is arranged on the power supply circuit of the processor and is used for switching on or off the power supply circuit of the processor.
[0140] Further, see Figure 3 The monitoring module also communicates and controls a relay disposed between the processor and the power module.
[0141] Specifically, see Figure 3, is an embodiment of the non-contact monitoring system of processor status based on operating temperature of the present invention. In this embodiment, at least three temperature sensors are included, wherein:
[0142] The first temperature sensor and the second temperature sensor are used to collect the temperature of the processor in real time. The first temperature sensor and the second temperature sensor are redundant with each other and are spaced apart and arranged within the copper-plated range of the power supply ground of the processor (such as Figure 3 As shown in the figure, the first temperature sensor and the second temperature sensor are both arranged within 20 mm from the processor and in contact with the heat dissipation ground of the processor; the operating temperature of the processor can be measured relatively objectively and accurately when the processor is working, and in addition to making the measurement value more accurate, the two temperature sensors can also work normally when any temperature sensor is damaged, serving as a backup, and the data respectively measured by the first temperature sensor and the second temperature sensor can be mutually verified to ensure the accuracy of the measured temperature of the processor; and when the first temperature sensor and the second temperature sensor are both working normally, the temperature values respectively measured by the two temperature sensors at any moment are taken to calculate the average value as the operating temperature of the processor at that moment.
[0143] The third temperature sensor is set at a position far away from the processor and is used to collect the ambient temperature of the processor in real time. Figure 3 The third temperature sensor needs to be placed as far away from the heat source of the device (including the processor) as possible, so that the ambient temperature can be measured more accurately.
[0144] Specifically, the three temperature sensors of the present invention use tmp126-q1 sensors to sense the temperature changes of the processor. The temperature conversion time (temperature response time) of the sensor is 5ms and the accuracy is 0.3°C, which meets the processor operation cycle and temperature change range.
[0145] For details, see Figure 3 In this embodiment, the working process of the monitoring system includes:
[0146] 1. Obtain the standard cycle of the processor's operating temperature (working temperature) and the temperature rise safety threshold range;
[0147] During the baking stage before the device leaves the factory, the entire monitoring module is first adjusted to the "learning mode". At this time, the monitoring module will measure the cycle and temperature rise of the processor temperature change through the first temperature sensor and the second temperature sensor, analyze and determine the operating cycle of the device, that is, obtain the standard cycle.
[0148] The operating temperature of the processor is determined by taking an average of the values measured by the first temperature sensor and the second temperature sensor, and the ambient temperature of the device (the device including the processor) is measured by the third temperature sensor;
[0149] The difference between the operating temperature and the ambient temperature is calculated to determine the threshold range of the temperature rise of the processor, that is, to obtain the safe threshold range of the temperature rise value of the temperature change.
[0150] 2. Monitor the processor, analyze the cause of the processor abnormality and handle the abnormal situation; Figure 4 The flowchart of a processor status monitoring and exception handling method according to a specific embodiment of the present invention.
[0151] 1. During the on-site operation phase of the equipment, the monitoring module will be adjusted to the "monitoring mode" (already adjusted at the factory). At this time, the operating status of the processor can be monitored by the method of the present invention, see Figure 3 and Figure 4 , the monitoring process is as follows:
[0152] 1.1 When the processor temperature rise value (i.e., the measured temperature rise value) monitored and calculated by the first temperature sensor, the second temperature sensor, and the third temperature sensor increases and exceeds the temperature rise safety threshold range recorded in the "learning mode" by a certain range (e.g., 30%), it indicates that the processor is abnormal. Further analysis:
[0153] A. When the first temperature sensor and the second temperature sensor can still detect normal periodic changes, it means that the leakage current of the processor increases and the health decreases. At this time, the monitoring module will issue a life and health warning and send out a warning signal;
[0154] B. When the first temperature sensor and the second temperature sensor cannot detect normal periodic changes, the smallest unit of the processor has failed. The smallest unit of the processor contains the most basic circuits for the operation of the processor, usually including a processor, a power management chip, a clock, RAM (random access memory), and ROM (read-only memory);
[0155] 1.2 When the measured temperature rise value decreases and the degree of decrease reaches a certain range (for example, 30%) of the temperature rise value safety threshold range in the "learning mode", it indicates that there is an abnormality in the processor. Further analysis:
[0156] When the first temperature sensor and the second temperature sensor can detect normal periodic changes, it means that the processor may be partially functional, the monitoring module will alarm, and reset the processor through a reset signal;
[0157] When the first temperature sensor and the second temperature sensor cannot detect normal periodic changes, it means that the processor has stopped working. At this time, the monitoring module will alarm and reset the processor through a reset signal. If the problem still exists, the relay K1 will be powered on and off to force a reset. Until the relay K1 is powered off, the device switches to the standby system and the device continues to operate as a whole.
[0158] When an abnormality occurs, the monitoring module resets the processor through a reset signal; if the problem still exists after the reset process, the power to the smallest unit of the processor will be cut off through relay K1 to prevent fire while switching the equipment to the backup system so that the equipment as a whole continues to operate.
[0159] 2. When the measured temperature rise value is normal, further check whether the temperature rise (value) change cycle (measurement cycle) of the processor is normal:
[0160] When the time difference between two adjacent peaks of the processor temperature change detected by the first temperature sensor and the second temperature sensor deviates from the time period recorded in the "learning mode" by more than a certain range (for example, 20%), it is determined that the processor temperature rise change cycle is abnormal, and the corresponding problem of the processor is crystal oscillator frequency deviation, software jamming or internal processor failure.
[0161] At this time, the monitoring module will reset the processor through the reset signal while giving an alarm; if the problem still exists after the reset, the relay K1 will be powered on and off to force a reset. Until the relay K1 is powered off and the device is switched to the standby system, the device as a whole will continue to operate.
[0162] 3. Further, when the measured temperature rise value and the measurement period are within the preset normal range, detect whether the dog feeding signal is received:
[0163] If the dog feeding signal is not received, a dog feeding failure alarm is issued.
[0164] See also Figure 4 When the processor cannot receive the dog feeding signal, but the measured temperature rise value and measurement cycle are normal, the operating status of the processor can be monitored directly by measuring the processor operating temperature.
[0165] In addition to using temperature to perform non-contact monitoring of the processor, this embodiment also retains the traditional "feeding the dog" signal as an auxiliary method to monitor the processor from multiple angles. The specific judgment is based on the truth table as follows:
[0166]
[0167] In this embodiment, the monitoring module uses a high-reliability microcontroller MSP430, has no operating system, and the program runs more stably. The overall reliability is much higher than that of the monitored processor.
[0168] When the processor needs to be restarted (when the processor has the first abnormal condition, the second abnormal condition, and the third abnormal condition), the monitoring module first resets the processor through the reset line (resets the processor through the reset signal to restart the processor);
[0169] Wait for the dog feeding signal while turning on temperature monitoring;
[0170] If the dog feeding signal is not received within the preset time limit, the reset and restart are attempted for the preset number of times. If the dog feeding signal is still not received, the processor power supply circuit switch is directly controlled by the on-off control of relay K1 to attempt forced reset and restart;
[0171] If the dog feeding signal is still not received within the preset time limit, the operating status of the processor is judged through temperature monitoring. If the temperature change of the processor is normal at this time, the processor status is monitored through temperature monitoring. If the temperature monitoring is abnormal, an alarm signal is issued;
[0172] Furthermore, the alarm signal can be emitted through a network by lighting a lamp, a buzzer or a notification recording board.
[0173] The following description will be made by taking the application of the present invention to a train control device as an example. When the monitoring system of the present invention is applied to a computer of a train control device, automatic switching of the main and standby systems can be realized when a main system processor fails and needs to be reset.
[0174] Train control equipment is a computer that integrates safety and reliability. The architecture mainly adopts a 2-by-2 system, and the 2-by-2 mechanism is often called a safe computer. It means that there are two isomorphic or heterogeneous processing units (i.e. Figure 3 Each processing unit will perform calculations separately, perform functional calculations and compare calculation results at a fixed period, usually 50-250ms. Only when the comparison is consistent will the train control device output the result. If the comparison is inconsistent and the number of times exceeds a certain threshold, the safety computer will stop feeding the dog, and the monitoring module will send a reset signal, resulting in the interruption of dual-system communication and system disconnection.
[0175] The 2-time mechanism is to ensure the reliability of the train control equipment. It means that there are two completely identical safety computers in the system, called two systems. The two systems use the snatch mechanism to establish the main and backup systems when they are powered on. After the main and backup systems are established, the two systems do the same calculation and processing work. The only difference is that the main system outputs to the outside, while the backup system does not. When the calculation results of the main system processor are inconsistent due to external or internal reasons, the monitoring module will send a reset signal or cut off the power supply of the smallest unit, so that the system operation is seamlessly switched to the backup system. At this time, the backup system is upgraded to the main system and generates output to ensure that the entire system can continue to operate when a single system failure occurs.
[0176] The train control system has two systems with communication buses and relay switching units. The relay switching circuit adopts a dual relay interlocking structure. When one system drives the relay during the power-on phase, it will send a main system signal and cut off the power supply of the standby system output part at the same time. At this time, after receiving the signal, the other system will make itself the standby system, and since the output part is not powered, it is guaranteed that the standby system has no output;
[0177] The dual-system communication bus means that the main system will transmit its own calculation timestamp and packet number to the backup system and synchronize with the backup system to ensure that when the backup system is promoted to the main system, the backup system is exactly the same as the main system, and seamless machine switching can be achieved.
[0178] There are two types of machine cutting: active machine cutting and passive machine cutting. Active machine cutting means that when the security computer is inconsistent due to external factors and exceeds the threshold, the security computer will stop feeding the dog, make the monitoring module output a reset signal or cut off the power supply of the smallest unit, reset the processor, and make the system machine cutting.
[0179] Passive shutdown means that when the monitoring module detects a problem with the operating status of the main system processor (the abnormal condition mentioned above), it outputs a reset signal or cuts off the power supply of the smallest unit to reset the processor and shut down the system.
[0180] Specifically, temperature monitoring of the dual systems of the train control system means that the processors of the dual systems are equipped with monitoring modules. If the monitoring method of the present invention determines that there is a problem with the processor status, an alarm will be issued and reset will be performed, and the minimum system power supply in the faulty processor will be cut off to ensure the normal output of the system (a relay is used to cut off the power supply of the faulty processor and the surrounding necessary components, which can cause the dual processors to be more inconsistent, thereby enabling the system to continue to work after cutting off the machine).
[0181] Taking advantage of the fact that rail transit safety computers need to perform periodic calculations and data comparisons, in addition to monitoring the "dog feeding" signal, we have added monitoring of the processor's operating temperature. By taking advantage of the periodic changes in the processor's temperature, the processor's operating status can be monitored without contact or connection. Even if there is no one on duty, it can also prevent one of the dual system's processors from shutting down or experiencing an abnormality, thereby achieving effective monitoring of each processor.
[0182] The present invention proposes a method for monitoring the processor state based on monitoring the change of the processor operating temperature, which has the following advantages:
[0183] 1. Taking advantage of the fact that the security computer needs to perform periodic calculations and data comparisons, in addition to monitoring the "dog feeding" signal, the processor's operating temperature monitoring is added. Taking advantage of the fact that the processor's temperature changes regularly, the processor's operating status can be monitored without contact or connection;
[0184] 2. Dual temperature sensors are installed at different positions on the processor board, which are redundant and improve measurement accuracy. A sensor for measuring ambient temperature is also provided to eliminate the influence of ambient temperature on the processor temperature measurement results.
[0185] 3. In terms of resetting the processor, in addition to the traditional operation of the processor reset pin, a safety relay is added to the processor power supply circuit (inherently safe, can prevent node adhesion, and ensure effective operation of the power supply circuit). If the reset signal does not work, the processor will be restarted by re-powering (only for the processor power supply circuit), that is, forced reset;
[0186] 4. In the method, device and system of the present invention, a first threshold, a second threshold and a third threshold are set, which are designed according to the actual operating state rules of the processor. Personnel in this field can set them according to actual conditions to give the monitoring process a certain fault tolerance rate.
[0187] Conventional monitoring of the processor's operating status through temperature usually only unilaterally considers the processor's overheating condition, but cannot accurately monitor and judge the problems such as the processor's temperature is too high but it is running normally, and the processor's temperature is normal but it is operating faulty.
[0188] The method, module and system of the present invention creatively use the change cycle and change amplitude of the processor operating temperature as monitoring indicators, thereby realizing a new processor monitoring method other than traditional dog feeding signal monitoring.
[0189] Rail transit safety computers need to be compared regularly due to their inherent characteristics, so they all operate in cycles. Rail transit safety computers have extremely high requirements for the continuous operation of the equipment, so they also have very high requirements for the status monitoring of the processor. However, the traditional dog feeding signal monitoring method cannot effectively understand the operating status of the processor. It is very likely that the processor is feeding the dog normally, but other parts have crashed. The non-contact monitoring method of the present invention can diagnose the status of the processor and can perform fault alarms, which is convenient for fault prediction and analysis; the non-contact temperature measurement method uses the method of measuring temperature rise, which is less affected by the external environment and is more suitable for the working environment of rail transit safety computers; and non-contact measurement eliminates the risk of disconnection, sets multiple test points, and has higher reliability. The method of periodically measuring and diagnosing the processor using non-contact temperature measurement can be applied to rail transit safety computers, greatly improving the monitoring reliability of rail transit safety computers, and thus improving the safety of the entire rail transit system operation. Of course, taking rail transit safety computers as an example, the methods, modules and systems of the present invention can also be applied to safety computers in other fields.
[0190] Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent substitutions for some of the technical features therein; and these modifications or substitutions do not make the essence of the corresponding technical solutions deviate from the spirit and scope of the technical solutions of the embodiments of the present invention.
Claims
1. A non-contact monitoring method for processor status based on operating temperature, characterized in that: The following steps are included: Obtain the standard cycle of the processor's operating temperature and the temperature rise value safety threshold range; Obtaining the real-time operating temperature of the processor; Determining whether the processor is in an abnormal condition according to the real-time operating temperature, the standard cycle, and the temperature rise value safety threshold range; The temperature rise value is calculated based on the processor operating temperature and the ambient temperature of the processor; The step of determining whether the processor is abnormal comprises: Calculating and obtaining a measured temperature rise value of the processor according to the real-time operating temperature; Determining whether the measured temperature rise value is within the temperature rise value safety threshold range; When the measured temperature rise value exceeds the temperature rise value safety threshold range and reaches a first threshold, analyzing whether the real-time operating temperature changes periodically: When the real-time operating temperature shows a periodic change, it is determined that the leakage current of the processor increases, and it is determined that the health of the processor decreases; When the real-time operating temperature does not show a periodic change, determining that the processor has a first abnormal condition; When the measured temperature rise value is lower than the temperature rise value safety threshold range and reaches a second threshold, determining that the processor has a second abnormal condition; When the second abnormal condition occurs, analyzing whether the real-time operating temperature changes periodically: When the real-time operating temperature shows periodic changes, determining that the second abnormal condition is that part of the processor function is running; When the real-time operating temperature does not show periodic changes, determining that the second abnormal condition is that the processor stops working; When the measured temperature rise value is within the temperature rise value safety threshold range, calculating and obtaining a measurement period of the real-time operating temperature change according to the real-time operating temperature; Determine whether the time deviation between the measurement period and the standard period is greater than a third threshold; When the time deviation between the measurement period and the standard period is greater than a third threshold, determining that the processor has a third abnormal condition; When the time deviation between the measurement period and the standard period does not exceed a third threshold, checking whether the processor receives a dog feeding signal; When it is confirmed that the dog feeding signal is received, it is determined that the processor works normally; Otherwise, it is determined that the processor has a fourth abnormal condition.
2. The method for non-contact monitoring of processor status based on operating temperature according to claim 1, characterized in that: The first abnormal condition is a failure of a minimum unit of the processor; wherein the minimum unit of the processor includes: a processor body, a power management chip, a clock, a RAM and a ROM.
3. The method for non-contact monitoring of processor status based on operating temperature according to claim 1, characterized in that: The third abnormal condition includes crystal oscillator frequency deviation, software freeze and processor internal failure.
4. The method for non-contact monitoring of processor status based on operating temperature according to claim 1, characterized in that: After the step of determining whether the processor is in an abnormal condition, the method further includes the following steps: When it is determined that the processor is in an abnormal condition, resetting the processor through a reset signal; and after resetting the processor by using a reset signal, determining whether the processor is in an abnormal condition; When the processor still has an abnormal condition, the power supply circuit of the processor is disconnected through a relay to forcibly reset the processor.
5. The non-contact monitoring method of processor status based on operating temperature according to any one of claims 1 to 4, characterized in that: The operating temperature of the processor is measured and collected by at least two sets of collection equipment respectively, and the real-time operating temperature is calculated and obtained; The ambient temperature of the processor is collected by a temperature detection device arranged at a position far away from the processor.
6. A processor status non-contact monitoring module based on operating temperature, characterized in that: include: A first acquisition unit is used to acquire a standard cycle of the processor operating temperature and a temperature rise value safety threshold range; A second acquisition unit, used to acquire the real-time operating temperature of the processor; A first judgment unit, configured to judge whether the processor is in an abnormal condition according to the real-time operating temperature, the standard cycle and the temperature rise value safety threshold range; The temperature rise value is calculated based on the processor operating temperature and the ambient temperature of the processor; The first determination unit implements the following steps when determining whether the processor is abnormal: Calculating and obtaining a measured temperature rise value of the processor according to the real-time operating temperature; Determining whether the measured temperature rise value is within the temperature rise value safety threshold range; When the measured temperature rise value exceeds the temperature rise value safety threshold range and reaches a first threshold, analyzing whether the real-time operating temperature changes periodically: When the real-time operating temperature shows a periodic change, it is determined that the leakage current of the processor increases, and it is determined that the health of the processor decreases; When the real-time operating temperature does not show a periodic change, determining that the processor has a first abnormal condition; The first determination unit further implements the following steps when determining whether the processor is abnormal: When the measured temperature rise value is lower than the temperature rise value safety threshold range and reaches a second threshold, determining that the processor has a second abnormal condition; The first determination unit further implements the following steps when determining whether the processor is abnormal: When the real-time operating temperature shows periodic changes, determining that the second abnormal condition is that part of the processor function is running; When the real-time operating temperature does not show periodic changes, determining that the second abnormal condition is that the processor stops working; The first determination unit further implements the following steps when determining whether the processor is abnormal: When the measured temperature rise value is within the temperature rise value safety threshold range, calculating and obtaining a measurement period of the real-time operating temperature change according to the real-time operating temperature; determining whether the time deviation between the measurement period and the standard period is greater than a third threshold, When the time deviation between the measurement period and the standard period is greater than a third threshold, determining that the processor has a third abnormal condition; The first determination unit further implements the following steps when determining whether the processor is abnormal: When the time deviation between the measurement period and the standard period does not exceed a third threshold, checking whether the processor receives a dog feeding signal; When it is confirmed that the dog feeding signal is received, it is determined that the processor works normally; Otherwise, it is determined that the processor has a fourth abnormal condition.
7. The processor status non-contact monitoring module based on operating temperature according to claim 6, characterized in that: The first abnormal condition is a failure of a minimum unit of the processor; wherein the minimum unit of the processor includes: a processor body, a power management chip, a clock, a RAM and a ROM.
8. The processor status non-contact monitoring module based on operating temperature according to claim 6, characterized in that: The third abnormal condition includes crystal oscillator frequency deviation, software freeze and processor internal failure.
9. The processor status non-contact monitoring module based on operating temperature according to any one of claims 6 to 8, characterized in that: Also includes: A first reset unit, configured to reset the processor through a reset signal when it is determined that the processor is in an abnormal condition; a second judging unit, configured to judge whether the processor is in an abnormal condition after the first resetting unit resets the processor; The second resetting unit is used to disconnect the power supply circuit of the processor through a relay to forcibly reset the processor when the second judging unit judges that the processor is still in an abnormal condition.
10. A non-contact monitoring system for processor status based on operating temperature, characterized in that: A monitoring module comprising any one of claims 6 to 9, further comprising a first temperature sensor, a second temperature sensor, a third temperature sensor and a relay respectively connected to the monitoring module signals; The first temperature sensor and the second temperature sensor are arranged at intervals within the power ground copper area of the processor, and the first temperature sensor and the second temperature sensor are redundant with each other and are used to measure the operating temperature of the processor when it is working; The third temperature sensor is arranged at a position far away from the processor, and is used for collecting the ambient temperature of the processor. The relay is arranged on the power supply circuit of the processor, and is used for switching on or off the power supply circuit of the processor.
