AUTOSAR Vehicle Controller Task Scheduling for CPU Overload
Find Innovative SolutionsGenerate Solutions
Solution Overview
Problem
In vehicles using the AUTOSAR platform, the lack of calculation information for execution time of each function within a task leads to issues with determining unexecuted functions and managing execution timeouts, resulting in potential CPU overload and incorrect program operations.
Innovation Solution
A vehicle control method that acquires information on task execution times and functions using instrumentation code, allowing for the detection and execution of unexecuted functions in another task, with the option to utilize a different core if necessary, and informing the user of available cores for execution.
Engineering Contradictions & Design Principles
Engineering Contradiction Analysis
1Adaptability or versatility
If multiple electronic devices and programs are mounted in a vehicle, then the functionality and convenience are improved, but the CPU becomes overloaded causing incorrect program operations
Solution Approach 1:
The system performs preliminary actions by detecting unexecuted functions before they cause CPU overload issues. The detection unit identifies functions that were not executed within their allocated time periods, and the execution control unit proactively schedules these unexecuted functions in subsequent tasks, preventing accumulation of unexecuted operations that could lead to system failures.
Solution Approach 2:
The system implements feedback mechanisms where the detection unit continuously monitors task execution status and provides information about unexecuted functions back to the execution control unit. This feedback loop enables dynamic adjustment of task scheduling to ensure all functions are executed within appropriate timeframes, maintaining system reliability while supporting multiple electronic devices.
2Measurement precision
If task execution time is monitored using MCU timer, then execution time calculation is achieved, but information regarding execution time of each function within a task is absent
Solution Approach 1:
The system segments the monitoring granularity from task-level to function-level. The detection unit divides each task into its constituent functions and individually tracks the execution time of each function. This segmentation enables precise identification of which specific functions within a task were not executed, providing detailed information that was previously unavailable at the aggregate task level.
3Device complexity
If unexecuted functions are not detected, then system simplicity is maintained, but automatic resolution of execution timeout problems cannot be achieved
Solution Approach 1:
The system implements self-service by automatically detecting unexecuted functions and resolving execution timeout problems without external intervention. The detection unit autonomously identifies functions that missed their execution deadlines, and the execution control unit automatically schedules these functions in subsequent tasks, enabling the system to self-correct timing issues and maintain operational completeness.
Data Source
AI summary
A vehicle and a control method thereof are disclosed. The vehicle to which an automotive open system architecture (AUTOSAR) platform is applied, may include an information acquisition part configured to acquire information regarding a first task and information regarding a type and an execution time of each of functions that are executed in the first task from a process control block; and a controller configured to perform control to execute an unexecuted function in a second task when the unexecuted function is not executed or not completely executed in the first task but is present together with the functions that are executed in the first task. In accordance with the present disclosure, a function that is not executed from the beginning or a partially executed function in a task may be detected to be executed in another task so that a program can be more stably executed.


