Multi-nuclear power drive controller task scheduling system, electric drive assembly and vehicle

Through the multi-core electric drive controller task scheduling system, the tasks and degradation modes are dynamically allocated, which solves the problems of resource contention and poor scalability of the single-core CPU structure, realizes the task scheduling optimization of the multi-core system, and improves the reliability of the vehicle electronic control system. sex and safety.

CN118838296APending Publication Date: 2024-10-25DONGFENG OFF ROAD VEHICLE CO LTD
View PDF 0 Cites 5 Cited by

Patent Information

Application Number
CN202410770971.8
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-06-14
Publication Date
2024-10-25

AI Technical Summary

Technical Problem

The traditional single-core CPU structure in vehicle electronic control systems has problems such as intense resource occupation contention, strong functional coupling, poor scalability, and limited peripheral hardware interfaces. Multi-core systems have insufficient task scheduling strategies and cannot give full play to the advantages of multi-cores.

Method used

Design a multi-core electric drive controller task scheduling system, including a multi-core controller and a task allocation scheduling module. By identifying task types and attributes, real-time monitoring of the processor core load rate, dynamic allocation of tasks, definition of necessary and non-essential functions, and entry into degradation mode to reduce resource occupation, and allocate the control function module and fault diagnosis module to the same processor core to achieve mutual monitoring and diagnosis.

Benefits of technology

It realizes the reasonable reallocation of processor core tasks, ensures normal operation of the system, enhances system reliability and fault tolerance, improves functional safety and resource utilization, and reduces the risk of single point failure.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118838296A_ABST
    Figure CN118838296A_ABST
Patent Text Reader

Abstract

The invention discloses a multi-core power drive controller task scheduling system which comprises a multi-core controller which comprises at least three processor cores and further comprises a multi-core task distribution scheduling module. The multi-core task distribution and scheduling module is used for identifying functions to which tasks belong, identifying task types and performing task distribution and task scheduling on the tasks; the task scheduling method comprises the following steps: identifying a task type; classifying main functions and auxiliary functions according to task attributes; when the load rate of the processor core exceeds a threshold value, the auxiliary function is dynamically distributed to the processor core with the lowest load; when a certain processor core breaks down, tasks of the processor core are redistributed; if the residual resources are not enough to run all necessary functions, entering a degradation mode; the invention further discloses a corresponding electric drive assembly and a vehicle, tasks are reasonably classified and dispatched, it is ensured that important tasks are preferentially dispatched, resources are distributed, and the reliability and the fault-tolerant capability of the system are enhanced.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention belongs to the technical field of vehicle electric drive control, and more specifically, relates to a multi-core electric drive controller task scheduling system and a task scheduling method. Background Art

[0002] Traditional vehicle electronic control systems mostly use a single-core CPU structure, and different control function modules such as vehicle dynamics control, gear shift control, motor control, fault diagnosis, etc. run on the same CPU processor core. This single-core structure has the following major defects:

[0003] (1) Fierce competition for resource occupancy: Different control function modules run on the same CPU processor core and compete with each other for limited CPU resources such as computing power and storage. As a result, key functions may not be allocated sufficient resources, affecting their real-time performance and control accuracy.

[0004] (2) Strong functional coupling: Each functional module runs on the same processor core with poor separation between them. The failure of one module may easily affect or destroy the operation of other modules, causing cascading failures and reducing the reliability and safety of the overall system.

[0005] (3) Poor functional scalability: As the degree of vehicle electrification, intelligence, and networking continues to increase, vehicle control functions are becoming more and more complex, and more and more new functional modules are being added. However, the resources and processing capabilities of a single-core CPU are limited, and its scalability and adaptability are poor.

[0006] (4) Limited peripheral hardware interfaces: In a single-core structure, the number of peripheral hardware that can be mounted on the CPU is also limited, which to a certain extent restricts the expansion of system functions.

[0007] Some multi-core CPU structured vehicle electronic control systems have emerged, which improve system resources and performance through multi-core parallel processing. However, the existing multi-core systems have deficiencies in task scheduling strategies and still cannot fully utilize the advantages of multi-core. For example, the task allocation mechanism is relatively simple and does not fully consider the task type, priority, resource requirements, etc., which may cause a processor core to be overloaded and resource utilization to be uneven. Summary of the invention

[0008] The present invention provides a multi-core electric drive controller task scheduling system, comprising a multi-core controller, the multi-core controller comprising at least three processor cores, and a multi-core task allocation scheduling module, the multi-core task allocation scheduling module is used to identify the function to which a task belongs, identify the task type, and perform task allocation and task scheduling on the task; the identified task functions include: vehicle dynamics control function, gear shift control function, and motor control function; the identified task types include control function type and fault diagnosis type;

[0009] The task scheduling method is:

[0010] Identify the task type;

[0011] Classify the main functions and auxiliary functions according to the task attributes;

[0012] Monitor the load rate of each processor core in real time; when the processor core load rate exceeds the threshold, dynamically allocate auxiliary functions to the processor core with the lowest load;

[0013] Define the functions that must be run when the vehicle is running as essential functions, and define the functions that are not essential when the vehicle is running as non-essential functions. When a processor core fails, its tasks are reallocated;

[0014] If the remaining resources are insufficient to run all necessary functions, enter degraded mode;

[0015] In the degradation mode, the necessary function algorithms are downgraded to reduce resource usage and non-essential functions are suspended;

[0016] Prioritizes the allocation of downgraded essential functions to low-load processor cores.

[0017] Furthermore, the task allocation method is: assigning a control function module task and its different fault diagnosis module tasks to a processor core; that is, one processor core processes a control function module task and a fault diagnosis module task of another function to ensure mutual diagnosis between the processor core and the control function to improve functional safety.

[0018] Furthermore, the method for classifying the main function and the auxiliary function according to the task attributes is as follows: the control function is divided into the main function and the auxiliary function;

[0019] The main functions include vehicle dynamics control, gear shift control, motor control and their corresponding fault diagnosis functions, and the main functions have dedicated fixed processor cores for task scheduling;

[0020] The auxiliary functions include electronic oil pump control, limp control, self-learning, vehicle status monitoring, signal processing, etc. The auxiliary functions have no fixed processor core and are dynamically scheduled to the appropriate processor core by the task scheduling module according to the real-time load of each processor core.

[0021] Furthermore, the load rate of each processor core is monitored in real time; when the load rate of a processor core exceeds a threshold, the method of dynamically allocating auxiliary functions to the processor core with the lowest load is as follows:

[0022] The task scheduling module monitors the load rate of each processor core in real time and pre-sets a processor core load rate margin value ΔL. When the load rate of a processor core reaches 100%-ΔL, the task scheduling module dynamically allocates auxiliary functions to other processor cores with lower current loads.

[0023] Furthermore, when any processor core fails to work properly, the task scheduling module reallocates the tasks originally in charge of the failed processor core to other normal processor cores.

[0024] Furthermore, if the remaining resources are insufficient to run all necessary functions, the method of entering the degraded mode is:

[0025] When a processor core fails and the remaining available processor core resources are insufficient to carry all necessary functions at the same time, the system enters a degraded mode and adopts a degraded simplification strategy for some necessary functions in the main functions to reduce their resource usage, while suspending the operation of non-essential functions.

[0026] Furthermore, the downgrade simplification strategy includes:

[0027] In normal mode, the optimal gear n* is calculated based on the vehicle speed v, throttle opening α, and current gear n through a complex algorithm f(v, α, n): n*=f(v, α, n); in degraded mode, the shift control module only executes the simplest strategy of maintaining the current gear and no longer calculates the optimal gear: n*=n

[0028] In normal mode, the required oil pump speed ω is dynamically calculated based on the working parameters p1, p2, ... through the complex function g(p1, p2, ...):

[0029] ω=g(p1, p2, ...) In the degradation mode, the electronic oil pump control module switches to the fixed speed mode and no longer performs complex calculations: ω=ω0 (ω0 is a preset fixed speed value);

[0030] In normal mode, the ideal control torque and braking force are calculated through complex control algorithms based on vehicle speed, lateral acceleration, pitch angular velocity and other parameters: Tdemand = h(v,ay,ωx,ωy,...). In degraded mode, a simplified linear control law is used to greatly reduce the amount of calculation: Tdemand = k1v + k2ay (k1, k2 are pre-set simplified coefficients)

[0031] Among them, the above-mentioned modules such as shift control, electronic oil pump control, and vehicle dynamics control use complex algorithms to obtain better control performance in normal mode, but they are also accompanied by higher computing resource usage.

[0032] By switching to simpler algorithms with less computational effort in degraded mode, some of the necessary functional modules mentioned above will significantly reduce their computing resource usage while ensuring basic control functions, thereby freeing up more resources to run other key modules.

[0033] The non-essential functions include a self-learning module and a vehicle status monitoring module.

[0034] Furthermore, after entering the downgrade mode, the task scheduling module prioritizes allocating the necessary functional tasks after the downgrade to the processor core with the current lower load; when a processor core fails, if the remaining processor core resources are temporarily unable to carry all the necessary functions after the downgrade, the task scheduling module sorts the functional modules according to their importance and prioritizes allocating more important necessary functions to the processor core with the lower load.

[0035] As another aspect of the present invention, it also relates to an electric drive assembly, characterized in that the electric drive assembly uses the above-mentioned multi-core electric drive controller task scheduling system.

[0036] As another aspect of the present invention, it also relates to a vehicle, wherein the vehicle uses the above-mentioned electric drive assembly.

[0037] Compared with the prior art, the present invention has the following effects:

[0038] (1) The multi-core electric drive controller task scheduling system and task scheduling method of the present invention can reasonably reallocate the tasks of a processor core to other normal processor cores when a processor core fails, thereby ensuring the normal operation of the system. At the same time, in extreme cases where the remaining resources are insufficient, the system will enter a degraded mode, adopt an algorithm simplification strategy for necessary functions to reduce resource usage, suspend non-essential functions, and enable the system to continue to operate through degraded means, thereby enhancing the system reliability and fault tolerance.

[0039] (2) The multi-core electric drive controller task scheduling system and task scheduling method of the present invention realizes mutual monitoring and diagnosis between the processor core and the control function by assigning a control function module and a fault diagnosis module of another function to run on the same processor core, thereby improving functional safety. At the same time, different key control functions are dispersed to different processor cores, reducing the risk of single point failure and improving the functional safety of the system.

[0040] (3) The multi-core electric drive controller task scheduling system and task scheduling method of the present invention divide the control function into main function and auxiliary function. The main function is fixed to the processor core, and the auxiliary function is dynamically scheduled, which effectively improves the resource utilization rate. By real-time monitoring of the load rate of each processor core, the auxiliary function is dynamically assigned to the appropriate processor core to avoid excessive load on a certain processor core; a reasonable task scheduling strategy system is provided. According to factors such as task attributes (control function, fault diagnosis), task importance (necessary function, non-essential function), etc., the system reasonably classifies and schedules tasks to ensure that important tasks are scheduled and allocated resources first. BRIEF DESCRIPTION OF THE DRAWINGS

[0041] Figure 1 This is a schematic diagram of task scheduling in a preferred embodiment of the present invention;

[0042] Figure 2 A flowchart of a task scheduling method according to a preferred embodiment of the present invention; DETAILED DESCRIPTION

[0043] In order to make the purpose, technical solutions and advantages of the present invention more clearly understood, the present invention is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present invention and are not intended to limit the present invention. In addition, the technical features involved in the various embodiments of the present invention described below can be combined with each other as long as they do not conflict with each other.

[0044] Please refer to Figure 1An embodiment of the present invention provides a multi-core electric drive controller task scheduling system, including a multi-core controller, the multi-core controller including at least 3 cores, and a multi-core task scheduling module, the multi-core task scheduling module is used to identify the function to which the task belongs, identify the task type and schedule the task; the identified task functions include: vehicle dynamics control function, gear shift control function, and motor control function; the identified task types include control function type and fault diagnosis type; the task scheduling module performs task scheduling in the following manner: assigning a control function module task and its different fault diagnosis module tasks to a processor core; that is, one processor core processes a control function module task and a fault diagnosis module task of another function, so as to ensure mutual diagnosis between the processor core and the control function and improve functional safety.

[0045] Please refer to Figure 2 , the task scheduling method includes:

[0046] 1. The control functions of the multi-core electric drive controller task scheduling system are divided into main functions that occupy more resources and are more important, and auxiliary functions that occupy fewer resources and are less important. The above-mentioned vehicle dynamics control, gear shift control, motor control, and fault diagnosis of each module are the main functions.

[0047] Auxiliary functions include: electronic oil pump control, limp control, self-learning, status monitoring, and signal processing.

[0048] 2. The main function performs task scheduling and allocation according to the attached figure. The main function has a fixed core as the scheduling target, as mentioned above.

[0049] 3. The task scheduling module monitors the load rate of each core, that is, the resource occupancy rate, in real time. The scheduling of auxiliary functions does not have a fixed core as the scheduling target, but is flexibly scheduled in real time by the task scheduling module based on the load rate of each core.

[0050] During vehicle driving, the core resource occupation of the main function is not fixed, but will change with the vehicle's operating conditions. For example, taking the gear shift control module as an example, when the vehicle needs to shift gears, the resource occupation rate of the module increases. When the vehicle has completed the gear shift or does not need to shift gears, the resource occupation rate of the module decreases.

[0051] The resource usage rate of the vehicle dynamics control module is different when the vehicle is moving straight, turning, climbing, driving at a steady state, accelerating, decelerating, and rolling.

[0052] The resource usage of the motor control module is different when the vehicle is parked, driving in a steady state, shifting gears, and accelerating or decelerating.

[0053] To avoid a core being assigned too many tasks, resulting in an excessively high task load rate and task processing overload, the concept of setting a core load rate margin, Load margin, abbreviated as ΔL, indicates that a certain margin should be reserved from the core load rate of 100%. That is, one of the goals of the task scheduling module is to ensure that the core load rate is within 100%-ΔL.

[0054] For example, when the vehicle is moving straight in a steady state and shifting gears, the load rate of core 1 may decrease. At this time, if the task scheduling module detects the decrease in the load rate of core 1 in real time, it will start to allocate auxiliary functions to core 1 first, and monitor the load rate of core 1 to see if it exceeds the above 100%-ΔL. If the load rate of core 1 is close to 100%-ΔL, the task scheduling module will start to allocate auxiliary tasks to the core with the lower real-time load rate among the other two cores, and also monitor whether the load rate of the core exceeds 100%-ΔL. And so on.

[0055] 4. When one of the three cores fails and is unavailable, the task scheduling module determines the real-time load rates of the other two cores. For example, when core 2 fails, the task scheduling module monitors the load rates of cores 1 and 3. If it is found that the load rate of core 3 is lower, the tasks in core 2 are assigned to core 3 first.

[0056] 5. If a core fails and the remaining core resources are insufficient for all control function modules, the degradation processing strategy is implemented.

[0057] The concepts of necessary functions and non-essential functions are introduced here. The functional modules that must run to ensure vehicle driving are necessary functions, such as vehicle dynamics control module, gear shift control module, motor control module, electronic oil pump control, limp control, signal processing and other modules.

[0058] Functions that are not essential for vehicle driving are non-essential functions, such as self-learning, vehicle mileage, shaft gear life status monitoring, etc.

[0059] Some of these necessary functions can achieve algorithm downgrade when a core fails, using simple strategies to greatly reduce its resource usage, thereby reducing the load rate and pressure of the remaining cores. For example, the gear shift module calculates the gear shift decision in real time and controls the gear shift when the cores of the controller are working normally. However, when a core fails, it is downgraded to maintain the current gear, limping forward, and no longer shifting gears.

[0060] The electronic oil pump control module calculates the speed required by the electronic oil pump in real time when each core is working normally. In the event of a core failure, it is downgraded to a simple strategy and no longer runs complex calculations, but sets a fixed speed for the electronic oil pump to operate, thereby greatly reducing its resource usage.

[0061] Since the shift control module, which is a main function and necessary module, can be downgraded to reduce its resource occupancy rate, the load rate of core 2 will be improved. The task scheduling module gives priority to assigning the main functions in the faulty core to core 2. If core 1 fails, after the shift control module is downgraded to a simple strategy, the task scheduling module gives priority to assigning the vehicle dynamics control and shift diagnosis modules in core 1 to core 2. If core 2 fails, since the shift control module can be downgraded to a simple strategy to reduce its resource occupancy rate, the task scheduling module gives priority to assigning the shift control module task to the core with a low load rate based on the load rates of the remaining cores 1 and 3.

[0062] The task scheduling module allocates tasks for necessary modules according to the load rate of the remaining cores. The priority of task allocation for non-essential modules is reduced to the lowest, and they are only scheduled when the core load rate is sufficient, otherwise they are not scheduled.

[0063] Through the description of the above implementation methods, those skilled in the art can clearly understand that each implementation method can be implemented by means of software plus a necessary general hardware platform, and of course, it can also be implemented by hardware. Based on this understanding, the above technical solution is essentially or the part that contributes to the prior art can be embodied in the form of a software product, and the computer software product can be stored in a computer-readable storage medium, such as ROM / RAM, a disk, an optical disk, etc., including a number of instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to execute the methods described in each embodiment or some parts of the embodiments.

[0064] It will be easily understood by those skilled in the art that the above description is only a preferred embodiment of the present invention and is not intended to limit the present invention. Any modifications, equivalent substitutions and improvements made within the spirit and principles of the present invention should be included in the protection scope of the present invention.

Claims

1. A multi-core electric drive controller task scheduling system, characterized in that: The invention comprises a multi-core controller, the multi-core controller comprises at least 3 processor cores, and a multi-core task allocation and scheduling module, the multi-core task allocation and scheduling module is used to identify the function to which the task belongs, identify the task type, and perform task allocation and task scheduling on the task; the functions to which the identified tasks belong include: vehicle dynamics control function, gear shift control function, and motor control function; the types of identified tasks include control function type and fault diagnosis type; The task scheduling method is: Identify the task type; Classify the main functions and auxiliary functions according to the task attributes; Monitor the load rate of each processor core in real time; when the processor core load rate exceeds the threshold, dynamically allocate auxiliary functions to the processor core with the lowest load; Define the functions that must be run when the vehicle is running as essential functions, and define the functions that are not essential when the vehicle is running as non-essential functions. When a processor core fails, its tasks are reallocated; If the remaining resources are insufficient to run all necessary functions, enter degraded mode; In the degradation mode, the necessary function algorithms are downgraded to reduce resource usage and non-essential functions are suspended; Prioritizes the allocation of downgraded essential functions to low-load processor cores.

2. The multi-core electric drive controller task scheduling system according to claim 1, characterized in that: The task allocation method is: assigning a control function module task and its different fault diagnosis module tasks to a processor core; that is, one processor core processes a control function module task and the fault diagnosis module task of another function to ensure mutual diagnosis between the processor core and the control function and improve functional safety.

3. The multi-core electric drive controller task scheduling system according to claim 1, characterized in that: The method for classifying the main function and the auxiliary function according to the task attributes is as follows: the control function is divided into the main function and the auxiliary function; The main functions include vehicle dynamics control, gear shift control, motor control and their corresponding fault diagnosis functions, and the main functions have dedicated fixed processor cores for task scheduling; The auxiliary functions include electronic oil pump control, limp control, self-learning, vehicle status monitoring, signal processing, etc. The auxiliary functions have no fixed processor core and are dynamically scheduled to the appropriate processor core by the task scheduling module according to the real-time load of each processor core.

4. The multi-core electric drive controller task scheduling system according to claim 1, characterized in that: Real-time monitoring of the load rate of each processor core; when the processor core load rate exceeds a threshold, the method of dynamically allocating auxiliary functions to the processor core with the lowest load is: The task scheduling module monitors the load rate of each processor core in real time and pre-sets a processor core load rate margin value ΔL. When the load rate of a processor core reaches 100%-ΔL, the task scheduling module dynamically allocates auxiliary functions to other processor cores with lower current loads.

5. The multi-core electric drive controller task scheduling system according to claim 1, characterized in that: When any processor core fails to work properly, the task scheduling module reallocates the tasks originally in charge of the failed processor core to other normal processor cores.

6. The multi-core electric drive controller task scheduling system according to claim 1, characterized in that: If the remaining resources are insufficient to run all necessary functions, the method of entering the degraded mode is: When a processor core fails and the remaining available processor core resources are insufficient to carry all necessary functions at the same time, the system enters a degraded mode and adopts a degraded simplification strategy for some necessary functions in the main functions to reduce their resource usage, while suspending the operation of non-essential functions.

7. The multi-core electric drive controller task scheduling system according to claim 6, characterized in that: The downgrade simplification strategy includes: In normal mode, the optimal gear n* is calculated based on the vehicle speed v, throttle opening α, and current gear n through a complex algorithm f(v, α, n): n*=f(v, α, n); in degraded mode, the shift control module only executes the simplest strategy of maintaining the current gear and no longer calculates the optimal gear: n*=n In normal mode, the required oil pump speed ω is dynamically calculated based on the working parameters p1, p2, ... through the complex function g(p1, p2, ...): ω=g(p1, p2, ...) In the degradation mode, the electronic oil pump control module switches to the fixed speed mode and no longer performs complex calculations: ω=ω0 (ω0 is a preset fixed speed value); In normal mode, the ideal control torque and braking force are calculated through complex control algorithms based on vehicle speed, lateral acceleration, pitch angular velocity and other parameters: Tdemand = h(v,ay,ωx,ωy,...). In degraded mode, a simplified linear control law is used to greatly reduce the amount of calculation: Tdemand = k1v + k2ay (k1, k2 are pre-set simplified coefficients) Among them, the above-mentioned modules such as shift control, electronic oil pump control, and vehicle dynamics control use complex algorithms to obtain better control performance in normal mode, but they are also accompanied by higher computing resource usage. The non-essential functions include a self-learning module and a vehicle status monitoring module.

8. The multi-core electric drive controller task scheduling system according to claim 6, characterized in that: After entering the downgrade mode, the task scheduling module prioritizes allocating the necessary functional tasks after downgrading to the processor core with the current lower load; when a processor core fails, if the remaining processor core resources are temporarily unable to carry all the necessary functions after downgrading, the task scheduling module sorts the functional modules according to their importance and prioritizes allocating more important necessary functions to the processor core with the lower load.

9. An electric drive assembly, characterized in that: The electric drive assembly uses the multi-core electric drive controller task scheduling system described in any one of claims 1-8.

10. A vehicle, characterized in that: The vehicle uses the electric drive assembly described in claim 7.

Citation Information

Cited By

  • Vehicle control method and device, controller, storage medium and product

    CN119348553A

  • Vehicle control methods, devices, controllers, storage media and products

    CN119348553B

  • Real-time control multi-core efficient synchronization method

    CN120276879A

  • Power grid fault analysis method and system based on multi-core task coordination

    CN121234221A

  • Power grid fault analysis method and system based on multi-core task coordination

    CN121234221B