Double-watchdog protection system, method and device and storage medium

By introducing a dual watchdog protection system into the system, the differences in fast and slow watchdog circuits are used to solve the problems of stability and power consumption during sleep, and the safety and reliability are improved, while reducing the System cost.

CN118964068APending Publication Date: 2024-11-15SHANGHAI JUSHENG TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202310513479.8
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2023-05-08
Publication Date
2024-11-15

AI Technical Summary

Technical Problem

Existing watchdog protection systems cannot guarantee stability when the system sleeps, and frequent wake-up and sleep have a negative impact on system stability and power consumption.

Method used

Adopt a dual watchdog protection system, including a fast watchdog circuit and a slow watchdog circuit, to enable and close management through detection signals, and close the fast watchdog in a sleep state, wake up the slow watchdog to reduce power. Consumption.

Benefits of technology

It effectively solves the security and stability problems of the controller in the sleep state, significantly reduces power consumption, and ensures full coverage detection of the watchdog circuit through cross-switching, reducing system costs.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118964068A_ABST
    Figure CN118964068A_ABST
Patent Text Reader

Abstract

The embodiment of the invention provides a double-watchdog protection system and method. The system comprises a controller power consumption management unit, a controller equipment management unit, a first watchdog circuit and a second watchdog circuit. The controller power consumption management unit is used for sending a first control signal to the controller equipment management unit based on the detection signal; the controller equipment management unit is used for performing on-off management on the first watchdog circuit and the second watchdog circuit based on the first control signal; the first timeout reset duration of the first watchdog circuit is smaller than a first preset threshold value, and the first preset threshold value is a millisecond threshold value; the second timeout reset duration of the second watchdog circuit is configured based on system state information, and the system state information is determined based on the detection signal; the first overtime reset duration is smaller than the second overtime reset duration, and the difference value between the second overtime reset duration and the first overtime reset duration is larger than a second preset threshold value.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of watchdogs, and in particular to a dual watchdog protection system, method, device and storage medium. Background Art

[0002] The watchdog is a protection mechanism to ensure the normal operation of the system or equipment, or to exit from abnormal states such as infinite loops and deadlocks. It is mainly used to monitor the system operation status and solve faults caused by the program. The system clears the watchdog within a certain time range (commonly known as "feeding the dog"), so when the system is working normally, the timer will never overflow, and no reset signal will be generated. If the program fails and the watchdog is not reset within the timing period, a reset signal will be generated when the watchdog overflows and the system will be restarted.

[0003] At present, most practices are to turn off the hardware watchdog before the system enters sleep mode, or feed the watchdog after waking up the system regularly before entering sleep mode, to prevent the reset signal from being generated due to watchdog timeout in sleep mode. However, turning off the watchdog before the system enters sleep mode cannot guarantee the stability of the system during sleep mode: if the program is blocked or a serious abnormality occurs during system sleep mode, the watchdog cannot play its original monitoring role. At the same time, by waking up the sleeping system regularly and then feeding the watchdog, the system will be frequently woken up and enter sleep mode, which will have a certain impact on the stability of the system, and the purpose of reducing system power consumption cannot be achieved through system sleep mode.

[0004] In order to solve the deficiencies in the prior art, it is hoped to provide a watchdog protection system. Summary of the invention

[0005] In view of this, this specification proposes a dual watchdog protection system, method, device and storage medium to solve the above technical problems.

[0006] One of the embodiments of the present specification provides a dual watchdog protection system, the system comprising a controller power consumption management unit, a controller device management unit, a first watchdog circuit and a second watchdog circuit; the controller power consumption management unit is used to send a first control signal to the controller device management unit based on a detection signal; the controller device management unit is used to manage the opening and closing of the first watchdog circuit and the second watchdog circuit based on the first control signal; the first timeout reset duration of the first watchdog circuit is less than a first preset threshold, and the first preset threshold is a millisecond threshold; the second timeout reset duration of the second watchdog circuit is configured based on system status information, and the system status information is determined based on the detection signal; the first timeout reset duration is less than the second timeout reset duration, and the difference between the second timeout reset duration and the first timeout reset duration is greater than the second preset threshold.

[0007] In some embodiments, the second watchdog circuit is connected to the controller device management unit via an I2C bus.

[0008] In some embodiments, the system is applied to an automobile electronic system, and the detection signal includes at least one of whether the automobile is started, whether the automobile display screen is started, and whether the automobile is in a driving state.

[0009] In some embodiments, the controller power consumption management unit is also used to obtain a wake-up signal, and in response to the wake-up signal being a real-time clock cycle wake-up, sends a second control signal to the controller device management unit; the controller device management unit is also used to perform dog feeding management on the second watchdog circuit based on the second control signal.

[0010] In some embodiments, the on / off management includes cross-switching the first watchdog circuit and the second watchdog circuit, and the cross-switching includes turning on one of the watchdog circuits and then turning off the other watchdog circuit.

[0011] In some embodiments, the first timeout reset duration is 100 ms, and the wake-up period of the second watchdog circuit is 30 s.

[0012] One of the embodiments of the present specification provides a dual watchdog protection method, which is implemented based on a dual watchdog protection system, and the dual watchdog protection system includes a controller power consumption management unit, a controller device management unit, a first watchdog circuit, and a second watchdog circuit; the method is executed by the controller power consumption management unit, and includes: based on a detection signal, sending a first control signal to the controller device management unit; based on the first control signal, managing the opening and closing of the first watchdog circuit and the second watchdog circuit through the controller device management unit.

[0013] In some embodiments, the method further includes: obtaining a wake-up signal; in response to the wake-up signal being a real-time clock cycle wake-up, sending a second control signal to the controller device management unit; based on the second control signal, performing dog feeding management on the second watchdog circuit through the controller device management unit.

[0014] One of the embodiments of the present specification provides a dual watchdog protection device, including a processor, wherein the processor is used to execute the dual watchdog protection method as described above.

[0015] One of the embodiments of the present specification provides a computer-readable storage medium, wherein the storage medium stores computer instructions. When a computer reads the computer instructions in the storage medium, the computer executes the dual watchdog protection method as described above.

[0016] The beneficial effects of the embodiments of this specification include at least:

[0017] (1) By setting a first watchdog circuit (i.e., a fast watchdog) and a second watchdog circuit (i.e., a slow watchdog), the problem that the controller cannot ensure sleep safety when it is in sleep mode can be effectively solved. At the same time, compared with frequently waking up the fast watchdog when the controller is in sleep mode, by turning off the fast watchdog and waking up the slow watchdog when the controller is in sleep mode, power consumption can be significantly reduced, the safety and operation reliability of the controller can be ensured, and the sleep power consumption of the controller can be effectively reduced;

[0018] (2) By cross-switching the first watchdog circuit and the second watchdog circuit, the watchdog circuit is guaranteed to fully cover the controller detection;

[0019] (3) By using the first watchdog circuit (i.e., fast watchdog) and the second watchdog circuit (i.e., slow watchdog) in the automotive electronic system, the system cost of electric vehicles can be effectively reduced. By using the first watchdog circuit with a shorter first timeout reset duration, the driving safety of the vehicle can be effectively guaranteed. By distinguishing the wake-up signal and only using the second watchdog circuit to feed the watchdog when the real-time clock cycle wakes up, the system power consumption can be effectively reduced. BRIEF DESCRIPTION OF THE DRAWINGS

[0020] This specification will be further described in the form of exemplary embodiments, which will be described in detail by the accompanying drawings. These embodiments are not restrictive, and in these embodiments, the same number represents the same structure, wherein:

[0021] Figure 1 is an exemplary hardware structure diagram of a dual watchdog protection system according to some embodiments of this specification;

[0022] Figure 2 is an exemplary flow chart of a dual watchdog protection method according to some embodiments of this specification;

[0023] Figure 3 is another exemplary flow chart of the dual watchdog protection method according to some embodiments of this specification;

[0024] Figure 4 is an exemplary schematic diagram of a dual watchdog protection system applied to an automotive electronic system according to some embodiments of this specification. DETAILED DESCRIPTION

[0025] In order to more clearly illustrate the technical solutions of the embodiments of this specification, the following is a brief introduction to the drawings required for the description of the embodiments. Obviously, the drawings described below are only some examples or embodiments of this specification. For ordinary technicians in this field, this specification can also be applied to other similar scenarios based on these drawings without creative work. Unless it is obvious from the language environment or otherwise explained, the same reference numerals in the figures represent the same structure or operation.

[0026] It should be understood that the "system", "device", "unit" and / or "module" used herein are a method for distinguishing different components, elements, parts, portions or assemblies at different levels. However, if other words can achieve the same purpose, the words can be replaced by other expressions.

[0027] As shown in this specification and claims, unless the context clearly indicates an exception, the words "a", "an", "an" and / or "the" do not refer to the singular and may also include the plural. Generally speaking, the terms "comprise" and "include" only indicate the inclusion of the steps and elements that have been clearly identified, and these steps and elements do not constitute an exclusive list. The method or device may also include other steps or elements.

[0028] Flowcharts are used in this specification to illustrate the operations performed by the system according to the embodiments of this specification. It should be understood that the preceding or following operations are not necessarily performed precisely in order. Instead, the steps may be processed in reverse order or simultaneously. At the same time, other operations may also be added to these processes, or one or more operations may be removed from these processes.

[0029] Figure 1 It is an exemplary hardware structure diagram of a dual watchdog protection system according to some embodiments of this specification.

[0030] like Figure 1 As shown, the dual watchdog protection system 100 may include a controller power management unit 110 , a controller device management unit 120 , a first watchdog circuit 130 , and a second watchdog circuit 140 .

[0031] The controller power consumption management unit 110 refers to a module unit in the controller for performing power consumption management.

[0032] In some embodiments, the controller may include but is not limited to a microcontroller unit (MCU), an embedded device, a CPU controller, an electric vehicle controller, etc.

[0033] In some embodiments, the controller power consumption management unit 110 may be configured to send a first control signal to the controller device management unit 120 based on the detection signal.

[0034] The detection signal may be a signal related to the state of the controller. For example, the detection signal may include whether the controller is powered off, etc. In some embodiments, the detection signal may include at least one of the controller being in a running state and the controller being in a dormant state.

[0035] In some embodiments, the dual watchdog protection system 100 may be applied to an automotive electronic system. Accordingly, the detection signal may include a signal related to the state of the automotive electronic system.

[0036] In some embodiments, the detection signal includes at least one of whether the car is started, whether the car display screen is started, and whether the car is in a driving state.

[0037] In some embodiments, the detection signal may also include signals in various other forms. For example, the detection signal may also be a signal for locking the vehicle from the outside, etc. This specification does not impose any limitation on this.

[0038] The first control signal refers to a control signal used to control the first watchdog circuit 130 and / or the second watchdog circuit 140 to be turned on and / or off. For example, the first control signal can be used to control the first watchdog circuit 130 to be turned off, and control the second watchdog circuit 140 to be turned on. For another example, the first control signal can be used to control the first watchdog circuit 130 to be turned on, and control the second watchdog circuit 140 to be turned off.

[0039] In some embodiments, the first control signal is related to the detection signal. In some embodiments, when the detection signal is that the controller enters a sleep state, the first control signal can be used to control the first watchdog circuit 130 to be turned off and the second watchdog circuit 140 to be turned on; when the detection signal is that the controller enters a running state, the first control signal can be used to control the first watchdog circuit 130 to be turned on and the second watchdog circuit 140 to be turned off.

[0040] In some embodiments, the controller power consumption management unit 110 may also be configured to obtain a wake-up signal, and in response to the wake-up signal being a real-time clock cycle wake-up, send a second control signal to the controller device management unit 120 .

[0041] The wake-up signal may be a signal for waking up the controller from a sleep state to an operating state.

[0042] In some embodiments, the wake-up signal may include, but is not limited to, real-time clock cycle wake-up, key press wake-up, remote wake-up, etc.

[0043] The real-time clock cycle wake-up may include a method of periodically waking up the controller according to a set time. In some embodiments, the real-time clock cycle wake-up may wake up the controller once every wake-up cycle. For example, the controller power consumption management unit 110 may obtain a wake-up signal of the real-time clock cycle wake-up once every wake-up cycle, and send a second control signal to the controller device management unit 120 each time the wake-up signal is received.

[0044] Key wake-up may include waking up the controller by pressing a set key (e.g., a power key, any key on the keyboard, screen, etc.). Remote wake-up may include waking up the controller by networking a user terminal. A user terminal refers to an electronic device used by a user, and may include various mobile devices, smart devices, wearable devices, etc., such as mobile phones, smart bracelets, and vehicle-mounted computers.

[0045] In some embodiments, the wake-up signal may also be in any other form, which is not limited in this specification.

[0046] The second control signal refers to a control signal for performing dog feeding management on the relevant device when receiving a wake-up signal of a real-time clock cycle wake-up, wherein the dog feeding management refers to the operation of clearing the watchdog circuit.

[0047] In some embodiments, when the wake-up signal received by the controller power management unit 110 is a real-time clock cycle wake-up, a second control signal may be sent to the controller device management unit 120 to notify the controller device management unit 120 to perform dog feeding management on the second watchdog circuit 140 .

[0048] In some embodiments, when the dual watchdog protection system 100 can be applied to an automotive electronic system, the wake-up period of the second watchdog circuit 140 receiving a real-time clock cycle wake-up can be 30 seconds.

[0049] The controller device management unit 120 refers to a module unit in the controller for performing device management. For example, the controller device management unit 120 can manage the first watchdog circuit 130 and the second watchdog circuit 140 .

[0050] In some embodiments, before the controller device management unit 120 receives the first control signal, it can turn on the first watchdog circuit 130 and perform dog feeding management on the first watchdog circuit 130 according to the first dog feeding cycle. The first dog feeding cycle refers to the dog feeding cycle of the first watchdog circuit 130. For more information about the first dog feeding cycle, see below.

[0051] In some embodiments, the controller device management unit 120 may be configured to manage the on / off status of the first watchdog circuit 130 and the second watchdog circuit 140 based on the first control signal.

[0052] On / off management refers to management operations related to turning on and / or off the watchdog circuit. In some embodiments, the controller device management unit 120 can control one of the first watchdog circuit 130 and the second watchdog circuit 140 to turn on, and control the other watchdog circuit to turn off, based on the first control signal. In a specific embodiment, when the first watchdog circuit 130 is turned on and the second watchdog circuit 140 is turned off, when the controller power consumption management unit 110 receives a detection signal indicating that the controller enters a sleep state, a first control signal can be sent to the controller device management unit 120, and the on / off management of the first watchdog circuit 130 and the second watchdog circuit 140 by the controller device management unit 120 includes: switching the first watchdog circuit 130 from on to off, and switching the second watchdog circuit 140 from off to on.

[0053] In some embodiments, the on / off management may include cross-switching the first watchdog circuit 130 and the second watchdog circuit 140. In some embodiments, the cross-switching may include turning on one of the first watchdog circuit 130 and the second watchdog circuit 140 and then turning off the other watchdog circuit.

[0054] In a specific embodiment, when the first watchdog circuit 130 is turned on and the second watchdog circuit 140 is turned off, when the controller power consumption management unit 110 receives a detection signal indicating that the controller has entered a sleep state, a first control signal can be sent to the controller device management unit 120. The controller device management unit 120 performs on-off management of the first watchdog circuit 130 and the second watchdog circuit 140, including: first switching the second watchdog circuit 140 from off to on, and then switching the first watchdog circuit 130 from on to off.

[0055] In some embodiments of the present specification, by cross-switching the first watchdog circuit and the second watchdog circuit, it is ensured that the watchdog circuit fully covers the detection of the controller.

[0056] In some embodiments, the controller device management unit 120 may also be configured to perform watchdog feeding management on the second watchdog circuit 140 based on the second control signal.

[0057] In some embodiments, the dog feeding management of the second watchdog circuit 140 can be periodic. After completing one dog feeding management of the second watchdog circuit 140, the controller power management unit 110 can make the controller re-enter the sleep state from the awake state, and when receiving the real-time clock cycle wake-up again after every wake-up cycle, wake up the controller and notify the controller device management unit 120 to perform another dog feeding management on the second watchdog circuit 140, and then make the controller re-enter the sleep state from the awake state, and repeat this for multiple times until receiving other wake-up signals that are not wake-up signals of the real-time clock cycle.

[0058] In some embodiments, when the controller power management unit 110 receives other wake-up signals other than real-time clock cycle wake-up, it may send a first control signal to the controller device management unit 120 to enable and disable the first watchdog circuit 130 and the second watchdog circuit 140. Accordingly, in some embodiments, the detection signal may also include receiving other wake-up signals other than real-time clock cycle wake-up such as key wake-up and remote wake-up.

[0059] The first watchdog circuit 130 may be a fast watchdog. The model of the first watchdog circuit 130 may include but is not limited to STWD100YNXWY3F.

[0060] In some embodiments, the first timeout reset duration of the first watchdog circuit 130 may be less than a first preset threshold value, which is a millisecond threshold value. The first preset threshold value may be a duration threshold value related to the first timeout reset duration. The first preset threshold value may be a system default value, an experience value, a manually preset value, or any combination thereof, and may be set according to actual needs, and this specification does not limit this.

[0061] In some embodiments, when the dual watchdog protection system 100 is applied to an automotive electronic system, the first timeout reset duration of the first watchdog circuit 130 can be 100ms, and the first timeout reset duration can also be other millisecond values ​​that meet the driving safety of the vehicle, such as 95 milliseconds, 98 milliseconds, 103 milliseconds, etc., preferably 100 milliseconds. After testing, the reset duration of 100 milliseconds can meet the safety requirements of electric vehicles in driving. Through this setting, the first watchdog circuit can be regularly cleared at a higher frequency when the automotive electronic system is in operation, effectively and timely discover operating obstacles, and can generate a reset signal and restart the system when an operating obstacle occurs, thereby ensuring the driving safety of the vehicle.

[0062] In some embodiments, when the first watchdog circuit 130 is in an on state, periodic watchdog feeding management may be performed according to the first timeout reset duration.

[0063] In some embodiments, the first watchdog circuit 130 can be connected to the controller device management unit 120 through a GPIO interface 131. Preferably, the first watchdog circuit 130 can be connected to the controller device management unit 120 through two GPIO interfaces, wherein one GPIO interface is used to control the opening and closing of the first watchdog circuit 130, and the other GPIO interface is used to manage the feeding of the first watchdog circuit 130.

[0064] In some embodiments, the first dog feeding cycle may be shorter than the first timeout reset duration. Preferably, the first dog feeding cycle may be 30 ms.

[0065] The second watchdog circuit 140 may be a slow watchdog. The model of the second watchdog circuit 140 may include but is not limited to MPF5020.

[0066] In some embodiments, the second timeout reset duration of the second watchdog circuit 140 may be a configurable timeout reset duration. In some embodiments, the second timeout reset duration of the second watchdog circuit 140 may be configured based on system status information, which may be determined based on the detection signal.

[0067] In some embodiments, the system state information includes at least a running state and a sleeping state. In the running state, the controller is in a high power consumption mode; in the sleeping state, the controller is in a low power consumption mode.

[0068] In some embodiments, when the dual watchdog protection system 100 is applied to an automotive electronic system, the automotive electronic system is in operation, and external devices such as the automotive display screen and radar camera need to start working, and the core board starts to power on the external devices. When the automotive electronic system is in sleep mode, all external devices are in sleep mode, so that the car can be parked for a longer time.

[0069] In some embodiments, the system status information can be determined based on the detection signal, the preset relationship between the detection signal and the system status information. For example, when the detection signal is any one of the car starting, the car display screen starting, or the car is in a driving state, the system status information can be determined to be a running state. When the detection signal is any one of the car not starting, the car display screen not starting, or the car is not in a driving state, the system status information can be determined to be a dormant state.

[0070] In some embodiments, the first timeout reset duration is shorter than the second timeout reset duration, and the difference between the second timeout reset duration and the first timeout reset duration is greater than a second preset threshold.

[0071] The second preset threshold value may be a difference threshold value related to the difference between the first timeout reset duration and the second timeout reset duration. The second preset threshold value may be 900ms, or 60000ms, or other time greater than 900ms and less than 60000ms, preferably 29900ms, i.e. 30s minus 100ms. The greater the difference between the first timeout reset duration and the second timeout reset duration, the more energy consumption of the electric vehicle can be reduced in a non-driving state. In some embodiments, the second preset threshold value needs to be at least greater than 900ms. At this time, there is an energy consumption difference between the first watchdog circuit and the second watchdog circuit, and it is necessary to set the value of enabling different watchdog circuits in different states. Preferably, the first timeout reset duration of the first watchdog circuit 130 may be 100ms, and the second timeout reset duration of the second watchdog circuit 140 may be configurable 1s-60s.

[0072] In some embodiments, the second timeout reset duration of the second watchdog circuit 140 can be set based on actual needs. For example, when the dual watchdog protection system 100 is applied to an automotive electronic system, the second timeout reset duration can be configured according to whether there is someone in the car. When there is someone in the car, the second timeout reset duration can be configured to 1s-30s. For example, the second timeout reset duration can be 1s, or 30s, or other times greater than 1s and less than 30s. When there is no one in the car, the second timeout reset duration can be configured to 30s-60s. For example, the second timeout reset duration can be 31s, or 60s, or other times greater than 30s and less than 60s. For another example, the second timeout reset duration can also be other times greater than 60s. Different second timeout reset durations are set according to the state of the car. Different second timeout reset durations can be set when there are people and no one in the car, which can not only ensure the safety of the automotive electronic system when there are people in the car, but also further reduce power consumption when there is no one in the car.

[0073] In some embodiments, the second timeout reset duration of the second watchdog circuit 140 may be greater than the wakeup period of the real-time clock cycle wakeup. Preferably, when the wakeup period of the real-time clock cycle wakeup is 30s, the second timeout reset duration of the second watchdog circuit 140 may be 32s.

[0074] In some embodiments, the second watchdog circuit 140 may be connected to the controller device management unit 120 via an I2C bus 141 .

[0075] In some embodiments, when the dual watchdog protection system 100 is applied to an automotive electronic system, the second watchdog circuit 140 can be a power management chip. The power management chip can be connected to the controller device management unit 120 via the I2C bus 141 to implement power management functions and watchdog related functions. The controller is directly connected via the I2C interface of the power management chip, so that the power management chip can be reused to implement the function of the watchdog circuit at the same time. In some embodiments of this specification, the slow watchdog does not require additional hardware costs. The hardware cost is not increased when reducing the power consumption of the entire system.

[0076] In some embodiments of this specification, by setting a first watchdog circuit (i.e., a fast watchdog) and a second watchdog circuit (i.e., a slow watchdog), the problem that the controller cannot ensure sleep safety when it is in a sleep state can be effectively solved. At the same time, compared with frequently waking up the fast watchdog when the controller is in a sleep state, by turning off the fast watchdog and waking up the slow watchdog when the controller is in a sleep state, the power consumption can be significantly reduced, the safety and operation reliability of the controller can be ensured, and the sleep power consumption of the controller can be effectively reduced.

[0077] Taking the application of the dual watchdog protection system 100 in an automotive electronic system as an example, the dual watchdog protection method will be exemplarily described below through processes 200 and 300.

[0078] Figure 2 is an exemplary flow chart of a dual watchdog protection method according to some embodiments of this specification. In some embodiments, process 200 may be executed by the controller power management unit 110. Figure 2 As shown, process 200 includes the following steps.

[0079] Step 210: Send a first control signal to the controller device management unit based on the detection signal.

[0080] See also Figure 4 In some embodiments, when the detection signal is at least one of whether the car is started, whether the car display is started, and whether the car is in a driving state, the controller power management unit 110 can send a first control signal to the controller device management unit 120 to control the first watchdog circuit 130 and / or the second watchdog circuit 140 to turn on and / or off. For more information about the detection signal and the first control signal, see above.

[0081] Step 220: Based on the first control signal, the controller device management unit manages the first watchdog circuit and the second watchdog circuit.

[0082] See also Figure 4In some embodiments, when the detection signal is at least one of the following: the car is not started, the car display screen is not started, and the car is not in a driving state, the controller device management unit 120 can control the first watchdog circuit 130 to be turned off, and control the second watchdog circuit 140 to be turned on; when the detection signal is at least one of the following: the car is started, the car display screen is started, and the car is in a driving state, the controller device management unit 120 can control the first watchdog circuit 130 to be turned on, and control the second watchdog circuit 140 to be turned off.

[0083] In some embodiments, when the detection signal is at least one of the following: the car is not started, the car display is not started, and the car is not in a driving state, the controller device management unit 120 can first control the second watchdog circuit 140 to switch from off to on, and then switch the first watchdog circuit 130 from on to off; when the detection signal is at least one of the following: the car is started, the car display is started, and the car is in a driving state, the controller device management unit 120 can first control the first watchdog circuit 130 to switch from off to on, and then control the second watchdog circuit 140 to switch from on to off.

[0084] In some embodiments of this specification, by using a first watchdog circuit (i.e., a fast watchdog) with a shorter first timeout reset duration and a second watchdog circuit (i.e., a slow watchdog) with a longer second timeout reset duration in the automotive electronic system, the system cost of electric vehicles can be effectively reduced and the driving safety of the vehicle can be ensured. By cross-switching the first watchdog circuit and the second watchdog circuit, the watchdog circuit is guaranteed to cover the entire automotive electronic system.

[0085] Figure 3 FIG. 3 is another exemplary flow chart of a dual watchdog protection method according to some embodiments of the present specification. In some embodiments, process 300 may be executed by the controller power management unit 110. Figure 3 As shown, process 300 includes the following steps.

[0086] Step 310: Acquire a wake-up signal.

[0087] The wake-up signal can be obtained in a variety of ways. In some embodiments, the controller power management unit 110 can determine the wake-up signal by determining the wake-up source. For example, when the wake-up source is a real-time clock, it can be determined that the wake-up signal is a real-time clock cycle wake-up.

[0088] In some embodiments, when the controller power management unit 110 obtains the wake-up signal, the second watchdog circuit 140 may be enabled through the controller device management unit 120. For more information about the wake-up signal, see above.

[0089] Step 320: In response to the wake-up signal being a real-time clock cycle wake-up, a second control signal is sent to the controller device management unit.

[0090] In some embodiments, when the wake-up signal received by the controller power management unit 110 is a real-time clock cycle wake-up, a second control signal may be sent to the controller device management unit 120 to notify the controller device management unit 120 to perform a corresponding management operation. For more information about the second control signal, see above.

[0091] Step 330: Based on the second control signal, the controller device management unit performs dog feeding management on the second watchdog circuit.

[0092] In some embodiments, in response to receiving the second control signal, the controller device management unit 120 may perform watchdog feeding management on the second watchdog circuit 140 .

[0093] In some embodiments, the controller power management unit 110 can periodically obtain the real-time clock cycle wake-up. When the controller power management unit 110 periodically obtains the real-time clock cycle wake-up, it can periodically send a second control signal to the controller device management unit. The controller device management unit 120 can perform periodic dog feeding management on the second watchdog circuit 140 based on the periodically obtained second control signal. After completing one dog feeding management of the second watchdog circuit 140, the controller power management unit 110 can make the controller re-enter the sleep state from the wake-up state, and when the real-time clock cycle wake-up is received again after every wake-up cycle, wake up the controller, and notify the controller device management unit 120 to perform another dog feeding management on the second watchdog circuit 140, and make the controller re-enter the sleep state from the wake-up state, and repeat this multiple times until other wake-up signals that are not real-time clock cycle wake-ups are received.

[0094] For more information about dog feeding management and real-time clock cycle wake-up, see above.

[0095] In some embodiments of this specification, by distinguishing the wake-up signal and feeding the watchdog using the second watchdog circuit only when the real-time clock cycle wakes up, the system power consumption can be effectively reduced and the stability of the system can be ensured.

[0096] It should be noted that the above description of processes 200 and 300 is only for illustration and description, and does not limit the scope of application of this specification. For those skilled in the art, various modifications and changes can be made to processes 200 and 300 under the guidance of this specification. However, these modifications and changes are still within the scope of this specification.

[0097] One of the embodiments of the present specification provides a dual watchdog protection device, including a processor, wherein the processor is used to execute the dual watchdog protection method as described above.

[0098] One of the embodiments of the present specification provides a computer-readable storage medium, wherein the storage medium stores computer instructions. When a computer reads the computer instructions in the storage medium, the computer executes the dual watchdog protection method as described above.

[0099] The basic concepts have been described above. Obviously, for those skilled in the art, the above detailed disclosure is only for example and does not constitute a limitation of this specification. Although not explicitly stated here, those skilled in the art may make various modifications, improvements and corrections to this specification. Such modifications, improvements and corrections are suggested in this specification, so such modifications, improvements and corrections still belong to the spirit and scope of the exemplary embodiments of this specification.

[0100] At the same time, this specification uses specific words to describe the embodiments of this specification. For example, "one embodiment", "an embodiment", and / or "some embodiments" refer to a certain feature, structure or characteristic related to at least one embodiment of this specification. Therefore, it should be emphasized and noted that "one embodiment" or "an embodiment" or "an alternative embodiment" mentioned twice or more in different positions in this specification does not necessarily refer to the same embodiment. In addition, certain features, structures or characteristics in one or more embodiments of this specification can be appropriately combined.

[0101] In addition, unless explicitly stated in the claims, the order of the processing elements and sequences described in this specification, the use of alphanumeric characters, or the use of other names are not intended to limit the order of the processes and methods of this specification. Although the above disclosure discusses some invention embodiments that are currently considered useful through various examples, it should be understood that such details are only for illustrative purposes, and the attached claims are not limited to the disclosed embodiments. On the contrary, the claims are intended to cover all modifications and equivalent combinations that are consistent with the essence and scope of the embodiments of this specification. For example, although the system components described above can be implemented by hardware devices, they can also be implemented only by software solutions, such as installing the described system on an existing server or mobile device.

[0102] Similarly, it should be noted that in order to simplify the description disclosed in this specification and thus help understand one or more embodiments of the invention, in the above description of the embodiments of this specification, multiple features are sometimes combined into one embodiment, figure or description thereof. However, this disclosure method does not mean that the features required by the subject matter of this specification are more than the features mentioned in the claims. In fact, the features of the embodiments are less than all the features of the single embodiment disclosed above.

[0103] In some embodiments, numbers describing the number of components and attributes are used. It should be understood that such numbers used in the description of the embodiments are modified by the modifiers "about", "approximately" or "substantially" in some examples. Unless otherwise specified, "about", "approximately" or "substantially" indicate that the numbers are allowed to vary by ±20%. Accordingly, in some embodiments, the numerical parameters used in the specification and claims are approximate values, which may change according to the required features of individual embodiments. In some embodiments, the numerical parameters should take into account the specified significant digits and adopt the general method of retaining digits. Although the numerical domains and parameters used to confirm the breadth of their range in some embodiments of this specification are approximate values, in specific embodiments, the setting of such numerical values ​​is as accurate as possible within the feasible range.

[0104] Each patent, patent application, patent application publication, and other materials, such as articles, books, specifications, publications, documents, etc., cited in this specification are hereby incorporated by reference in their entirety. Except for application history documents that are inconsistent with or conflicting with the contents of this specification, documents that limit the broadest scope of the claims of this specification (currently or later attached to this specification) are also excluded. It should be noted that if the descriptions, definitions, and / or use of terms in the materials attached to this specification are inconsistent or conflicting with the contents described in this specification, the descriptions, definitions, and / or use of terms in this specification shall prevail.

[0105] Finally, it should be understood that the embodiments described in this specification are only used to illustrate the principles of the embodiments of this specification. Other variations may also fall within the scope of this specification. Therefore, as an example and not a limitation, alternative configurations of the embodiments of this specification may be considered consistent with the teachings of this specification. Accordingly, the embodiments of this specification are not limited to the embodiments explicitly introduced and described in this specification.

Claims

1. A dual watchdog protection system, characterized in that: The system includes a controller power consumption management unit, a controller device management unit, a first watchdog circuit and a second watchdog circuit; The controller power consumption management unit is used to send a first control signal to the controller device management unit based on the detection signal; The controller device management unit is used to manage the opening and closing of the first watchdog circuit and the second watchdog circuit based on the first control signal; The first timeout reset duration of the first watchdog circuit is less than a first preset threshold, which is a millisecond threshold; the second timeout reset duration of the second watchdog circuit is configured based on system status information, and the system status information is determined based on the detection signal; the first timeout reset duration is less than the second timeout reset duration, and the difference between the second timeout reset duration and the first timeout reset duration is greater than a second preset threshold.

2. The system according to claim 1, characterized in that The second watchdog circuit is connected to the controller device management unit via an I2C bus.

3. The system according to claim 1, characterized in that The system is applied to an automobile electronic system, and the detection signal includes at least one of whether the automobile is started, whether the automobile display screen is started, and whether the automobile is in a driving state.

4. The system according to claim 1, characterized in that The controller power consumption management unit is further used to obtain a wake-up signal, and in response to the wake-up signal being a real-time clock cycle wake-up, send a second control signal to the controller device management unit; The controller device management unit is further used to perform dog feeding management on the second watchdog circuit based on the second control signal.

5. The system according to claim 1, wherein: The on / off management includes cross-switching the first watchdog circuit and the second watchdog circuit, and the cross-switching includes turning on one of the watchdog circuits and then turning off the other watchdog circuit.

6. The system according to claim 3, characterized in that The first timeout reset duration is 100ms, and the wake-up period of the second watchdog circuit is 30s.

7. A dual watchdog protection method, characterized in that: The method is implemented based on a dual watchdog protection system, which includes a controller power consumption management unit, a controller device management unit, a first watchdog circuit and a second watchdog circuit; The method is performed by the controller power consumption management unit, and includes: Based on the detection signal, sending a first control signal to the controller device management unit; Based on the first control signal, the controller device management unit manages the on / off status of the first watchdog circuit and the second watchdog circuit.

8. The method according to claim 7, characterized in that The method further comprises: Get the wake-up signal; In response to the wake-up signal being a real-time clock cycle wake-up, sending a second control signal to the controller device management unit; Based on the second control signal, the controller device management unit performs dog feeding management on the second watchdog circuit.

9. A dual watchdog protection device, comprising a processor, wherein the processor is used to execute the dual watchdog protection method according to any one of claims 7 to 8.

10. A computer-readable storage medium, wherein the storage medium stores computer instructions. When a computer reads the computer instructions in the storage medium, the computer executes the dual watchdog protection method according to any one of claims 7 to 8.