A vehicle networking watchdog function management method and device and a storage medium
Patent Information
- Application Number
- CN202311283066.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-10-07
- Publication Date
- 2026-08-21
- Estimated Expiration
- 2043-10-07
AI Technical Summary
[0003]看门狗开启后必须周期性喂狗才可以保证单片机不被重启,当进入休眠状态后,由于休眠状态下喂狗任务不能运行,不能周期性喂狗就会引起单片机重启,这样单片机就无法进入休眠状态,一直在准备进入休眠,然后重启这样的循环状态,造成程序紊乱,因此需要改进
[0048]本申请提供的一种车联网看门狗功能管理方法、装置及存储介质能够使车联网产品在满足休眠条件下进入休眠状态,满足唤醒条件下能够重新正常启动运行。
Smart Images

Figure CN117215395B_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of vehicle networking, and in particular to a method, device and storage medium for managing the watchdog function of vehicle networking. Background Technology
[0002] A watchdog timer is a module or separate chip in a microcontroller. Its main function is to generate a reset signal, causing the microcontroller to reset and restart when it enters a fault state. When a microcontroller encounters a strong magnetic field or has a flawed program design, it may malfunction, enter an infinite loop, and disrupt normal operation, causing the microcontroller control system to fail. A watchdog timer can restart the out-of-control microcontroller, escaping the malfunction.
[0003] Once the watchdog timer is enabled, it must be periodically fed to prevent the microcontroller from being restarted. When the microcontroller enters sleep mode, the watchdog feeding task cannot run in sleep mode. Failure to periodically feed the watchdog timer will cause the microcontroller to restart. As a result, the microcontroller cannot enter sleep mode and keeps preparing to enter sleep mode and then restarting in a cycle, causing program disorder. Therefore, it needs to be improved. Summary of the Invention
[0004] In order to solve the above-mentioned technical problems, or at least partially solve the above-mentioned technical problems, this application provides a method, device and storage medium for managing the watchdog function of vehicle networking.
[0005] Firstly, this application provides a method for managing a watchdog function in a vehicle-to-everything (V2X) network, the method comprising the following steps:
[0006] Initialize the vehicle-to-everything (V2X) watchdog function;
[0007] Running vehicle-to-everything (V2X) tasks;
[0008] Determine whether the microcontroller's sleep conditions are met;
[0009] If so, restart the vehicle network;
[0010] If not, return to the steps for running the vehicle networking task;
[0011] Disable the vehicle network watchdog function;
[0012] Enter the microcontroller sleep mode.
[0013] Preferably, the operation of the vehicle-to-everything (V2X) task includes the following steps:
[0014] Run vehicle-to-everything (V2X) video recording tasks;
[0015] Run the vehicle-to-everything (V2X) data push task;
[0016] Run the vehicle networking program upgrade task.
[0017] Preferably, the vehicle-to-everything (V2X) video recording task includes the following steps:
[0018] Obtain the vehicle-to-everything (V2X) video recording command;
[0019] Analyze the vehicle network video recording command;
[0020] Video is captured according to the vehicle network video capture command.
[0021] Preferably, the process of running the vehicle network data push task includes the following steps:
[0022] Receive vehicle network data push instructions;
[0023] Parse the vehicle network data push command;
[0024] Data is pushed according to the vehicle network data push instruction.
[0025] Preferably, the process of running the vehicle network data push task further includes the following steps:
[0026] Display push data;
[0027] Get the data reading status and provide feedback.
[0028] Preferably, the task of upgrading the vehicle networking program includes the following steps:
[0029] Obtain vehicle networking program upgrade instructions;
[0030] Parse the vehicle network program upgrade command;
[0031] The program is upgraded according to the aforementioned vehicle networking program upgrade.
[0032] Preferably, the task of upgrading the vehicle networking program includes the following steps:
[0033] Display the upgrade program;
[0034] Get the program upgrade status and provide feedback.
[0035] Secondly, this application provides a vehicle networking watchdog function management device, comprising:
[0036] The initialization module is used to initialize the vehicle-to-everything (V2X) watchdog function.
[0037] The runtime module is used to run vehicle-to-everything (V2X) tasks;
[0038] The judgment module is used to determine whether the microcontroller's sleep conditions are met.
[0039] An execution module is used to perform a preset operation based on the judgment result of the judgment module;
[0040] The shutdown module is used to disable the vehicle network watchdog function;
[0041] The sleep module is used to enter the sleep state of the microcontroller.
[0042] Specifically, when the judgment result of the judgment module is yes, the execution module restarts the vehicle network; when the judgment result of the judgment module is no, the execution module returns to the step of running the vehicle network task.
[0043] Thirdly, an air conditioner control device is provided, including a processor, a communication interface, a memory, and a communication bus, wherein the processor, the communication interface, and the memory communicate with each other through the communication bus;
[0044] Memory, used to store computer programs;
[0045] When a processor executes a program stored in memory, it implements the steps of the vehicle-to-everything (V2X) watchdog function management method according to any embodiment of the first aspect.
[0046] Fourthly, a computer-readable storage medium is provided having a computer program stored thereon, which, when executed by a processor, implements the steps of the vehicle-to-everything (V2X) watchdog function management method as described in any embodiment of the first aspect.
[0047] The technical solutions provided in this application have the following advantages compared with the prior art:
[0048] The watchdog function management method, device and storage medium provided in this application enable vehicle networking products to enter a hibernation state when the hibernation conditions are met, and to restart and run normally when the wake-up conditions are met. Attached Figure Description
[0049] The accompanying drawings, which are incorporated in and form part of this specification, illustrate embodiments consistent with the invention and, together with the description, serve to explain the principles of the invention.
[0050] To more clearly illustrate the technical solutions in the embodiments of the present invention or the prior art, the drawings used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, for those skilled in the art, other drawings can be obtained based on these drawings without creative effort.
[0051] Figure 1 This is a flowchart illustrating a method for managing the watchdog function in a vehicle network according to an embodiment of the present invention;
[0052] Figure 2This is a schematic diagram of the structure of a vehicle-to-everything (V2X) watchdog function management device provided in an embodiment of the present invention;
[0053] Figure 3 This is a schematic diagram of the structure of an electronic device provided by the present invention;
[0054] Figure 4 This is a schematic diagram of the structure of a non-transitory computer-readable storage medium provided by the present invention. Detailed Implementation
[0055] To make the objectives, technical solutions, and advantages of the embodiments of this application clearer, the technical solutions of the embodiments of this application will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of this application, not all embodiments. Based on the embodiments of this application, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of this application.
[0056] Figure 1 This is a flowchart illustrating a method for managing a watchdog function in a vehicle network, as provided in an embodiment of this application.
[0057] This application provides a method for managing a watchdog function in a vehicle-to-everything (V2X) network, the method comprising the following steps:
[0058] S1: Initialize the vehicle network watchdog function;
[0059] Specifically, the initialization of the vehicle network watchdog function can be completed by sending an initialization command to the vehicle network.
[0060] S2: Running vehicle networking tasks;
[0061] In this embodiment of the application, the operation of the vehicle-to-everything (V2X) task includes the following steps:
[0062] Run vehicle-to-everything (V2X) video recording tasks;
[0063] Run the vehicle-to-everything (V2X) data push task;
[0064] Run the vehicle networking program upgrade task.
[0065] Specifically, vehicle-to-everything (V2X) tasks include various types, such as V2X video shooting tasks, data push tasks, and software upgrade tasks.
[0066] In this embodiment of the application, the operation of the vehicle-to-everything (V2X) video shooting task includes the following steps:
[0067] Obtain the vehicle-to-everything (V2X) video recording command;
[0068] Analyze the vehicle network video recording command;
[0069] Video is captured according to the vehicle network video capture command.
[0070] Specifically, after obtaining and parsing the vehicle-to-everything (V2X) video recording command, the video recording operation is carried out according to the command.
[0071] In this embodiment of the application, the process of running the vehicle network data push task includes the following steps:
[0072] Receive vehicle network data push instructions;
[0073] Parse the vehicle network data push command;
[0074] Data is pushed according to the vehicle network data push instruction.
[0075] Specifically, after obtaining and parsing the vehicle network data push command, the data push operation is carried out according to the command.
[0076] In this embodiment of the application, the step of running the vehicle network data push task further includes:
[0077] Display push data;
[0078] Get the data reading status and provide feedback.
[0079] Specifically, the pushed data is displayed on the screen, which can obtain the user's reading status and feed it back to the backend. The backend can then learn about the user's reading preferences for subsequent data push operations.
[0080] In this embodiment of the application, the task of running the vehicle networking program upgrade includes the following steps:
[0081] Obtain vehicle networking program upgrade instructions;
[0082] Parse the vehicle network program upgrade command;
[0083] The program is upgraded according to the aforementioned vehicle networking program upgrade.
[0084] Specifically, after obtaining and parsing the vehicle networking program upgrade command, the program upgrade is performed according to the command.
[0085] In this embodiment of the application, the task of running the vehicle networking program upgrade includes the following steps:
[0086] Display the upgrade program;
[0087] Get the program upgrade status and provide feedback.
[0088] Specifically, the upgrade program is displayed on the screen, which can obtain the status of the upgrade program and send feedback to the background. The background can then know the upgrade status and use it for subsequent upgrade work.
[0089] S3: Determine whether the microcontroller sleep conditions are met;
[0090] S4: If so, restart the vehicle network;
[0091] S5: If not, return to the steps of running the vehicle networking task;
[0092] Specifically, when the conditions for the microcontroller to go into sleep mode are met, the vehicle network is restarted; otherwise, the process returns to the steps of running the vehicle network task.
[0093] S6: Disable the vehicle network watchdog function;
[0094] S7: Enter microcontroller sleep mode.
[0095] Specifically, the vehicle-to-everything (V2X) watchdog function is disabled, and the microcontroller enters sleep mode.
[0096] like Figure 2 This application provides a vehicle networking watchdog function management device, including:
[0097] Initialization module 10 is used to initialize the vehicle network watchdog function;
[0098] Module 20 is used to run vehicle networking tasks;
[0099] The judgment module 30 is used to determine whether the microcontroller's sleep conditions are met;
[0100] The execution module 40 is used to perform a preset operation based on the judgment result of the judgment module;
[0101] Shutdown module 50 is used to disable the vehicle network watchdog function;
[0102] The sleep module 60 is used to enter the sleep state of the microcontroller.
[0103] Specifically, when the judgment result of the judgment module is yes, the execution module restarts the vehicle network; when the judgment result of the judgment module is no, the execution module returns to the step of running the vehicle network task.
[0104] The vehicle network watchdog function management device provided in this application can perform the vehicle network watchdog function management method provided in the above steps.
[0105] It should be understood that the specific embodiments described above are merely illustrative or explanatory of the principles of the invention and do not constitute a limitation thereof. Therefore, any modifications, equivalent substitutions, improvements, etc., made without departing from the spirit and scope of the invention should be included within the protection scope of the invention. Furthermore, the appended claims are intended to cover all variations and modifications falling within the scope and boundaries of the appended claims, or equivalent forms of such scope and boundaries.
[0106] The following is for reference. Figure 3 The diagram illustrates a structural schematic of an electronic device 100 suitable for implementing embodiments of the present disclosure. The electronic devices in the embodiments of the present disclosure may include, but are not limited to, mobile terminals such as mobile phones, laptops, digital broadcast receivers, PDAs (personal digital assistants), PADs (tablet computers), PMPs (portable multimedia players), in-vehicle terminals (e.g., in-vehicle navigation terminals), and fixed terminals such as digital TVs and desktop computers. Figure 3 The electronic device shown is merely an example and should not be construed as limiting the functionality and scope of the embodiments disclosed herein.
[0107] like Figure 3 As shown, the electronic device 100 may include a processing unit (e.g., a central processing unit, a graphics processing unit, etc.) 101, which can perform various appropriate actions and processes according to a program stored in a read-only memory (ROM) 102 or a program loaded from a storage device 108 into a random access memory (RAM) 103. The RAM 103 also stores various programs and data required for the operation of the electronic device 100. The processing unit 101, ROM 102, and RAM 103 are interconnected via a bus 104. An input / output (I / O) interface 105 is also connected to the bus 104.
[0108] Typically, the following devices can be connected to I / O interface 105: input devices 106 including, for example, touchscreens, touchpads, keyboards, mice, image sensors, microphones, accelerometers, gyroscopes, etc.; output devices 107 including, for example, liquid crystal displays (LCDs), speakers, vibrators, etc.; storage devices 108 including, for example, magnetic tapes, hard disks, etc.; and communication devices 109. Communication device 109 allows electronic device 100 to communicate wirelessly or wiredly with other devices to exchange data. Although electronic device 100 with various devices is shown in the figure, it should be understood that it is not required to implement or possess all of the devices shown. More or fewer devices may be implemented or possessed alternatively.
[0109] In particular, according to embodiments of this disclosure, the processes described above with reference to the flowcharts can be implemented as computer software programs. For example, embodiments of this disclosure include a computer program product comprising a computer program carried on a computer-readable medium, the computer program containing program code for performing the methods shown in the flowcharts. In such embodiments, the computer program can be downloaded and installed from a network via communication device 109, or installed from storage device 108, or installed from ROM 102. When the computer program is executed by processing device 101, it performs the functions defined in the methods of embodiments of this disclosure.
[0110] The following is for reference. Figure 4 It illustrates a schematic diagram of a computer-readable storage medium suitable for implementing embodiments of the present disclosure, the computer-readable storage medium storing a computer program that, when executed by a processor, can implement the vehicle network watchdog function management method as described above.
[0111] The watchdog function management method, device and storage medium provided in this application enable vehicle networking products to enter a hibernation state when the hibernation conditions are met, and to restart and run normally when the wake-up conditions are met.
[0112] It should be noted that, in this document, relational terms such as "first" and "second" are used merely to distinguish one entity or operation from another, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Furthermore, the terms "comprising," "including," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such a process, method, article, or apparatus. Without further limitations, an element defined by the phrase "comprising one..." does not exclude the presence of other identical elements in the process, method, article, or apparatus that includes said element.
[0113] The above description is merely a specific embodiment of the present invention, enabling those skilled in the art to understand or implement the invention. Various modifications to these embodiments will be readily apparent to those skilled in the art, and the general principles defined herein may be implemented in other embodiments without departing from the spirit or scope of the invention. Therefore, the present invention is not to be limited to the embodiments shown herein, but is to be accorded the widest scope consistent with the principles and novel features claimed herein.
Claims
1. A method for managing watchdog functionality in vehicle networking, characterized in that, The method includes the following steps: Initialize the vehicle-to-everything (V2X) watchdog function; Running vehicle-to-everything (V2X) tasks; Determine whether the microcontroller's sleep conditions are met; If so, restart the vehicle network; If not, return to the steps for running the vehicle networking task; Disable the vehicle network watchdog function; Enter microcontroller sleep mode; The operation of the vehicle-to-everything (V2X) task includes the following steps: Run vehicle-to-everything (V2X) video recording tasks; Run the vehicle-to-everything (V2X) data push task; Run the vehicle networking program upgrade task; The task of recording video on the Internet of Vehicles includes the following steps: Obtain the vehicle-to-everything (V2X) video recording command; Analyze the vehicle network video recording command; Video is captured according to the vehicle network video capture command.
2. The vehicle-to-everything (V2X) watchdog function management method according to claim 1, characterized in that, The task of pushing vehicle network data includes the following steps: Receive vehicle network data push instructions; Parse the vehicle network data push command; Data is pushed according to the vehicle network data push instruction.
3. The vehicle-to-everything (V2X) watchdog function management method according to claim 2, characterized in that, The task of pushing vehicle network data also includes the following steps: Display push data; Get the data reading status and provide feedback.
4. The vehicle-to-everything (V2X) watchdog function management method according to claim 1, characterized in that, The task of upgrading the vehicle networking program includes the following steps: Obtain vehicle networking program upgrade instructions; Parse the vehicle network program upgrade command; The program is upgraded according to the aforementioned vehicle networking program upgrade.
5. The vehicle-to-everything (V2X) watchdog function management method according to claim 4, characterized in that, The task of upgrading the vehicle networking program includes the following steps: Display the upgrade program; Get the program upgrade status and provide feedback.
6. A vehicle network watchdog function management device for implementing the management method according to any one of claims 1-5, characterized in that, include: The initialization module is used to initialize the vehicle-to-everything (V2X) watchdog function. The runtime module is used to run vehicle-to-everything (V2X) tasks; The judgment module is used to determine whether the microcontroller's sleep conditions are met. An execution module is used to perform a preset operation based on the judgment result of the judgment module; The shutdown module is used to disable the vehicle network watchdog function; The sleep module is used to put the microcontroller into sleep mode. Specifically, when the judgment result of the judgment module is yes, the execution module restarts the vehicle network; when the judgment result of the judgment module is no, the execution module returns to the step of running the vehicle network task.
7. An electronic device, characterized in that, It includes a processor, a communication interface, a memory, and a communication bus, wherein the processor, the communication interface, and the memory communicate with each other through the communication bus; Memory, used to store computer programs; When a processor executes a program stored in a memory, it implements the steps of the vehicle-to-everything (V2X) watchdog function management method according to any one of claims 1-5.
8. A computer-readable storage medium having a computer program stored thereon, characterized in that, When the computer program is executed by the processor, it implements the steps of the vehicle network watchdog function management method as described in any one of claims 1-5.
Citation Information
Patent Citations
Watchdog module management method and device and vehicle
CN114578721A
Remote awakening, dormancy and upgrading method and device based on data collector
CN115484664A