Unlock instant, AI-driven research and patent intelligence for your innovation.

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

Active Publication Date: 2020-09-25
CHINA FIRST AUTOMOBILE
View PDF15 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

However, this method of using third-party monitoring tools requires custom integration for the chip platform, which has a high degree of coupling and is not easy to transplant, resulting in high investment costs, and the third-party monitoring tools will occupy more system resources during operation. , which increases the load of the system itself, which has an impact on the stability of the entire test

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Method and device for determining task time parameters in real-time operating system and vehicle
  • Method and device for determining task time parameters in real-time operating system and vehicle
  • Method and device for determining task time parameters in real-time operating system and vehicle

Examples

Experimental program
Comparison scheme
Effect test

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...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

PUM

No PUM Login to View More

Abstract

The embodiment of the invention discloses a method and device for determining task time parameters in a real-time operating system and a vehicle. The method comprises the following steps: establishinga calling relationship between a to-be-tested real-time operating system and a set task entry monitoring function and a task exit monitoring function through an external calling interface, each taskdeployed in the to-be-tested real-time operating system correspondingly having a preset task identifier; obtaining a task timestamp record table formed by the task entry monitoring function and the task exit monitoring function when the to-be-tested real-time operating system runs; and determining task time parameter information of the to-be-analyzed task according to the task timestamp record table in combination with the task identifier of the selected to-be-analyzed task. According to the technical scheme provided by the embodiment of the invention, a third-party monitoring tool does not need to be adopted to monitor various tasks, and accurate calculation of task time parameters with nested tasks or interrupted tasks can be realized only through two calling functions.

Description

technical field [0001] The embodiments of the present invention relate to the technical field of automobile control, in particular to a method, a device and a vehicle for determining task time parameters in a real-time operating system. Background technique [0002] The electronic control unit (Electronic Control Unit, ECU) is the core control component in the automobile control technology. The automobile includes multiple ECUs for realizing different control functions, and the ECU mainly realizes the corresponding control through the real-time operating system embedded in it. function execution. For the real-time operating system, its characteristics can be described as: when the real-time operating system is first embedded in the ECU, programmers have written various tasks to perform the corresponding control functions. These tasks can include events, cycles, and Interrupts, etc., the execution time and execution sequence of each task have been solidified in the programmi...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

Application Information

Patent Timeline
no application Login to View More
Patent Type & Authority Applications(China)
IPC IPC(8): G06F11/30G06F9/48
CPCG06F11/302G06F9/4881Y02D10/00
Inventor 尹超平张晓谦孙忠刚
Owner CHINA FIRST AUTOMOBILE