A program control method, device and vehicle
A technology of preset programs and vehicle controllers, which is applied in the automotive field, can solve problems such as excessive execution, program jamming, and affecting the stability and safety of vehicle controllers, so as to improve stability and safety, prevent The effect of the accident
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
no. 1 example
[0053] see figure 1 , an embodiment of the present invention provides a program control method, which is applied to a vehicle controller, the vehicle controller includes a watchdog module, and the program control method includes:
[0054] Step 101, detecting the sending detection time of the dog feeding signal sent by the preset program within the preset time period;
[0055] Step 102, when the sending detection time matches the preset sending time of the dog feeding signal, acquire the running state parameters of the preset program within the preset time period;
[0056]Among them, in view of the fact that the program often produces certain deviations when it is running, for example, the time to complete the program in an ideal state is 5ms (milliseconds), but the actual running time may be 5.5ms, and it can also be judged at this time Basically normal (the error value can be preset according to different programs, and the accuracy requirements for different programs may be ...
no. 2 example
[0060] see figure 2 , compared with the first embodiment, the program control method of this embodiment further includes:
[0061] Step 201, when the sending detection time does not meet the preset sending time of the dog feeding signal, control the watchdog module to reset the preset program.
[0062] In this embodiment, when it is detected that the sending detection time of sending the dog-feeding signal does not meet the preset sending time of the dog-feeding signal (that is, the dog is not fed during the window period), the watchdog module is directly controlled to Set the program to reset.
[0063] Among them, when the program is stuck and the dog feeding signal is not sent, it can be judged that the sending time of the dog feeding signal is 0 or the maximum value of the cycle within a detection cycle. In this case, the time cannot be within the preset sending time , it also controls the watchdog module to reset the preset program.
no. 3 example
[0065] see image 3 , For the first embodiment, the step of detecting the detection preset program sending the dog feeding signal within the preset time period includes:
[0066] Step 301, controlling the preset program to send a dog feeding signal after running a preset number of times within the preset time period;
[0067] Step 302: Determine the sending detection time according to the time when the dog feeding signal is sent.
[0068] In this embodiment, when the preset program is preset to run for a preset number of times, the preset program is controlled to send a dog feeding signal. For example, if the preset program is set to send the dog feeding signal after running 10 times, then the preset program is controlled to send the dog feeding signal after the preset program runs 10 times.
[0069] Wherein, the above is an embodiment of the present invention. In another embodiment of the present invention, the sending of the dog feeding signal is controlled by a trigger pr...
PUM
Login to View More Abstract
Description
Claims
Application Information
Login to View More 


