Self-adaptive watchdog feeding method and device, electronic equipment, medium and product
By using an adaptive watchdog feeding method, the feeding interval is monitored and dynamically adjusted in real time, which solves the problem that the fixed interval strategy cannot adapt to the load fluctuations of the vehicle system and improves the safety and stability of the vehicle system.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-10-22
- Publication Date
- 2026-03-10
AI Technical Summary
In the existing technology, the fixed dog feeding interval strategy cannot adapt to the dynamic fluctuations of the vehicle system load, which leads to task delays and false resets under high load, and excessively long detection intervals under low load, posing a safety hazard.
By using an adaptive watchdog feeding method, the load of the vehicle-mounted embedded system is monitored in real time, and the feeding interval is dynamically adjusted to ensure that there is no false reset under high load and to improve the real-time detection under low load.
It effectively avoids the problem of false reset under high load, improves the real-time performance of fault detection, and ensures the safety and reliability of the multi-domain fusion controller.
Smart Images

Figure CN121634779A_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of vehicle control technology, specifically to an adaptive watchdog feeding method, device, electronic device, readable storage medium, and computer program product. Background Technology
[0002] Currently, in the field of automotive embedded systems, the watchdog timer is a core mechanism for ensuring driving safety and functional reliability. It monitors the system's operating status through periodic "feeding" operations by the application. Existing technologies generally adopt a fixed feeding interval strategy, preset a single timeout threshold based on engineering experience. However, as the functions of intelligent connected vehicles become increasingly complex, their operating environment becomes dynamically changing, causing drastic fluctuations in internal system loads such as CPU utilization, memory usage, and communication traffic. This fixed interval method is severely inadequate in adaptability and cannot respond to real-time changes in system status. Under high load conditions, it is prone to false resets due to task execution delays exceeding the fixed threshold, while under low load conditions, the excessively long detection intervals pose potential safety hazards. Summary of the Invention
[0003] In view of the above problems, this application provides an adaptive watchdog feeding method, device, electronic device, readable storage medium and computer program product, which can solve the problems of false reset and insufficient real-time fault detection caused by the inability of fixed watchdog feeding intervals to adapt to the dynamic fluctuations of vehicle system load.
[0004] Firstly, this application provides an adaptive watchdog feeding method, including: During the operation of the multi-domain fusion controller, the system load of the vehicle-mounted embedded system is monitored through the adaptive dog-feeding program to obtain the load monitoring results; Determine the current system load level based on the load monitoring results; Adjust the dog feeding interval according to the current system load level to obtain the target dog feeding interval; The watchdog controller is sent a feeding signal according to the target feeding time interval.
[0005] In the above technical solution, the method can dynamically adjust the watchdog feeding time interval according to the real-time load changes of the vehicle embedded system, effectively avoiding the problem of false reset caused by task delay under high load, and shortening the detection interval under low load to improve the real-time performance of fault detection, thereby ensuring the safety and reliability of the multi-domain fusion controller.
[0006] In some embodiments, the method further includes: After the multi-domain fusion controller is powered on, the in-vehicle embedded system is initialized; Start the adaptive dog feeding program; Identify the application to be registered and register it with the adaptive dog feeder based on the application to be registered.
[0007] In the above technical solution, the method can complete the system initialization and start the adaptive watchdog program at the initial power-on stage of the multi-domain fusion controller. Through the registration operation of the application to be registered, it can also lay the foundation for the subsequent dynamic adjustment of the watchdog interval based on the system load, ensuring that the adaptive watchdog mechanism can intervene in an orderly manner from the system startup stage, and ensuring the monitoring effectiveness of the entire operation cycle of the vehicle embedded system.
[0008] In some implementations, determining the application to be registered includes: After each application in the application list is launched in sequence, the application that needs to use the adaptive dog-feeding program monitoring function is identified as the application to be registered.
[0009] In the above technical solution, the method can accurately select applications in the application list that need to rely on the adaptive watchdog program to realize the running status monitoring as the registration objects, avoid redundant registration of applications that do not need to be monitored, ensure that the adaptive watchdog mechanism only applies to key applications, and improve the resource utilization efficiency and monitoring targeting of the vehicle embedded system.
[0010] In some implementations, registering the adaptive dog-feeding program with the application to be registered includes: Obtain the registration information of the application to be registered; wherein the registration information includes at least the application process ID, name, and priority; Register with the adaptive dog-feeding program based on the registration information.
[0011] In the above technical solution, the method can obtain key registration information such as the process ID, name, and priority of the application to be registered, enabling the adaptive dog-feeding program to accurately identify and associate the application to be monitored, and providing accurate data support for subsequent adjustment of the dog-feeding strategy based on application characteristics and system load.
[0012] In some implementations, the load monitoring results include at least CPU load, memory usage, and communication load.
[0013] In the above technical solution, the method can comprehensively capture the real-time operating load status of the vehicle embedded system from multiple core dimensions such as CPU load, memory utilization, and communication load. This provides multi-dimensional and reliable monitoring data for subsequent accurate judgment of system load level and dynamic adjustment of dog feeding time interval, avoiding judgment deviations caused by monitoring a single load indicator.
[0014] In some implementations, adjusting the dog-feeding interval based on the current system load level to obtain the target dog-feeding interval includes: When the current system load level is high system load level and a target application is detected running in the application list, the program priority of the target application is obtained, and the dog feeding time interval is adjusted according to the program priority to obtain the target dog feeding time interval; When the current system load level is high and no target application is detected running in the application list, the dog feeding time interval is adjusted according to the preset default dog feeding time interval to obtain the target dog feeding time interval.
[0015] In the above technical solution, the method can flexibly adjust the dog-feeding time interval based on whether the target application is running in the application list under high system load scenarios, thereby ensuring that high-priority applications are not mistakenly reset under high load, while ensuring the rationality and flexibility of the dog-feeding strategy under high load scenarios.
[0016] In some implementations, adjusting the dog feeding time interval according to the program priority to obtain the target dog feeding time interval includes: When the program priority is high, the system's dog feeding time interval is adjusted according to the preset default dog feeding time interval to obtain the target dog feeding time interval; When the program priority is not high priority, the dog-feeding time interval of the target application is delayed and adjusted to obtain the target dog-feeding time interval.
[0017] In the above technical solution, the method can optimize the resource allocation and watchdog monitoring efficiency of the vehicle embedded system by adopting a differentiated watchdog time interval adjustment strategy for target applications with different priorities. This prioritizes ensuring that high-priority applications do not experience operational abnormalities due to watchdog time interval issues under high-load scenarios, while reasonably delaying the watchdog time interval for non-high-priority applications. Under the premise of ensuring the stability of the core functions of the system, this method optimizes the resource allocation and watchdog monitoring efficiency of the vehicle embedded system.
[0018] In some embodiments, the method further includes: When the current system load level is not a high system load level, the dog feeding time interval is adjusted according to the preset default dog feeding time interval to obtain the target dog feeding time interval.
[0019] In the above technical solution, the method can adjust the target dog feeding time interval according to the preset default dog feeding time interval in scenarios where the current system load level is not high. This simplifies the dog feeding strategy adjustment process under low load conditions and ensures the timeliness of fault detection when the system is under stable load through the default interval, thus taking into account both the practicality of the strategy and the reliability of system monitoring.
[0020] Secondly, this application provides an adaptive watchdog feeding device, comprising: The monitoring unit is used to monitor the system load of the vehicle-mounted embedded system through the adaptive dog-feeding program during the operation of the multi-domain fusion controller, and obtain the load monitoring results. The determining unit is used to determine the current system load level based on the load monitoring results; The adjustment unit is used to adjust the dog feeding time interval according to the current system load level to obtain the target dog feeding time interval; The dog feeding unit is used to send a dog feeding signal to the watchdog controller according to the target dog feeding time interval.
[0021] In the above technical solution, the device can dynamically adjust the watchdog feeding time interval according to the real-time load changes of the vehicle embedded system, effectively avoiding the problem of false reset caused by task delay under high load, while shortening the detection interval under low load to improve the real-time performance of fault detection, thereby ensuring the safety and reliability of the multi-domain fusion controller.
[0022] Thirdly, this application provides an electronic device including a memory and a processor, the memory storing a computer program, and the processor running the computer program to cause the electronic device to perform the adaptive watchdog feeding method described in any one of the first aspects.
[0023] Fourthly, this application provides a readable storage medium storing a computer program, which, when executed by a processor, performs the adaptive watchdog feeding method described in any one of the first aspects.
[0024] Fifthly, this application provides a computer program product comprising a computer program that, when executed by a processor, performs the adaptive watchdog feeding method described in any one of the first aspects.
[0025] The beneficial effects of this application are: it can complete application registration when the multi-domain fusion controller is powered on, and dynamically adjust the watchdog timer interval in real time according to the load. Under high load, it prioritizes the watchdog timer feeding of high-priority applications and extends the watchdog timer feeding time of low-priority applications, effectively avoiding low-priority tasks from frequently preempting resources or causing false resets, thereby improving the accuracy of watchdog reset and thus enhancing the functional safety and operational stability of the vehicle embedded system. Attached Figure Description
[0026] To more clearly illustrate the technical solutions of the embodiments of this application, the accompanying drawings used in the embodiments of this application will be briefly introduced below. It should be understood that the following drawings only show some embodiments of this application and should not be regarded as a limitation of the scope. For those skilled in the art, other related drawings can be obtained based on these drawings without creative effort.
[0027] Figure 1 This is a flowchart illustrating the adaptive watchdog feeding method in some embodiments of this application; Figure 2 This is a block diagram of a multi-domain fusion controller in some embodiments of this application; Figure 3 This is a software design diagram of an adaptive dog-feeding program in some embodiments of this application; Figure 4 This is a flowchart illustrating the adaptive watchdog feeding method in some embodiments of this application; Figure 5 This is a schematic diagram of the structure of the adaptive watchdog feeding device in some embodiments of this application; Figure 6 This is a schematic diagram of the structure of an electronic device in some embodiments of this application. Detailed Implementation
[0028] The embodiments of the technical solution of this application will now be described in detail with reference to the accompanying drawings. These embodiments are only used to more clearly illustrate the technical solution of this application and are therefore merely examples, and should not be used to limit the scope of protection of this application.
[0029] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as commonly understood by one of ordinary skill in the art to which this application pertains; the terminology used herein is for the purpose of describing particular embodiments only and is not intended to limit the application; the terms “comprising” and “having”, and any variations thereof, in the specification, claims, and foregoing description of the drawings are intended to cover non-exclusive inclusion.
[0030] In the description of the embodiments of this application, technical terms such as "first" and "second" are used only to distinguish different objects and should not be construed as indicating or implying relative importance or implicitly specifying the number, specific order, or primary and secondary relationship of the indicated technical features. In the description of the embodiments of this application, "multiple" means two or more (including two), similarly, "multiple sets" refers to two or more sets (including two sets), and "multiple pieces" refers to two or more pieces (including two pieces) unless otherwise explicitly defined.
[0031] In this document, the term "embodiment" means that a particular feature, structure, or characteristic described in connection with an embodiment may be included in at least one embodiment of this application. The appearance of this phrase in various places throughout the specification does not necessarily refer to the same embodiment, nor is it a separate or alternative embodiment mutually exclusive with other embodiments. It will be explicitly and implicitly understood by those skilled in the art that the embodiments described herein can be combined with other embodiments.
[0032] In the description of the embodiments in this application, the term "and / or" is merely a description of the relationship between related objects, indicating that three relationships can exist. For example, A and / or B can represent: A existing alone, A and B existing simultaneously, and B existing alone. Additionally, the character " / " in this document generally indicates that the preceding and following related objects have an "or" relationship.
[0033] In automotive embedded systems, the watchdog timer is a core component ensuring reliable system operation, requiring periodic "feeding" to monitor for system anomalies. Current mainstream solutions employ a fixed feeding interval strategy, relying on experience to preset a single timeout threshold. However, the operating environment of intelligent connected vehicles is complex, with significant fluctuations in system loads such as CPU utilization, memory usage, and communication load. This strategy has significant drawbacks: firstly, because a fixed threshold cannot match the real-time system status, task execution delays under high load can easily exceed the threshold, leading to false resets; conversely, under low load, excessively long intervals slow down fault detection. Secondly, limited by a single parameter, even improved solutions that attempt to adjust the interval based on single parameters like CPU load fail to consider the coupling effects of multiple parameters. For example, a sudden increase in network load can cause task scheduling blockage, making it impossible to accurately determine system health solely based on CPU parameters.
[0034] To address the aforementioned technical issues, this application provides an adaptive watchdog feeding method. This method is applicable to multi-domain fusion controllers encompassing intelligent driving, vehicle control, and cockpit functions, and is used in conjunction with watchdog controller hardware. The core of this method is the adaptive watchdog feeding program, which enables: upon power-up of the domain controller, registering the applications to be monitored (including process ID, name, priority, etc.); and during operation, real-time monitoring of system states such as CPU load and memory usage, as well as the running status of registered applications, to dynamically adjust the watchdog feeding interval based on the real-time status. This ensures that under high load, high-priority applications are prioritized for watchdog feeding, while extending the watchdog feeding time for low-priority applications, thus preventing low-priority applications from triggering system resets.
[0035] It is evident that this method can address the challenges of complex dog-feeding needs under multi-domain fusion scenarios. It solves the problem that traditional fixed-interval strategies cannot dynamically adjust intervals, leading to low-priority tasks preempting resources or triggering erroneous resets and interruptions of high-priority tasks under high load. Ultimately, this method improves the functional safety and operational stability of the vehicle-mounted embedded system.
[0036] like Figure 1 As shown, some embodiments of this application provide an adaptive watchdog feeding method, which includes: S101. During the operation of the multi-domain fusion controller, the system load of the vehicle embedded system is monitored through the adaptive dog-feeding program to obtain the load monitoring results; S102. Determine the current system load level based on the load monitoring results; S103. Adjust the dog feeding interval according to the current system load level to obtain the target dog feeding interval; S104. Send a dog feeding signal to the watchdog controller according to the target dog feeding time interval.
[0037] In some embodiments, a multi-domain fusion controller refers to an intelligent control unit that integrates multiple functional domains of a vehicle (such as powertrain, chassis, body, intelligent driving, infotainment, etc.) and achieves cross-domain collaboration and intelligent management through high-performance computing and a unified software platform.
[0038] In some embodiments, an adaptive dog-feeding program refers to a software program that receives the registration information of the applications to be monitored when the multi-domain fusion controller is powered on, monitors the system load and application running status in real time during operation, and dynamically adjusts the dog-feeding time interval according to the load level and application priority.
[0039] In some embodiments, an in-vehicle embedded system refers to an embedded system installed in a vehicle for controlling and managing various in-vehicle functions in a multi-domain fusion controller.
[0040] In some embodiments, system load refers to the comprehensive operating pressure indicators such as CPU load, memory usage, and communication load of the vehicle-mounted embedded system during operation.
[0041] In some embodiments, load monitoring results refer to system load data such as CPU load, memory usage, and communication load collected and analyzed by an adaptive dog-feeding program.
[0042] In some embodiments, the system load level refers to the system operating pressure level classified according to load monitoring results, such as high load and non-high load.
[0043] In some embodiments, the watchdog feeding interval refers to the time period during which a watchdog signal is sent to the watchdog controller, and can be adjusted according to system load and application priority.
[0044] In some embodiments, the target dog-feeding interval refers to the final dog-feeding cycle determined after adjustments based on the current system load level and application priority.
[0045] In some embodiments, a watchdog controller refers to a hardware module that receives a dog-feeding signal and monitors the system's operating status, and can reset the system when a system malfunctions or deadlocks.
[0046] In some embodiments, a watchdog feed signal refers to a signal sent to the watchdog controller at specified time intervals to indicate that the system is operating normally.
[0047] In the above embodiments, the method can dynamically adjust the watchdog feeding time interval according to the real-time changing load of the vehicle embedded system, effectively avoiding the problem of false reset caused by task delay under high load, and shortening the detection interval under low load to improve the real-time performance of fault detection, thereby ensuring the safety and reliability of the multi-domain fusion controller.
[0048] In some embodiments, the method further includes: After the multi-domain fusion controller is powered on, the in-vehicle embedded system is initialized; Start the adaptive dog feeding program; Identify the application to be registered and register it with the adaptive dog feeder based on the application.
[0049] In the above embodiments, the method can complete the system initialization and start the adaptive watchdog program at the initial power-on stage of the multi-domain fusion controller. Through the registration operation of the application to be registered, it can also lay the foundation for the subsequent dynamic adjustment of the watchdog interval based on the system load, ensuring that the adaptive watchdog mechanism can intervene in an orderly manner from the system startup stage, and ensuring the monitoring effectiveness of the entire operation cycle of the vehicle embedded system.
[0050] In some embodiments, determining the application to be registered includes: After each application in the application list is launched in turn, the application that needs to use the adaptive dog-feeding monitoring function is identified as the application to be registered.
[0051] In the above embodiments, the method can accurately select applications in the application list that need to rely on the adaptive watchdog program to realize the running status monitoring as registration objects, avoid redundant registration of applications that do not need to be monitored, ensure that the adaptive watchdog mechanism only applies to key applications, and improve the resource utilization efficiency and monitoring targeting of the vehicle embedded system.
[0052] In some embodiments, registering with the adaptive dog feeder based on the application to be registered includes: Obtain the registration information of the application to be registered; the registration information includes at least the application process ID, name, and priority. Register with the adaptive dog-feeding program based on the registration information.
[0053] In the above embodiments, the method can obtain key registration information such as the process ID, name, and priority of the application to be registered, enabling the adaptive dog-feeding program to accurately identify and associate the application to be monitored, and providing accurate data support for subsequent adjustment of the dog-feeding strategy based on application characteristics and system load.
[0054] In some embodiments, load monitoring results include at least CPU load, memory utilization, and communication load.
[0055] In the above embodiments, the method can comprehensively capture the real-time operating load status of the vehicle embedded system from multiple core dimensions such as CPU load, memory utilization, and communication load, providing multi-dimensional and reliable monitoring data for subsequent accurate judgment of system load level and dynamic adjustment of dog feeding time interval, avoiding judgment deviation caused by monitoring a single load indicator.
[0056] In some embodiments, adjusting the dog-feeding interval according to the current system load level to obtain the target dog-feeding interval includes: When the current system load level is high and a target application is detected running in the application list, the program priority of the target application is obtained, and the watchdog timer interval is adjusted according to the program priority to obtain the target watchdog timer interval. When the current system load level is high and no target application is detected running in the application list, the dog feeding interval is adjusted according to the preset default dog feeding interval to obtain the target dog feeding interval.
[0057] In the above embodiments, the method can flexibly adjust the dog-feeding time interval based on whether the target application is running in the application list under high system load scenarios, thereby ensuring that high-priority applications are not mistakenly reset under high load, while ensuring the rationality and flexibility of the dog-feeding strategy under high load scenarios.
[0058] In some embodiments, adjusting the dog feeding interval according to program priority to obtain a target dog feeding interval includes: When the program priority is high, the system's dog feeding interval is adjusted according to the preset default dog feeding interval to obtain the target dog feeding interval; When the program priority is not high priority, the dog-feeding interval of the target application is delayed and adjusted to obtain the target dog-feeding interval.
[0059] In the above embodiments, the method can optimize the resource allocation and watchdog monitoring efficiency of the vehicle embedded system by adopting a differentiated watchdog time interval adjustment strategy for target applications with different priorities. This prioritizes ensuring that high-priority applications do not experience operational abnormalities due to watchdog time interval issues under high-load scenarios, while reasonably delaying the watchdog time interval for non-high-priority applications. Under the premise of ensuring the stability of the core functions of the system, this method optimizes the resource allocation and watchdog monitoring efficiency of the vehicle embedded system.
[0060] In some embodiments, the method further includes: When the current system load level is not a high system load level, the dog feeding interval is adjusted according to the preset default dog feeding interval to obtain the target dog feeding interval.
[0061] In the above embodiments, the method can adjust the target dog feeding time interval according to the preset default dog feeding time interval when the current system load level is not high. This simplifies the dog feeding strategy adjustment process under low load conditions and ensures the timeliness of fault detection when the system load is stable through the default interval, thus taking into account both the practicality of the strategy and the reliability of system monitoring.
[0062] To make the purpose, technical solution and advantages of this application clearer, the technical solution in this application will be clearly and completely described below.
[0063] In some embodiments, Figure 2 A block diagram of a multi-domain fusion controller is shown, which includes: Multi-domain fusion controller: an intelligent control unit that integrates multiple functional domains of a vehicle (such as power, chassis, body, intelligent driving, infotainment, etc.), and achieves cross-domain collaboration and intelligent management through high-performance computing and a unified software platform; Watchdog controller: A piece of hardware used to monitor the operating status of a system. It can reset the system when a failure or deadlock occurs, ensuring the stability and reliability of the system. Virtualization software is a key technology for achieving multi-domain integration on automotive SOC chips. By running multiple Guest OSs (such as intelligent driving and intelligent cockpit) on a single hardware platform simultaneously, it enables resource isolation, efficient scheduling, and cross-domain collaboration, meeting the high reliability and real-time requirements of automotive embedded systems. Intelligent driving operating system: Designed specifically for autonomous driving functions, it provides real-time data processing, sensor fusion, and decision control to ensure safe and efficient autonomous driving of vehicles; Intelligent vehicle control operating system: responsible for the coordinated management of core control functions such as vehicle power, chassis, and body, to achieve overall vehicle performance optimization and stable operation; Intelligent cockpit operating system: Focusing on in-vehicle human-machine interaction, infotainment and comfort functions, providing a personalized and intelligent driving experience; Intelligent driving applications: Based on sensor data and algorithms, advanced driver assistance functions such as autonomous driving, lane keeping, and automatic parking are realized to improve driving safety and convenience; Intelligent vehicle control applications: By integrating and controlling the vehicle's power, chassis, and body systems, driving performance, energy consumption management, and vehicle stability are optimized, thereby enhancing the overall vehicle handling experience; Intelligent cockpit applications: Provide functions such as voice interaction, entertainment system, and personalized settings to create an intelligent and comfortable in-car environment, enhancing driving pleasure and convenience.
[0064] In some embodiments, the adaptive dog-feeding program software design diagram involved in the method is as follows: Figure 3 As shown. When the multi-domain fusion controller is powered on, there are many applications in the intelligent driving domain, intelligent vehicle control domain, and intelligent cockpit domain, which can be divided into two categories: 1. Applications that use watchdog monitoring functionality, such as sensor fusion applications, autonomous driving decision-making applications, vehicle control applications, multi-screen interaction applications, etc. 2. Applications that do not require watchdog monitoring, such as map data update services, seat massage functions, and screen personalization theme switching functions.
[0065] When the system powers on, applications that need to use the watchdog monitoring function need to register with the adaptive watchdog program and save information such as the application process ID, name, and priority in the application list.
[0066] During multi-domain fusion controller operation: The adaptive watchdog timer program monitors the system's operating status in real time, such as CPU load, memory usage, and communication load, and dynamically adjusts the watchdog timer interval based on the application type and priority in the application list. By sending a watchdog timer signal to the watchdog controller, it ensures normal system operation and prevents the watchdog controller from triggering a reset or recovery operation.
[0067] In some embodiments, such as Figure 4 As shown, the adaptive watchdog feeding method includes: S201, the multi-domain fusion controller is powered on, system initialization begins, and the adaptive dog feeding program is started.
[0068] S202. Each application is started sequentially. At this time, applications that need to use the watchdog monitoring function register with the adaptive watchdog program. The registration information includes the application process ID, name, priority, etc. This information is stored in the application list of the adaptive watchdog program.
[0069] During the operation of the S203 multi-domain fusion controller, the adaptive dog-feeding program monitors the system load, including CPU load, memory usage, and communication load.
[0070] S204. The adaptive dog-feeding program determines the current system load based on the monitoring results.
[0071] S205. When the system load is high, the adaptive dog-feeding program determines whether an application in the application list is running. If no application in the application list is running, proceed to step S211.
[0072] S206. When the system load is not high, proceed to step S211.
[0073] S207. When an application in the application list is running, determine the priority of the running application.
[0074] S208. If the running application has a high priority, proceed to step S211.
[0075] S209. When the running application has a low priority, proceed to step S210.
[0076] S210, Delay the dog-feeding interval for low-priority applications.
[0077] S211, Use the default dog feeding interval.
[0078] S212. Send a dog-feeding signal to the watchdog controller. Proceed to step S203.
[0079] In some embodiments, this application uses examples of the requirements and challenges in a simulated project. Assume a multi-domain fusion controller in a project comprises three domains: intelligent driving domain, intelligent vehicle control domain, and intelligent cockpit domain, and that different types of applications are deployed in each domain. A specific example is as follows: Applications deployed in the intelligent driving domain include sensor fusion applications, autonomous driving decision-making applications, map data update services, and driving behavior data analysis services; The applications deployed in the intelligent vehicle control domain include body control applications (such as door control, lighting control, wiper control, etc.) and seat massage functions; The applications deployed in the smart cockpit domain include infotainment applications, voice interaction services, multi-screen interaction applications, and screen personalization theme switching functions.
[0080] Among them, the applications that require watchdog monitoring functionality are: Sensor fusion applications and autonomous driving decision-making applications in the intelligent driving domain; Applications of intelligent vehicle control domain in vehicle body control; Multi-screen interactive applications in the smart cockpit domain.
[0081] These applications may run simultaneously, meaning that while the vehicle is driving in autonomous driving mode, requiring lights, wipers, and other controls to assist with driving operations, passengers may also use multi-screen interaction functions to perform tasks such as screen mirroring.
[0082] During system operation, all of the above applications need to use watchdog timers to ensure system stability. For example, sensor fusion applications need to ensure the real-time performance and reliability of data processing from sensors such as cameras and radar; autonomous driving decision-making applications need to monitor the running status of decision-making algorithms to prevent autonomous driving functions from failing due to algorithm deadlocks or crashes; vehicle control applications need to monitor the running status of each electronic control unit (ECU) to prevent functional failures; and multi-screen interaction applications need to monitor data synchronization and interaction between multiple displays to prevent display abnormalities or function interruptions due to software problems.
[0083] The applications differ significantly in terms of functional importance, real-time requirements, and system resource utilization. Based on their criticality in impacting vehicle operation, applications in the intelligent driving and intelligent vehicle control domains are typically classified as high-priority tasks, as they directly relate to vehicle safety and core control functions. Applications in the intelligent cockpit domain, on the other hand, are usually categorized as low-priority tasks, primarily serving infotainment and comfort needs, with a relatively smaller impact on vehicle safety. This prioritization helps optimize system resource scheduling and ensures high reliability and real-time performance of critical functions.
[0084] In intelligent driving mode, with the significant increase in system load, if a traditional fixed-interval dog-feeding mechanism is used, the intelligent cockpit application may fail to send the dog-feeding signal in time due to task delays or lag, causing the dog-feeding time to exceed the threshold and triggering a system reset. Such reset behavior will seriously threaten vehicle driving safety, especially in autonomous driving scenarios, and may cause unforeseen risks. Therefore, a more flexible dog-feeding strategy is needed to adapt to the system stability requirements under multi-task concurrency and high-load environments.
[0085] Based on this, the above problems can be easily solved using the methods provided in the application. Specific examples are as follows: After the multi-domain fusion controller powers on, the system initializes and runs an adaptive watchdog timer. Each application starts sequentially, and those requiring watchdog monitoring register with the adaptive watchdog timer, providing information such as process ID, name, and priority, which is then stored in the application list. During system operation, the adaptive watchdog timer monitors system load in real time, including CPU load, memory usage, and communication load. Based on the monitoring results, if the system load is high, it further checks whether any applications in the application list are currently running. If no applications are running or if a running application is of high priority, the default watchdog timer interval is used; if a running application is of low priority, its watchdog timer interval is extended. Finally, the adaptive watchdog timer sends a watchdog signal to the watchdog controller and loops back to the load monitoring step to dynamically adjust the watchdog timer strategy, ensuring stable system operation.
[0086] Figure 5 A schematic diagram of an adaptive watchdog feeding device is shown. It should be understood that this device is related to... Figure 1 The method executed in the middle corresponds to the steps involved in the aforementioned method. The specific functions and effects of the device can be found in the description above. To avoid repetition, detailed descriptions are omitted here.
[0087] The adaptive watchdog feeding device includes: The monitoring unit 310 is used to monitor the system load of the vehicle-mounted embedded system through an adaptive dog-feeding program during the operation of the multi-domain fusion controller, and obtain the load monitoring results. The determination unit 320 is used to determine the current system load level based on the load monitoring results; The adjustment unit 330 is used to adjust the dog feeding time interval according to the current system load level to obtain the target dog feeding time interval; The dog feeding unit 340 is used to send a dog feeding signal to the watchdog controller according to the target dog feeding time interval.
[0088] In some embodiments, the adaptive watchdog feeding device further includes: Initialization unit 350 is used to initialize the vehicle embedded system after the multi-domain fusion controller is powered on; The startup unit 360 is used to start the adaptive dog-feeding program; Registration unit 370 is used to determine the application to be registered and register it with the adaptive dog feeder based on the application to be registered.
[0089] In some embodiments, the registration unit 370 is specifically used to identify the application that needs to use the adaptive dog-feeding program monitoring function as the application to be registered after each application in the application list is started in sequence.
[0090] In some embodiments, the registration unit 370 is further configured to obtain registration information of the application to be registered; wherein the registration information includes at least the application process ID, name and priority; and register with the adaptive dog feeder program according to the registration information.
[0091] In some embodiments, load monitoring results include at least CPU load, memory utilization, and communication load.
[0092] In some embodiments, the adjustment unit 330 includes: The acquisition subunit 331 is used to acquire the program priority of the target application when the current system load level is high system load level and a target application is detected running in the application list, and adjust the dog feeding time interval according to the program priority to obtain the target dog feeding time interval. The adjustment subunit 332 is used to adjust the dog feeding interval according to the preset default dog feeding interval when the current system load level is high system load level and no target application is detected running in the application list, so as to obtain the target dog feeding interval.
[0093] In some embodiments, the adjustment subunit 332 is specifically used to adjust the system's dog feeding time interval according to a preset default dog feeding time interval when the program priority is high, so as to obtain the target dog feeding time interval. When the program priority is not high priority, the dog-feeding interval of the target application is delayed and adjusted to obtain the target dog-feeding interval.
[0094] In some embodiments, the adjustment subunit 332 is further configured to adjust the dog feeding time interval according to the preset default dog feeding time interval when the current system load level is not a high system load level, so as to obtain the target dog feeding time interval.
[0095] like Figure 6 As shown, this application provides an electronic device 400, which includes a processor 401 and a memory 402. The processor 401 and the memory 402 are interconnected and communicate with each other through a communication bus 403 and / or other forms of connection mechanism (not shown). The memory 402 stores a computer program that can be executed by the processor 401. When the computing device is running, the processor 401 executes the computer program to perform the method in any of the aforementioned optional implementations.
[0096] This application provides a computer-readable storage medium storing a computer program, which, when executed by a processor, performs the method in any of the aforementioned optional implementations.
[0097] The computer-readable storage medium can be implemented by any type of volatile or non-volatile storage device or a combination thereof, such as Static Random Access Memory (SRAM), Electrically Erasable Programmable Read-Only Memory (EEPROM), Erasable Programmable Read Only Memory (EPROM), Programmable Red-Only Memory (PROM), Read-Only Memory (ROM), magnetic storage, flash memory, magnetic disk, or optical disk.
[0098] This application provides a computer program product, which includes a computer program that, when run by a processor, executes the method in any of the aforementioned optional implementations.
[0099] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of this application, and not to limit them. Although this application has been described in detail with reference to the foregoing embodiments, those skilled in the art should understand that modifications can still be made to the technical solutions described in the foregoing embodiments, or equivalent substitutions can be made to some or all of the technical features therein. These modifications or substitutions do not cause the essence of the corresponding technical solutions to deviate from the scope of the technical solutions of the embodiments of this application, and they should all be covered within the scope of the claims and specification of this application. In particular, as long as there is no conflict, the various technical features mentioned in the embodiments can be combined in any way. This application is not limited to the specific embodiments disclosed herein, but includes all technical solutions falling within the scope of the claims.
Claims
1. An adaptive watchdog feeding method, characterized by, The method comprises the following steps: During the running of the multi-domain fusion controller, the system load of the vehicle embedded system is monitored by the adaptive watchdog program to obtain a load monitoring result; A current system load level is determined according to the load monitoring result; A target watchdog time interval is obtained by adjusting the watchdog time interval according to the current system load level; A watchdog signal is sent to the watchdog controller according to the target watchdog time interval.
2. The adaptive watchdog feeding method of claim 1, wherein, The method further comprises the following steps: After the multi-domain fusion controller is powered on, the vehicle embedded system is initialized; The adaptive watchdog program is started; A to-be-registered application program is determined, and the adaptive watchdog program is registered according to the to-be-registered application program.
3. The adaptive watchdog feeding method of claim 2, wherein, The to-be-registered application program is determined by the following steps: After each application program in the application program list is started in turn, an application program that needs to use the monitoring function of the adaptive watchdog program is determined as the to-be-registered application program.
4. The adaptive watchdog feeding method of claim 2, wherein, The adaptive watchdog program is registered according to the to-be-registered application program by the following steps: Registration information of the to-be-registered application program is obtained; the registration information at least comprises an application program process ID, a name and a priority; The adaptive watchdog program is registered according to the registration information.
5. The adaptive watchdog feeding method of claim 1, wherein, The load monitoring result at least comprises a CPU load, a memory occupancy rate and a communication load.
6. The adaptive watchdog feeding method of claim 1, wherein, The target watchdog time interval is obtained by adjusting the watchdog time interval according to the current system load level by the following steps: When the current system load level is a high system load level and a target application program in the application program list is detected to be running, a program priority of the target application program is obtained, and the target watchdog time interval is obtained by adjusting the watchdog time interval according to the program priority; When the current system load level is a high system load level and it is detected that there is no target application program in the application program list running, the target watchdog time interval is obtained by adjusting the watchdog time interval according to a preset default watchdog time interval.
7. The adaptive watchdog feeding method of claim 6, wherein, The target watchdog time interval is obtained by adjusting the watchdog time interval according to the program priority by the following steps: When the program priority is a high priority, the target watchdog time interval is obtained by adjusting the watchdog time interval of the system according to a preset default watchdog time interval; When the program priority is not a high priority, the target watchdog time interval is obtained by delaying the adjustment of the watchdog time interval of the target application program.
8. The adaptive watchdog feeding method of claim 6, wherein, The method further comprises the following steps: When the current system load level is not a high system load level, the target watchdog time interval is obtained by adjusting the watchdog time interval according to a preset default watchdog time interval.
9. An adaptive watchdog feeding device, characterized by The adaptive watchdog device comprises: A monitoring unit, configured to monitor the system load of the vehicle embedded system by the adaptive watchdog program during the running of the multi-domain fusion controller to obtain a load monitoring result; A determination unit, configured to determine a current system load level according to the load monitoring result; An adjustment unit, configured to obtain a target watchdog time interval by adjusting the watchdog time interval according to the current system load level; A watchdog unit, configured to send a watchdog signal to the watchdog controller according to the target watchdog time interval.
10. An electronic device, comprising: The electronic device comprises a memory for storing a computer program and a processor for running the computer program to enable the electronic device to perform the adaptive watchdog feeding method of any one of claims 1 to 8.
11. A readable storage medium, characterized by, The readable storage medium stores a computer program, and the computer program is run by the processor to perform the adaptive watchdog feeding method of any one of claims 1 to 8.
12. A computer program product, characterised in that, The computer program product comprises a computer program, and the computer program is run by the processor to perform the adaptive watchdog feeding method of any one of claims 1 to 8.