Request processing method and device, vehicle and storage medium
By identifying adjustment type and status variables, dynamically adjusting the number of processing times and priority, and optimizing the processing of adjustment requests of air conditioning equipment, the problem of confusing adjustment requests of air conditioning equipment in human-computer interactive systems is solved, and the coordination and user experience of the equipment are improved.
Patent Information
- Application Number
- CN202510357531.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-03-25
- Publication Date
- 2025-07-11
AI Technical Summary
In vehicles, the human-computer interaction system can easily lead to chaos when processing air conditioning equipment adjustment requests, affecting the user experience.
By identifying adjustment types and state variables, dynamically adjusting the number of processing times and priority, optimizing the timing logic of multi-device adjustments, reducing the risk of state conflicts and resource competition in air conditioning equipment.
It improves the coordination and user experience of air conditioning equipment, reduces resource competition and logical chaos during parallel adjustment of air conditioning equipment, and improves the equipment's response efficiency and smoothness of user control experience.
Smart Images

Figure CN120295464A_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of vehicle technologies, and more particularly, to a method, apparatus, vehicle, and storage medium for processing requests in the field of vehicle technologies. Background Art
[0002] The human-machine interaction system plays a crucial role in a vehicle. It can not only enhance the driving experience but also affect the safety, comfort, and overall performance of the vehicle.
[0003] During the use of the human-machine interaction system, the human-machine interaction system may receive adjustment requests for at least one air-conditioning equipment adjustment item sent by the user from multiple trigger sources in the vehicle, such as a head-up display, buttons, etc. in the vehicle. For example, a first temperature adjustment request for the air-conditioning equipment, a second temperature adjustment request for the air-conditioning equipment, and an adjustment request for the working state of the air-conditioning equipment, etc. If the adjustment requests for at least one air-conditioning equipment adjustment item cannot be properly processed, it may lead to chaos of the air-conditioning equipment and affect the user experience.
[0004] Therefore, there is an urgent need for a method for processing requests to minimize the probability of chaos of the air-conditioning equipment and improve the user experience. Summary of the Invention
[0005] This application provides a method, apparatus, vehicle, and storage medium for processing requests. The method can properly process the adjustment requests for at least one air-conditioning equipment adjustment item received within the same time period, minimize the probability of chaos of the air-conditioning equipment as much as possible, and improve the user experience.
[0006] In a first aspect, a method for processing requests is provided. The method includes: in response to a first adjustment request for at least one equipment adjustment item in the vehicle, obtaining the adjustment type of each equipment adjustment item, where the adjustment type is used to indicate the way of adjusting the equipment adjustment item; based on the adjustment type and the state variable corresponding to each equipment adjustment item, determining the target number of times for processing the first adjustment request for each equipment adjustment item, where the state variable is used to indicate the difference between the number of times the corresponding equipment adjustment item is requested to be adjusted and the number of times actually processed; and based on the target number of times, processing the first adjustment request for each equipment adjustment item.
[0007] In the above technical solution, in response to a first adjustment request for at least one device adjustment item, the method obtains the adjustment types of each device adjustment item. By identifying the adjustment types in this way, the best control strategy can be adapted to the adjustment process of the device adjustment item. Further, by using the state variable to quantify the difference between the number of requests and the number of executions, an accurate feedback adjustment mechanism can be established. Especially when the same device adjustment item is requested to be adjusted multiple times, the method can realize request merging processing through intelligent calculation of the target number, effectively reducing the number of times of adjusting the adjustment item of the air-conditioning device, reducing the probability of confusion of the air-conditioning device and energy consumption loss that may occur during frequent processing, thereby improving the user experience of the vehicle when using the adjustment function of the human-machine interaction system.
[0008] In combination with the first aspect, in some possible implementation manners, based on the adjustment type and the state variables corresponding to each device adjustment item, determining a target number for processing the first adjustment request for each device adjustment item includes: when the adjustment type is the first type, determining the target number as the first number corresponding to the difference, where the first type is the type of gradually adjusting the device adjustment item; when the adjustment type is the second type, determining the target number as a second preset number, where the second type is the type of adjusting the state of the device adjustment item, and the second preset number is less than the first number.
[0009] In the above technical solution, by distinguishing the adjustment types and setting the target numbers differently, the execution logic of at least one first adjustment request can be effectively coordinated, and the risk of state conflict of the air-conditioning device can be reduced. Specifically, for the first-type device that needs to be gradually adjusted (such as progressive temperature adjustment), its target number is based on the actual backlog difference (the first number), which can ensure that historical requests are fully processed to avoid adjustment interruption. For the second-type device that needs to switch states (such as switch operations), the second preset number is used to process the first adjustment request, giving priority to ensuring the quick response of the current instruction and preventing the state of the air-conditioning device from repeatedly jumping due to excessive processing times. This classification processing strategy can not only meet the continuity requirements of the gradually adjusted device, but also avoid the operation redundancy of the instantaneously state-switching device. By dynamically balancing the number of processing times, the resource competition and logical confusion during parallel adjustment of multiple air-conditioning devices can be reduced, thereby improving the device coordination and the smoothness of the user control experience.
[0010] Combined with the first aspect and the above implementation manners, in some possible implementation manners, based on the target number of times, processing the first adjustment requests of each device adjustment item includes: regarding each device adjustment item as a target device adjustment item, and regarding the first adjustment request of the target device adjustment item as a first target adjustment request; when the target number of times of the target device adjustment item is the first number of times, adjusting the target device adjustment item based on the first target adjustment request for the first number of times; when the target number of times of the target device adjustment item is the second preset number of times, determining a second adjustment request with the largest timestamp in the first adjustment requests of the target device adjustment item; and adjusting the target device adjustment item based on the second adjustment request for the second preset number of times.
[0011] In the above technical solution, through the differential processing strategy and request priority management, this method can optimize the timing logic of multi-device adjustment and significantly reduce the concurrent operation conflicts. By restricting the number of processing times of the second type of device adjustment item by the second preset number of times, this can avoid overprocessing of backlogged requests and avoid operation redundancy of devices with instantaneous state switching. For the first type of device that needs to be adjusted step by step, the first adjustment request is still fully executed according to the backlog difference to ensure the continuity of adjustment. By dynamically adapting to the constraints of request timeliness and the number of processing times, this method can accurately balance the response speed and state stability of air-conditioning devices in complex concurrent scenarios, reduce logical confusion caused by outdated or repeated execution of instructions, and improve the immediacy and consistency of the user experience.
[0012] Combined with the first aspect and the above implementation manners, in some possible implementation manners, based on the target number of times, processing the first adjustment requests of each device adjustment item includes: when the number of first adjustment requests of the device adjustment item is greater than the first number, determining the processing priorities of the first adjustment requests of each device adjustment item; and processing the first adjustment requests of each device adjustment item based on the target number of times according to the processing priorities.
[0013] In the above technical solution, through the dynamic priority scheduling mechanism, it is possible to optimize the allocation of resources for air-conditioning device adjustment in a high-concurrency request scenario, and significantly reduce the risk of overload and the probability of operation conflicts. When the number of requests exceeds the first number, the processing priorities are intelligently determined according to preset rules, and the key or high-frequency adjustment requests are preferentially executed to avoid blocking the response of high-priority devices due to the accumulation of adjustment requests. At the same time, combined with the limitation of the target number of times, it can ensure that the historical backlogged requests of the same air-conditioning device are processed in an orderly manner after being sorted according to the priorities, rather than competing for system resources disorderly. This processing strategy can not only prevent the state confusion caused by resource preemption when multiple air-conditioning devices are triggered simultaneously, but also ensure the immediacy of core functions and the fluency of high-frequency user requirements through hierarchical processing priorities, improving the user's perception of the response efficiency and logical rationality of air-conditioning devices.
[0014] Combined with the first aspect and the above implementation manners, in some possible implementation manners, determining the processing priority of the first adjustment requests for each device adjustment item includes: determining the importance degree of each device adjustment item based on the adjustment purpose reached by each device adjustment item and the current driving environment, and determining the processing priority of the first adjustment requests for each device adjustment item based on the importance degree of each device adjustment item, where the processing priority is positively correlated with the importance degree; or, determining the triggering user of the first adjustment requests for each device adjustment item, and determining the processing priority of the first adjustment requests for each device adjustment item based on the riding priority of the triggering user, where the riding priority is used to indicate the priority when the triggering user rides in the vehicle, and the processing priority is positively correlated with the riding priority; or, determining the distance between the triggering user of the first adjustment requests for each device adjustment item and the air-conditioning device corresponding to each device adjustment item, and determining the processing priority of the first adjustment requests for each device adjustment item according to the distance, where the processing priority is negatively correlated with the distance.
[0015] In the above technical solution, the method determines the importance degree of the device adjustment item based on the adjustment purpose and the current driving environment, and determines the processing priority of each first adjustment request based on the importance degree, which can ensure that the first adjustment requests with a high importance degree are processed first. For example, the first adjustment requests for improving safety should be processed first, which can ensure driving safety. At the same time, for at least one first adjustment request for improving safety, the demand degree for adjusting the device adjustment item can also be determined based on the current driving environment, so that the first adjustment requests with a large demand degree are processed first. Furthermore, the method processes the first adjustment requests based on the riding priority of the triggering user. For example, the first adjustment requests of the driver or VIP passengers or those with a high urgency are processed first, improving the user experience. In addition, the method considers the distance between the vehicle user and the air-conditioning device, and processes the first adjustment requests of the vehicle users with a short distance faster. Therefore, the method can optimize resource allocation in different scenarios, meet the adjustment needs of different users, enhance the response efficiency of the human-machine interaction system, and improve the overall experience of vehicle users.
[0016] Combined with the first aspect and the above implementation manners, in some possible implementation manners, according to the processing priority and based on the target number of times, the first adjustment requests of each device adjustment item are processed, including: when the processing priority of the first adjustment request of each device adjustment item is different from that of other first adjustment requests, the first adjustment requests of the at least one device adjustment item are sorted according to the processing priority of the first adjustment request of each device adjustment item and the target number of times of each device adjustment item, and the first adjustment requests of each device adjustment item after sorting are processed in sequence, and the processing priority is positively correlated with the ranking position of the first adjustment request; when the processing priority of the first target adjustment request is the same as that of any first adjustment request, based on the request time of the first target adjustment request and the request time of any first adjustment request, the first adjustment requests of the at least one device adjustment item after sorting are sequentially adjusted, and the first adjustment requests of each device adjustment item after adjustment are processed in sequence, and the request time is positively correlated with the ranking position of the first adjustment request.
[0017] In the above technical solution, through the dual sorting mechanism of processing priority and request time, the order of processing at least one first adjustment request can be accurately determined. Compared with a single priority strategy or timestamp strategy, the response delay during the processing of the first adjustment request can be reduced. Specifically, by dynamically determining the processing priorities of different first adjustment requests, it is ensured that critical task requests (such as emergency operations or high-authority instructions) can obtain processing resources first. For example, in an autonomous driving scenario, the processing priority of a braking request is always higher than that of an air-conditioning temperature adjustment request, preventing adjustment requests with low processing priorities (for improving comfort) from blocking adjustment requests with high processing priorities (for improving safety). Secondly, when the processing priorities of at least two first adjustment requests are the same, the sorting mechanism based on the request time can effectively prevent the "request starvation" phenomenon and avoid subsequent adjustment requests from being shelved for a long time due to algorithm differences. Therefore, this method can improve the scheduling efficiency and system stability of the human-machine interaction controller.
[0018] Combined with the first aspect and the above implementation manners, in some possible implementation manners, the method for determining the state variable corresponding to each device adjustment item includes: for any target device adjustment item among the at least one device adjustment item, when a adjustment request for the target device adjustment item is received, the state variable corresponding to the target device adjustment item is increased by a first preset value; when the adjustment request for the target device adjustment item is processed, the increased state variable is decreased by the first preset value to obtain the state variable corresponding to the target device adjustment item, so as to determine the state variable corresponding to each device adjustment item.
[0019] In the above technical solution, for any device adjustment item (target device adjustment item), when the method receives an adjustment request for the target device adjustment item, it increases the state variable corresponding to the target device adjustment item by a first preset value; and when the adjustment request for the target device adjustment item is processed, it decreases the increased state variable by the first preset value. In this way, by identifying the dynamically changing state variable, it is possible to clearly determine which adjustment requests for the target device adjustment item are only triggered by the vehicle user but not processed, or the number of times not processed. This can provide a favorable basis for the subsequent processing of adjustment requests.
[0020] In a second aspect, a device for processing requests is provided. The device includes: an acquisition module, configured to, in response to a first adjustment request for at least one device adjustment item in a vehicle, acquire the adjustment type of each device adjustment item, where the adjustment type is used to indicate the way of adjusting the device adjustment item; a determination module, configured to determine, based on the adjustment type and the state variable corresponding to each device adjustment item, the target number of times for processing the first adjustment request for each device adjustment item, where the state variable is used to indicate the difference between the number of times the corresponding device adjustment item is requested to be adjusted and the number of times actually processed; and a processing module, configured to process the first adjustment request for each device adjustment item based on the target number of times.
[0021] In combination with the second aspect, in some possible implementation manners, the determination module is specifically configured to: when the adjustment type is a first type, determine the target number of times as the first number corresponding to the difference, where the first type is a type of gradually adjusting the device adjustment item; when the adjustment type is a second type, determine the target number of times as a second preset number, where the second type is a type of adjusting the state of the device adjustment item, and the second preset number is less than the first number.
[0022] In combination with the second aspect and the above implementation manners, in some possible implementation manners, the processing module is specifically configured to: use each device adjustment item as a target device adjustment item, and use the first adjustment request for the target device adjustment item as a first target adjustment request. When the target number of times for the target device adjustment item is the first number, adjust the target device adjustment item by the first number based on the first target adjustment request; when the target number of times for the target device adjustment item is the second preset number, determine the second adjustment request with the smallest timestamp in the first adjustment request for the target device adjustment item; and adjust the target device adjustment item by the second preset number based on the second adjustment request.
[0023] Combined with the second aspect and the above implementation manners, in some possible implementation manners, the determining module is specifically further configured to determine the processing priorities of the first adjustment requests of each device adjustment item when the number of the first adjustment requests of the device adjustment items is greater than the first number; the processing module is specifically further configured to process the first adjustment requests of each device adjustment item based on the target number according to the processing priorities.
[0024] Combined with the second aspect and the above implementation manners, in some possible implementation manners, the determining module is specifically further configured to: determine the importance degree of each device adjustment item based on the adjustment purpose achieved by each device adjustment item and the current driving environment, and determine the processing priorities of the first adjustment requests of each device adjustment item based on the importance degree of each device adjustment item, where the processing priorities are positively correlated with the importance degree; or, determine the triggering user of the first adjustment request of each device adjustment item, and determine the processing priorities of the first adjustment requests of each device adjustment item based on the riding priority of the triggering user, where the riding priority is used to indicate the priority when the triggering user rides in the vehicle, and the processing priorities are positively correlated with the riding priority; or, determine the distance between the triggering user of the first adjustment request of each device adjustment item and the air conditioning device corresponding to each device adjustment item, and determine the processing priorities of the first adjustment requests of each device adjustment item according to the distance, where the processing priorities are negatively correlated with the distance.
[0025] Combined with the second aspect and the above implementation manners, in some possible implementation manners, the processing module is specifically further configured to: when the processing priorities of the first adjustment requests of each device adjustment item are different from the processing priorities of other first adjustment requests, sort the first adjustment requests of the at least one device adjustment item according to the processing priorities of the first adjustment requests of each device adjustment item and the target number of each device adjustment item, and sequentially process the first adjustment requests of each device adjustment item after sorting, where the processing priorities are positively correlated with the arrangement order of the first adjustment requests; when there is a processing priority of a first target adjustment request that is the same as the processing priority of any first adjustment request, based on the request time of the first target adjustment request and the request time of any first adjustment request, adjust the order of the first adjustment requests of the at least one device adjustment item after sorting, and sequentially process the first adjustment requests of each device adjustment item after adjustment, where the request time is positively correlated with the arrangement order of the first adjustment requests.
[0026] Combined with the second aspect and the above implementation manners, in some possible implementation manners, the determining module is specifically further configured to: for any target device adjustment item among the at least one device adjustment item, when receiving an adjustment request for the target device adjustment item, increase the state variable corresponding to the target device adjustment item by a first preset value; when finishing processing the adjustment request for the target device adjustment item, decrease the increased state variable by the first preset value to obtain the state variable corresponding to the target device adjustment item, so as to determine the state variables corresponding to each device adjustment item.
[0027] In a third aspect, a vehicle is provided, including a memory and a processor. The memory is used for storing an executable program code, and the processor is used for calling and running the executable program code from the memory, so that the vehicle executes the method in the first aspect or any possible implementation manner of the first aspect.
[0028] In a fourth aspect, a computer-readable storage medium is provided. The computer-readable storage medium stores an executable program code, and when the executable program code runs on a computer, the computer is enabled to execute the method in the first aspect or any possible implementation manner of the first aspect. BRIEF DESCRIPTION OF THE DRAWINGS
[0029] Figure 1 FIG. 1 is a schematic diagram of a scenario of using a vehicle provided by an embodiment of the present application;
[0030] Figure 2 FIG. 2 is a schematic flowchart of a method for processing a request provided by an embodiment of the present application;
[0031] Figure 3 FIG. 3 is a schematic diagram of processing a request provided by an embodiment of the present application;
[0032] Figure 4 FIG. 4 is a schematic structural diagram of a device for processing a request provided by an embodiment of the present application;
[0033] Figure 5 FIG. 5 is a schematic structural diagram of a vehicle provided by an embodiment of the present application. DETAILED DESCRIPTION OF THE EMBODIMENTS
[0034] The technical solutions in the present application will be clearly and fully described below with reference to the accompanying drawings. In the description of the embodiments of the present application, unless otherwise specified, " / " means "or". For example, A / B may mean A or B. The "and / or" in the text is only a description of the association relationship of the associated objects, indicating that there can be three relationships. For example, A and / or B may mean: A exists alone, A and B exist simultaneously, and B exists alone. In addition, in the description of the embodiments of the present application, "a plurality" means two or more than two.
[0035] Hereinafter, the terms "first" and "second" are for descriptive purposes only and should not be construed as implying or suggesting relative importance or implicitly specifying the quantity of the indicated technical features. Thus, features defined with "first" and "second" may explicitly or implicitly include one or more of such features.
[0036] Figure 1 It is a schematic diagram of a scenario of using a vehicle provided by an embodiment of the present application.
[0037] Exemplarily, as Figure 1 shown, the driver can drive vehicle A carrying multiple vehicle users to the destination. During the driving of the vehicle, in order to improve the comfort, safety and entertainment of the vehicle users, the vehicle users usually control the equipment adjustment items of the air-conditioning equipment in the vehicle through the human-machine interaction system. For example, the height and / or the backrest angle of the seat are adjusted through the in-vehicle display screen, wherein the equipment adjustment items of the seat include height and backrest angle.
[0038] However, the number of vehicle users in the vehicle may be large, and multiple vehicle users may send adjustment requests for the equipment adjustment items of at least one air-conditioning equipment to the human-machine interaction system at different times within a period of time. For example, an adjustment request for the backrest angle of the seat, a first temperature adjustment request for the air-conditioning equipment, a second temperature adjustment request for the air-conditioning equipment, and an adjustment request for the working state of the air-conditioning equipment, etc. If at least one adjustment request cannot be properly processed, it may lead to chaos of the air-conditioning equipment and affect the user experience.
[0039] Therefore, the present application proposes a method for processing requests to process at least one adjustment request at different times within a period of time, so as to minimize the probability of chaos of the air-conditioning equipment and improve the user experience. The specific implementation steps can be seen as follows Figure 2 .
[0040] Figure 2 It is a schematic flowchart of a method for processing requests provided by an embodiment of the present application.
[0041] It should be understood that a method for processing requests provided by an embodiment of the present application can be applied to a vehicle (such as vehicle A) as Figure 1 shown. Specifically, this method for processing requests is applied to the controller of the human-machine interaction system in this vehicle (hereinafter simply referred to as the human-machine interaction controller).
[0042] Exemplarily, as Figure 2 shown, this method 200 includes the following steps 201 to step 203.
[0043] Step 201, in response to a first adjustment request for at least one device adjustment item in the vehicle, the human-machine interaction controller obtains the adjustment type of each device adjustment item, and the adjustment type is used to indicate the way of adjusting the device adjustment item.
[0044] It should be understood that in the above step 201, the "device adjustment item" refers to the adjustable function parameters of the air-conditioning device. The "first adjustment request for the device adjustment item" is used to request an adjustment of the device adjustment item, that is, to trigger the adjustment process of the device adjustment item. In some embodiments, the device adjustment item is the temperature of the air-conditioning device, and the first adjustment request for the device adjustment item is to increase the current temperature of the air-conditioning device by a first temperature.
[0045] It should also be understood that when the air-conditioning device is an air-conditioning device, the device adjustment items include the working mode, working state (i.e., on / off state), air volume, wind speed, wind direction, humidity, and temperature of the air-conditioning device. When the air-conditioning device is a seat, the device adjustment items include the backrest angle, height, front-back position, headrest height, headrest angle, and position of the lumbar support of the seat. When the air-conditioning device is a window, the device adjustment item includes the glass height of the window. When the air-conditioning device is a steering wheel, the device adjustment items include the rotation angle, front-back position, and up-down position of the steering wheel. When the air-conditioning device is a rearview mirror, the device adjustment item includes the position of the rearview mirror relative to the vehicle body. When the air-conditioning device is a voice output device, the device adjustment item includes the output volume of the voice output device. When the air-conditioning device is a first in-vehicle display screen (such as a central control screen and an instrument panel for displaying vehicle driving information (such as vehicle speed)), the device adjustment items include the screen brightness, resolution, color, display mode, and contrast of the in-vehicle display screen, and the display information of the first in-vehicle display screen includes information related to the safe driving of the vehicle. When the air-conditioning device is a second in-vehicle display screen (such as a co-pilot screen and a headrest display screen), the device adjustment items include the screen brightness, resolution, color, display mode, and contrast of the in-vehicle display screen, and the display information of the second in-vehicle display screen does not include information related to the safe driving of the vehicle. Among them, the device adjustment items of the air-conditioning device or the seat are used to improve the comfort of vehicle users. The device adjustment items of the window, steering wheel, rearview mirror, or first in-vehicle display screen are used to improve the safety of vehicle users. The device adjustment items of the voice output device or the second in-vehicle display screen are used to improve the entertainment of vehicle users.
[0046] It should also be understood that the "adjustment type" in the above step 201 includes a first type and a second type. Among them, the first type usually adopts a processing strategy of requesting multiple times and processing multiple times (triggering multiple executions multiple times). For example, if the device adjustment item is the glass height of the window, the first adjustment request for this device adjustment item is an adjustment request to raise the glass height of the window by a first height triggered by pressing a button, and the corresponding state variable is 2. The processing strategy for the first adjustment request of this device adjustment item is to perform two raising processes on the glass height of the window, and each time raise the first height. The first type can be regarded as an action type adjustment. The second type usually adopts a processing strategy of processing the latest adjustment request once (executing the latest request once). For example, in the case of the second type, the device adjustment item is the on / off state of the air conditioning device. The first adjustment request for this device adjustment item is an adjustment request to adjust the on / off state of the air conditioning device to the on state. The state variable corresponding to this device adjustment item is 2, and the state variable corresponding to this device adjustment item is used to indicate that the difference between the number of times the on / off state of the corresponding air conditioning device is requested to be turned on and the actual number of times it is turned on is 2, that is, two adjustment requests to turn on the air conditioning device have not been processed. The processing strategy for the first adjustment request of this device adjustment item is to turn on the air conditioning device (that is, process it once). The second type can be regarded as a state type adjustment or a jump type adjustment.
[0047] In some embodiments, the human-computer interaction controller in step 201 obtains the adjustment type of each device adjustment item, including: taking any one of the at least one device adjustment item as the target device adjustment item. When the number of value takings of the target device adjustment item is greater than the first preset value, the human-computer interaction controller determines whether the target device adjustment item needs to rely on physical perception during the adjustment process; when the target device adjustment item needs to rely on physical perception during the adjustment process, the human-computer interaction controller determines that the adjustment type of the target device adjustment item is the first type; when the target device adjustment item does not need to rely on physical perception during the adjustment process, the human-computer interaction controller determines that the adjustment type of the target device adjustment item is the second type; when the number of value takings of the target device adjustment item is equal to the first preset value, the human-computer interaction controller determines that the adjustment type of the target device adjustment item is the second type.
[0048] It should be understood that in the above solution, the "first preset value" is 2. The "number of value-taking of the device adjustment item" refers to the number of different states that the device adjustment item can be set to when being adjusted, or the number of different values that can be selected. When the device adjustment item is the temperature of the air-conditioning device, the different values that the temperature of the air-conditioning device can be set to when being adjusted are 25°, 15°, 17°, etc., that is, the number of different values that the temperature of the air-conditioning device can be set to when being adjusted is greater than 2. And during the process of adjusting the temperature of the air-conditioning device, vehicle users usually do not care about the change process of the temperature but are more concerned about the adjustment result. Therefore, the adjustment type of the temperature of the air-conditioning device is the first type. When the device adjustment item is the on / off state of the air-conditioning device, the different states that the on / off state of the air-conditioning device can be set to when being adjusted are the on state and the off state, that is, the number of different states that the on / off state of the air-conditioning device can be set to when being adjusted is equal to 2, and the adjustment type of the on / off state of the air-conditioning device is the second type.
[0049] It should also be understood that when the device adjustment item is the glass height of the vehicle window, the different values that the glass height of the vehicle window can be set to when being adjusted are 10 cm, 20 cm, 30 cm, etc., that is, the number of different values that the glass height of the vehicle window can be set to when being adjusted is greater than 2. And during the process of adjusting the glass height of the vehicle window, vehicle users usually need to perceive the change process of the glass height. Therefore, the adjustment type of the glass height of the vehicle window is the first type.
[0050] In some embodiments, before step 201, the method 200 further includes: the human-machine interaction controller responds to a third adjustment request for at least one device adjustment item in the vehicle, sequentially processes the third adjustment request for the at least one device adjustment item, and during the process of processing the third adjustment request for the at least one device adjustment item, detects whether a first adjustment request for the at least one device adjustment item is received. In the case where a first adjustment request for the at least one device adjustment item is received, step 201 is executed, and the state variables corresponding to each device adjustment item are obtained. That is, in the case where a first adjustment request for the at least one device adjustment item is received, in response to the first adjustment request for the at least one device adjustment item (at least one first adjustment request), the adjustment type of each device adjustment item is obtained, and the state variables corresponding to each device adjustment item are obtained.
[0051] In some embodiments, before the human-machine interaction controller obtains the state variables corresponding to each device adjustment item, the method further includes: the human-machine interaction controller determines the unprocessed adjustment requests in the third adjustment request for the at least one device adjustment item; in the case where the unprocessed adjustment requests are processed, the human-machine interaction controller obtains the state variables corresponding to each device adjustment item; or, the human-machine interaction controller deletes the unprocessed adjustment requests and obtains the state variables corresponding to each device adjustment item.
[0052] It should be understood that in the above solution, "determining the unprocessed adjustment requests in the third adjustment requests for at least one device adjustment item; and obtaining the state variables corresponding to each device adjustment item after processing the unprocessed adjustment requests" means that during the process of processing the third adjustment requests for at least one device adjustment item, if a new first adjustment request for adjusting the device adjustment item is received, the new first adjustment request is preferentially processed, and after the new first adjustment request is processed, the remaining third adjustment requests are processed. "Deleting the unprocessed adjustment requests and obtaining the state variables corresponding to each device adjustment item" means that during the process of processing the third adjustment requests for at least one device adjustment item, if a new first adjustment request for adjusting the device adjustment item is received, the unprocessed third adjustment requests are discarded, and then at least one first adjustment request is processed. In addition, a second variable can be set in this method, and this second variable is used to indicate that during the process of processing the third adjustment requests for at least one device adjustment item, a first adjustment request for at least one device adjustment item is received. A third variable can also be set, and this third variable is used to indicate that during the process of processing the third adjustment requests for at least one device adjustment item, if a first adjustment request for at least one device adjustment item is received, the unprocessed third adjustment requests can be discarded. This enables the human-computer interaction controller to process the adjustment requests based on the above variables.
[0053] In the above technical solution, the method first processes the third adjustment requests for at least one device adjustment item with an earlier request time, and then processes at least one first adjustment request with a later request time, which can ensure the continuity and systematicness in processing the adjustment requests, avoid resource waste and delay accumulation caused by frequent switching of request tasks, especially in scenarios with low real-time requirements. This sequential processing can ensure the integrity of the request tasks. Or, the method discards the unprocessed third adjustment requests and then processes at least one first adjustment request, which can improve the response agility to new adjustment requests. This way of actively discarding unprocessed and old adjustment requests is applicable to scenarios with high real-time requirements, can reduce the overall delay caused by the backlog of old tasks, and enhance the real-time adaptation ability of the human-computer interaction system.
[0054] In a possible implementation manner, before the human-computer interaction controller obtains the state variables corresponding to each device adjustment item after processing the unprocessed adjustment requests, the method 200 further includes: the human-computer interaction controller compares the unprocessed adjustment requests and the at least one first adjustment request according to the priority order corresponding to the adjustment requests, to obtain the first processing order of the unprocessed adjustment requests and the second processing order of the at least one first adjustment request; and in the case where the first processing order is earlier than the second processing order, the human-computer interaction controller processes the unprocessed adjustment requests according to the first processing order.
[0055] It should be understood that the above solution describes that before at least one first adjustment request is received, the human-computer interaction controller sequentially processes the third adjustment requests of at least one device adjustment item. During the process of processing the third adjustment requests of at least one device adjustment item, if at least one first adjustment request is received, the human-computer interaction controller compares the unprocessed adjustment requests among the third adjustment requests of at least one device adjustment item and at least one first adjustment request according to the priority order corresponding to the adjustment requests, obtains the first processing order of the unprocessed adjustment requests and the second processing order of at least one first adjustment request, and then processes the unprocessed adjustment requests and at least one first adjustment request based on the first processing order and the second processing order.
[0056] In the above technical solution, at the initial stage of receiving adjustment requests, the third adjustment requests of at least one device adjustment item are sequentially processed, which can ensure the orderly processing of basic request tasks. Further, an immediate comparison mechanism for the first adjustment requests is introduced, and preemptive processing of key request tasks is achieved through priority evaluation, which not only ensures the response timeliness of high-priority request tasks, but also avoids inefficient interruption operations and recovery operations through intelligent sorting. Finally, conditional judgment is used to maintain the continuity of request tasks. When the unprocessed adjustment requests still have a high priority, the original processing flow is continued, which can not only reduce the computational overhead caused by the switching of request tasks, but also maintain the coherence of the processing logic of the human-computer interaction system. This hierarchical scheduling strategy can achieve real-time response to key request tasks through priority evaluation while ensuring the throughput of the human-computer interaction system, and can achieve a balance in task processing efficiency, resource utilization and system responsiveness.
[0057] In some embodiments, the human-computer interaction controller compares the unprocessed adjustment request and the at least one first adjustment request according to the priority order corresponding to the adjustment requests, and obtains the first processing order of the unprocessed adjustment request and the second processing order of the at least one first adjustment request, including any one of the following: the human-computer interaction controller compares the unprocessed adjustment request and the at least one first adjustment request according to the priority order of the adjustment requests in terms of request time, and obtains the first processing order of the unprocessed adjustment request and the second processing order of the at least one first adjustment request; the human-computer interaction controller compares the unprocessed adjustment request and the at least one first adjustment request according to the priority order of the adjustment requests in terms of importance, and obtains the first processing order of the unprocessed adjustment request and the second processing order of the at least one first adjustment request; the human-computer interaction controller compares the unprocessed adjustment request and the at least one first adjustment request according to the priority order of the triggering users of the adjustment requests in terms of riding priority, and obtains the first processing order of the unprocessed adjustment request and the second processing order of the at least one first adjustment request.
[0058] In some embodiments, after the human - machine interaction controller obtains the first processing order of the unprocessed adjustment request and the second processing order of the at least one first adjustment request, the method 200 further includes: when the first processing order is later than the second processing order, the human - machine interaction controller obtains the state variables corresponding to each device adjustment item in the at least one device adjustment item; the human - machine interaction controller processes the at least one first adjustment request in sequence according to the second processing order based on the at least one device adjustment item and the state variables corresponding to each device adjustment item; after processing the at least one first adjustment request, the human - machine interaction controller processes the unprocessed adjustment request according to the first processing order.
[0059] Step 202, the human - machine interaction controller determines the target number of times for processing the first adjustment request for each device adjustment item based on the adjustment type and the state variables corresponding to each device adjustment item, where the state variable is used to indicate the difference between the number of times the corresponding device adjustment item is requested to be adjusted in a preset manner and the actual number of times of processing.
[0060] It should be understood that the "state variable corresponding to the device adjustment item" in step 202 above specifically refers to the difference between the number of times the device adjustment item is requested to be adjusted in a certain preset manner and the number of times the device adjustment item is actually adjusted before the current time. In some embodiments, the state variable corresponding to the temperature of the air - conditioning device being 1 can indicate that in the adjustment request for raising the temperature of the air - conditioning device, there is 1 such adjustment request that has not been executed. Among them, a certain preset manner above is related to the request content of the adjustment request. That is, for a vehicle - mounted air - conditioner, the state variables corresponding to the temperature of the vehicle - mounted air - conditioner include the state variable corresponding to the increase in the temperature of the vehicle - mounted air - conditioner (the first temperature, which can be the temperature corresponding to clicking the temperature - raising button once) and the state variable corresponding to the decrease in the temperature of the vehicle - mounted air - conditioner. In some other embodiments, the state variables corresponding to the working state of the air - conditioning device include the state variable corresponding to the working state of the air - conditioning device being closed and the state variable corresponding to the working state of the air - conditioning device being turned on.
[0061] In a possible implementation manner, the method for determining the state variables corresponding to each device adjustment item in step 202 includes: for any target device adjustment item in the at least one device adjustment item, when receiving an adjustment request for the target device adjustment item, the human - machine interaction controller increases the state variable corresponding to the target device adjustment item by a first preset value; when processing the adjustment request for the target device adjustment item is completed, the human - machine interaction controller reduces the increased state variable by the first preset value to obtain the state variable corresponding to the target device adjustment item, so as to determine the state variables corresponding to each device adjustment item.
[0062] It should be understood that the "first preset value" in the above solution is 1. That is to say, when a regulation request to increase the temperature of the air-conditioning device by the first temperature is received, the current state variable is incremented by 1. After the temperature of the air-conditioning device is increased by the first temperature, the incremented state variable is decremented by 1.
[0063] In the above technical solution, for any device adjustment item (target device adjustment item), when the method receives a regulation request for the target device adjustment item, the state variable corresponding to the target device adjustment item is incremented by the first preset value; and when the regulation request for the target device adjustment item is processed, the incremented state variable is decremented by the first preset value. In this way, by identifying the dynamically changing state variable, it is possible to clearly determine which regulation requests for the target device adjustment item are only triggered by the vehicle user but not processed, or the number of times not processed. This can provide a favorable basis for the subsequent processing of regulation requests.
[0064] In a possible implementation, step 202 includes: when the regulation type is the first type, the human-machine interaction controller determines the target number as the first number corresponding to the difference, where the first type is the type of gradually adjusting the device adjustment item; when the regulation type is the second type, the human-machine interaction controller determines the target number as the second preset number, where the second type is the type of adjusting the state of the device adjustment item, and the second preset number is less than the first number.
[0065] It should be understood that the "second preset number" in the above solution is 1.
[0066] In the above technical solution, by distinguishing the regulation type and setting the target number differently, it is possible to effectively coordinate the execution logic of at least one first regulation request and reduce the risk of state conflict of the air-conditioning device. Specifically, for the first type of device that needs to be gradually adjusted (such as progressive temperature adjustment), its target number is based on the actual backlog difference (the first number), which can ensure that historical requests are fully processed to avoid adjustment interruption. For the second type of device that needs state switching (such as switch operations), the second preset number is used to process the first regulation request, giving priority to ensuring the quick response of the current instruction and preventing the state of the air-conditioning device from repeatedly jumping due to excessive processing times. This classification processing strategy can not only meet the continuity requirements of progressive adjustment devices but also avoid operation redundancy of instantaneous state switching devices. By dynamically balancing the processing times, it is possible to reduce resource competition and logical confusion when multiple air-conditioning devices are adjusted in parallel, thereby improving device coordination and the smoothness of the user control experience.
[0067] It should also be understood that in the above solution, when the regulation type is the first type, the state variable corresponding to the device adjustment item is greater than 1.
[0068] Step 203: The human-machine interaction controller processes the first adjustment requests for each device adjustment item based on the target number of times.
[0069] It should be understood that in the above step 203, there is no limitation on the order of processing the at least one first adjustment request. The at least one first adjustment request can be processed in sequence according to the second processing order in the above solution (the order in terms of request time or importance level or the order of triggering the user's riding priority).
[0070] In a possible implementation, step 203 includes: The human-machine interaction controller takes each device adjustment item as the target device adjustment item, and takes the first adjustment request for the target device adjustment item as the first target adjustment request. When the target number of times for the target device adjustment item is the first number of times, the target device adjustment item is adjusted by the first number of times based on the first target adjustment request; when the target number of times for the target device adjustment item is the second preset number of times, the human-machine interaction controller determines the second adjustment request with the largest timestamp among the first adjustment requests for the target device adjustment item; the human-machine interaction controller adjusts the target device adjustment item by the second preset number of times based on the second adjustment request.
[0071] It should be understood that for the above solution, when the target number of times for the target device adjustment item is the second preset number of times, the adjustment request is processed according to the latest first adjustment request (i.e., the second adjustment request).
[0072] In the above technical solution, through the differential processing strategy and request priority management, the method can optimize the timing logic of multi-device adjustment and significantly reduce concurrent operation conflicts. By limiting the number of processing times for the second type of device adjustment item through the second preset number of times, this can avoid overprocessing of backlogged requests and also avoid operation redundancy for devices with instantaneous state switching. For the first type of devices that need to be adjusted step by step, the first adjustment request is still fully executed according to the backlog difference to ensure adjustment continuity. The above method can accurately balance the response speed and state stability of air-conditioning devices in complex concurrent scenarios by dynamically adapting to the constraints of request timeliness and processing times, reduce logical chaos caused by outdated or repeated execution of instructions, and improve the immediacy and consistency of the user experience.
[0073] In a possible implementation, step 203 includes: When the number of first adjustment requests for the device adjustment item is greater than the first number, the human-machine interaction controller determines the processing priority for the first adjustment requests of each device adjustment item; the human-machine interaction controller processes the first adjustment requests for each device adjustment item based on the target number of times according to the processing priority.
[0074] In the above technical solution, through a dynamic priority scheduling mechanism, it is possible to optimize the allocation of resources for realizing the adjustment of air-conditioning equipment in the scenario of high-concurrency requests, significantly reducing the risk of overload and the probability of operation conflicts. When the number of requests exceeds the first quantity, the processing priority is intelligently determined according to a preset rule, and the critical or high-frequency adjustment requests are preferentially executed, avoiding the blocking of high-priority device responses by low-priority tasks due to the accumulation of adjustment requests. At the same time, combined with the limit of the target number of times, it can ensure that the historical backlogged requests of the same air-conditioning equipment are processed in an orderly manner after being sorted according to the priority, rather than competing for system resources disorderly. This processing strategy can not only prevent the state confusion caused by resource preemption when multiple air-conditioning equipment are triggered simultaneously, but also ensure the immediacy of core functions and the fluency of users' high-frequency demands through the layering of processing priorities, improving users' perception of the response efficiency and logical rationality of air-conditioning equipment.
[0075] In a possible implementation manner, the human-machine interaction controller determines the processing priority of the first adjustment request for each device adjustment item, including: the human-machine interaction controller determines the importance degree of each device adjustment item based on the adjustment purpose achieved by each device adjustment item and the current driving environment, and determines the processing priority of the first adjustment request for each device adjustment item based on the importance degree of each device adjustment item, and the processing priority is positively correlated with the importance degree; or, the human-machine interaction controller determines the triggering user of the first adjustment request for each device adjustment item, and determines the processing priority of the first adjustment request for each device adjustment item based on the riding priority of the triggering user, where the riding priority is used to indicate the priority when the triggering user rides in the vehicle, and the processing priority is positively correlated with the riding priority; or, the human-machine interaction controller determines the distance between the triggering user of the first adjustment request for each device adjustment item and the air-conditioning equipment corresponding to the first adjustment request for each device adjustment item, and determines the processing priority of the first adjustment request for each device adjustment item according to the distance, and the processing priority is negatively correlated with the distance.
[0076] It should be understood that the "adjustment purpose achieved by the device adjustment item" in the above solution specifically refers to that the device adjustment item is used to improve the performance of the vehicle user when riding in the vehicle. The performance includes any one of comfort, safety, and entertainment. That is to say, some device adjustment items are used to improve the comfort of the vehicle user when riding in the vehicle, some device adjustment items are used to improve the safety of the vehicle user when riding in the vehicle, and some device adjustment items are used to improve the entertainment of the vehicle user when riding in the vehicle. Since safety is more important than comfort, and comfort is more important than entertainment, the first adjustment request for the device adjustment item whose adjustment purpose is to improve safety is preferentially processed, followed by the first adjustment request for the device adjustment item that improves comfort, and finally the first adjustment request for the device adjustment item that improves entertainment is processed.
[0077] It should also be understood that "the processing priority is positively correlated with the importance degree" in the above solution means that the higher the importance degree, the higher the processing priority, and the lower the importance degree, the lower the processing priority.
[0078] It should also be understood that "the processing priority is positively correlated with the riding priority" in the above solution means that the higher the riding priority, the higher the processing priority, and the lower the riding priority, the lower the processing priority.
[0079] It should also be understood that "the processing priority is negatively correlated with the distance" in the above solution means that the closer the distance between the triggering user and the air-conditioning device, the higher the processing priority, and the farther the distance, the lower the processing priority.
[0080] In the above technical solution, the method determines the importance degree of the device adjustment item based on the adjustment purpose and the current driving environment, and determines the processing priority of each first adjustment request based on the importance degree, which can ensure that the first adjustment request with a high importance degree is processed first. For example, the first adjustment request for enhancing safety should be processed first, which can ensure driving safety. At the same time, for at least one first adjustment request for enhancing safety, the method can also determine the degree of demand for adjusting the device adjustment item based on the current driving environment, so that the first adjustment request with a large degree of demand is processed first. Furthermore, the method processes the first adjustment request based on the riding priority of the triggering user. For example, the first adjustment request of the driver or the VIP passenger or with a high emergency degree is processed first, improving the user experience. In addition, the method considers the distance between the vehicle user and the air-conditioning device and processes the first adjustment request of the vehicle user with a closer distance faster. Therefore, the method can optimize resource allocation in different scenarios, meet the adjustment needs of different users, enhance the response efficiency of the human-machine interaction system, and improve the overall experience of vehicle users.
[0081] In some embodiments, the human-machine interaction controller determines the importance degree of each device adjustment item based on the adjustment purpose achieved by each device adjustment item and the current driving environment, including: for the target device adjustment item corresponding to any first target adjustment request, the human-machine interaction controller compares the target adjustment purpose achieved by the target device adjustment item with multiple performances in a preset order, and determines the target ranking position of the target adjustment purpose in the preset order; in the case where the target ranking position is the same as the ranking positions of the adjustment purposes achieved by the device adjustment items corresponding to other first adjustment requests in the preset order, the human-machine interaction controller determines the importance degree of the target device adjustment item based on the current driving environment.
[0082] In some embodiments, the human-machine interaction controller determines the importance level of the target device adjustment item based on the current driving environment, including: the human-machine interaction controller determines the degree of need to adjust the target device adjustment item based on the current driving environment; the human-machine interaction controller determines the importance level of the target device adjustment item based on the degree of need, and the importance level is positively correlated with the degree of need.
[0083] In some embodiments, the first adjustment request for the first device adjustment item is an adjustment request to adjust the up-and-down position of the steering wheel, and the first adjustment request for the second device adjustment item is an adjustment request to close the window. When the current driving environment is heavy rain, the importance level of the second device adjustment item is higher than that of the first device adjustment item, and the first adjustment request for the second device adjustment item is preferentially processed.
[0084] In some embodiments, the method for determining the riding priority of each triggering user includes: the human-machine interaction controller determines the urgency level of each triggering user and determines the riding priority based on the urgency level, and the riding priority is positively correlated with the urgency level; or, the human-machine interaction controller determines the age of each triggering user and determines the riding priority based on the age, and the riding priority is positively correlated with the age; or, the human-machine interaction controller determines the gender of each triggering user and determines the riding priority based on the gender, and the riding priority of females is higher than that of males; or, the human-machine interaction controller obtains the boarding time of each triggering user and determines the riding priority based on the boarding time, and the riding priority is negatively correlated with the boarding time; or, the human-machine interaction controller obtains the membership level of each triggering user and determines the riding priority based on the membership level, and the riding priority is positively correlated with the membership level.
[0085] It should be understood that "the riding priority is positively correlated with the boarding time" in the above solution specifically means that the earlier the boarding time, the higher the riding priority; the later the boarding time, the lower the riding priority.
[0086] In some embodiments, the human-machine interaction controller controls the state machine to sequentially process the at least one first adjustment request.
[0087] In a possible implementation, the human-machine interaction controller processes the first adjustment requests of each device adjustment item according to the processing priority and based on the target number of times, including: when the processing priority of the first adjustment request of each device adjustment item is different from that of other first adjustment requests, the human-machine interaction controller sorts the first adjustment requests of the at least one device adjustment item according to the processing priority of the first adjustment request of each device adjustment item and the target number of times of each device adjustment item, and sequentially processes the first adjustment requests of each device adjustment item after sorting, and the processing priority is positively correlated with the ranking position of the first adjustment request; when the processing priority of the first target adjustment request is the same as that of any first adjustment request, the human-machine interaction controller adjusts the order of the first adjustment requests of the at least one device adjustment item after sorting based on the request time of the first target adjustment request and the request time of any first adjustment request, and sequentially processes the first adjustment requests of each device adjustment item after adjustment, and the request time is positively correlated with the ranking position of the first adjustment request.
[0088] It should be understood that the "processing priority" in the above solution is used to determine the priority order for processing multiple first adjustment requests when the number of first adjustment requests of the device adjustment item is greater than the first number (multiple first adjustment requests exist simultaneously). The determination process of this processing priority has nothing to do with the request time of the first adjustment request. When the processing priority of each first adjustment request is different from that of other first adjustment requests, the order for processing multiple first adjustment requests can be clearly determined through the processing priorities of the multiple first adjustment requests. When the processing priority of any first adjustment request (such as the target first adjustment request) is the same as that of other first adjustment requests, the order for processing multiple first adjustment requests can be roughly determined through the processing priorities of the multiple first adjustment requests.
[0089] It should also be understood that the "processing priority is positively correlated with the ranking position of the first adjustment request" in the above solution means that the higher the processing priority, the more forward the ranking position, and the lower the processing priority, the more backward the ranking position.
[0090] It should also be understood that the "request time is positively correlated with the ranking position of the first adjustment request" in the above solution means that the earlier the request time, the more forward the ranking position, and the later the request time, the more backward the ranking position. In addition, when the processing priority of the first target adjustment request is the same as that of any first adjustment request, the human-machine interaction controller adjusts the order of the multiple first adjustment requests after sorting based on the waiting duration of the first target adjustment request and the waiting duration of any first adjustment request, and sequentially processes the multiple first adjustment requests after adjustment, and the waiting duration is negatively correlated with the ranking position of the first adjustment request.
[0091] In the above technical solution, through the dual sorting mechanism of processing priority and request time, the order of processing at least one first adjustment request can be accurately determined. Compared with a single priority policy or timestamp policy, the response latency when processing the first adjustment request can be reduced. Specifically, by dynamically determining the processing priorities of different first adjustment requests first, it is possible to ensure that critical task requests (such as emergency operations or high-authority instructions) obtain processing resources first. For example, in an autonomous driving scenario, the processing priority of a braking request is always higher than that of an air-conditioning temperature adjustment request, preventing adjustment requests with low processing priorities (for improving comfort) from blocking adjustment requests with high processing priorities (for improving safety). Secondly, when the processing priorities of at least two first adjustment requests are the same, the sorting mechanism based on the request time can effectively prevent the phenomenon of "request starvation" and avoid post-issued adjustment requests from being shelved for a long time due to algorithm differences. Therefore, this method can improve the scheduling efficiency and system stability of the human-machine interaction controller.
[0092] In some embodiments, after sorting the first adjustment requests for the at least one device adjustment item, a corresponding first variable may be set for each first adjustment request, and the first variable is used to indicate the order in which the first adjustment request is processed.
[0093] In some embodiments, the human-machine interaction controller adjusts the order of the first adjustment requests for the sorted at least one device adjustment item based on the request time of the first target adjustment request and the request time of any first adjustment request, including: the human-machine interaction controller compares the request time of the first target adjustment request with the request time of any first adjustment request, and adjusts the order of multiple first adjustment requests with the same processing priority among the first adjustment requests for the sorted at least one device adjustment item according to the request time, to obtain multiple adjusted first adjustment requests.
[0094] Exemplarily, there are five first adjustment requests, specifically including the first adjustment request 1, the first adjustment request 2, the first adjustment request 3, the first adjustment request 4, and the first adjustment request 5. The processing priorities of these five first adjustment requests are A, B, B, B, and C respectively. Among them, the level of processing priority A is higher than that of processing priority B, and the level of processing priority B is higher than that of processing priority C. The processing priorities of the first adjustment request 2, the first adjustment request 3, and the first adjustment request 4 among the above five first adjustment requests are the same, and their request times are 10:03, 10:01, and 10:02 respectively. In this regard, the processing order of the above five first adjustment requests is the first adjustment request 1, the first adjustment request 3, the first adjustment request 4, the first adjustment request 2, and the first adjustment request 5. That is, after receiving the first adjustment request 1, the first adjustment request 2, the first adjustment request 3, the first adjustment request 4, and the first adjustment request 5, the human-computer interaction controller processes the above five first adjustment requests in the order of the first adjustment request 1, the first adjustment request 3, the first adjustment request 4, the first adjustment request 2, and the first adjustment request 5.
[0095] Among them, the first adjustment request 2, the first adjustment request 3, and the first adjustment request 4 are multiple first adjustment requests with the same processing priority among the sorted multiple first adjustment requests (the first adjustment request 1, the first adjustment request 3, the first adjustment request 4, the first adjustment request 2, and the first adjustment request 5).
[0096] In some embodiments, sorting the first adjustment requests of each device adjustment item according to the processing priority of the first adjustment request of each device adjustment item and the target number of times of each device adjustment item includes: the human-computer interaction controller sorts the first adjustment requests of the at least one device adjustment item based on the target number of times, and the target number of times is negatively correlated with the sorting position of the first adjustment request; and based on the processing priority, the sorted first adjustment requests are adjusted in order to sort the first adjustment requests of the at least one device adjustment item, and the processing priority is positively correlated with the sorting position of the first adjustment request.
[0097] It should be understood that "the target number of times is negatively correlated with the sorting position of the first adjustment request" in the above solution means that the smaller the target number of times, the more forward the sorting position, and the larger the target number of times, the more backward the sorting position.
[0098] Figure 3 It is a schematic diagram of a processing request provided by an embodiment of the present application.
[0099] Exemplarily, such as Figure 3As shown, the human-machine interaction system receives three third adjustment requests, namely the third adjustment request 1, the third adjustment request 2, and the third adjustment request 3 (specifically, requests to increase the temperature of the vehicle air conditioner); the human-machine interaction controller processes the above three third adjustment requests in sequence according to the request time. When processing the third adjustment request 2 among the three third adjustment requests, the human-machine interaction system receives the first adjustment request 1 (specifically, a request to increase the temperature of the vehicle air conditioner). At this time, the state variable corresponding to the increase in the temperature of the vehicle air conditioner is 2 (that is Figure 3 the difference between the number of times (2) the temperature of the vehicle air conditioner in
[0100] Figure 4 is the structural schematic diagram of a device for processing requests provided by an embodiment of the present application.
[0101] Exemplarily, as Figure 4 shown, the device 400 includes:
[0102] An acquisition module 401, configured to obtain the adjustment type of each device adjustment item in response to a first adjustment request for at least one device adjustment item in the vehicle, where the adjustment type is used to indicate the manner of adjusting the device adjustment item;
[0103] A determination module 402, configured to determine the target number of times for processing the first adjustment request for each device adjustment item based on the adjustment type and the state variable corresponding to each device adjustment item, where the state variable is used to indicate the difference between the number of times the corresponding device adjustment item is requested to be adjusted and the number of times actually processed;
[0104] A processing module 403, configured to process the first adjustment request for each device adjustment item based on the target number of times.
[0105] Optionally, the determination module 402 is specifically configured to: when the adjustment type is the first type, determine the target number of times as the first number corresponding to the difference, where the first type is a type of gradually adjusting the device adjustment item; when the adjustment type is the second type, determine the target number of times as a second preset number, where the second type is a type of adjusting the state of the device adjustment item, and the second preset number is less than the first number.
[0106] Optionally, the processing module 403 is specifically configured to: use each device adjustment item as a target device adjustment item, and use the first adjustment request of the target device adjustment item as a first target adjustment request. When the target number of times of the target device adjustment item is the first number of times, adjust the target device adjustment item by the first number of times based on the first target adjustment request; when the target number of times of the target device adjustment item is the second preset number of times, determine a second adjustment request with the smallest timestamp in the first adjustment request of the target device adjustment item; and adjust the target device adjustment item by the second preset number of times based on the second adjustment request.
[0107] Optionally, the determining module 402 is further specifically configured to determine the processing priority of the first adjustment request of each device adjustment item when the number of first adjustment requests of the device adjustment item is greater than the first number; the processing module 403 is further specifically configured to process the first adjustment request of each device adjustment item based on the target number of times according to the processing priority.
[0108] Optionally, the determining module 402 is further specifically configured to: determine the importance level of each device adjustment item based on the adjustment purpose achieved by each device adjustment item and the current driving environment, and determine the processing priority of the first adjustment request of each device adjustment item based on the importance level of each device adjustment item, where the processing priority is positively correlated with the importance level; or, determine the triggering user of the first adjustment request of each device adjustment item, and determine the processing priority of the first adjustment request of each device adjustment item based on the riding priority of the triggering user, where the riding priority is used to indicate the priority when the triggering user rides in the vehicle, and the processing priority is positively correlated with the riding priority; or, determine the distance between the triggering user of the first adjustment request of each device adjustment item and the air conditioning device corresponding to each device adjustment item, and determine the processing priority of the first adjustment request of each device adjustment item according to the distance, where the processing priority is negatively correlated with the distance.
[0109] Optionally, the processing module 403 is further specifically configured to: when the processing priority of the first adjustment requests for each device adjustment item is different from that of other first adjustment requests, sort the first adjustment requests for the at least one device adjustment item according to the processing priority of the first adjustment requests for each device adjustment item and the target number of times of each device adjustment item, and sequentially process the first adjustment requests for each device adjustment item after sorting, where the processing priority is positively correlated with the arrangement position of the first adjustment request; when there is a case where the processing priority of a first target adjustment request is the same as that of any first adjustment request, based on the request time of the first target adjustment request and the request time of any first adjustment request, perform sequential adjustment on the first adjustment requests for the at least one device adjustment item after sorting, and sequentially process the first adjustment requests for each device adjustment item after adjustment, where the request time is positively correlated with the arrangement position of the first adjustment request.
[0110] Optionally, the determination module 402 is further specifically configured to: for any target device adjustment item among the at least one device adjustment item, when receiving an adjustment request for the target device adjustment item, increase the state variable corresponding to the target device adjustment item by a first preset value; when the adjustment request for the target device adjustment item is processed, reduce the increased state variable by the first preset value to obtain the state variable corresponding to the target device adjustment item, so as to determine the state variables corresponding to each device adjustment item.
[0111] Figure 5 It is a schematic structural diagram of a vehicle provided by an embodiment of the present application.
[0112] Exemplarily, as Figure 5 shown, the vehicle 500 includes: a memory 501 and a processor 502, where an executable program code 503 is stored in the memory 501, and the processor 502 is configured to call and execute the executable program code 503 to execute a method for processing requests.
[0113] In addition, an embodiment of the present application further protects a device, which may include a memory and a processor, where an executable program code is stored in the memory, and the processor is configured to call and execute the executable program code to execute a method for processing requests provided by an embodiment of the present application.
[0114] In this embodiment, the device may be divided into functional modules according to the above method examples. For example, it may correspond to each functional module, or two or more functions may be integrated into one processing module. The above integrated modules may be implemented in the form of hardware. It should be noted that the division of modules in this embodiment is illustrative, only a logical function division, and there may be other division methods in actual implementation.
[0115] In the case where each functional module is divided corresponding to each function, the device may further include a detection module, an acquisition module, a processing module, a determination module, etc. It should be noted that all relevant contents involved in the above method embodiments can be cited in the function descriptions of the corresponding functional modules, and will not be elaborated here.
[0116] It should be understood that the device provided in this embodiment is used to execute the above method for processing a request, so the same effect as the above implementation method can be achieved.
[0117] In the case of adopting an integrated unit, the device may include a processing module and a storage module. Among them, when the device is applied to a vehicle, the processing module can be used to control and manage the actions of the vehicle. The storage module can be used to support the vehicle to execute relevant executable program codes, etc.
[0118] Among them, the processing module can be a processor or a controller, which can implement or execute various exemplary logic blocks, modules and circuits shown in combination with the disclosure of the present application. The processor can also be a combination that realizes computing functions, such as including a combination of one or more microprocessors, a combination of digital signal processing (DSP) and a microprocessor, etc. The storage module can be a memory.
[0119] In addition, the device provided in the embodiment of the present application can specifically be a chip, a component or a module. The chip may include a connected processor and a memory; among them, the memory is used to store instructions, and when the processor calls and executes the instructions, the chip can execute the method for processing a request provided in the above embodiment.
[0120] This embodiment also provides a computer-readable storage medium, in which executable program codes are stored. When the executable program codes run on a computer, the computer is enabled to execute the above relevant method steps to implement the method for processing a request provided in the above embodiment.
[0121] This embodiment also provides a computer program product. When the computer program product runs on a computer, the computer is enabled to execute the above relevant steps to implement the method for processing a request provided in the above embodiment.
[0122] Among them, the device, computer-readable storage medium, computer program product or chip provided in this embodiment are all used to execute the corresponding method provided above. Therefore, the beneficial effects that can be achieved can refer to the beneficial effects in the corresponding method provided above, and will not be elaborated here.
[0123] Through the description of the above embodiments, those skilled in the art can understand that for the convenience and conciseness of description, only the above division of each functional module is used as an example. In actual applications, the above functions can be allocated to different functional modules according to needs, that is, the internal structure of the device is divided into different functional modules to complete all or part of the functions described above.
[0124] In the embodiments provided in the present application, it should be understood that the disclosed device and method can be implemented in other ways. For example, the device embodiments described above are only illustrative. For example, the division of modules or units is only a logical function division. In actual implementation, there may be other division methods. For example, multiple units or components can be combined or integrated into another device, or some features can be ignored or not executed. Another point is that the displayed or discussed coupling or direct coupling or communication connection between each other can be through some interfaces. The indirect coupling or communication connection of the device or unit can be electrical, mechanical or other forms.
[0125] The above content is only the specific implementation manner of the present application, but the protection scope of the present application is not limited thereto. Any person skilled in the art within the technical scope disclosed in the present application can easily think of changes or substitutions, which should all be covered by the protection scope of the present application. Therefore, the protection scope of the present application should be subject to the protection scope of the claims.
Claims
1. A method for processing requests, characterized in that, The method includes: In response to a first adjustment request for at least one equipment adjustment item in a vehicle, obtaining the adjustment types of each equipment adjustment item, where the adjustment type is used to indicate the way to adjust the equipment adjustment item; Based on the adjustment type and the state variables corresponding to each equipment adjustment item, determining the target number of times to process the first adjustment request for each equipment adjustment item, where the state variable is used to indicate the difference between the number of times the corresponding equipment adjustment item is requested to be adjusted and the actual number of times processed; Based on the target number of times, processing the first adjustment request for each equipment adjustment item.
2. The method according to claim 1, wherein The determining the target number of times to process the first adjustment request for each equipment adjustment item based on the adjustment type and the state variables corresponding to each equipment adjustment item includes: When the adjustment type is the first type, determining the target number of times as the first number corresponding to the difference, where the first type is the type of gradually adjusting the equipment adjustment item; When the adjustment type is the second type, determining the target number of times as the second preset number of times, where the second type is the type of adjusting the state of the equipment adjustment item, and the second preset number of times is less than the first number.
3. The method according to claim 2, wherein The processing the first adjustment request for each equipment adjustment item based on the target number of times includes: Regarding each equipment adjustment item as a target equipment adjustment item, and regarding the first adjustment request of the target equipment adjustment item as the first target adjustment request. When the target number of times of the target equipment adjustment item is the first number, adjusting the target equipment adjustment item by the first number based on the first target adjustment request; When the target number of times of the target equipment adjustment item is the second preset number of times, determining the second adjustment request with the smallest timestamp in the first adjustment request of the target equipment adjustment item; and adjusting the target equipment adjustment item by the second preset number of times based on the second adjustment request.
4. The method according to claim 1, characterized in that The processing the first adjustment request for each equipment adjustment item based on the target number of times includes: When the number of first adjustment requests for the equipment adjustment item is greater than the first number, determining the processing priority of the first adjustment requests for each equipment adjustment item; According to the processing priority, processing the first adjustment request for each equipment adjustment item based on the target number of times.
5. The method according to claim 4, characterized in that The determining the processing priority of the first adjustment requests for each equipment adjustment item includes: Based on the adjustment purposes achieved by each equipment adjustment item and the current driving environment, determining the importance of each equipment adjustment item, and based on the importance of each equipment adjustment item, determining the processing priority of the first adjustment requests for each equipment adjustment item, where the processing priority is positively correlated with the importance; or, Determining the triggering user of the first adjustment request for each equipment adjustment item, and based on the riding priority of the triggering user, determining the processing priority of the first adjustment requests for each equipment adjustment item, where the riding priority is used to indicate the priority when the triggering user rides in the vehicle, and the processing priority is positively correlated with the riding priority; or, Determine the distance between the triggering user of the first adjustment request for each of the device adjustment items and the air conditioner device corresponding to each of the device adjustment items, and determine the processing priority of the first adjustment request for each of the device adjustment items according to the distance, where the processing priority is negatively correlated with the distance.
6. The method according to claim 4, characterized in that, The processing of the first adjustment request for each of the device adjustment items based on the target number according to the processing priority includes: When the processing priority of the first adjustment request for each of the device adjustment items is different from that of other first adjustment requests, sort the first adjustment requests for the at least one device adjustment item according to the processing priority of the first adjustment request for each of the device adjustment items and the target number for each of the device adjustment items, and sequentially process the first adjustment requests for each of the device adjustment items after sorting, where the processing priority is positively correlated with the arrangement position of the first adjustment request; When there is a case where the processing priority of the first target adjustment request is the same as that of any first adjustment request, based on the request time of the first target adjustment request and the request time of any first adjustment request, adjust the order of the first adjustment requests for the at least one device adjustment item after sorting, and sequentially process the first adjustment requests for each of the device adjustment items after adjustment, where the request time is positively correlated with the arrangement position of the first adjustment request.
7. The method according to any one of claims 1-6, characterized in that, The method for determining the state variable corresponding to each of the device adjustment items includes: For any target device adjustment item among the at least one device adjustment item, when receiving an adjustment request for the target device adjustment item, increase the state variable corresponding to the target device adjustment item by a first preset value; After processing the adjustment request for the target device adjustment item, reduce the increased state variable by the first preset value to obtain the state variable corresponding to the target device adjustment item, so as to determine the state variable corresponding to each of the device adjustment items.
8. An apparatus for processing requests, characterized in that, The device includes: An acquisition module, configured to acquire the adjustment type of each device adjustment item in response to a first adjustment request for at least one device adjustment item in the vehicle, where the adjustment type is used to indicate the way of adjusting the device adjustment item; A determination module, configured to determine the target number for processing the first adjustment request for each device adjustment item based on the adjustment type and the state variable corresponding to each device adjustment item, where the state variable is used to indicate the difference between the number of times the corresponding device adjustment item is requested to be adjusted and the number of times actually processed; A processing module, configured to process the first adjustment request for each device adjustment item based on the target number.
9. A vehicle, characterized in that, The vehicle includes: A memory, configured to store executable program code; A processor, configured to call and run the executable program code from the memory, so that the vehicle executes the method according to any one of claims 1 to 7.
10. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores executable program code, and when the executable program code is executed, the method according to any one of claims 1 to 7 is implemented.