External monitoring protection method and system for industrial mainboard
1. An external monitoring protection method for an industrial mainboard is characterized by comprising the following steps: the method comprises the steps that an external monitoring protection device obtains temperature data of an industrial mainboard, and an alarm threshold and a safety threshold of the temperature data are set;
when the temperature data is higher than the alarm threshold, the external monitoring protection device outputs a low-level PROCHOT # signal to reduce the frequency of a CPU on the industrial mainboard;
and (3) counting to obtain the time Tn required by the temperature to be reduced from the alarm threshold to the safety threshold, and calculating the value of the retention time T of the low-level PROCHOT # signal according to the following formula:
T=(3×Tn+2×T(n-1)+T(n-2))÷6;
tn is the time required by the current timing temperature to be reduced from the alarm threshold value to the safety threshold value, T (n-1) is the time required by the countdown timing temperature to be reduced from the alarm threshold value to the safety threshold value, and T (n-2) is the time required by the countdown timing temperature to be reduced from the alarm threshold value to the safety threshold value;
when the temperature is lowered to a safety threshold, the low level PROCHOT # signal is delayed and output according to the holding time T, and after the delay is finished, the PROCHOT # signal is set to a high level.
2. The external monitoring protection method for the main board according to claim 1, characterized in that: when the temperature data rises, T (n-2) < T (n-1) < Tn, the value of the holding time T is slowly increased along with the temperature change;
when the temperature data falls, at which Tn < T (n-1) < T (n-2), the value of the holding time T decreases slowly with the temperature change.
3. The external monitoring protection method for the main board according to claim 1, characterized in that: the PROCHOT # signal is the audio function control interface on the CPU.
4. The external monitoring protection method for the main board according to claim 1, characterized in that: the external monitoring protection device obtains the temperature data of the industrial control mainboard through an I2C bus.
5. The external monitoring protection method for the main board according to claim 4, wherein: the external monitoring protection device acquires the temperature data of the CPU through an NCT6106D chip on the industrial control mainboard, and the external monitoring protection device and the NCT6106D chip are communicated through an I2C bus.
6. The utility model provides an external control protection system of mainboard which characterized in that: the intelligent monitoring system comprises an external monitoring protection device, a mainboard connector and an industrial control mainboard, wherein the external monitoring protection device comprises a power module, an FPGA main control chip and a peripheral circuit thereof, an NCT6106D chip and a CPU are arranged on the industrial control mainboard, the FPGA main control chip is communicated with the mainboard connector through an I2C bus, the mainboard connector is communicated with the NCT6106D chip through an I2C bus, the NCT6106D chip is communicated with the CPU, the power module supplies power for the FPGA main control chip and the peripheral circuit thereof, the FPGA main control chip is connected with a PROCHOT # interface on an IO port mainboard, and the PROCHOT # interface of the mainboard connector is connected with a PROCHOT # signal control port of the CPU.
7. The external monitoring and protection system for main board of claim 6, wherein: the power module mainboard connector is connected with a power supply on the industrial control panel and supplies power through the power supply on the industrial control mainboard.
Background
The industrial control mainboard is widely applied and needs to meet the requirements of wide-temperature environment, severe environment, long-time high-load work and the like. The over-high temperature of the mainboard can bring a series of problems, such as crash and automatic restart, damage of a CPU and surrounding components, reduction of service life, easy breakdown of a circuit due to over-large load, and the like. At present, industrial control mainboards on the market do not have the function of health management.
At present, most of core devices of industrial control boards on the market are CPUs and superio. The CPU has a Rui frequency function and can be controlled by a PROCHOT # signal. The I2C interface of the superior can access the health information of temperature, voltage and the like of the mainboard.
NCT6106D is a chip that can monitor motherboard temperature, supply voltage, fan speed.
The temperature monitoring scheme on the industrial mainboard at present adopts a CPU to acquire monitoring information such as temperature and the like through an LPC interface of NCT6106D, the LPC interface is a main communication interface of the NCT6106D at present, and the traditional monitoring scheme occupies the interface, so that the communication load is increased.
The traditional monitoring scheme only compares whether the temperature exceeds a threshold value, and cannot effectively and dynamically adjust the temperature of the CPU.
Disclosure of Invention
The invention aims to provide an external monitoring protection method and system for an industrial main board, which solve the technical problem of adjusting the temperature of a CPU by dynamically adjusting the Rui frequency time of the CPU.
In order to achieve the purpose, the invention adopts the following technical scheme:
a mainboard external monitoring protection method comprises the steps that an external monitoring protection device obtains temperature data of an industrial control mainboard, and an alarm threshold value and a safety threshold value of the temperature data are set;
when the temperature data is higher than the alarm threshold, the external monitoring protection device outputs a low-level PROCHOT # signal to reduce the frequency of a CPU on the industrial control mainboard;
and (3) counting to obtain the time Tn required by the temperature to be reduced from the alarm threshold to the safety threshold, and calculating the value of the retention time T of the low-level PROCHOT # signal according to the following formula:
T=(3×Tn+2×T(n-1)+T(n-2))÷6;
tn is the time required by the current timing temperature to be reduced from the alarm threshold value to the safety threshold value, T (n-1) is the time required by the countdown timing temperature to be reduced from the alarm threshold value to the safety threshold value, and T (n-2) is the time required by the countdown timing temperature to be reduced from the alarm threshold value to the safety threshold value;
when the temperature is lowered to a safety threshold, the low level PROCHOT # signal is delayed and output according to the holding time T, and after the delay is finished, the PROCHOT # signal is set to a high level.
Preferably, when the temperature data increases, when T (n-2) < T (n-1) < Tn, the value of the holding time T increases slowly with the temperature change;
when the temperature data falls, at which Tn < T (n-1) < T (n-2), the value of the holding time T decreases slowly with the temperature change.
Preferably, the PROCHOT # signal is a turbo function control interface on the CPU.
Preferably, the external monitoring protection device acquires the temperature data of the industrial control mainboard through an I2C bus.
Preferably, the external monitoring protection device acquires the temperature data of the CPU through the NCT6106D chip on the industrial control motherboard, and the external monitoring protection device communicates with the NCT6106D chip through an I2C bus.
The external monitoring protection system comprises an external monitoring protection device, a mainboard connector and an industrial control mainboard, wherein the external monitoring protection device comprises a power module, an FPGA main control chip and peripheral circuits thereof, an NCT6106D chip and a CPU are arranged on the industrial control mainboard, the FPGA main control chip is communicated with the mainboard connector through an I2C bus, the mainboard connector is communicated with the NCT6106D chip through an I2C bus, the NCT6106D chip is communicated with the CPU, the power module supplies power for the FPGA main control chip and the peripheral circuits thereof, the FPGA main control chip is connected with a PROCHOT # interface on the mainboard connector through an IO port, and the PROCHOT # interface of the mainboard connector is connected with a PROCHOT # signal control port of the CPU.
Preferably, the power supply module supplies power through a power supply on the industrial control mainboard.
The invention relates to a mainboard external monitoring protection method and a system thereof, which solve the technical problem of adjusting the temperature of a CPU by dynamically adjusting the Rui-freq time of the CPU, the invention does not occupy an LPC interface of an NCT6106D chip, adopts an I2C interface idle by the NCT6106D chip to read temperature data, reduces communication load, adopts external monitoring protection, has higher reliability and prolongs the service life of a mainboard, and dynamically adjusts the Rui-freq time of the CPU by calculating a function change value of retention time T, thereby more accurately controlling the Rui-freq of the CPU and prolonging the service life of the CPU.
Drawings
FIG. 1 is a system framework diagram of the present invention;
fig. 2 is a main flow diagram of the present invention.
Detailed Description
Example 1:
the external monitoring protection method for the mainboard shown in fig. 1-2 includes that an external monitoring protection device acquires temperature data of an industrial control mainboard, and sets an alarm threshold and a safety threshold of the temperature data;
when the temperature data is higher than the alarm threshold, the external monitoring protection device outputs a low-level PROCHOT # signal to reduce the frequency of a CPU on the industrial control mainboard;
and (3) counting to obtain the time Tn required by the temperature to be reduced from the alarm threshold to the safety threshold, and calculating the value of the retention time T of the low-level PROCHOT # signal according to the following formula:
T=(3×Tn+2×T(n-1)+T(n-2))÷6;
tn is the time required by the current timing temperature to be reduced from the alarm threshold value to the safety threshold value, T (n-1) is the time required by the countdown timing temperature to be reduced from the alarm threshold value to the safety threshold value, and T (n-2) is the time required by the countdown timing temperature to be reduced from the alarm threshold value to the safety threshold value;
when the temperature is lowered to a safety threshold, the low level PROCHOT # signal is delayed and output according to the holding time T, and after the delay is finished, the PROCHOT # signal is set to a high level.
Preferably, when the temperature data increases, when T (n-2) < T (n-1) < Tn, the value of the holding time T increases slowly with the temperature change;
when the temperature data falls, at which Tn < T (n-1) < T (n-2), the value of the holding time T decreases slowly with the temperature change.
Preferably, the PROCHOT # signal is a turbo function control interface on the CPU.
Preferably, the external monitoring protection device acquires the temperature data of the industrial control mainboard through an I2C bus.
Preferably, the external monitoring protection device acquires the temperature data of the CPU through the NCT6106D chip on the industrial control motherboard, and the external monitoring protection device communicates with the NCT6106D chip through an I2C bus.
The invention realizes the reduction of the CPU frequency by controlling the pull-down time of the PROCHOT # signal, thereby reducing the temperature.
Example 2:
as shown in fig. 1-2, an external monitoring and protecting system for a motherboard in embodiment 2 is configured to the external monitoring and protecting method for a motherboard in embodiment 1, and includes an external monitoring and protecting device, a motherboard connector, and an industrial control motherboard, where the external monitoring and protecting device includes a power module, an FPGA main control chip, and peripheral circuits thereof, the industrial control motherboard is provided with an NCT6106D chip and a CPU, the FPGA main control chip communicates with the motherboard connector through an I2C bus, the motherboard connector communicates with the NCT6106D chip through an I2C bus, the NCT6106D chip communicates with the CPU, the power module supplies power to the FPGA main control chip and the peripheral circuits thereof, the FPGA main control chip is connected through a PROCHOT # interface on an IO port motherboard connector, and the PROCHOT # interface of the motherboard connector is connected with a PROCHOT # signal control port of the CPU.
Preferably, the power module motherboard connector is connected with a power supply on the industrial control board and supplies power through the power supply on the industrial control motherboard.
As shown in fig. 1, the FPGA main control chip and its peripheral circuits form a minimum system board of the FPGA, in this embodiment, the motherboard connector is a socket interface, and includes a VCC signal interface, a GND signal interface, an SCL signal interface, an SDA signal interface, and a PROCHOT # signal interface, an I2C interface of the minimum system board of the FPGA is connected to the SCL signal interface and the SDA signal, and the power module is connected to the VCC signal interface and the GND signal interface.
The invention relates to a mainboard external monitoring protection method and a system thereof, which solve the technical problem of adjusting the temperature of a CPU by dynamically adjusting the Rui-freq time of the CPU, the invention does not occupy an LPC interface of an NCT6106D chip, adopts an I2C interface idle by the NCT6106D chip to read temperature data, reduces communication load, adopts external monitoring protection, has higher reliability and prolongs the service life of a mainboard, and dynamically adjusts the Rui-freq time of the CPU by calculating a function change value of retention time T, thereby more accurately controlling the Rui-freq of the CPU and prolonging the service life of the CPU.
- 上一篇:石墨接头机器人自动装卡簧、装栓机
- 下一篇:一种新型计算机信息处理装置