CN117687825A - External watchdog monitoring method and device, electronic equipment and storage medium - Google Patents

External watchdog monitoring method and device, electronic equipment and storage medium Download PDF

Info

Publication number
CN117687825A
CN117687825A CN202311623485.5A CN202311623485A CN117687825A CN 117687825 A CN117687825 A CN 117687825A CN 202311623485 A CN202311623485 A CN 202311623485A CN 117687825 A CN117687825 A CN 117687825A
Authority
CN
China
Prior art keywords
count value
monitoring period
external watchdog
error count
value corresponding
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.)
Pending
Application number
CN202311623485.5A
Other languages
Chinese (zh)
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.)
GAC Aion New Energy Automobile Co Ltd
Original Assignee
GAC Aion New Energy Automobile 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 GAC Aion New Energy Automobile Co Ltd filed Critical GAC Aion New Energy Automobile Co Ltd
Priority to CN202311623485.5A priority Critical patent/CN117687825A/en
Publication of CN117687825A publication Critical patent/CN117687825A/en
Pending legal-status Critical Current

Links

Landscapes

  • Debugging And Monitoring (AREA)

Abstract

The embodiment of the application provides an external watchdog monitoring method, an external watchdog monitoring device, electronic equipment and a storage medium, wherein the method comprises the following steps: acquiring an error count value corresponding to at least one monitoring period before the current monitoring period of the external watchdog; changing the abnormal count value of the external watchdog according to the error count value corresponding to at least one monitoring period before the current monitoring period; and judging whether the external watchdog is abnormal according to the abnormal count value. The external watchdog monitoring method continuously and comprehensively monitors the watchdog according to the error count values of a plurality of monitoring periods.

Description

External watchdog monitoring method and device, electronic equipment and storage medium
Technical Field
The present application relates to the technical field, and in particular, to an external watchdog monitoring method, an external watchdog monitoring device, an electronic device, and a computer readable storage medium.
Background
In the embedded system with the function safety level, an external watchdog externally added by the embedded system is used as a monitoring object for monitoring the running stability of the embedded system, the embedded system feeds the external watchdog in a communication mode, when the feeding of the dog is abnormal or the feeding of the dog is stopped, the error count value of the external watchdog is automatically increased, and after the error count value reaches a threshold value, a reset signal is output to reset the embedded system, so that the fool-proof function of the system is realized.
In the prior art, whether the initialization is successful is judged in the external watchdog initialization stage, and if the initialization is successful, the external watchdog is considered to be correctly started and normally operated; in the initialization phase, the run phase lacks a method of long-term monitoring whether the external watchdog is operating correctly.
Disclosure of Invention
An object of the embodiment of the application is to provide an external watchdog monitoring method, an external watchdog monitoring device, an electronic device and a storage medium, which are used for continuously and comprehensively monitoring a watchdog according to error count values of a plurality of monitoring periods.
In a first aspect, an embodiment of the present application provides a method for monitoring an external watchdog, including:
acquiring an error count value corresponding to at least one monitoring period before the current monitoring period of the external watchdog;
changing the abnormal count value of the external watchdog according to the error count value corresponding to at least one monitoring period before the current monitoring period;
and judging whether the external watchdog is abnormal according to the abnormal count value.
In the above implementation process, an anomaly count value is set, the anomaly count value is changed according to an error count value corresponding to at least one monitoring period preceding the current monitoring period, based on which continuous monitoring in a plurality of monitoring periods can be implemented for the external watchdog. According to the method for monitoring the external watchdog, the error count value corresponding to at least one monitoring period can be obtained, the stability of the external watchdog in a certain period can be obtained, and the accurate detection of the external watchdog is realized.
Further, the changing the anomaly count value of the external watchdog according to the error count value corresponding to at least one monitoring period before the current monitoring period includes:
if the error count value corresponding to at least one monitoring period before the current monitoring period is the same as the error count value corresponding to the current monitoring period, increasing the abnormal count value;
the judging whether the external watchdog is abnormal according to the abnormal count value comprises the following steps:
and judging whether the abnormal count value is larger than a preset threshold value, if so, judging that the external watchdog is abnormal.
In the implementation process, if the error count value corresponding to at least one monitoring period before the current monitoring period is the same as the error count value corresponding to the current monitoring period, the external watchdog is indicated to be more likely to be abnormal, the abnormal count value of the external watchdog is increased at the moment, when the abnormal count value of the external watchdog is greater than a preset threshold value, the external watchdog is indicated to be more likely to be abnormal in work due to the influence of external factors or internal factors in a plurality of continuous monitoring periods, and meanwhile, the mechanism of the external watchdog cannot adjust the abnormality, and at the moment, the external watchdog is judged to be abnormal. Based on the embodiment, the external watchdog can be accurately monitored in a plurality of continuous periods, and the stability of the embedded system during operation is further improved.
Further, the method further comprises: and executing the feeding operation according to the error count value corresponding to the current monitoring period.
In the implementation process, the performance of the external watchdog is fully utilized by executing the feeding operation according to the error count value corresponding to the current monitoring period, so that the stability of the embedded system is improved.
Further, the executing the feeding operation according to the error count value corresponding to the current monitoring period includes:
if the error count value corresponding to the current monitoring period is a preset value, not executing the dog feeding operation;
and if the error count value corresponding to the current monitoring period is not a preset value, executing the feeding operation.
In the implementation process, when the error count value corresponding to the current monitoring period is a preset value, the dog feeding operation is not executed; and when the error count value corresponding to the current monitoring period is not a preset value, executing the feeding operation. The performance of the external watchdog is fully utilized, and the stability of the embedded system is improved.
Further, if the error count value corresponding to the current monitoring period is a preset value, after the dog feeding operation is not performed, the method further includes: reducing the error count value;
if the error count value corresponding to the current monitoring period is not a preset value, after executing the feeding operation, the method further comprises the following steps: and increasing the error count value.
In the implementation process, the error count value can accurately reflect the stability of the current external watchdog in different monitoring periods, and further facilitates the improvement of error technical values of a plurality of monitoring periods to realize the full-stage monitoring of the external watchdog.
Further, the changing the anomaly count value of the external watchdog according to the error count value corresponding to at least one monitoring period before the current monitoring period includes:
and if the error count value corresponding to at least one monitoring period before the current monitoring period is different from the error count value corresponding to the current monitoring period, reducing the abnormal count value.
In the implementation process, if the error count value corresponding to at least one monitoring period before the current monitoring period is the same as the error count value corresponding to the current monitoring period, the situation that the external watchdog does not generate error count in the previous monitoring period is described, the internal interference factor or the external interference factor which causes technical errors of the external watchdog and appears in the previous monitoring period is further described, the current working performance of the external watchdog tends to be stable, and the abnormal count value is reduced at the moment.
Further, the reducing the error count value includes:
reducing the error count value by a first value;
said incrementing said error count value comprising:
increasing the error count value by a second value;
the first value and the second value are related to the time complexity of a program operated by a system corresponding to the current external watchdog.
In a second aspect, an embodiment of the present application provides an external watchdog monitoring device, including:
the error count value acquisition module is used for acquiring an error count value corresponding to at least one monitoring period before the current monitoring period of the external watchdog;
an abnormal count value changing module, configured to change an abnormal count value of the external watchdog according to an error count value corresponding to at least one monitoring period preceding a current monitoring period;
and the abnormality judging module is used for judging whether the external watchdog is abnormal according to the abnormality count value.
In the above implementation process, an anomaly count value is set, the anomaly count value is changed according to an error count value corresponding to at least one monitoring period preceding the current monitoring period, based on which continuous monitoring in a plurality of monitoring periods can be implemented for the external watchdog. According to the method for monitoring the external watchdog, the error count value corresponding to at least one monitoring period can be obtained, the stability of the external watchdog in a certain period can be obtained, and the accurate detection of the external watchdog is realized.
In a third aspect, an electronic device provided in an embodiment of the present application includes: a memory, a processor and a computer program stored in the memory and executable on the processor, the processor implementing the steps of the method according to any one of the first aspects when the computer program is executed.
In a fourth aspect, embodiments of the present application provide a computer-readable storage medium having instructions stored thereon, which when executed on a computer, cause the computer to perform the method according to any of the first aspects.
Additional features and advantages of the disclosure will be set forth in the description which follows, or in part will be obvious from the description, or may be learned by practice of the techniques disclosed herein.
In order to make the above objects, features and advantages of the present application more comprehensible, preferred embodiments accompanied with figures are described in detail below.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings that are needed in the embodiments of the present application will be briefly described below, it should be understood that the following drawings only illustrate some embodiments of the present application and should not be considered as limiting the scope, and other related drawings may be obtained according to these drawings without inventive effort for a person skilled in the art.
Fig. 1 is a flow chart of an external watchdog monitoring method according to an embodiment of the present application;
fig. 2 is a schematic structural diagram of an external watchdog monitoring device according to an embodiment of the present application;
fig. 3 is a schematic structural diagram of an electronic device according to an embodiment of the present application.
Detailed Description
The technical solutions in the embodiments of the present application will be described below with reference to the drawings in the embodiments of the present application.
It should be noted that: like reference numerals and letters denote like items in the following figures, and thus once an item is defined in one figure, no further definition or explanation thereof is necessary in the following figures. Meanwhile, in the description of the present application, the terms "first", "second", and the like are used only to distinguish the description, and are not to be construed as indicating or implying relative importance.
Referring to fig. 1, an embodiment of the present application provides an external watchdog monitoring method, which may be applied to a server, a storage medium, an embedded system and an electronic device, and is used for personalized screening of service data. The server may be an independent server or a server cluster formed by a plurality of servers, and may also be a cloud server for providing cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communication, middleware services, domain name services, security services, CDNs, basic cloud computing services such as big data and artificial intelligent sampling point devices, and the like. Referring to fig. 1, the method includes:
s1: acquiring an error count value corresponding to at least one monitoring period before the current monitoring period of the external watchdog;
s2: changing the abnormal count value of the external watchdog according to the error count value corresponding to at least one monitoring period before the current monitoring period;
s3: and judging whether the external watchdog is abnormal according to the abnormal count value.
In the above embodiment, the watchdog is a timer. If the expected action is not triggered within the specified time, the software is considered to be running abnormally, and the program enters an exception handling program, which may be to execute a reset action. The abnormal occurrence can be caused by certain extreme working conditions or occasional conditions, and if one reset action can timely pull the program back to normal, dangerous events such as vehicle faults and the like can be effectively avoided.
In some embodiments, an external watchdog refers to a timer that is independent of an embedded system or electronic device or chip.
In some embodiments, the monitoring period refers to the time interval between the points in time when the embedded system or electronic device or chip begins executing S1-S3 twice.
In the above embodiment, the anomaly count refers to
In the above implementation process, an anomaly count value is set, the anomaly count value is changed according to an error count value corresponding to at least one monitoring period preceding the current monitoring period, based on which continuous monitoring in a plurality of monitoring periods can be implemented for the external watchdog. According to the method for monitoring the external watchdog, the error count value corresponding to at least one monitoring period can be obtained, the stability of the external watchdog in a certain period can be obtained, and the accurate detection of the external watchdog is realized.
In some embodiments, the changing the abnormal count value of the external watchdog according to the error count value corresponding to at least one monitoring period before the current monitoring period includes: if the error count value corresponding to at least one monitoring period before the current monitoring period is the same as the error count value corresponding to the current monitoring period, increasing the abnormal count value; the judging whether the external watchdog is abnormal according to the abnormal count value comprises the following steps: and judging whether the abnormal count value is larger than a preset threshold value, if so, judging that the external watchdog is abnormal.
In the implementation process, if the error count value corresponding to at least one monitoring period before the current monitoring period is the same as the error count value corresponding to the current monitoring period, the external watchdog is indicated to be more likely to be abnormal, the abnormal count value of the external watchdog is increased at the moment, when the abnormal count value of the external watchdog is greater than a preset threshold value, the external watchdog is indicated to be more likely to be abnormal in work due to the influence of external factors or internal factors in a plurality of continuous monitoring periods, and meanwhile, the mechanism of the external watchdog cannot adjust the abnormality, and at the moment, the external watchdog is judged to be abnormal. Based on the embodiment, the external watchdog can be accurately monitored in a plurality of continuous periods, and the stability of the embedded system during operation is further improved.
Further, the method further comprises: and executing the feeding operation according to the error count value corresponding to the current monitoring period.
In the implementation process, the performance of the external watchdog is fully utilized by executing the feeding operation according to the error count value corresponding to the current monitoring period, so that the stability of the embedded system is improved.
Further, the executing the feeding operation according to the error count value corresponding to the current monitoring period includes:
if the error count value corresponding to the current monitoring period is a preset value, not executing the dog feeding operation;
and if the error count value corresponding to the current monitoring period is not a preset value, executing the feeding operation.
In the above embodiment, the external watchdog is provided with a window period, and when the embedded system or other device needs to perform the feeding operation during the window period.
In the above embodiment, performing the feeding operation refers to sending a signal to the external watchdog during a window period of the external watchdog closest to the current monitoring period, causing the external watchdog to reckon.
In the implementation process, when the error count value corresponding to the current monitoring period is a preset value, the dog feeding operation is not executed; and when the error count value corresponding to the current monitoring period is not a preset value, executing the feeding operation. The performance of the external watchdog is fully utilized, and the stability of the embedded system is improved.
Further, if the error count value corresponding to the current monitoring period is a preset value, after the dog feeding operation is not performed, the method further includes: reducing the error count value; if the error count value corresponding to the current monitoring period is not a preset value, after executing the feeding operation, the method further comprises the following steps: and increasing the error count value.
In the implementation process, the error count value can accurately reflect the stability of the current external watchdog in different monitoring periods, and further facilitates the improvement of error technical values of a plurality of monitoring periods to realize the full-stage monitoring of the external watchdog.
Further, the changing the anomaly count value of the external watchdog according to the error count value corresponding to at least one monitoring period before the current monitoring period includes:
and if the error count value corresponding to at least one monitoring period before the current monitoring period is different from the error count value corresponding to the current monitoring period, reducing the abnormal count value.
In some embodiments, if the error count value corresponding to at least one monitoring period preceding the current monitoring period is different from the error count value corresponding to the current monitoring period, the watchdog exception count value is set to 0.
In the implementation process, if the error count value corresponding to at least one monitoring period before the current monitoring period is the same as the error count value corresponding to the current monitoring period, the situation that the external watchdog does not generate error count in the previous monitoring period is described, the internal interference factor or the external interference factor which causes technical errors of the external watchdog and appears in the previous monitoring period is further described, the current working performance of the external watchdog tends to be stable, and the abnormal count value is reduced at the moment.
Further, the reducing the error count value includes:
reducing the error count value by a first value;
said incrementing said error count value comprising:
increasing the error count value by a second value;
the first value and the second value are related to the time complexity of a program operated by a system corresponding to the current external watchdog.
In some embodiments, the system may be an embedded system, an electronic device, or the like.
In some embodiments, the first value and the second value are equal. In some embodiments, the first value is less than the second value, the difference between the second value and the first value, and the time complexity of the running program is negative. In some embodiments, the first value and the second value are 1.
To better illustrate the method provided by the embodiments of the present application, the present application provides a method for monitoring an external watchdog in combination with the above embodiments, including: s21: configuring external watchdog monitoring time according to system requirements, and starting watchdog operation; s22: waiting for a dog feeding window period stage in a timing stage of the embedded system; s23: the method comprises the steps of entering an external watchdog feeding window period, inquiring an error count value of a current external watchdog, comparing the error count value with an error count value in a previous monitoring period, and automatically increasing the abnormal count of the watchdog if the two error count value values are equal, otherwise, the abnormal count of the watchdog is 0; s24: if the abnormal count of the watchdog is more than 3, the embedded system reports the dead fault of the external watchdog, otherwise, the external watchdog works normally. S25: the error count value of the current monitoring period is updated to the error count value in the previous monitoring period and is used for comparing with the error count value of the next monitoring period (the next current monitoring period). S26: judging whether the error count value of the external watchdog in the current monitoring period is 0, if so, the embedded system does not feed the dog, and the external watchdog is in error, so that the error count value is increased automatically; if the value is not 0, the embedded system feeds the dog correctly, and the error count value of the external watchdog fed correctly is subtracted. S27: the next watchdog monitoring period is executed S22, and the next monitoring period starts.
In the implementation process, the error count values of three continuous monitoring periods are continuously monitored, so that the monitoring performance of the external watchdog can be ensured, and meanwhile, the problem of the external watchdog can be found immediately.
The embodiment of the application also provides an external watchdog monitoring device, which comprises: the error count value acquisition module 1 is used for acquiring an error count value corresponding to at least one monitoring period before the current monitoring period of the external watchdog;
an abnormal count value changing module 2, configured to change an abnormal count value of the external watchdog according to an error count value corresponding to at least one monitoring period preceding a current monitoring period;
and the abnormality judging module 3 is used for judging whether the external watchdog is abnormal according to the abnormality count value.
In some embodiments, the abnormal count value changing module 2 is further configured to increase the abnormal count value if the error count value corresponding to at least one monitoring period before the current monitoring period is the same as the error count value corresponding to the current monitoring period;
the abnormality judgment module 3 is further configured to judge whether the abnormality count value is greater than a preset threshold, and if yes, judge that the external watchdog is abnormal.
The device is also used for feeding dogs according to the error count value corresponding to the current monitoring period.
The dog feeding module is also used for not executing the dog feeding operation if the error count value corresponding to the current monitoring period is a preset value;
and if the error count value corresponding to the current monitoring period is not a preset value, executing the feeding operation.
The dog feeding module is further used for reducing the error count value after the dog feeding operation is not executed if the error count value corresponding to the current monitoring period is a preset value;
the feeding module is further configured to increase the error count value after the feeding operation is performed if the error count value corresponding to the current monitoring period is not a preset value.
The abnormal value changing module 2 is further configured to reduce the abnormal count value if the error count value corresponding to at least one monitoring period before the current monitoring period is different from the error count value corresponding to the current monitoring period.
The dog feeding module is further used for reducing the error count value by a first value after the dog feeding operation is not executed if the error count value corresponding to the current monitoring period is a preset value; if the error count value corresponding to the current monitoring period is not a preset value, the error count value is increased by a second value after the feeding operation is executed; the first value and the second value are related to the time complexity of a program operated by a system corresponding to the current external watchdog.
The application further provides an electronic device, please refer to fig. 3, and fig. 3 is a block diagram of an electronic device according to an embodiment of the application. The electronic device may include a processor 31, a communication interface 32, a memory 33, and at least one communication bus 34. Wherein the communication bus 34 is used to enable direct connection communication of these components. The communication interface 32 of the electronic device in the embodiment of the present application is used for performing signaling or data communication with other node devices. The processor 31 may be an integrated circuit chip with signal processing capabilities.
The processor 31 may be a general-purpose processor, including a central processing unit (CPU, central Processing Unit), a network processor (NP, network Processor), and the like; but may also be a Digital Signal Processor (DSP), application Specific Integrated Circuit (ASIC), an off-the-shelf programmable gate array (FPGA) or other programmable logic device, discrete gate or transistor logic device, discrete hardware components. The disclosed methods, steps, and logic blocks in the embodiments of the present application may be implemented or performed. The general purpose processor may be a microprocessor or the processor 31 may be any conventional processor or the like.
The Memory 33 may be, but is not limited to, random access Memory (RAM, random Access Memory), read Only Memory (ROM), programmable Read Only Memory (PROM, programmable Read-Only Memory), erasable Read Only Memory (EPROM, erasable Programmable Read-Only Memory), electrically erasable Read Only Memory (EEPROM, electric Erasable Programmable Read-Only Memory), and the like. The memory 33 has stored therein computer readable instructions which, when executed by the processor 31, may cause the electronic device to perform the steps described above in relation to the embodiments of the method of fig. 1-2.
Optionally, the electronic device may further include a storage controller, an input-output unit.
The memory 33, the memory controller, the processor 31, the peripheral interface, and the input/output unit are electrically connected directly or indirectly to each other, so as to realize data transmission or interaction. For example, the components may be electrically coupled to each other via one or more communication buses 34. The processor 31 is arranged to execute executable modules stored in a memory 33, such as software functional modules or computer programs comprised by the electronic device.
The input-output unit is used for providing the user with the creation task and creating the starting selectable period or the preset execution time for the task so as to realize the interaction between the user and the server. The input/output unit may be, but is not limited to, a mouse, a keyboard, and the like.
It will be appreciated that the configuration shown in fig. 3 is merely illustrative, and that the electronic device may also include more or fewer components than shown in fig. 3, or have a different configuration than shown in fig. 3. The components shown in fig. 3 may be implemented in hardware, software, or a combination thereof.
The embodiment of the application further provides a storage medium, where instructions are stored, and when the instructions run on a computer, the computer program is executed by a processor to implement the method described in the method embodiment, so that repetition is avoided, and no further description is given here.
The present application also provides a computer program product which, when run on a computer, causes the computer to perform the method of the method embodiments.
In the several embodiments provided in this application, it should be understood that the disclosed apparatus and method may be implemented in other manners as well. The apparatus embodiments described above are merely illustrative, for example, flow diagrams and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of apparatus, methods and computer program products according to various embodiments of the present application. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). It should also be noted that in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams and/or flowchart illustration, and combinations of blocks in the block diagrams and/or flowchart illustration, can be implemented by special purpose hardware-based systems which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.
In addition, the functional modules in the embodiments of the present application may be integrated together to form a single part, or each module may exist alone, or two or more modules may be integrated to form a single part.
The functions, if implemented in the form of software functional modules and sold or used as a stand-alone product, may be stored in a computer-readable storage medium. Based on such understanding, the technical solution of the present application may be embodied essentially or in a part contributing to the prior art or in a part of the technical solution, in the form of a software product stored in a storage medium, including several instructions for causing a computer device (which may be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the methods described in the embodiments of the present application. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a Read-Only Memory (ROM), a random access Memory (RAM, random Access Memory), a magnetic disk, or an optical disk, or other various media capable of storing program codes.
The foregoing is merely exemplary embodiments of the present application and is not intended to limit the scope of the present application, and various modifications and variations may be suggested to one skilled in the art. Any modification, equivalent replacement, improvement, etc. made within the spirit and principles of the present application should be included in the protection scope of the present application. It should be noted that: like reference numerals and letters denote like items in the following figures, and thus once an item is defined in one figure, no further definition or explanation thereof is necessary in the following figures.
The foregoing is merely specific embodiments of the present application, but the scope of the present application is not limited thereto, and any person skilled in the art can easily think about changes or substitutions within the technical scope of the present application, and the changes and substitutions are intended to be covered by the scope of the present application. Therefore, the protection scope of the present application shall be subject to the protection scope of the claims.
It is noted that relational terms such as first and second, and the like are used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Moreover, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising one … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element.

Claims (10)

1. A method of monitoring an external watchdog, comprising:
acquiring an error count value corresponding to at least one monitoring period before the current monitoring period of the external watchdog;
changing the abnormal count value of the external watchdog according to the error count value corresponding to at least one monitoring period before the current monitoring period;
and judging whether the external watchdog is abnormal according to the abnormal count value.
2. The method for monitoring an external watchdog according to claim 1, wherein the changing the anomaly count value of the external watchdog according to the error count value corresponding to at least one monitoring period preceding the current monitoring period includes:
if the error count value corresponding to at least one monitoring period before the current monitoring period is the same as the error count value corresponding to the current monitoring period, increasing the abnormal count value;
the judging whether the external watchdog is abnormal according to the abnormal count value comprises the following steps:
and judging whether the abnormal count value is larger than a preset threshold value, if so, judging that the external watchdog is abnormal.
3. The method of monitoring an external watchdog of claim 1, further comprising: and executing the feeding operation according to the error count value corresponding to the current monitoring period.
4. The method for monitoring an external watchdog according to claim 2, wherein the performing a feeding operation according to an error count value corresponding to a current monitoring period includes:
if the error count value corresponding to the current monitoring period is a preset value, not executing the dog feeding operation;
and if the error count value corresponding to the current monitoring period is not a preset value, executing the feeding operation.
5. The method for monitoring an external watchdog according to claim 4, further comprising, after the performing no feeding operation if the error count value corresponding to the current monitoring period is a preset value:
reducing the error count value;
and if the error count value corresponding to the current monitoring period is not a preset value, after executing the feeding operation, further comprising:
and increasing the error count value.
6. The method for monitoring an external watchdog according to claim 2, wherein the changing the anomaly count value of the external watchdog according to the error count value corresponding to at least one monitoring period preceding the current monitoring period includes:
and if the error count value corresponding to at least one monitoring period before the current monitoring period is different from the error count value corresponding to the current monitoring period, reducing the abnormal count value.
7. The method of monitoring an external watchdog according to claim 5, characterized in that the reducing the error count value comprises:
reducing the error count value by a first value;
said incrementing said error count value comprising:
increasing the error count value by a second value;
the first value and the second value are related to the time complexity of a program operated by a system corresponding to the current external watchdog.
8. A monitoring device for an external watchdog, comprising:
the error count value acquisition module is used for acquiring an error count value corresponding to at least one monitoring period before the current monitoring period of the external watchdog;
an abnormal count value changing module, configured to change an abnormal count value of the external watchdog according to an error count value corresponding to at least one monitoring period preceding a current monitoring period;
and the abnormality judging module is used for judging whether the external watchdog is abnormal according to the abnormality count value.
9. An electronic device, comprising: memory, a processor and a computer program stored in the memory and executable on the processor, the processor implementing the steps of the method according to any one of claims 1-7 when the computer program is executed.
10. A computer readable storage medium having instructions stored thereon which, when run on a computer, cause the computer to perform the method of any of claims 1-7.
CN202311623485.5A 2023-11-29 2023-11-29 External watchdog monitoring method and device, electronic equipment and storage medium Pending CN117687825A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202311623485.5A CN117687825A (en) 2023-11-29 2023-11-29 External watchdog monitoring method and device, electronic equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202311623485.5A CN117687825A (en) 2023-11-29 2023-11-29 External watchdog monitoring method and device, electronic equipment and storage medium

Publications (1)

Publication Number Publication Date
CN117687825A true CN117687825A (en) 2024-03-12

Family

ID=90125703

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202311623485.5A Pending CN117687825A (en) 2023-11-29 2023-11-29 External watchdog monitoring method and device, electronic equipment and storage medium

Country Status (1)

Country Link
CN (1) CN117687825A (en)

Similar Documents

Publication Publication Date Title
US9720761B2 (en) System fault detection and processing method, device, and computer readable storage medium
CN110119306B (en) Method, device and equipment for balancing automatic scheduling of jobs and storage medium
CN113658414B (en) Mine equipment fault early warning method and device, terminal equipment and storage medium
CN111988240B (en) Data transmission method and device, electronic equipment and storage medium
TW201737084A (en) Abnormality monitoring method and device
US8392815B2 (en) Method for the operation of a microcontroller and an execution unit and microcontroller and an execution unit
CN111682977A (en) Method and device for processing exception of network equipment, storage medium and network equipment
CN112152833B (en) Network abnormity alarm method and device and electronic equipment
JP2016535365A (en) Rootkit detection in computer networks
US20230367664A1 (en) Method for managing ecu on vehicle, and ecu and readable storage medium
CN112152868B (en) Network fault detection method and device, electronic equipment and storage medium
CN111949421B (en) SDK calling method, device, electronic equipment and computer readable storage medium
CN117687825A (en) External watchdog monitoring method and device, electronic equipment and storage medium
CN113472582A (en) System and method for alarm correlation and alarm aggregation in information technology monitoring
CN117149482A (en) Method and device for detecting thread state, electronic equipment and medium
CN110855484B (en) Method, system, electronic device and storage medium for automatically detecting traffic change
CN110688206A (en) Timing task scheduling method and device, computer equipment and storage medium
CN110968448A (en) Method for monitoring multitask running state
JP2017043166A (en) Vehicle control device
CN112686644A (en) Project operation state monitoring method, system, equipment and storage medium
CN114872554A (en) Fault processing method and device of battery module, electronic equipment and storage medium
CN114036032A (en) Real-time program monitoring method and device
CN110096416B (en) Abnormity warning method and device, computer device and readable storage medium
WO2022199787A1 (en) Program flow monitoring for gateway applications
WO2022015313A1 (en) Generation of alerts of correlated time-series behavior of environments

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination