Execution method and device for task instruction, vehicle and computer readable storage medium
By dynamically determining the priority of task instructions, the problem of inefficiency of air conditioner actuators in the prior art when calling multiple functions simultaneously is solved, and the system performance is improved and the efficient utilization of actuators is achieved.
Patent Information
- Application Number
- CN202510074837.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-01-17
- Publication Date
- 2025-04-11
AI Technical Summary
In the prior art, when the air conditioner actuator responds to the simultaneous call of multiple functions, it adopts a serial working method, resulting in inefficient system performance and inability to adapt to the dynamic changes in vehicle workloads and operating scenarios.
By determining the target task instruction group among the obtained multiple task instructions, dynamically determine the priority according to the category and vehicle operating conditions information of each task instruction in the target task instruction group, ensuring that the execution order of the task instruction conforms to the dynamic priority, and thus controlling the execution of the executor.
It realizes dynamic priority determination based on vehicle working conditions information and task instruction categories, adapts to changes in vehicle workloads and operating scenarios, ensures priority execution of critical tasks, and improves system performance and actuator utilization.
Smart Images

Figure CN119795841A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of vehicle control technology, for example, to a method and device for executing task instructions, a vehicle, and a computer-readable storage medium. Background Art
[0002] The air conditioning system is an indispensable part of the car. With the development of new energy vehicles, the market has put forward higher requirements for the intelligence of new energy vehicle air conditioning, requiring not only the most basic cooling and heating functions, but also more air conditioning tasks. In the context of software-defined cars, more user needs and scenario requirements have brought many challenges to the design architecture of the software and the calling method of the air conditioning actuator. In the existing technology, when the air conditioning actuator responds to multiple functions being called at the same time, it uses a serial working method to pass control instructions layer by layer, which is inefficient for the performance of the entire system, and there is an urgent need to improve the working efficiency of the system.
[0003] A vehicle air conditioning control method is provided in the related art, which generates air conditioning adjustment instructions according to the current vehicle status and environmental information, and finely divides the instructions by category to formulate the priority order between the instructions, and executes the air conditioning adjustment instructions according to the priority order. In this way, control logic conflicts can be avoided when multiple adjustment instructions are executed at the same time, thereby improving the working efficiency of the system.
[0004] In the process of implementing the embodiments of the present disclosure, it is found that there are at least the following problems in the related art:
[0005] Although prioritizing by instruction category can optimize the order of task execution to a certain extent, in actual operation, the vehicle's workload and operating scenarios change dynamically, and fixed priority orders are difficult to change, resulting in poor system performance.
[0006] It should be noted that the information disclosed in the above background technology section is only used to enhance the understanding of the background of the present application, and therefore may include information that does not constitute the prior art known to ordinary technicians in the field. Summary of the invention
[0007] In order to provide a basic understanding of some aspects of the disclosed embodiments, a brief summary is given below. The summary is not an extensive review, nor is it intended to identify key / critical components or delineate the scope of protection of these embodiments, but rather serves as a prelude to the detailed description that follows.
[0008] The embodiments of the present disclosure provide a method and device for executing task instructions, a vehicle, and a computer-readable storage medium to solve the technical problem that when multiple functions of the vehicle system call the actuator at the same time, the fixed priority order control cannot adapt to the changes in working conditions, thereby affecting the system performance.
[0009] In some embodiments, the execution method for task instructions includes: determining a target task instruction group from multiple acquired task instructions; the target task instruction group includes at least two task instructions for controlling the same actuator; determining a corresponding dynamic priority based on the category and vehicle operating condition information of each task instruction in the target task instruction group; determining the execution order of the task instructions in the target task instruction group based on the dynamic priority, and controlling the execution of the actuator.
[0010] According to the above technical means, by dynamically determining the priority according to the vehicle operating condition information and the task instruction category to handle the situation where the executor responds to multiple task instruction calls, it can flexibly adapt to the dynamic changes of vehicle workload and operating scenarios.
[0011] Optionally, determination of dynamic priority includes: determining a corresponding initial priority parameter according to the category of each task instruction; determining a corresponding weight factor according to the category of each task instruction and the operating condition information of the vehicle; and determining the dynamic priority of the corresponding task instruction according to the initial priority parameter and the weight factor.
[0012] According to the above technical means, by determining the initial priority parameters for each task instruction and dynamically adjusting the weight factor in combination with the vehicle operating condition information, the priority of the task instruction can be flexibly set according to the specific situation of the current vehicle, thereby improving the flexibility and adaptability of task scheduling.
[0013] Optionally, the determination of the weight factor includes:
[0014] Determine the value range of the weight factor according to the category of the task instruction;
[0015] According to the positive influence of the execution of the task instruction on the vehicle working condition, the corresponding weight factor is determined within a numerical range;
[0016] Among them, the higher the positive impact of the execution of the task instruction on the vehicle operating condition, the higher the value of the weight factor.
[0017] According to the above technical means, by determining the value of the weight factor according to the degree of positive impact of the task on the vehicle operating condition, it is possible to ensure that task instructions with a higher degree of positive impact on the vehicle operating condition are given a higher priority. At the same time, the task priority is dynamically adjusted according to the actual needs of the vehicle, thereby improving the system's adaptability to changes in vehicle operating conditions.
[0018] Optionally, determining the dynamic priority of the corresponding task instruction according to the initial priority parameter and the weight factor includes:
[0019] Calculate P = 100 - [η (T (i) + F (i)) - λ * p i ];
[0020] Get the dynamic priority P; the smaller the value of P, the higher the dynamic priority of the corresponding task instruction;
[0021] Where P is the dynamic priority of the i-th task instruction, T(i) is the first weight factor of the i-th task instruction; F(i) is the second weight factor of the i-th task instruction; p i is the initial priority parameter of the i-th task instruction; η is the first weight coefficient of the weight factor, λ is the second weight coefficient of the initial priority parameter, η+λ=1.
[0022] According to the above technical means, the priority of the task instruction can be calculated according to the specific weight factor and the initial priority parameter, thereby improving the accuracy and objectivity of the priority determination. At the same time, the formula contains multiple weight factors and initial priority parameters, and the influence of these factors is adjusted by the weight coefficient, which can balance the influence of different factors on the dynamic priority of the task, ensuring the comprehensiveness and rationality of the priority determination.
[0023] Optionally, determining a target task instruction group from the acquired multiple task instructions includes:
[0024] Classify the acquired multiple task instructions and identify the executor corresponding to each task instruction;
[0025] At least two task instructions that control the same actuator are identified as a target task instruction group for priority determination.
[0026] According to the above technical means, by identifying at least two task instructions that control the same actuator, the system can prioritize these task instructions, ensuring that the actuator can perform tasks in the optimal order, thereby optimizing the overall operation process.
[0027] Optionally, the method for executing a task instruction further includes:
[0028] During the execution process, the execution status of the task instruction is updated in real time, and the task instruction is removed from the list after execution;
[0029] If a new task instruction arrives during the execution process, the dynamic priority is re-determined and the execution order is re-arranged.
[0030] According to the above technical means, the execution status of the task instruction is updated in real time during the execution process, and the task instruction is removed from the list after execution, which helps to maintain a clear and effective task queue and avoid redundant processing of completed tasks.
[0031] In some embodiments, the execution device for task instructions includes: an acquisition module, configured to determine a target task instruction group from multiple acquired task instructions; the target task instruction group includes at least two task instructions for controlling the same actuator; a priority determination module, configured to determine the corresponding dynamic priority based on the category of each task instruction in the target task instruction group and vehicle operating condition information; and a control module, configured to determine the execution order of the task instructions in the target task instruction group based on the dynamic priority, and control the execution of the actuator.
[0032] In some embodiments, the execution device for the task instruction includes a processor and a memory storing program instructions, and the processor is configured to execute the above-mentioned control method for avoiding same-direction vehicles when running the program instructions.
[0033] In some embodiments, the vehicle includes a vehicle body; the above-mentioned execution device for task instructions is installed on the vehicle body.
[0034] In some embodiments, the computer-readable storage medium stores program instructions, wherein the program instructions, when executed, are used to enable the computer to execute the above-mentioned execution method for task instructions.
[0035] The method and device for executing task instructions, vehicle, and computer-readable storage medium provided by the embodiments of the present disclosure can achieve the following technical effects:
[0036] By dynamically determining the priority based on the vehicle's operating condition information and task instruction category to handle the situation where the executor responds to multiple task instruction calls, it can flexibly adapt to the dynamic changes in vehicle workload and operating scenarios. The execution order of task instructions is adjusted according to real-time conditions to ensure that key tasks can be executed first when needed, optimizing the scheduling process of vehicle functions. At the same time, dynamic priorities ensure that the executor executes task instructions in the most appropriate order, reducing unnecessary delays caused by fixed priority orders, and improving the utilization of the executor and the response speed of the vehicle system.
[0037] The above general description and the following description are exemplary and explanatory only and are not intended to limit the present application. BRIEF DESCRIPTION OF THE DRAWINGS
[0038] One or more embodiments are exemplarily described by corresponding drawings, which do not limit the embodiments. Elements with the same reference numerals in the drawings are shown as similar elements, and the drawings do not constitute a scale limitation, and wherein:
[0039] Figure 1 is a flowchart of a method for executing a task instruction provided by an embodiment of the present disclosure;
[0040] Figure 2 is a flowchart of another method for executing a task instruction provided by an embodiment of the present disclosure;
[0041] Figure 3 is a flowchart of another method for executing a task instruction provided by an embodiment of the present disclosure;
[0042] Figure 4 is a flowchart of another method for executing a task instruction provided by an embodiment of the present disclosure;
[0043] Figure 5 is a schematic diagram of a device for executing task instructions provided by an embodiment of the present disclosure;
[0044] Figure 6 is a schematic diagram of a device for executing task instructions provided by an embodiment of the present disclosure;
[0045] Figure 7 shows the architecture diagram of a conventional air conditioner actuator;
[0046] Figure 8 A software architecture diagram of a multi-function call executor in an embodiment of the present disclosure is shown. DETAILED DESCRIPTION
[0047] In order to be able to understand the features and technical contents of the embodiments of the present disclosure in more detail, the implementation of the embodiments of the present disclosure is described in detail below in conjunction with the accompanying drawings. The attached drawings are for reference only and are not used to limit the embodiments of the present disclosure. In the following technical description, for the convenience of explanation, a full understanding of the disclosed embodiments is provided through multiple details. However, one or more embodiments can still be implemented without these details. In other cases, to simplify the drawings, well-known structures and devices can be simplified for display.
[0048] The terms "first", "second", etc. in the specification and claims of the embodiments of the present disclosure and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the terms used in this way can be interchanged where appropriate, so that the embodiments of the embodiments of the present disclosure described herein. In addition, the terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusions.
[0049] Unless otherwise stated, the term "plurality" means two or more.
[0050] In the embodiment of the present disclosure, the character " / " indicates that the preceding and following objects are in an "or" relationship. For example, A / B indicates: A or B.
[0051] The term "and / or" is a description of the association relationship between objects, indicating that three relationships can exist. For example, A and / or B means: A or B, or, A and B.
[0052] The term "correspondence" may refer to an association relationship or a binding relationship. The correspondence between A and B means that there is an association relationship or a binding relationship between A and B.
[0053] The in-vehicle system actuator under the traditional architecture adopts a serial working mode to transmit control instructions layer by layer when dealing with multiple functions being called simultaneously, which is inefficient for the performance of the entire system.
[0054] Take the air conditioning actuator as an example. Figure 7 The architecture diagram of the traditional air-conditioning actuator is shown. When the user screen, automatic defogger, and air purification tasks call the actuator mode damper, blower, and internal and external circulation at the same time, the instructions can only be passed layer by layer. In other words, the user screen passes its instructions to the automatic defogger, the automatic defogger passes its instructions to the air purification, and the air purification passes the instructions to the actuator. That is, as long as the air purification task issues its own instructions, the instructions of the user screen and the automatic defogger will be blocked by the air purification task. If the actuator needs to execute the instructions of the user screen, the automatic defogger and air purification tasks cannot issue their own instructions. In this way, the priority of the actuator execution tasks is fixed, and they restrict each other. The coupling between different functions is relatively high. When the function priorities of different vehicle models are different, a whole set of development processes needs to be completed again, which invisibly increases the development workload and reduces the development efficiency.
[0055] Figure 8 The software architecture diagram of the multi-function call executor in the embodiment of the present disclosure is shown. The application layer uses a service-oriented software architecture, which is mainly divided into a scene service layer, a system service layer, an enhanced service layer, an atomic service layer, and a device abstraction layer. The scene service and the system service are responsible for processing the instructions input by the user, the enhanced layer is responsible for processing the functional logic algorithm, the atomic layer is responsible for the basic functions of the function, and the device abstraction layer unifies the interface abstraction of the software and hardware to shield the differences between the hardware versions.
[0056] The disclosed embodiment uses a parallel approach and a dynamic priority to handle the situation where the air conditioner actuator responds to multiple function calls under a service-oriented architecture. This not only improves the development efficiency of developers, but also uses the advantages of service-oriented architecture to provide more possibilities for user scenario orchestration.
[0057] Figure 1 It is a flowchart of a method for executing a task instruction provided by an embodiment of the present disclosure.
[0058] like Figure 1 As shown, the control method includes:
[0059] Step S101 : determining a target task instruction group from a plurality of acquired task instructions; the target task instruction group includes at least two task instructions for controlling the same actuator.
[0060] Here, the controlled executor can be determined according to the type of task instruction, or the identification information carried in the task instruction, and then at least two task instructions controlling the same executor are used as the target task instruction group to perform dynamic priority sorting.
[0061] Step S102, determining the corresponding dynamic priority according to the category of each task instruction in the target task instruction group and the vehicle operating condition information.
[0062] The categories of task instructions may include functional categories of task instructions, such as driving instructions, charging / refueling instructions, maintenance instructions, safety instructions, user service instructions, environmental adjustment instructions, etc.
[0063] The vehicle's operating condition information may include power system operating condition information, environment and humidification operating condition information, body system operating condition information, network and communication operating condition information, etc.
[0064] Step S103, determining the execution order of the task instructions in the target task instruction group according to the dynamic priority, and controlling the executor to execute.
[0065] In this way, by dynamically determining the priority based on the vehicle operating condition information and the task instruction category to handle the situation where the actuator responds to multiple task instruction calls, it can flexibly adapt to the dynamic changes in vehicle workload and operating scenarios. The execution order of task instructions is adjusted according to real-time conditions to ensure that key tasks can be executed first when needed, and optimize the scheduling process of vehicle functions. At the same time, dynamic priorities ensure that the actuator executes task instructions in the most appropriate order, reducing unnecessary delays caused by fixed priority orders, and improving the utilization rate of actuators and the response speed of vehicle systems.
[0066] Optionally, determining a target task instruction group from among the acquired multiple task instructions includes:
[0067] Classify the acquired multiple task instructions and identify the executor corresponding to each task instruction;
[0068] At least two task instructions that control the same actuator are identified as a target task instruction group for priority determination.
[0069] In this way, by identifying at least two task instructions that control the same actuator, the system can prioritize these task instructions, ensuring that the actuators can perform tasks in the optimal order, thereby optimizing the overall work process.
[0070] Figure 2 The embodiment of the present disclosure is used to illustrate the dynamic priority confirmation process.
[0071] like Figure 2 As shown, the execution method includes:
[0072] Step S201 : determining a target task instruction group from a plurality of acquired task instructions; the target task instruction group includes at least two task instructions for controlling the same actuator.
[0073] Step S202, determining the corresponding initial priority parameter according to the category of each task instruction in the target task instruction group.
[0074] The initial priority parameter refers to a baseline priority value determined based on the category of the task instruction, and is used to indicate the relative importance of the task instruction of this category in the system in the absence of other influencing factors.
[0075] Optionally, according to the category of each task instruction in the target task instruction group, a corresponding initial priority parameter is determined, including:
[0076] Obtaining the correspondence between the category of the task instruction and the initial priority parameter;
[0077] According to the category of each task instruction in the target task instruction group, a corresponding initial priority parameter is determined.
[0078] The correspondence between the task instruction category and the initial priority parameter can be in the form of a one-to-one correspondence data table. In this case, the correspondence between the task instruction category and the initial priority parameter can be stored in a database in advance, and after obtaining the task instruction category, the corresponding initial operation parameter can be obtained by querying the database.
[0079] Step S203, determining a corresponding weight factor according to the category of each task instruction in the target task instruction group and the working condition information of the vehicle.
[0080] The weight factor is used to reflect the actual priority of the task under the current working conditions.
[0081] Step S204: determining the dynamic priority of the corresponding task instruction according to the initial priority parameter and the weight factor.
[0082] Step S205, determining the execution order of the task instructions in the target task instruction group according to the dynamic priority, and controlling the executor to execute.
[0083] In this way, by determining the initial priority parameters for each task instruction and dynamically adjusting the weight factor in combination with the vehicle operating condition information, the priority of the task instruction can be flexibly set according to the specific situation of the current vehicle, thereby improving the flexibility and adaptability of task scheduling.
[0084] Optionally, the determination of the weight factor includes:
[0085] Determine the value range of the weight factor according to the category of the task instruction;
[0086] According to the positive influence of the execution of the task instruction on the vehicle working condition, the corresponding weight factor is determined within a numerical range;
[0087] Among them, the higher the positive impact of the execution of the task instruction on the vehicle operating condition, the higher the value of the weight factor.
[0088] The degree of positive impact of the execution of task instructions on vehicle operating conditions refers to the degree of positive improvement in the vehicle's operating status, performance, durability, safety and economy after the execution of the task instructions.
[0089] According to the above technical means, by determining the value of the weight factor according to the degree of positive impact of the task on the vehicle operating condition, it is possible to ensure that task instructions with a higher degree of positive impact on the vehicle operating condition are given a higher priority. At the same time, the task priority is dynamically adjusted according to the actual needs of the vehicle, thereby improving the system's adaptability to changes in vehicle operating conditions.
[0090] Optionally, determining the dynamic priority of the corresponding task instruction according to the initial priority parameter and the weight factor includes:
[0091] Calculate P = 100 - [η (T (i) + F (i)) - λ * p i ];
[0092] The dynamic priority P is obtained; the smaller the value of P is, the higher the dynamic priority of the corresponding task instruction is.
[0093] Where P is the dynamic priority of the i-th task instruction, T(i) is the first weight factor of the i-th task instruction; F(i) is the second weight factor of the i-th task instruction; p i is the initial priority parameter of the i-th task instruction; η is the first weight coefficient of the weight factor, λ is the second weight coefficient of the initial priority parameter, η+λ=1.
[0094] In this way, the priority of the task instruction can be calculated according to the specific weight factor and the initial priority parameter, thereby improving the accuracy and objectivity of the priority determination. At the same time, the formula contains multiple weight factors and initial priority parameters, and the influence of these factors is adjusted by the weight coefficient, which can balance the influence of different factors on the dynamic priority of the task and ensure the comprehensiveness and rationality of the priority determination.
[0095] Figure 3 The embodiment of the present disclosure is used to illustrate the execution process after obtaining the dynamic priority.
[0096] like Figure 3 As shown, the execution method includes:
[0097] Step S301 : determining a target task instruction group from a plurality of acquired task instructions; the target task instruction group includes at least two task instructions for controlling the same actuator.
[0098] Step S302: determining the corresponding dynamic priority according to the category of each task instruction in the target task instruction group and the vehicle operating condition information.
[0099] Step S303, determining the execution order of the task instructions in the target task instruction group according to the dynamic priority, and controlling the executor to execute.
[0100] Step S304, during the execution process, the execution status of the task instruction is updated in real time, and the task instruction is removed from the list after the execution is completed.
[0101] Step S305 , if a new task instruction arrives during the execution process, the dynamic priority is determined again and the execution order is re-arranged.
[0102] In this way, the execution status of the task instructions is updated in real time during the execution process, and the task instructions are removed from the list after they are executed, which helps to maintain a clear and effective task queue and avoid redundant processing of completed tasks.
[0103] Figure 4 1 is a flow chart of a method for executing a task instruction provided by an embodiment of the present disclosure. The present disclosure embodiment takes a task instruction for controlling an air conditioner actuator as an example to illustrate the implementation process.
[0104] like Figure 4 As shown, the execution method includes:
[0105] Step S401, determining an air conditioning task instruction group from among the acquired multiple task instructions. The target task instruction group includes user screen, automatic defogger, and air purification task instructions for controlling the air conditioning actuator.
[0106] Step S402: determining the corresponding initial priority parameter according to the category of each task instruction in the target task instruction group.
[0107] Optionally, in this embodiment, the initial priority parameter corresponding to the task instruction is determined according to the correspondence between the task instruction category and the initial priority parameter, wherein the initial priority parameters between the task instruction actively triggered by the user, the task instruction of driving safety performance and the task instruction of environmental adjustment are successively reduced.
[0108] For example, the user interface task instruction belongs to the task instruction actively triggered by the user, the automatic defog task instruction belongs to the task instruction of driving safety performance, and the air purification task instruction belongs to the task instruction of environmental adjustment.
[0109] Specifically, the initial priority parameter corresponding to the user interface task instruction is 90, the initial priority parameter corresponding to the automatic defog task instruction is 50, and the initial priority parameter corresponding to the air purification task instruction is 25.
[0110] Step S403, determining a corresponding weight factor according to the category of each task instruction in the target task instruction group and the working condition information of the vehicle.
[0111] By way of example, the weight factor includes the latency tolerance of the task instructions.
[0112] Delay tolerance is used to indicate the degree of delay acceptance of a task. Different tasks and systems have different tolerances for delay. The higher the delay tolerance, the more timely the task needs to respond, that is, the higher the actual priority of the task under the current working conditions.
[0113] Optionally, the delay tolerance is used as the first weight factor, and the determination of the first weight factor includes:
[0114] The numerical range of the first weight factor is determined according to the type of the task instruction, wherein the numerical range of the first weight factor between the task instruction actively triggered by the user, the task instruction of driving safety performance and the task instruction of environment adjustment decreases in sequence.
[0115] According to the positive impact of the execution of the task instruction on the vehicle operating condition, a corresponding first weight factor is determined within a numerical range; wherein, the higher the positive impact of the execution of the task instruction on the vehicle operating condition, the higher the value of the first weight factor.
[0116] For example, the first weight factor corresponding to the user interface task instruction has a numerical range of 90-100, the first weight factor corresponding to the automatic defog task instruction has a numerical range of 20-50, and the first weight factor corresponding to the air purification task instruction has a numerical range of 10-20.
[0117] For the automatic defogger task instruction, the positive impact degree of the execution of the task instruction on the vehicle operating condition can be determined according to the defogger gear. The higher the defogger gear, the higher the positive impact degree of the execution of the task instruction on the vehicle operating condition, and the higher the value of the first weight factor. Specifically, the value of the first weight factor can be selected from 20, 30, 40, and 50 according to the defogger gear from low to high.
[0118] By way of example, the weighting factor includes the task urgency of the task instruction.
[0119] Task urgency is used to indicate the degree to which users need to execute tasks immediately. The higher the task urgency, the more timely the task needs to be responded to, that is, the higher the actual priority of the task under the current working conditions.
[0120] Optionally, the task urgency is used as the second weight factor, and the determination of the second weight factor includes:
[0121] The value range of the second weight factor is determined according to the type of the task instruction, wherein the value range of the second weight factor between the task instruction actively triggered by the user, the task instruction of driving safety performance and the task instruction of environment adjustment decreases in sequence.
[0122] According to the positive impact of the execution of the task instruction on the vehicle operating condition, a corresponding second weight factor is determined within a numerical range; wherein, the higher the positive impact of the execution of the task instruction on the vehicle operating condition, the higher the value of the second weight factor.
[0123] For example, the second weight value range corresponding to the user interface task instruction is 90-100, the second weight factor value range corresponding to the automatic defog task instruction is 20-50, and the second weight factor value range corresponding to the air purification task instruction is 10-20.
[0124] For the automatic defogger task command, because the task affects the safety of the vehicle, the higher the gear of the automatic defogger is, the higher the task urgency is, the higher the positive impact of the execution of the task command on the vehicle working condition is, and the higher the value of the second weight factor is. Specifically, the value of the second weight factor can be selected from 20, 30, 40, and 50 according to the defogger gear from low to high.
[0125] For the air purification task instructions, the positive impact of the execution of the task instructions on the vehicle operating conditions includes, from low to high, air self-drying, unlocking ventilation, window lowering ventilation, and timed ventilation, and the corresponding second weight factor values are 20, 30, 40, and 50, respectively.
[0126] After the car software is running, the user screen, automatic defogger, and air purification tasks are run in sequence, and their task delay tolerance and task urgency are all initial values. When the user clicks the screen, the user screen's delay tolerance and task urgency are updated at the moment the user clicks the screen, and the corresponding dynamic priority will also change accordingly. After the user operation is completed, the user screen's delay tolerance and task urgency return to the initial value.
[0127] The same is true for automatic defogger and air purification. The task delay tolerance and task urgency of automatic defogger will be updated to 20, 30, 40 or 50 respectively after the corresponding gear trigger conditions are met. The task delay tolerance and task urgency of air purification will be updated to 20, 30, 40 or 50 respectively after the trigger conditions are met. When the conditions are not met, they will be restored to the initial values, and their corresponding dynamic priorities will also change accordingly.
[0128] Step S404, calculate P = 100 - [η (T (i) + F (i)) - λ * p i ], and obtain the dynamic priority P; the smaller the value of P, the higher the dynamic priority of the corresponding task instruction.
[0129] Optionally, the first weight coefficient η is 0.6, and the second weight coefficient λ is 0.4. The more weight factors there are, the larger the value of the first weight coefficient is, and the smaller the value of the second weight coefficient is. In this way, the ratio of the first weight coefficient to the second weight coefficient can be adjusted according to the proportion of the task influencing factors.
[0130] Step S405, determining the execution order of the task instructions in the target task instruction group according to the dynamic priority, and controlling the executor to execute.
[0131] Step S406, during the execution process, the execution status of the task instruction is updated in real time, and the task instruction is removed from the list after the execution is completed.
[0132] Step S407: if a new task instruction arrives during the execution process, the dynamic priority is determined again and the execution order is re-arranged.
[0133] When the highest priority task being executed exits, the highest priority task sends a priority value of 100 to each executor. When each executor detects that the input priority is equal to 100, it resets the last memorized priority to 100, exits the currently executed highest priority instruction and returns to the state before entering the highest priority task. Each executor then performs a new round of input comparison on the input priority.
[0134] In this way, by dynamically determining the priority based on the vehicle operating condition information and the task instruction category to handle the situation where the actuator responds to multiple task instruction calls, it can flexibly adapt to the dynamic changes in vehicle workload and operating scenarios. The execution order of task instructions is adjusted according to real-time conditions to ensure that key tasks can be executed first when needed, and optimize the scheduling process of vehicle functions. At the same time, dynamic priorities ensure that the actuator executes task instructions in the most appropriate order, reducing unnecessary delays caused by fixed priority orders, and improving the utilization rate of actuators and the response speed of vehicle systems.
[0135] Combination Figure 5 As shown, the embodiment of the present disclosure provides an execution device for task instructions, including: an acquisition module 51, a priority determination module 52 and a control module 53. Among them, the acquisition module 51 is configured to determine a target task instruction group from a plurality of acquired task instructions; the target task instruction group includes at least two task instructions for controlling the same actuator; the priority determination module 52 is configured to determine the corresponding dynamic priority according to the category of each task instruction in the target task instruction group and the vehicle working condition information; the control module 53 is configured to determine the execution order of the task instructions in the target task instruction group according to the dynamic priority, and control the actuator to execute.
[0136] Combination Figure 6 As shown, an embodiment of the present disclosure provides an execution device for task instructions, including a processor (processor) 600 and a memory (memory) 601. Optionally, the device may also include a communication interface (Communication Interface) 602 and a bus 603. Among them, the processor 600, the communication interface 602, and the memory 601 can communicate with each other through the bus 603. The communication interface 602 can be used for information transmission. The processor 600 can call the logic instructions in the memory 601 to execute the execution method for task instructions of the above embodiment.
[0137] In addition, the logic instructions in the memory 601 described above can be implemented in the form of software functional units and can be stored in a computer-readable storage medium when sold or used as an independent product.
[0138] The memory 601 is a computer-readable storage medium that can be used to store software programs, computer executable programs, such as program instructions / modules corresponding to the methods in the embodiments of the present disclosure. The processor 600 executes functional applications and data processing by running the program instructions / modules stored in the memory 601, that is, implements the execution method for task instructions in the above embodiments.
[0139] The memory 601 may include a program storage area and a data storage area, wherein the program storage area may store an operating system and an application required for at least one function; the data storage area may store data created according to the use of the terminal device, etc. In addition, the memory 601 may include a high-speed random access memory and may also include a non-volatile memory.
[0140] The disclosed embodiments also provide a vehicle, comprising: a vehicle body, and the above-mentioned execution device for task instructions. The execution device for task instructions is installed on the vehicle body. The installation relationship described here is not limited to placement inside the vehicle body, but also includes installation connections with other components of the vehicle body, including but not limited to physical connections, electrical connections or signal transmission connections, etc. Those skilled in the art can understand that the control device for avoiding vehicles in the same direction can be adapted to a feasible vehicle body, thereby realizing other feasible embodiments.
[0141] An embodiment of the present disclosure provides a computer-readable storage medium storing computer-executable instructions, wherein the computer-executable instructions are configured to execute the above-mentioned execution method for task instructions.
[0142] The technical solution of the embodiment of the present disclosure can be embodied in the form of a software product, which is stored in a storage medium and includes one or more instructions for causing a computer device (which may be a personal computer, a server, or a network device, etc.) to execute all or part of the steps of the method described in the embodiment of the present disclosure. The aforementioned storage medium may be a non-transient storage medium, such as a USB flash drive, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a disk or an optical disk, and other media that can store program codes.
[0143] The above description and the accompanying drawings fully illustrate the embodiments of the present disclosure so that those skilled in the art can practice them. Other embodiments may include structural, logical, electrical, process and other changes. The embodiments represent only possible changes. Unless explicitly required, separate components and functions are optional, and the order of operation may vary. The parts and features of some embodiments may be included in or replace the parts and features of other embodiments. Moreover, the words used in this application are only used to describe the embodiments and are not used to limit the claims. As used in the description of the embodiments and the claims, unless the context clearly indicates, the singular forms of "a", "an" and "the" are intended to include plural forms as well. Similarly, the term "and / or" as used in this application refers to any and all possible combinations of listings containing one or more associated ones. In addition, when used in the present application, the term "comprise" and its variants "comprises" and / or comprising refer to the presence of stated features, wholes, steps, operations, elements, and / or components, but do not exclude the presence or addition of one or more other features, wholes, steps, operations, elements, components and / or groups thereof. In the absence of further restrictions, the elements defined by the sentence "comprising a ..." do not exclude the presence of other identical elements in the process, method or device comprising the elements. In this article, each embodiment may focus on the differences from other embodiments, and the same and similar parts between the various embodiments may refer to each other. For the methods, products, etc. disclosed in the embodiments, if they correspond to the method part disclosed in the embodiments, then the relevant parts can refer to the description of the method part.
[0144] Those skilled in the art will appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are performed in hardware or software may depend on the specific application and design constraints of the technical solution. The technicians may use different methods for each specific application to implement the described functions, but such implementations should not be considered to exceed the scope of the embodiments of the present disclosure. The technicians may clearly understand that, for the convenience and simplicity of description, the specific working processes of the systems, devices and units described above may refer to the corresponding processes in the aforementioned method embodiments, and will not be repeated here.
[0145] In the embodiments disclosed herein, the disclosed methods and products (including but not limited to devices, equipment, etc.) can be implemented in other ways. For example, the device embodiments described above are only schematic. For example, the division of the units can be only a logical function division. There may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. In addition, the coupling or direct coupling or communication connection between each other shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or units, which can be electrical, mechanical or other forms. The units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, they may be located in one place, or they may be distributed on multiple network units. Some or all of the units may be selected according to actual needs to implement this embodiment. In addition, each functional unit in the embodiment of the present disclosure may be integrated in a processing unit, or each unit may exist physically alone, or two or more units may be integrated in one unit.
[0146] The flowchart and block diagram in the accompanying drawings show the possible architecture, function and operation of the system, method and computer program product according to the embodiment of the present disclosure. In this regard, each box in the flowchart or block diagram can represent a module, a program segment or a part of the code, and the module, the program segment or a part of the code contains one or more executable instructions for realizing the specified logical function. In some alternative implementations, the functions marked in the box can also occur in a different order from the order marked in the accompanying drawings. For example, two consecutive boxes can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, which can depend on the functions involved. In the description corresponding to the flowchart and the block diagram in the accompanying drawings, the operations or steps corresponding to different boxes can also occur in a different order from the order disclosed in the description, and sometimes there is no specific order between different operations or steps. For example, two consecutive operations or steps can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, which can depend on the functions involved. Each block in the block diagrams and / or flowcharts, and combinations of blocks in the block diagrams and / or flowcharts, may be implemented by a dedicated hardware-based system that performs the specified functions or actions, or may be implemented by a combination of dedicated hardware and computer instructions.
Claims
1. A method for executing a task instruction, characterized in that: include: Determining a target task instruction group from among the acquired multiple task instructions; The target task instruction group includes at least two task instructions for controlling the same actuator; Determine the corresponding dynamic priority according to the category of each task instruction in the target task instruction group and the vehicle working condition information; The execution order of the task instructions in the target task instruction group is determined according to the dynamic priority, and the executor is controlled to execute.
2. The execution method according to claim 1, characterized in that: Determination of dynamic priority, including: According to the category of each task instruction, determine the corresponding initial priority parameter; Determine the corresponding weight factor according to the category of each task instruction and the working condition information of the vehicle; According to the initial priority parameter and the weight factor, the dynamic priority of the corresponding task instruction is determined.
3. The execution method according to claim 2, characterized in that: The determination of the weight factor includes: Determine the value range of the weight factor according to the category of the task instruction; According to the positive influence of the execution of the task instruction on the vehicle working condition, the corresponding weight factor is determined within a numerical range; Among them, the higher the positive impact of the execution of the task instruction on the vehicle operating condition, the higher the value of the weight factor.
4. The execution method according to claim 2, characterized in that: Determining the dynamic priority of the corresponding task instruction according to the initial priority parameter and the weight factor includes: Calculate P = 100 - [η (T (i) + F (i)) - λ * p i ]; Get the dynamic priority P; the smaller the value of P, the higher the dynamic priority of the corresponding task instruction; Where P is the dynamic priority of the i-th task instruction, T(i) is the first weight factor of the i-th task instruction; F(i) is the second weight factor of the i-th task instruction; p i is the initial priority parameter of the i-th task instruction; η is the first weight coefficient of the weight factor, λ is the second weight coefficient of the initial priority parameter, η+λ=1.
5. The execution method according to claim 1, characterized in that: The step of determining a target task instruction group from among the acquired multiple task instructions comprises: Classify the acquired multiple task instructions and identify the executor corresponding to each task instruction; At least two task instructions that control the same actuator are identified as a target task instruction group for priority determination.
6. The execution method according to any one of claims 1 to 5, characterized in that: Also includes: During the execution process, the execution status of the task instruction is updated in real time, and the task instruction is removed from the list after execution; If a new task instruction arrives during the execution process, the dynamic priority is re-determined and the execution order is re-arranged.
7. An execution device for a task instruction, characterized in that: include: An acquisition module is configured to determine a target task instruction group from among the acquired multiple task instructions; The target task instruction group includes at least two task instructions for controlling the same actuator; A priority determination module is configured to determine a corresponding dynamic priority according to the category of each task instruction in the target task instruction group and the vehicle operating condition information; The control module is configured to determine the execution order of the task instructions in the target task instruction group according to the dynamic priority, and control the executor to execute.
8. An execution device for task instructions, comprising a processor and a memory storing program instructions, characterized in that: The processor is configured to execute the execution method for task instructions according to any one of claims 1 to 6 when running the program instructions.
9. A vehicle, characterized in that: include: Vehicle body; The execution device for task instructions as described in claim 7 or 8 is installed on the vehicle body.
10. A computer-readable storage medium storing program instructions, characterized in that: When the program instructions are executed, the computer is used to execute the method for executing task instructions according to any one of claims 1 to 6.