Watchdog circuit for industrial gateway

By designing a watchdog circuit that combines a three-state data buffer output gate and a transistor in an industrial gateway, the problem of false triggering of the watchdog circuit caused by too long boot time of the software system is solved, and the stability and reliability of the system are achieved. promote.

CN221827317UActive Publication Date: 2024-10-11LUOWEI TECH (HANGZHOU) CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202420437468.6
Authority / Receiving Office
CN · China
Patent Type
Utility models(China)
Current Assignee / Owner
Filing Date
2024-03-06
Publication Date
2024-10-11
Estimated Expiration
2034-03-06

AI Technical Summary

Technical Problem

In industrial scenarios, a software system that takes too long to boot may cause the watchdog circuit to accidentally trigger, causing unnecessary system restarts and affecting system stability.

Method used

A watchdog circuit for industrial gateways is designed. Through the combination of the main control unit and the watchdog IC unit, the three-state data buffer output gate and transistor and other components are used to monitor the running status of the software system to ensure that the software system The reset signal is triggered to restart the system when it crashes, and it controls the switch of the watchdog function when the watchdog function enable signal changes.

Benefits of technology

It effectively reduces system abnormalities and unnecessary restart operations, avoids accidental triggering of the watchdog circuit caused by too long boot time of the software system, and ensures system stability and reliability.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN221827317U_ABST
    Figure CN221827317U_ABST
Patent Text Reader

Abstract

The utility model discloses a watchdog circuit for an industrial gateway, which relates to the technical field of auxiliary circuits and comprises a watchdog IC (integrated circuit) unit for triggering a reset signal and outputting a low level to a reset circuit of a system to trigger the system to be restarted; the main control unit is used for outputting a level signal for controlling a function switch of the watchdog IC unit; the main control unit comprises a first chip, a second resistor, a third resistor, a fourth resistor and a first triode; a first end of the second resistor is connected with a function enable signal input end, a second end of the second resistor is connected with a first end of the third resistor and a base electrode of the first triode in parallel, and a second end of the third resistor and an emitting electrode of the first triode are respectively grounded. According to the watchdog circuit, the situation that the watchdog circuit is mistakenly touched due to the fact that the starting time of a software system is too long can be prevented.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The utility model relates to the technical field of auxiliary circuits, and in particular provides a watchdog circuit for an industrial gateway. Background Art

[0002] Currently, in industrial scenarios, software systems may experience abnormal phenomena such as software system crashes. It is required that the system can automatically restart after the software system crashes. Therefore, a circuit is provided to prevent the software system from starting up for too long, which may cause the watchdog circuit to be accidentally triggered.

[0003] In industrial scenarios, software systems play a vital role, but due to their complexity, the instability of the operating environment, and the existence of external interference factors, software systems occasionally fail, such as freezing, crashing, or freezing. These abnormal conditions not only affect the normal operation of the system, but may also lead to interruptions in the production process and even cause significant economic losses. In order to enhance the reliability and stability of industrial software systems, the automatic restart mechanism has become a common solution. When an abnormality occurs in the software system, the automatic restart mechanism can quickly restart the system to restore its normal operation. This mechanism is usually implemented by monitoring the operating status of the software system, and once a system abnormality is detected, the restart process will be triggered.

[0004] However, when implementing the automatic restart mechanism, the impact of the watchdog circuit also needs to be considered. The watchdog circuit is a commonly used hardware protection mechanism that monitors the operating status of the system. If the system does not send a heartbeat signal to the watchdog circuit within a certain period of time, the watchdog circuit will consider the system to have failed and take corresponding measures, such as restarting the system.

[0005] In some cases, the boot time of a software system may be long, especially when performing complex initialization operations. If a heartbeat signal is not sent to the watchdog circuit in time during this period, the watchdog circuit may mistakenly believe that the system is in a fault state, thereby triggering an unnecessary restart operation. This will not only interfere with the ongoing task, but may also have a negative impact on the stability of the system. Utility Model Content

[0006] In order to solve at least one of the technical problems mentioned in the background technology, the purpose of the present utility model is to provide a watchdog circuit for an industrial gateway to prevent the watchdog circuit from being accidentally triggered due to a software system startup time being too long.

[0007] To achieve the above-mentioned purpose, the utility model provides the following technical solutions, including: a watchdog IC unit: used to trigger a reset signal, output a low level to the reset circuit of the system to trigger the system to restart;

[0008] Main control unit: used to output the level signal to control the function switch of the watchdog IC unit;

[0009] The main control unit includes a first chip, a second resistor, a third resistor, a fourth resistor and a first transistor; the first end of the second resistor is connected to the function enable signal input end, the second end of the second resistor is connected in parallel with the first end of the third resistor and the base of the first transistor, the second end of the third resistor and the emitter of the first transistor are grounded respectively, the collector of the first transistor is connected to the data input end of the first chip, and the data output end of the first chip and the fourth resistor are connected in series and connected to the signal input end of the watchdog IC unit;

[0010] The watchdog IC unit includes a second chip, a first diode and a second diode, wherein the cathodes of the first diode and the second diode are respectively connected to the signal output end of the second chip, and the anodes of the first diode and the second diode are connected in parallel to the reset circuit of the system.

[0011] Furthermore, the main control unit further includes a fifth resistor and a second capacitor;

[0012] The first end of the fifth resistor is connected to the signal end of the power supply network, the second end of the fifth resistor is connected in parallel to the collector of the first transistor and the data input end of the first chip, the first end of the second capacitor is connected in parallel to the voltage input end of the first chip, and the second end of the second capacitor is grounded.

[0013] Further, the watchdog IC unit also includes a first resistor and a first capacitor;

[0014] The first end of the first resistor is connected to the power supply voltage drop monitoring input terminal of the second chip, the second end of the first resistor is grounded, the first end of the first capacitor is connected in parallel to the voltage input terminal of the second chip, and the second end of the first capacitor is grounded.

[0015] Furthermore, the first chip uses a three-state data buffer output gate, model SN74LVC1G125.

[0016] Furthermore, the second chip adopts a watchdog IC, model SGM706.

[0017] Compared with the prior art, the beneficial effects of the utility model are:

[0018] The watchdog circuit of the utility model realizes the monitoring of the automatic restart function by combining the components such as the three-state data buffer output gate, the triode, and multiple signal lines. When the watchdog function enable signal is at a low level, after the inversion of the first triode, the PIN1 input of the first chip is at a high level, the PIN4 of the first chip is a high-impedance output, the watchdog function of the second chip is disabled, and the PIN8 of the second chip does not output a low level; when the watchdog function enable signal is at a high level, after the inversion of the first triode, the PIN1 input of the first chip is at a low level, the PIN4 output of the first chip is consistent with the input level of PIN2, the watchdog function of the second chip is activated, and in the case of a software system crash, a reset signal is triggered, and the PIN8 of the second chip will output a low level to the reset circuit of the system to trigger the system restart, and the entire software system restarts at this time. When a system fails, the watchdog circuit can detect the abnormality and trigger the system restart. While ensuring that the software system is running again, the system abnormality and unnecessary restart operations are further reduced, and the watchdog circuit error caused by the long startup time of the software system is avoided. BRIEF DESCRIPTION OF THE DRAWINGS

[0019] Figure 1 A schematic diagram of the structure of a watchdog circuit for an industrial gateway provided by an embodiment of the utility model;

[0020] Figure 2 A circuit schematic diagram of a main control unit in a watchdog circuit for an industrial gateway provided by an embodiment of the utility model;

[0021] Figure 3 A circuit schematic diagram of a watchdog IC unit in a watchdog circuit for an industrial gateway provided in an embodiment of the utility model. DETAILED DESCRIPTION

[0022] The technical solutions in the embodiments of the utility model are described clearly and completely below. Obviously, the described embodiments are only part of the embodiments of the utility model, not all of them. Based on the embodiments of the utility model, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the utility model.

[0023] See also Figures 1 to 3 , this embodiment provides a watchdog circuit for an industrial gateway, including:

[0024] Watchdog IC unit: used to trigger the reset signal, output a low level to the system's reset circuit to trigger the system restart;

[0025] Main control unit: used to output the level signal to control the function switch of the watchdog IC unit;

[0026] The main control unit includes a first chip U2, a second resistor R2, a third resistor R3, a fourth resistor R4 and a first transistor Q1; the first end of the second resistor R2 is connected to the function enable signal input end, the second end of the second resistor R2 is connected in parallel with the first end of the third resistor R3 and the base of the first transistor, the second end of the third resistor R3 and the emitter of the first transistor Q1 are grounded respectively, the collector of the first transistor Q1 is connected to the data input end of the first chip U2, and the data output end of the first chip U2 and the fourth resistor R4 are connected in series and connected to the signal input end of the watchdog IC unit;

[0027] The watchdog IC unit includes a second chip U1, a first diode D1 and a second diode D2, wherein the cathodes of the first diode D1 and the second diode D2 are respectively connected to the signal output end of the second chip U1, and the anodes of the first diode D1 and the second diode D2 are connected in parallel to the reset circuit of the system.

[0028] Specifically, the second chip U1, i.e., the watchdog IC, is responsible for monitoring the running state of the software system. If the software system does not alternately output the high and low levels of the WDI_IN signal within a certain period of time, such as 1.6 seconds, the second chip U1 will trigger a reset signal.

[0029] Specifically, the first chip U2, namely the three-state data buffer output gate, has three states: high level output, low level output and high impedance output. The output state of PIN4 of the first chip U2 depends on the input state of PIN1 and the input state of PIN2.

[0030] Specifically, the first transistor Q1 is used to invert the watchdog function enable signal WOG_EN_H. When the watchdog function enable signal WOG_EN_H is at a high level, the first transistor Q1 is turned on, so that the PIN1 of the first chip U2 is at a low level; when the watchdog function enable signal WOG_EN_H is at a low level, the first transistor Q1 is turned off, so that the PIN1 of the first chip U2 is at a high level.

[0031] Specifically, the first resistor R1, the second resistor R2, the third resistor R3, the fourth resistor R4 and the fifth resistor R5 are all used for current limiting and biasing. The first capacitor C1 and the second capacitor C2 are used for filtering and voltage stabilization. Power network signal VCC: provides working voltage for the circuit. Watchdog function enable signal WOG_EN_H: controls the switch of the watchdog function. Data output terminal WDI_IN: provided by the software system, used to trigger the watchdog IC unit. Data input terminal WDI: connected to PIN2 of the first chip U2, which is the signal of the data input terminal WDI_IN after being buffered by the first chip U2. The watchdog IC unit outputs the signal RESET_L. When the second chip U1 detects an abnormality in the software system, this signal becomes a low level, triggering the system to restart.

[0032] Working principle:

[0033] Watchdog function off state: When the watchdog function enable signal WOG_EN_H is low, the first transistor Q1 is turned off, PIN1 of the first chip U2 is high, and PIN4 of the first chip U2 enters high impedance output. At this time, the watchdog function is disabled, and even if the software system fails, PIN8 of the second chip U1 will not output a low level.

[0034] Watchdog function on state: When the watchdog function enable signal WOG_EN_H is high, the first transistor Q1 is turned on, PIN1 of the first chip U2 is low, and the output state of PIN4 of the first chip U2 follows the input state of PIN2. At this time, if the software system does not alternately output the high and low levels of the WDI_IN signal within 1.6 seconds, the second chip U1 will determine that the system has a fault, and its PIN8 will output a low level, causing the RESET_L signal to become low, triggering the restart of the software system.

[0035] See also Figure 2 , wherein the main control unit further includes a fifth resistor R5 and a second capacitor C2;

[0036] The first end of the fifth resistor R5 is connected to the power network signal terminal VCC, the second end of the fifth resistor R5 is connected in parallel with the collector of the first transistor Q1 and the data input terminal of the first chip U2, the first end of the second capacitor C2 is connected in parallel with the voltage input terminal of the first chip U2, and the second end of the second capacitor C2 is grounded.

[0037] See also Figure 3 , wherein the watchdog IC unit further includes a first resistor R1 and a first capacitor C1;

[0038] The first end of the first resistor R1 is connected to the power supply voltage drop monitoring input terminal of the second chip U1, the second end of the first resistor R1 is grounded, the first end of the first capacitor C1 is connected in parallel to the voltage input terminal of the second chip U1, and the second end of the first capacitor C1 is grounded.

[0039] Specifically, the watchdog signal output terminal RESET_L is connected to the reset circuit of the system. When the second chip U1 of the watchdog IC unit detects an abnormality in the software system, the signal output terminal RESET_L signal will become a low level, triggering the reset circuit of the system, thereby restarting the system. This ensures that when an abnormality occurs in the software, the system can automatically restore to its initial state, thereby improving the stability and reliability of the system. The watchdog signal output terminal RESET_L is usually connected to the reset pin of the system through a resistor. The function of this resistor is to limit the size of the reset current and protect the system from excessive current shocks. At the same time, other reset sources may also be connected to the reset pin, such as a manual reset button. These reset sources can be managed by logic circuits or microcontrollers to achieve different reset functions.

[0040] Specifically, when connecting the watchdog signal output terminal RESET_L, ensure that the connection method with the reset circuit is correct to avoid the system not working properly due to connection errors. At the same time, the parameters of the watchdog timer should be reasonably set according to the specific hardware and software design to ensure that it can trigger the reset operation in time when the system is abnormal.

[0041] Among them, the first chip U2 uses a three-state data buffer output gate, model SN74LVC1G125.

[0042] The second chip U1 uses a watchdog IC, model SGM706.

[0043] The watchdog circuit of the utility model realizes the monitoring of the automatic restart function by combining the three-state data buffer output gate, transistors and other components, as well as multiple signal lines. When the watchdog function enable signal is low level, after the inversion of the first transistor, the PIN1 input of the first chip is high level, the PIN4 of the first chip is high impedance output, the watchdog function of the second chip is disabled, and the PIN8 of the second chip does not output low level; when the watchdog function enable signal is high level, after the inversion of the first transistor, the PIN1 input of the first chip is low level, the PIN4 output of the first chip is consistent with the input level of PIN2, the watchdog function of the second chip is activated, and in the case of software system crash, the PIN8 of the second chip will output low level, so that the output signal of the watchdog IC unit becomes low, and the entire software system restarts. When the system fails, the watchdog circuit can detect the abnormality and connect to trigger the system restart. Under the condition of ensuring that the software system is running again, the system abnormality and unnecessary restart operation are further reduced, and the watchdog circuit error caused by the long startup time of the software system is avoided.

[0044] It is obvious to those skilled in the art that the present invention is not limited to the details of the exemplary embodiments described above, and that the present invention can be implemented in other specific forms without departing from the spirit or basic features of the present invention. Therefore, no matter from which point of view, the embodiments should be regarded as exemplary and non-restrictive, and the scope of the present invention is defined by the appended claims rather than the above description, and it is intended that all changes falling within the meaning and scope of the equivalent elements of the claims are included in the present invention.

Claims

1. A watchdog circuit for an industrial gateway, characterized in that: include: Watchdog IC unit: used to trigger the reset signal, output a low level to the system's reset circuit to trigger the system restart; Main control unit: used to output the level signal to control the function switch of the watchdog IC unit; The main control unit includes a first chip, a second resistor, a third resistor, a fourth resistor and a first transistor; the first end of the second resistor is connected to the function enable signal input end, the second end of the second resistor is connected in parallel with the first end of the third resistor and the base of the first transistor, the second end of the third resistor and the emitter of the first transistor are grounded respectively, the collector of the first transistor is connected to the data input end of the first chip, and the data output end of the first chip and the fourth resistor are connected in series and connected to the signal input end of the watchdog IC unit; The watchdog IC unit includes a second chip, a first diode and a second diode, wherein the cathodes of the first diode and the second diode are respectively connected to the signal output end of the second chip, and the anodes of the first diode and the second diode are connected in parallel to the reset circuit of the system.

2. The watchdog circuit for an industrial gateway according to claim 1, characterized in that: The main control unit also includes a fifth resistor and a second capacitor; The first end of the fifth resistor is connected to the signal end of the power supply network, the second end of the fifth resistor is connected in parallel to the collector of the first transistor and the data input end of the first chip, the first end of the second capacitor is connected in parallel to the voltage input end of the first chip, and the second end of the second capacitor is grounded.

3. The watchdog circuit for an industrial gateway according to claim 1, characterized in that: The watchdog IC unit also includes a first resistor and a first capacitor; The first end of the first resistor is connected to the power supply voltage drop monitoring input terminal of the second chip, the second end of the first resistor is grounded, the first end of the first capacitor is connected in parallel to the voltage input terminal of the second chip, and the second end of the first capacitor is grounded.

4. The watchdog circuit for an industrial gateway according to claim 1, characterized in that: The first chip uses a three-state data buffer output gate, model SN74LVC1G125.

5. The watchdog circuit for an industrial gateway according to claim 1, characterized in that: The second chip is a watchdog IC, model SGM706.