CN105446851B - Processor monitoring method and system and MCU for monitoring processor - Google Patents

Processor monitoring method and system and MCU for monitoring processor Download PDF

Info

Publication number
CN105446851B
CN105446851B CN201410506040.3A CN201410506040A CN105446851B CN 105446851 B CN105446851 B CN 105446851B CN 201410506040 A CN201410506040 A CN 201410506040A CN 105446851 B CN105446851 B CN 105446851B
Authority
CN
China
Prior art keywords
processor
circuit
mcu
power
signal
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201410506040.3A
Other languages
Chinese (zh)
Other versions
CN105446851A (en
Inventor
窦红权
李耀彬
庞观士
陈志列
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shenzhen Yanxiang Intelligent Iot Technology Co ltd
Shenzhen Yanxiang Smart Technology Co ltd
Yanxiang Smart Iot Technology Co ltd
EVOC Intelligent Technology Co Ltd
Original Assignee
Shenzhen Evoc Special Computer Software Co ltd
EVOC Intelligent Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shenzhen Evoc Special Computer Software Co ltd, EVOC Intelligent Technology Co Ltd filed Critical Shenzhen Evoc Special Computer Software Co ltd
Priority to CN201410506040.3A priority Critical patent/CN105446851B/en
Publication of CN105446851A publication Critical patent/CN105446851A/en
Application granted granted Critical
Publication of CN105446851B publication Critical patent/CN105446851B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Abstract

A processor monitoring method comprising the steps of: the MCU is started after power supply is obtained, and the MCU is in communication connection with the processor; the MCU controls each circuit in the processor to be sequentially powered on and started according to a preset power-on time sequence, monitors whether the power-on start of the previous circuit is normal or not in the process of controlling the power-on start of each circuit, controls the power-on start of the next circuit after monitoring that the power-on start of the previous circuit is normal, and sends a power-on abnormal signal corresponding to the circuit to the alarm circuit if any circuit is monitored to be abnormal; and the alarm circuit gives an alarm according to the power-on abnormal signal. The method can quickly locate the abnormal circuit in the processor in the starting process of the processor, thereby finding out the reason of the fault. In addition, an MCU for monitoring the processor and a processor monitoring system are also provided.

Description

Processor monitoring method and system and MCU for monitoring processor
[ technical field ] A method for producing a semiconductor device
The present invention relates to the field of computer technologies, and in particular, to a processor monitoring method, an MCU for monitoring a processor, and a processor monitoring system.
[ background of the invention ]
Various computers are widely used in various fields such as industrial control, military industry, rail transit and the like. Some of these fields have high requirements on the reliability and stability of computer systems, and require quick location in the event of a failure.
However, in the prior art, the self-test can be performed through software only after the processor is run, and if the processor fails during the starting process of the processor, the failure cannot be located.
[ summary of the invention ]
Based on this, it is necessary to provide a processor monitoring method that can quickly locate processor faults during processor startup.
A processor monitoring method comprising the steps of:
the MCU is started after power supply is obtained, and the MCU is in communication connection with the processor;
the MCU controls each circuit in the processor to be sequentially powered on and started according to a preset power-on time sequence, monitors whether the power-on start of the previous circuit is normal or not in the process of controlling the power-on start of each circuit, controls the power-on start of the next circuit after monitoring that the power-on start of the previous circuit is normal, and sends a power-on abnormal signal corresponding to the circuit to the alarm circuit if any circuit is monitored to be abnormal;
and the alarm circuit gives an alarm according to the power-on abnormal signal.
In one embodiment, the method further comprises the steps of:
the MCU monitors the operation temperature of the processor in the operation process, and sends a frequency reduction signal to the processor when the operation temperature is in a preset high-temperature range; and when the operating temperature is within a preset dangerous range, sending a normal shutdown signal to the processor, monitoring whether the processor is successfully shutdown within a preset time period, and if not, sending a forced shutdown signal to the processor.
In one embodiment, a configurable watchdog circuit is built in the MCU; the method further comprises the steps of:
the MCU receives the dog feeding time interval parameter and the watchdog starting command transmitted by the processor;
the MCU configures the counter overflow parameter of the configurable watchdog circuit according to the dog feeding time interval parameter and starts the configurable watchdog circuit;
the MCU transmits a dog feeding signal to the configurable watchdog circuit each time the MCU receives the dog feeding signal of the processor;
and after receiving the reset signal of the configurable watchdog circuit, the MCU transmits the reset signal to the processor.
In one embodiment, the method further comprises the following steps:
the MCU also receives a charged restarting condition and a power-off restarting condition transmitted by the processor;
the step of transmitting a reset signal to the processor comprises:
the MCU judges whether the electrified restarting condition and the power-off restarting condition are satisfied, controls the processor to be electrified and restarted when the electrified restarting condition is satisfied, and controls the processor to be powered off and restarted when the power-off restarting condition is satisfied.
In one embodiment, the method further comprises the steps of:
the MCU controls each circuit in the processor to be powered off in sequence according to a preset power-off time sequence, monitors whether the previous circuit is powered off completely or not in the process of controlling each circuit to be powered off, controls the next circuit to be powered off after monitoring that the previous circuit is powered off completely, and sends a power-off abnormal signal corresponding to the circuit to the alarm circuit if monitoring that any circuit cannot be powered off completely;
and the alarm circuit gives an alarm according to the power failure abnormal signal.
In addition, it is desirable to provide an MCU for monitoring a processor that can help quickly locate processor faults during processor startup.
The MCU is used for monitoring a processor, the MCU is started after power supply is obtained, and controls each circuit in the processor which is in communication connection with the MCU to be sequentially powered on and started according to a preset power-on time sequence, in the process of controlling the power-on and starting of each circuit, whether the power-on and starting of the previous circuit is normal is monitored, after the power-on and starting of the previous circuit is monitored to be normal, the power-on and starting of the next circuit is controlled, if any circuit is monitored to be abnormal, a power-on abnormal signal corresponding to the circuit is sent to an alarm circuit, and the alarm circuit gives an alarm according to the power-on abnormal signal.
In one embodiment, the MCU is further configured to monitor an operating temperature of the processor during operation, send a down-conversion signal to the processor when the operating temperature is within a preset high temperature range, send a normal shutdown signal to the processor when the operating temperature is within a preset dangerous range, monitor whether the processor is successfully shutdown within a preset time period, and send a forced shutdown signal to the processor if the processor is not successfully shutdown within the preset time period.
In one embodiment, a configurable watchdog circuit is built in the MCU;
the MCU is also used for receiving the dog feeding time interval parameter and the watchdog starting command transmitted by the processor;
the MCU is also used for configuring the counter overflow parameter of the configurable watchdog circuit according to the dog feeding time interval parameter and starting the configurable watchdog circuit;
the MCU is also used for transmitting a dog feeding signal to the configurable watchdog circuit when receiving the dog feeding signal of the processor;
the MCU is also used for receiving the electrified restarting condition and the power-off restarting condition transmitted by the processor;
the MCU is also used for judging whether the electrified restarting condition and the power-off restarting condition are satisfied or not after receiving a reset signal of the configurable watchdog circuit, controlling the processor to be electrified and restarted when the electrified restarting condition is satisfied, and controlling the processor to be powered off and restarted when the power-off restarting condition is satisfied.
In one embodiment, the MCU is further configured to control each circuit in the processor to sequentially power off according to a preset power-off timing sequence, monitor whether a previous circuit is completely powered off in the process of controlling each circuit to power off, control a subsequent circuit to power off after monitoring that the previous circuit is completely powered off, and send a power-off abnormal signal corresponding to the previous circuit to the alarm circuit if any one of the previous circuits is monitored to be not completely powered off, so that the alarm circuit alarms according to the power-off abnormal signal.
It is also desirable to provide a processor monitoring system that can quickly locate processor faults during startup.
A processor monitoring system comprises the MCU for monitoring a processor and an alarm circuit in communication connection with the MCU in any embodiment;
the alarm circuit is used for alarming according to the power-on abnormal signal when receiving the power-on abnormal signal sent by the MCU;
and the alarm circuit is also used for alarming according to the power failure abnormal signal when receiving the power failure abnormal signal sent by the MCU.
In the processor monitoring method, the MCU for monitoring the processor and the processor monitoring system, the MCU is started before the processor and controls the power-on start of the processor: the MCU controls each circuit in the processor to be sequentially powered on and started according to a preset power-on time sequence, controls the previous circuit to be normally powered on and started, and then controls the next circuit to be powered on and started, and if any one circuit is monitored to be powered on and started abnormally, sends a power-on abnormal signal corresponding to the circuit to the alarm circuit, so that the alarm circuit can send an abnormal alarm corresponding to the circuit; therefore, the abnormal circuit in the processor can be quickly located in the starting process of the processor, so that the reason of the fault can be found out.
[ description of the drawings ]
FIG. 1 is a flow diagram of a processor monitoring method in one embodiment;
FIG. 2 is a schematic flow chart illustrating a process for an MCU to monitor operating temperature during operation of a processor according to one embodiment;
FIG. 3 is a flow diagram illustrating the process of an MCU controlling a processor through a built-in configurable watchdog in one embodiment;
FIG. 4 is a flow chart illustrating a process of the MCU controlling the processor through the built-in configurable watchdog in another embodiment;
FIG. 5 is a flowchart illustrating a process of the MCU controlling the processor to power down according to another embodiment;
FIG. 6 is a block diagram of a processor monitoring system in one embodiment;
fig. 7 is a schematic structural diagram of a processor monitoring system in another embodiment.
[ detailed description ] embodiments
As shown in fig. 1, a processor monitoring method includes the following steps:
and step S102, the MCU is started after power supply is obtained, and the MCU is in communication connection with the processor.
The mcu (micro Control unit) is called a micro Control unit, which is also called a Single Chip Microcomputer (Microcomputer) or a Single Chip Microcomputer, and is a Chip-level computer formed by integrating a CPU, an RAM, a ROM, a timing counter, and various I/O interfaces of the computer on one Chip.
In one embodiment, the processor may be an X86 processor or the like. X86 is a complex instruction set introduced by Intel for controlling the operation of a chip, and the X86 processor can be considered to be a Central Processing Unit (CPU) operating based on X86.
And step S104, sequentially powering on and starting each circuit in the MCU control processor according to a preset power-on time sequence, monitoring whether the power-on start of the previous circuit is normal or not in the process of controlling the power-on start of each circuit, controlling the power-on start of the next circuit after monitoring that the power-on start of the previous circuit is normal, and sending a power-on abnormal signal corresponding to the circuit to the alarm circuit if any circuit is abnormal.
The former circuit and the latter circuit refer to a former circuit and a latter circuit in two adjacent circuits when the circuits in the processor are sequentially arranged according to a preset power-on time sequence.
Specifically, in one embodiment, the step of controlling the power-on start of one circuit includes: inputting an enable signal (enable signal) to a voltage chip of the circuit, wherein the enable signal is a signal for indicating the voltage chip to output normal voltage required by operation to the circuit; the method for monitoring whether the power-on start of a circuit is normal comprises the following steps: and monitoring whether the voltage chip of the circuit returns a signal representing the running state or not, and judging whether the level of the signal representing the running state returned by the voltage chip of the circuit corresponds to the normal running state or not. The signal which is returned by the voltage chip of the circuit and represents the operation state is generally called powergood signal, the level of the powergood signal is 3 volts, the circuit normally operates, and the level of the powergood signal is 0 volts, the circuit is completely powered off.
In one embodiment, if it is detected that a circuit is abnormally powered on and started, the circuit is controlled to be powered on and started again, and a power-on abnormal signal corresponding to the circuit is not sent to the alarm circuit until the circuit cannot be normally powered on and started after the circuit is powered on and started for a preset number of times.
And step S106, the alarm circuit gives an alarm according to the power-on abnormal signal.
In one embodiment, the alarm circuit can emit sound and light with different intensities according to different power-on abnormal signals; in another embodiment, the alarm circuit can control the nixie tube to display different numbers according to different power-on abnormal signals; thereby indicating the particular circuit that failed.
In the processor monitoring method, the MCU is started before the processor and controls the processor to be powered on and started: the MCU controls each circuit in the processor to be sequentially powered on and started according to a preset power-on time sequence, controls the previous circuit to be normally powered on and started, then controls the next circuit to be powered on and started, and sends out an abnormal alarm corresponding to the circuit if any circuit is monitored to be abnormally powered on and started; therefore, the processor monitoring method can quickly locate the abnormal circuit in the processor in the starting process of the processor, thereby finding out the reason of the fault.
As shown in fig. 2, in an embodiment, the processor monitoring method further includes a process of monitoring an operating temperature during the operation of the processor by the MCU, the process including the following steps:
and step S202, monitoring the running temperature of the processor in the running process by the MCU.
In one embodiment, a temperature sensor integrated on the same motherboard as the processor senses the temperature of the processor, the temperature sensor being communicatively coupled to the MCU and transmitting a signal to the MCU indicative of the temperature of the processor. The MCU determines the range of the operating temperature of the processor according to the signals received from the temperature sensor.
And step S204, when the operation temperature is in a preset high-temperature range, sending a frequency reduction signal to the processor.
In one embodiment, the MCU determines that the operating temperature of the processor is in a high temperature range if the operating temperature of the processor is greater than or equal to a first threshold value and less than a second threshold value, wherein the first threshold value is less than the second threshold value.
In one embodiment, the processor performs the down-conversion operation after receiving the down-converted signal. The processor can generally reduce the operating temperature after the frequency reduction operation.
Step S206, when the operation temperature is in the preset dangerous range, sending a normal shutdown signal to the processor, monitoring whether the processor is successfully shutdown within the preset time period, and if not, sending a forced shutdown signal to the processor.
In one embodiment, the MCU determines that the operating temperature of the processor is in a dangerous range if the operating temperature of the processor is greater than a second threshold.
After receiving a normal shutdown signal, the processor closes all running programs according to the logic of the normal shutdown program; and after receiving the forced shutdown signal, the processor forcibly quits all running programs.
According to the processor monitoring method, the running temperature of the processor is monitored through the MCU independent of the processor, the processor is controlled to carry out frequency reduction when the running temperature of the processor is in a high temperature range, the running temperature of the processor can be prevented from being further increased, and the processor is controlled to be shut down when the running temperature of the processor is in a dangerous range, so that the processor can be prevented from being damaged.
In one embodiment, a configurable watchdog circuit is built in the MCU; the processor monitoring method further includes a process in which the MCU controls the processor through a built-in configurable watchdog, as shown in fig. 3, the process includes the following steps:
in step S302, the MCU receives the dog feeding interval parameter and the watchdog start command transmitted by the processor.
Before step S302, the processor sends a watchdog start command and a feeding dog interval parameter to the MCU according to the application program instruction. The value of the particular feeding interval parameter is determined by each particular application.
And step S304, the MCU configures the counter overflow parameter of the configurable watchdog circuit according to the dog feeding time interval parameter, and starts the configurable watchdog circuit.
After the configurable watchdog is started, the counter starts to count, when the accumulated value reaches the value of the overflow parameter of the counter, a reset signal is sent to the MCU and the counter is cleared, and when the watchdog feeding signal of the MCU is received, the counter is also cleared and the counter is started to count again.
In step S306, the MCU transmits a dog feeding signal to the configurable watchdog circuit each time it receives the dog feeding signal from the processor.
In one embodiment, the processor sends a dog feeding signal to the MCU according to the application program instruction, and under the condition that the application program to which the application program instruction belongs normally operates, the application program instruction is executed once every preset time period, that is, the processor sends the dog feeding signal to the MCU every preset time period, where the preset time period is less than the value of the dog feeding interval parameter.
In step S308, the MCU transmits a reset signal to the processor after receiving the reset signal from the configurable watchdog circuit.
In the processor monitoring method, the MCU can monitor whether the application program executed by the processor normally runs or not through the built-in configurable watchdog, and if the application program falls into the endless loop and the processor is overtime and does not send a dog feeding signal to the MCU, the MCU transmits a reset signal to the processor, so that the application program executed by the processor can be prevented from falling into the endless loop for a long time.
As shown in fig. 4, in one embodiment, the process of the MCU controlling the processor through the built-in configurable watchdog includes the following steps:
in step S402, the MCU receives the dog feeding time interval parameter and the watchdog starting command transmitted by the processor, and also receives the live restart condition and the power-off restart condition transmitted by the processor.
And S404, the MCU configures the counter overflow parameter of the configurable watchdog circuit according to the dog feeding time interval parameter, and starts the configurable watchdog circuit.
In step S406, the MCU transmits a dog feeding signal to the configurable watchdog circuit each time it receives the dog feeding signal from the processor.
In step S408, after receiving the reset signal of the configurable watchdog circuit, the MCU determines whether the live restart condition and the power-off restart condition are satisfied, and executes step S410 when the live restart condition is satisfied, and executes step S412 when the power-off restart condition is satisfied.
And step S410, the MCU controls the processor to be electrified and restarted.
Specifically, the MCU sends a restart signal to the processor, and after receiving the restart signal, the processor closes all running programs, including application programs and system programs, according to the logic of the normal shutdown program, and further starts the system program.
In step S412, the MCU controls the processor to power off and restart.
Specifically, the MCU sends a normal shutdown signal to the processor; after receiving a normal shutdown signal, the processor closes all running programs according to the logic of the normal shutdown program; the MCU monitors whether the processor completely closes all programs or not, and when the processor completely closes all the programs, the MCU controls each circuit in the processor to be sequentially powered off according to a preset power-off time sequence; after all the circuits are completely powered off, the MCU controls all the circuits in the processor to be sequentially powered on and started according to a preset power-on time sequence, after all the circuits are completely powered on and started, the MCU sends a system starting signal to the processor, and the processor starts a system program after receiving the system starting signal.
In one embodiment, the processor monitoring method further includes a process of controlling the processor to power off by the MCU, for example, in the case that the process of controlling the processor to power off and restart includes a process of controlling the processor to power off by the MCU, and the processor does not need to be restarted after shutdown, the MCU is also required to control the processor to power off.
As shown in FIG. 5, in one embodiment, the process of the MCU controlling the processor to power down includes the steps of:
and S502, the MCU controls each circuit in the processor to be powered off in sequence according to a preset power-off time sequence, monitors whether the previous circuit is powered off completely or not in the process of controlling each circuit to be powered off, controls the next circuit to be powered off after monitoring that the previous circuit is powered off completely, and sends a power-off abnormal signal corresponding to the circuit to the alarm circuit if monitoring that any circuit cannot be powered off completely.
The previous circuit and the next circuit refer to a previous circuit and a next circuit in two adjacent circuits when the circuits in the processor are sequentially arranged according to a preset power-off sequence.
Specifically, in one embodiment, the step of controlling the power-off of one circuit is: inputting an inhibit signal (disable signal) to a voltage chip of the circuit, the inhibit signal being a signal instructing the voltage chip to stop outputting a voltage to the circuit; the step of monitoring whether a circuit is completely powered down is: and monitoring whether the voltage chip of the circuit returns a signal representing the running state or not, and judging whether the level of the signal representing the running state returned by the voltage chip of the circuit corresponds to the complete power-off state or not.
And step S504, the alarm circuit gives an alarm according to the power failure abnormal signal.
In the above embodiment, the MCU controls each circuit in the processor to sequentially power off according to a preset power-off time sequence, and controls the previous circuit to be completely powered off, and then controls the next circuit to be powered off, and if it is detected that any one of the circuits cannot be completely powered off, an abnormal alarm corresponding to the circuit is sent; therefore, the abnormal circuit in the processor can be quickly positioned in the process of powering off the processor, and the reason of the fault can be further found out.
As shown in fig. 6, a processor monitoring system includes a processor 602, an MCU 604 communicatively connected to the processor 602, and an alarm circuit 606 communicatively connected to the MCU 604, wherein:
the MCU 604 is configured to start after obtaining power supply, control each circuit in the processor 602 to sequentially power on and start according to a preset power on timing sequence, monitor whether a previous circuit is powered on and started normally in a process of controlling each circuit to power on and start, control a next circuit to power on and start after monitoring that the previous circuit is powered on and started normally, and send a power on abnormal signal corresponding to the circuit to the alarm circuit 606 if any circuit is monitored to be powered on and started abnormally.
In one embodiment, the processor may be an X86 processor or the like. X86 is a complex instruction set introduced by Intel for controlling the operation of a chip, and the X86 processor can be considered to be a Central Processing Unit (CPU) operating based on X86.
The former circuit and the latter circuit refer to a former circuit and a latter circuit in two adjacent circuits when the circuits in the processor are sequentially arranged according to a preset power-on time sequence.
Specifically, in an embodiment, the process of the MCU 604 controlling the power-on start of a circuit and monitoring whether the power-on start of the circuit is normal includes: the MCU 604 inputs an enable signal (enable signal) to the voltage chip of the circuit, where the enable signal is a signal indicating that the voltage chip outputs a normal voltage required for operation to the circuit, monitors whether the voltage chip of the circuit returns a signal indicating an operation state, and determines whether a level of the signal indicating the operation state returned by the voltage chip of the circuit corresponds to the normal operation state. The signal which is returned by the voltage chip of the circuit and represents the operation state is generally called powergood signal, the level of the powergood signal is 3 volts, the circuit normally operates, and the level of the powergood signal is 0 volts, the circuit is completely powered off.
In an embodiment, the MCU 604 is further configured to control a circuit to perform power-on starting again if it is detected that a power-on starting of the circuit is abnormal, and send a power-on abnormal signal corresponding to the circuit to the alarm circuit until the circuit is powered on and started for a preset number of times and the circuit cannot be powered on and started normally.
The alarm circuit 606 is used for alarming according to the power-on abnormal signal.
In one embodiment, the alarm circuit 606 may emit sounds and lights of different intensities according to different power-on abnormality signals; in another embodiment, the alarm circuit 606 may control the nixie tube to display different numbers according to different power-on abnormal signals; thereby indicating the particular circuit that failed.
In the processor monitoring system, the MCU 604 starts before the processor 602 starts, and controls the processor 602 to power on: the MCU 604 controls each circuit in the processor 602 to be sequentially powered on and started according to a preset power-on time sequence, controls the previous circuit to be powered on and started normally, and then controls the next circuit to be powered on and started, and if any one of the circuits is monitored to be powered on and started abnormally, sends a power-on abnormal signal corresponding to the circuit to the alarm circuit 606, so that the alarm circuit 606 can send an abnormal alarm corresponding to the circuit; therefore, the processor monitoring system can quickly locate the abnormal circuit in the processor 602 during the startup process of the processor 602, thereby finding out the cause of the fault.
In one embodiment, the MCU is also used to monitor the operating temperature during operation of the processor.
As shown in fig. 7, the processor monitoring system further includes a temperature sensor 702; in one embodiment, the temperature sensor 702 is integrated on the same motherboard as the processor 602 and is communicatively connected to the MCU 604; temperature sensor 702 is configured to sense a temperature of processor 602 and send a signal to MCU 604 that is indicative of the temperature of processor 602.
In this embodiment, the MCU 604 is also configured to determine the operating temperature range of the processor 602 according to the signals received from the temperature sensor 702.
The MCU 604 is further configured to send a down-converting signal to the processor 602 when the operating temperature is within the preset high temperature range.
In one embodiment, if the operating temperature of processor 602 is greater than or equal to a first threshold value and less than a second threshold value, MCU determines that the operating temperature of processor 602 is in a high temperature range, wherein the first threshold value is less than the second threshold value.
In this embodiment, the processor 602 is configured to perform a down-conversion operation after receiving the down-conversion signal. The processor 602 may generally lower its operating temperature after running down.
The MCU 604 is further configured to send a normal shutdown signal to the processor 602 when the operating temperature is within a preset dangerous range, monitor whether the processor 602 is successfully shutdown within a preset time period, and send a forced shutdown signal to the processor if the processor 602 is not successfully shutdown within the preset time period.
In one embodiment, if the operating temperature of processor 602 is greater than the second threshold, the MCU determines that the operating temperature of the processor is in a dangerous range.
In this embodiment, the processor 602 is configured to close all running programs according to the logic of the normal shutdown program after receiving the normal shutdown signal; the processor 602 is further configured to force all running programs to exit after receiving a forced shutdown signal.
The processor monitoring system can prevent the operating temperature of the processor 602 from further increasing by monitoring the operating temperature of the processor 602 through the MCU 604 independent of the processor 602 and controlling the processor 602 to perform down-conversion when the operating temperature of the processor 602 is in a high temperature range, and can prevent the processor 602 from being damaged by controlling the processor 602 to perform down-conversion when the operating temperature of the processor 602 is in a dangerous range.
In one embodiment, MCU 604 has built in configurable watchdog circuitry; the processor 602 is further configured to send a watchdog start command and a watchdog interval parameter to the MCU according to the application program instructions. The value of the particular feeding interval parameter is determined by each particular application.
MCU 604 is also configured to receive a watchdog start command and a watchdog interval parameter transmitted by processor 602.
MCU 604 is also used to configure the counter overflow parameter of the configurable watchdog circuit according to the feeding dog interval parameter and start the configurable watchdog circuit.
After the configurable watchdog is started, the counter starts to count, when the accumulated value reaches the value of the counter overflow parameter, the configurable watchdog sends a reset signal to the MCU 604 and clears the counter, and when the watchdog feeding signal of the MCU 604 is received, the configurable watchdog clears the counter and starts the counter to count again.
The processor 602 is further configured to send a dog feeding signal to the MCU according to the application program instruction; under the condition that the application program to which the application program instruction belongs normally runs, the application program instruction is executed once every preset time length, that is, the processor 602 sends a dog feeding signal to the MCU every preset time length, where the preset time length is less than the value of the dog feeding time interval parameter.
MCU 604 is also operative to transmit a feed dog signal to the configurable watchdog circuit whenever a feed dog signal is received from processor 602.
MCU 604 is further configured to transmit a reset signal to processor 602 upon receiving a reset signal from the configurable watchdog circuit.
In the processor monitoring system, the MCU 604 may monitor whether the application executed by the processor 602 normally runs through the configurable watchdog built therein, and if the application falls into the loop and the processor times out and does not send the dog feeding signal to the MCU 604, the MCU 604 transmits the reset signal to the processor 602, thereby avoiding the application executed by the processor 602 from falling into the loop for a long time.
In one embodiment, processor 604 is further configured to communicate a powered restart condition and a powered-off restart condition to the MCU; MCU 604 is also configured to receive a power-on restart condition and a power-off restart condition transmitted by processor 604. In this embodiment, the MCU 604 is further configured to determine whether a live restart condition and a power-off restart condition are met after receiving a reset signal of the configurable watchdog circuit, control the processor 602 to be restarted in a live state when the live restart condition is met, and control the processor 602 to be restarted in a power-off state when the power-off restart condition is met.
Specifically, when a live restart condition is met, the MCU 604 is configured to send a restart signal to the processor 602; and the processor is used for closing all running programs including the application programs and the system programs according to the logic of the normal closing program and further starting the system programs after receiving the restart signal.
Specifically, when the power-off restart condition is met, the MCU 604 is configured to send a normal shutdown signal to the processor 602; the processor 602 is configured to close all running programs according to the logic of the normal shutdown program after receiving the normal shutdown signal; the MCU 604 is further configured to monitor whether the processor 602 has completely shut down all the programs, and when the processor 602 completely shuts down all the programs, the MCU 604 is further configured to control each circuit in the processor 602 to sequentially power down according to a preset power down timing; after all the circuits are powered off, the further MCU 604 is further configured to control each circuit in the processor 602 to be sequentially powered on and started according to a preset power-on timing sequence, after all the circuits are powered on and started, the MCU 604 is further configured to send a system starting signal to the processor, and the processor 602 is further configured to start a system program after receiving the system starting signal.
In one embodiment, MCU 604 is also used to control processor 602 to power down, for example, MCU 604 is required to control processor 602 to power down during a power-down restart of MCU 604, and MCU 604 is also required to control processor 602 to power down in the event that a restart is not required after processor 602 is shut down.
Specifically, in an embodiment, the MCU 604 is configured to control each circuit in the processor 602 to sequentially power off according to a preset power-off timing sequence, monitor whether a previous circuit is completely powered off during the power-off control of each circuit, control a subsequent circuit to power off after the previous circuit is completely powered off, and send a power-off abnormal signal corresponding to the previous circuit to the alarm circuit if any one of the previous circuits is not completely powered off.
The previous circuit and the subsequent circuit refer to a previous circuit and a subsequent circuit of two adjacent circuits when the circuits in the processor 602 are sequentially arranged according to a preset power-off sequence.
Specifically, in one embodiment, the process of MCU 604 controlling a circuit to power down and monitoring whether the circuit is completely powered down is as follows: inputting an inhibit signal (disable signal) to a voltage chip of the circuit, the inhibit signal being a signal instructing the voltage chip to stop outputting a voltage to the circuit; and monitoring whether the voltage chip of the circuit returns a signal representing the running state or not, and judging whether the level of the signal representing the running state returned by the voltage chip of the circuit corresponds to the complete power-off state or not.
In this embodiment, the alarm circuit 606 is configured to alarm according to the power failure abnormal signal.
In the above embodiment, the MCU 604 controls each circuit in the processor 602 to sequentially power off according to a preset power-off timing sequence, and controls the previous circuit to be completely powered off, and then controls the next circuit to be powered off, and if it is detected that any one circuit cannot be completely powered off, an abnormal alarm corresponding to the circuit is sent; so that the abnormal circuit in the processor 602 can be located quickly during the power-off process of the processor 602, and the cause of the fault can be further found out.
An MCU for monitoring a processor has the same functions as the MCU 604 described in any of the above embodiments, and will not be described herein again.
The above examples only show some embodiments of the present invention, and the description thereof is more specific and detailed, but not construed as limiting the scope of the present invention. It should be noted that, for a person skilled in the art, several variations and modifications can be made without departing from the inventive concept, which falls within the scope of the present invention. Therefore, the protection scope of the present patent shall be subject to the appended claims.

Claims (10)

1. A processor monitoring method comprising the steps of:
the MCU is started after power supply is obtained, and the MCU is in communication connection with the processor;
the MCU controls each circuit in the processor to be sequentially powered on and started according to a preset power-on time sequence, monitors whether the power-on start of the previous circuit is normal or not in the process of controlling the power-on start of each circuit, controls the power-on start of the next circuit after monitoring that the power-on start of the previous circuit is normal, and sends a power-on abnormal signal corresponding to the circuit to the alarm circuit if any circuit is monitored to be abnormal;
the alarm circuit gives an alarm according to the power-on abnormal signal;
the alarm circuit sends out sound and light with different intensities according to different power-on abnormal signals, or controls the nixie tube to display different numbers according to different power-on abnormal signals.
2. The processor monitoring method according to claim 1, further comprising the steps of:
the MCU monitors the operation temperature of the processor in the operation process, and sends a frequency reduction signal to the processor when the operation temperature is in a preset high-temperature range; and when the operating temperature is within a preset dangerous range, sending a normal shutdown signal to the processor, monitoring whether the processor is successfully shutdown within a preset time period, and if not, sending a forced shutdown signal to the processor.
3. The processor monitoring method according to claim 1, wherein a configurable watchdog circuit is built in the MCU; the method further comprises the steps of:
the MCU receives the dog feeding time interval parameter and the watchdog starting command transmitted by the processor;
the MCU configures the counter overflow parameter of the configurable watchdog circuit according to the dog feeding time interval parameter and starts the configurable watchdog circuit;
the MCU transmits a dog feeding signal to the configurable watchdog circuit each time the MCU receives the dog feeding signal of the processor;
and after receiving the reset signal of the configurable watchdog circuit, the MCU transmits the reset signal to the processor.
4. The processor monitoring method according to claim 3, further comprising the steps of:
the MCU also receives a charged restarting condition and a power-off restarting condition transmitted by the processor;
the step of transmitting a reset signal to the processor comprises:
the MCU judges whether the electrified restarting condition and the power-off restarting condition are satisfied, controls the processor to be electrified and restarted when the electrified restarting condition is satisfied, and controls the processor to be powered off and restarted when the power-off restarting condition is satisfied.
5. The processor monitoring method according to claim 1, further comprising the steps of:
the MCU controls each circuit in the processor to be powered off in sequence according to a preset power-off time sequence, monitors whether the previous circuit is powered off completely or not in the process of controlling each circuit to be powered off, controls the next circuit to be powered off after monitoring that the previous circuit is powered off completely, and sends a power-off abnormal signal corresponding to the circuit to the alarm circuit if monitoring that any circuit cannot be powered off completely;
and the alarm circuit gives an alarm according to the power failure abnormal signal.
6. An MCU for monitoring a processor comprises a memory and an MCU processor, wherein the memory stores a computer program, and is characterized in that the MCU processor is started after power supply is obtained when executing the computer program, and controls each circuit in the processor which is in communication connection with the MCU to be sequentially powered on and started according to a preset power-on time sequence; the alarm circuit sends out sound and light with different intensities according to different power-on abnormal signals, or controls the nixie tube to display different numbers according to different power-on abnormal signals.
7. The MCU of claim 6, wherein the MCU is further configured to monitor an operating temperature of the processor during operation, send a down-conversion signal to the processor when the operating temperature is within a preset high temperature range, send a normal shutdown signal to the processor when the operating temperature is within a preset danger range, and monitor whether the shutdown of the processor is successful within a preset time period, and if not, send a forced shutdown signal to the processor.
8. The MCU of claim 6, wherein the MCU has a configurable watchdog circuit built therein;
the MCU is also used for receiving the dog feeding time interval parameter and the watchdog starting command transmitted by the processor;
the MCU is also used for configuring the counter overflow parameter of the configurable watchdog circuit according to the dog feeding time interval parameter and starting the configurable watchdog circuit;
the MCU is also used for transmitting a dog feeding signal to the configurable watchdog circuit when receiving the dog feeding signal of the processor;
the MCU is also used for receiving the electrified restarting condition and the power-off restarting condition transmitted by the processor;
the MCU is also used for judging whether the electrified restarting condition and the power-off restarting condition are satisfied or not after receiving a reset signal of the configurable watchdog circuit, controlling the processor to be electrified and restarted when the electrified restarting condition is satisfied, and controlling the processor to be powered off and restarted when the power-off restarting condition is satisfied.
9. The MCU of claim 6, wherein the MCU is further configured to control each circuit in the processor to sequentially power down according to a preset power-down sequence, monitor whether a previous circuit is completely powered down in the process of controlling each circuit to power down, control a next circuit to power down after monitoring that the previous circuit is completely powered down, and send a power-down abnormal signal corresponding to the circuit to the alarm circuit if any circuit is monitored to be not completely powered down, so that the alarm circuit gives an alarm according to the power-down abnormal signal.
10. A processor monitoring system comprising an MCU as defined in any one of claims 6 to 9 for monitoring a processor, and an alarm circuit communicatively connected to said MCU;
the alarm circuit is used for alarming according to the power-on abnormal signal when receiving the power-on abnormal signal sent by the MCU; the alarm circuit is also used for emitting sounds and light rays with different intensities according to different power-on abnormal signals, or controlling the nixie tube to display different numbers according to different power-on abnormal signals;
and the alarm circuit is also used for alarming according to the power failure abnormal signal when receiving the power failure abnormal signal sent by the MCU.
CN201410506040.3A 2014-09-27 2014-09-27 Processor monitoring method and system and MCU for monitoring processor Active CN105446851B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410506040.3A CN105446851B (en) 2014-09-27 2014-09-27 Processor monitoring method and system and MCU for monitoring processor

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410506040.3A CN105446851B (en) 2014-09-27 2014-09-27 Processor monitoring method and system and MCU for monitoring processor

Publications (2)

Publication Number Publication Date
CN105446851A CN105446851A (en) 2016-03-30
CN105446851B true CN105446851B (en) 2021-03-05

Family

ID=55557083

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410506040.3A Active CN105446851B (en) 2014-09-27 2014-09-27 Processor monitoring method and system and MCU for monitoring processor

Country Status (1)

Country Link
CN (1) CN105446851B (en)

Families Citing this family (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105824388A (en) * 2016-04-05 2016-08-03 浪潮电子信息产业股份有限公司 Power-on/off detection method, device and system
CN107797050B (en) * 2017-10-20 2021-07-02 郑州云海信息技术有限公司 Method for positioning abnormal power-on time sequence state of server mainboard
CN107861818B (en) * 2017-11-30 2022-01-14 努比亚技术有限公司 Memory cleaning method based on TP and LCD, mobile terminal and storage medium
CN108446204B (en) * 2018-03-30 2021-09-14 联想(北京)有限公司 Chip and electronic equipment
CN108491057A (en) * 2018-04-03 2018-09-04 郑州云海信息技术有限公司 A kind of starting-up method and its server of server
CN109709963B (en) * 2018-12-29 2022-05-13 阿波罗智能技术(北京)有限公司 Unmanned controller and unmanned vehicle
CN110032264A (en) * 2019-04-16 2019-07-19 苏州浪潮智能科技有限公司 A kind of progress control method of server, equipment and storage medium
CN112953817B (en) * 2019-11-26 2023-03-24 中车株洲电力机车研究所有限公司 Real-time communication gateway device
CN111090566B (en) * 2019-12-27 2022-07-01 亚瑞源科技(深圳)有限公司 MCU operating condition monitoring circuit
CN111308934A (en) * 2020-02-27 2020-06-19 浪潮商用机器有限公司 Power supply time sequence power-on monitoring circuit
CN113407020B (en) * 2021-06-09 2024-03-22 北京集创北方科技股份有限公司 Component starting method and device, touch chip and electronic equipment
CN113687986A (en) * 2021-08-31 2021-11-23 上海商汤阡誓科技有限公司 Recovery method for chip and processing unit
CN114740783A (en) * 2022-04-27 2022-07-12 歌尔股份有限公司 Monitoring method, system and device and electronic equipment

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2004213621A (en) * 2002-12-17 2004-07-29 Nec Corp Remote monitoring system, remote monitoring method, and program therefor
CN1599893A (en) * 2001-09-19 2005-03-23 飞思卡尔半导体公司 CPU powerdown method and apparatus therefor
CN101488038A (en) * 2008-01-16 2009-07-22 上海研祥智能科技有限公司 CPU high temperature alarm circuit
CN102722420A (en) * 2011-10-25 2012-10-10 中国电力科学研究院 Self-diagnosis terminal, detection method and remote maintenance system
CN202711110U (en) * 2012-06-14 2013-01-30 武汉凌控自动化技术有限公司 Low-cost power-on sequence control circuit
CN102999140A (en) * 2012-05-30 2013-03-27 国家计算机网络与信息安全管理中心 Power-on timing sequence control system and method of PCIE (Peripheral Component Interface Express) board card
CN104021057A (en) * 2014-06-27 2014-09-03 上海斐讯数据通信技术有限公司 CPU (Central Processing Unit) startup fault positioning system and positioning method thereof

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN2655309Y (en) * 2003-07-16 2004-11-10 华为技术有限公司 Power supply time sequence controlling circuit

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1599893A (en) * 2001-09-19 2005-03-23 飞思卡尔半导体公司 CPU powerdown method and apparatus therefor
JP2004213621A (en) * 2002-12-17 2004-07-29 Nec Corp Remote monitoring system, remote monitoring method, and program therefor
CN101488038A (en) * 2008-01-16 2009-07-22 上海研祥智能科技有限公司 CPU high temperature alarm circuit
CN102722420A (en) * 2011-10-25 2012-10-10 中国电力科学研究院 Self-diagnosis terminal, detection method and remote maintenance system
CN102999140A (en) * 2012-05-30 2013-03-27 国家计算机网络与信息安全管理中心 Power-on timing sequence control system and method of PCIE (Peripheral Component Interface Express) board card
CN202711110U (en) * 2012-06-14 2013-01-30 武汉凌控自动化技术有限公司 Low-cost power-on sequence control circuit
CN104021057A (en) * 2014-06-27 2014-09-03 上海斐讯数据通信技术有限公司 CPU (Central Processing Unit) startup fault positioning system and positioning method thereof

Also Published As

Publication number Publication date
CN105446851A (en) 2016-03-30

Similar Documents

Publication Publication Date Title
CN105446851B (en) Processor monitoring method and system and MCU for monitoring processor
US8909971B2 (en) Clock supervision unit
CN100568191C (en) The full-range dog-feeding method of embedded system
US10250325B2 (en) Network switching system
CN107430167B (en) Semiconductor device and diagnostic test method
CN104035536A (en) Monitoring and reset control method of embedded system
CN112099412B (en) Safety redundancy architecture of micro control unit
US9075586B2 (en) Power switching system, computer system, and reboot controlling method thereof
US20130214592A1 (en) Power-supply control device
US10223902B2 (en) Methods and systems for operating a point device included in a system of point devices
US20130215549A1 (en) Power-supply control device
CN109960599B (en) Chip system, watchdog self-checking method thereof and electrical equipment
JP2016071635A (en) Abnormality monitoring circuit of ECU
CN110750374A (en) Watchdog circuit and control method thereof
JPS63221437A (en) Detecting system for cpu runaway
US9599644B2 (en) Semiconductor device
CN104268026B (en) The method for managing and monitoring and device of embedded system
JP2007041824A (en) Resetting circuit for electronic control unit
CN105676981B (en) Reset circuit, working method and reset method
US9483105B2 (en) Communication system and electronic control unit
US20190250685A1 (en) Computer system, operational method for a microcontroller, and computer program product
CN111836275A (en) Method for monitoring wireless communication module by adopting WDT of MCU
CN210270557U (en) Remote measurement and control terminal system
US11048324B2 (en) Method for controlling a low consumption mode of an electronic circuit unit, control device, and motor vehicle
JP4126849B2 (en) Multi-CPU system monitoring method

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant
CP01 Change in the name or title of a patent holder
CP01 Change in the name or title of a patent holder

Address after: 518057 Guangdong city of Shenzhen province Nanshan District high in the four EVOC Technology Building No. 31

Patentee after: EVOC INTELLIGENT TECHNOLOGY Co.,Ltd.

Patentee after: Yanxiang smart IOT Technology Co.,Ltd.

Address before: 518057 Guangdong city of Shenzhen province Nanshan District high in the four EVOC Technology Building No. 31

Patentee before: EVOC INTELLIGENT TECHNOLOGY Co.,Ltd.

Patentee before: Shenzhen Yanxiang intelligent IOT Technology Co.,Ltd.

Address after: 518057 Guangdong city of Shenzhen province Nanshan District high in the four EVOC Technology Building No. 31

Patentee after: EVOC INTELLIGENT TECHNOLOGY Co.,Ltd.

Patentee after: Shenzhen Yanxiang intelligent IOT Technology Co.,Ltd.

Address before: 518057 Guangdong city of Shenzhen province Nanshan District high in the four EVOC Technology Building No. 31

Patentee before: EVOC INTELLIGENT TECHNOLOGY Co.,Ltd.

Patentee before: SHENZHEN EVOC SPECIAL COMPUTER SOFTWARE Co.,Ltd.

TR01 Transfer of patent right
TR01 Transfer of patent right

Effective date of registration: 20230710

Address after: 518057 1701, Yanxiang science and technology building, 31 Gaoxin middle Fourth Road, Maling community, Yuehai street, Nanshan District, Shenzhen City, Guangdong Province

Patentee after: Shenzhen Yanxiang Smart Technology Co.,Ltd.

Patentee after: Yanxiang smart IOT Technology Co.,Ltd.

Address before: 518057 Guangdong city of Shenzhen province Nanshan District high in the four EVOC Technology Building No. 31

Patentee before: EVOC INTELLIGENT TECHNOLOGY Co.,Ltd.

Patentee before: Yanxiang smart IOT Technology Co.,Ltd.