Method and device for determining task time parameters in real-time operating system and vehicle
A real-time operating system and task time technology, applied in the field of automobile control, can solve problems such as high investment cost, high coupling degree, and impact on test stability
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0029] figure 1 It is a flowchart of a method for determining task time parameters in a real-time operating system provided by Embodiment 1 of the present invention. This embodiment is applicable to the case of determining task time parameters in any real-time operating system. The method provided in this embodiment A method for determining a task time parameter in a real-time operating system can be performed by a device for determining a task time parameter in a real-time operating system provided in an embodiment of the present invention. The device can be implemented in software and / or hardware, and integrated in In the vehicle in which the method is carried out.
[0030] Specifically, refer to figure 1 , the method specifically includes the following steps:
[0031] S101. Establish a call relationship between the real-time operating system to be tested and the set task entry monitoring function and task exit monitoring function through an external call interface, wherei...
Embodiment 2
[0044] Figure 2A It is a flow chart of a method for determining task time parameters in a real-time operating system provided by Embodiment 2 of the present invention. This embodiment of the present invention is optimized on the basis of the foregoing embodiments. Optionally, this embodiment explains in detail the execution process of the task entry monitoring function and the execution process of the task exit monitoring function.
[0045] Specifically, see Figure 2A , the method of this embodiment may specifically include:
[0046] S201. Establish a call relationship between the real-time operating system to be tested and the set task entry monitoring function and task exit monitoring function through an external call interface.
[0047] S202, the start time stamp of each task is preset as a default value.
[0048] Wherein, the start time stamp of the task may be data that can represent the running status of the task at a specific point in time.
[0049] Optionally, th...
Embodiment 3
[0098] image 3 A flowchart of a device for determining task time parameters in a real-time operating system provided by Embodiment 3 of the present invention, as shown in image 3 As shown, the device may include:
[0099] The call relationship establishment module 301 is used to establish the call relationship between the real-time operating system to be tested and the set task entry monitoring function and task exit monitoring function through an external call interface, wherein each task deployed in the real-time operating system to be tested Corresponding to the pre-set task ID;
[0100] A recording table acquisition module 302, configured to obtain a task time stamp recording table formed by the task entry monitoring function and the task exit monitoring function when the real-time operating system to be tested is running;
[0101] The parameter information determination module 303 is configured to determine the task time parameter information of the task to be analyze...
PUM
Login to View More Abstract
Description
Claims
Application Information
Login to View More 


