Interface updating method and device, vehicle and storage medium
By responding to user touch operations and comparing processing results in the vehicle cockpit system, the problem of not following the interface update is solved, and the smoothness of interface display and the experience of human-computer interaction is improved.
Patent Information
- Application Number
- CN202411862476.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-12-17
- Publication Date
- 2025-04-25
- Estimated Expiration
- 2044-12-17
AI Technical Summary
In the vehicle cockpit system, when the user frequently operates the touch screen, the interface display update does not follow the hand, resulting in the problem of jumping the interface display.
In response to the user's touch operation, an operation command is sent to the control unit, and upon receiving the processing result, the displayed content is compared to determine the switching of the interface state. The specific steps include: upon receiving the first touch operation, sending an instruction and entering the operation following state; after receiving the processing result, it is compared with the display content generated by the second touch operation, and if the same is true, it is switched to the signal following state.
It realizes the smoothness of interface display, avoids frequent interface jumps and lags, and improves the human-computer interaction experience.
Smart Images

Figure CN119883312A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of vehicles, and in particular to an interface updating method, device, vehicle and storage medium. Background Art
[0002] With the upgrade of vehicle cockpit systems and human-machine interaction interfaces, more and more cockpit human-machine interactions are using large-size touch screens instead of hard buttons. After each operation on the touch screen, the user needs to wait for the vehicle-side electronic control unit to process the operation and feedback the result before refreshing the display content on the interface. While waiting for processing, the user may frequently operate the screen, and the user's operation speed may be faster than the processing speed of the electronic control unit. In this case, when instructions are frequently sent to the electronic control unit, the interface display will not keep up with the hand update and the interface display will jump. Summary of the invention
[0003] This application provides an interface update method, device, vehicle and storage medium, aiming to improve the smoothness of interface display and enhance the human-computer interaction experience. The technical solution is as follows:
[0004] In a first aspect, a method for updating an interface is provided, the method comprising:
[0005] In response to a first touch operation on a target control in an interactive interface, a first operation instruction corresponding to the first touch operation is sent to a control unit, and the interactive interface is determined to be in an operation following state; the operation following state is that the display content of the interactive interface is determined by the touch operation;
[0006] When the first display content generated by the control unit based on the first operation instruction is obtained, the second display content generated based on the second touch operation is obtained; the second touch operation is a touch operation after the first touch operation or is the first touch operation;
[0007] If the first display content is consistent with the second display content, the interactive interface is switched from the operation following state to the signal following state; the signal following state is that the display content of the interactive interface is determined by the control unit.
[0008] In the above technical solution, a method for updating the interface is proposed. When the target control in the interactive interface receives the first touch operation, it sends the first operation instruction corresponding to the first touch operation to the control unit. The control unit processes the first operation to obtain the first display content that needs to be displayed on the interactive interface. During the period from receiving the first touch operation to returning the first display content, the interactive interface is in the operation following state. When there is a user touch operation, the interactive interface updates the display content according to the second touch operation, and does not need to receive signal feedback before the next operation, so that the operation following hand effect can be achieved, especially in the case of high-frequency operation by the user, if the response speed of the control unit cannot keep up with the operation speed, there will be no strobing or interface freeze at this time. At the same time, wait for the processing result of the control unit. After obtaining the first display content returned by the control unit, the first display content can be compared with the second display content corresponding to the current second touch operation. If they are consistent, the interactive interface is switched to the signal following state, and the display content of the interface is controlled by the signal processing result returned by the control unit, so as to ensure that the display content of the interactive interface is synchronized with the back-end processing result, and ensure the accuracy of the display content in the absence of user fast operation.
[0009] In combination with the first aspect, in some possible implementations, the response to a touch operation on a target control in an interactive interface, sending a first operation instruction corresponding to the first touch operation to a control unit, and determining that the interactive interface is in an operation follow-up state, includes: in response to a first touch operation on a target control in the interactive interface, if an instruction sending interval is set corresponding to the first touch operation, determining the waiting time between the receiving time of the first touch operation and the end time of the timing task; the end time of the timing task is set based on the sending time of the last operation instruction and the instruction sending interval; if the waiting time is less than or equal to zero, sending the first operation instruction corresponding to the first touch operation to the control unit.
[0010] In the above technical solution, a solution for controlling the frequency of sending instructions is specifically proposed. By responding to the first touch operation on the target control in the interactive interface, it is determined whether an instruction sending interval is set for the first touch operation. If so, it is determined whether the receiving time of the first touch operation reaches the end time of the timing task, that is, whether the waiting time from the receiving time to the end is less than or equal to zero. If so, the first operation instruction corresponding to the first touch operation is sent to the control unit for processing by the background unit. In this way, the instruction processing amount of the control unit can be reduced during high-frequency operations.
[0011] In combination with the first aspect, in some possible implementations, the method further includes: if the waiting time is greater than zero, updating the cache instruction based on the first touch operation; when the end time of the timing task is reached, sending the cache instruction to the control unit.
[0012] In the above technical solution, a solution for updating the instruction cache is specifically proposed. In the case where the waiting time is greater than zero, the first touch operation will be used to update the cache instruction, that is, the touch operation received before the end time will be stored in the cache and sent to the control unit when the timing task ends. In this way, the touch operations within the instruction sending interval do not need to be processed one by one by the control unit. The control unit only needs to process the instruction corresponding to the most recent touch operation at the end time. While reducing the instruction processing volume of the control unit, it ensures that the control unit processes the latest instruction.
[0013] In combination with the first aspect, in some possible implementations, the operation following state includes a processing state and a waiting state; in response to a first touch operation on a target control in an interactive interface, sending a first operation instruction corresponding to the first touch operation to a control unit, and determining that the interactive interface is in an operation following state, includes: in response to a first touch operation on a target control in an interactive interface, sending a first operation instruction corresponding to the first touch operation to a control unit, and determining that the interactive interface is in a processing state; if the first display content is consistent with the second display content, switching the interactive interface from the operation following state to the signal following state, includes: in response to The interactive interface is in a processing state. If the first display content is consistent with the second display content, the interactive interface is switched from the processing state to a signal following state; in response to the interactive interface being in the processing state, if the first display content is inconsistent with the second display content, the interactive interface is switched from the processing state to a waiting state; in response to the interactive interface being in the waiting state, if the preset duration of the waiting state is exceeded or the third display content generated by the control unit based on the third operation instruction corresponding to the third touch operation is obtained and the third display content is consistent with the first display content, the interactive interface is switched to the signal following state.
[0014] In the above technical solution, a specific solution for switching the state of the interactive interface is specifically proposed. The operation following state includes a processing state and a stop waiting state. When a touch operation is received, the interactive interface is in a processing state, indicating that the control unit is processing the operation instruction corresponding to the touch operation at this time. If the first display content returned by the control unit is received, the first display content and the second display content in the interface will be compared and verified. If the verification is successful, it means that the operation has been closed and switched back to the signal following state. If the verification fails, it means that the control unit has not completed the instruction processing. What is received may be the result of the last instruction processing, or the control unit has a fault and cannot feedback the display content that the user expects to implement the operation, and then enters the stop waiting state; the stop waiting state means that the control unit is waiting for the control unit to update the display content and the waiting time is a preset duration. If the display content returned by the control unit is not received for more than the preset duration or the third display content returned by the control unit is received within the preset duration, both of these situations will switch to the signal following state, so that the display content of the interactive interface is displayed according to the display content returned by the control unit received the most recently.
[0015] In combination with the first aspect, in some possible implementations, in response to a first touch operation on a target control in the interactive interface, sending a first operation instruction corresponding to the first touch operation to the control unit, and determining that the interactive interface is in a processing state includes: in response to the interactive interface being in a processing state, if a first touch operation on a target control in the interactive interface is received, sending a first operation instruction corresponding to the first touch operation to the control unit, and maintaining the interactive interface in the processing state.
[0016] In the above technical solution, a specific solution for determining the processing state is proposed. In the processing state, if the first touch operation is performed on the target control in the interactive interface, the first operation instruction corresponding to the first touch operation is sent to the control unit, and the interactive interface is maintained in the processing state. That is, as long as the user's touch operation is received, the processing state will be entered. If it is already in the processing state, the processing state will still be maintained, so that the display content can be switched in time with the operation when the user operates quickly, without waiting for the control unit to return the processing result before updating the display content.
[0017] In combination with the first aspect, in some possible implementations, the operation following state includes a processing state and a waiting state; in response to a first touch operation on a target control in the interactive interface, a first operation instruction corresponding to the first touch operation is sent to the control unit, and the interactive interface is determined to be in an operation following state, including: in response to a first touch operation on a target control in the interactive interface, a first operation instruction corresponding to the first touch operation is sent to the control unit, and the interactive interface is determined to be in a processing state; in response to the interactive interface being in a processing state, if a touch end operation on the target control in the interactive interface is received, the interactive interface is removed from the processing state The state is switched to a stop and wait state; if the first display content is consistent with the second display content, the interaction interface is switched from the operation follow state to the signal follow state, including: if the first display content is consistent with the second display content, the interaction interface is switched from the stop and wait state to the signal follow state; if the first display content is inconsistent with the second display content, the stop and wait state is maintained, and if the preset duration of the stop and wait state is exceeded or the third display content generated by the control unit based on the third operation instruction corresponding to the third touch operation is obtained and the third display content is consistent with the first display content, the interaction interface is switched to the signal follow state.
[0018] In the above technical solution, an interface state switching scheme is provided for an operation type of touch-end operation after a touch operation is acquired. The touch operation can be a single operation or a continuous operation. The touch operation is a continuous operation such as sliding. When the touch operation is a continuous operation, the interactive interface is in a processing state from the time the touch operation is received, and the interface displays following the user's continuous operation. When the touch-end operation of the continuous operation is received, that is, when the hand is raised to cancel the current touch operation, the interface enters a stop-wait state. In the stop-wait state, the second display content returned by the control unit is verified to determine whether it is consistent. If it is consistent, it switches back to the signal following state. If it is inconsistent, it remains in the stop-wait state, waiting for the control unit to return a new processing result for verification or switches back to the signal following state after the preset duration of the stop-wait state. This ensures that when the user is performing a continuous operation, the interface can follow the user's operation to instantly update the display content, and when the user ends the continuous operation, it is determined whether it is enough to switch back to the signal following state based on the processing result of the control unit.
[0019] In combination with the first aspect, in some possible implementations, the method further includes: in response to the interactive interface being in the waiting state, if a fourth touch operation is received on the target control in the interactive interface, switching the interactive interface to the processing state.
[0020] In the above technical solution, a specific solution for state switching is provided. In the waiting state, if there is a touch operation, it is switched to the processing state, so that the display content of the interactive interface follows the touch operation under fast operation, making the interactive interface display smooth.
[0021] In a second aspect, an embodiment of the present specification provides an interface updating device, including:
[0022] An operation response unit, configured to respond to a first touch operation on a target control in an interactive interface, send a first operation instruction corresponding to the first touch operation to a control unit, and determine that the interactive interface is in an operation follow-up state; the operation follow-up state is that the display content of the interactive interface is determined by the touch operation;
[0023] a signal acquisition unit, configured to acquire, when acquiring the first display content generated by the control unit based on the first operation instruction, second display content generated based on a second touch operation; the second touch operation being a touch operation subsequent to the first touch operation or being the first touch operation;
[0024] The verification unit is used to switch the interactive interface from the operation following state to the signal following state if the first display content is consistent with the second display content; the display content of the interactive interface in the signal following state is determined by the control unit.
[0025] In a third aspect, an embodiment of the present specification provides a vehicle, the vehicle comprising: a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the computer program implements the steps of the above method when executed by the processor.
[0026] In a fourth aspect, an embodiment of the present specification provides a computer-readable storage medium, on which a computer program is stored, and when the computer program is executed, the steps of the above method are implemented. BRIEF DESCRIPTION OF THE DRAWINGS
[0027] Figure 1 is a scenario diagram of an interface updating method provided in an embodiment of this specification;
[0028] Figure 2 It is a flowchart of an interface updating method provided in an embodiment of this specification;
[0029] Figure 3 It is a flowchart of an interface updating method provided in an embodiment of this specification;
[0030] Figure 4 It is a flowchart of an interface updating method provided in an embodiment of this specification;
[0031] Figure 5It is a flowchart of an interface updating method provided in an embodiment of this specification;
[0032] Figure 6 It is a flowchart of an interface updating method provided in an embodiment of this specification;
[0033] Figure 7 It is a flowchart of an interface updating method provided in an embodiment of this specification;
[0034] Figure 8 It is a flowchart of an interface updating method provided in an embodiment of this specification;
[0035] Fig. 9 is a structural diagram of an interface updating device provided in an embodiment of this specification;
[0036] Fig.10 It is a structural schematic diagram of a vehicle provided in an embodiment of this specification. DETAILED DESCRIPTION
[0037] The technical solution in the present application will be described clearly and in detail below in conjunction with the accompanying drawings. In the description of the embodiments of this specification, unless otherwise specified, " / " means or, for example, A / B can mean A or B: "and / or" in the text is only a description of the association relationship of associated objects, indicating that there can be three relationships, for example, A and / or B can mean: A exists alone, A and B exist at the same time, and B exists alone. In addition, in the description of the embodiments of this specification, "multiple" means two or more than two.
[0038] In the following, the terms "first" and "second" are used for descriptive purposes only and are not to be understood as suggesting or implying relative importance or implicitly indicating the number of technical features indicated. Thus, a feature defined as "first" or "second" may explicitly or implicitly include one or more of the features.
[0039] Figure 1 It is a scenario diagram of an interface updating method provided in an embodiment of this specification.
[0040] For example, Figure 1As shown in the figure, when the user operates on the touch screen, the software in the touch screen triggers the corresponding touch control signal and sends it to the corresponding underlying hardware. It is worth noting that after the application software sends the touch control signal, it cannot immediately confirm whether the signal is successfully executed, but waits for the underlying hardware to respond and return the feedback signal in an asynchronous manner. Since the feedback speed may vary due to the influence of the network or other factors, the delay time of the signal feedback is uncertain. After the signal feedback, the application software will also display the interface of the application software according to the signal feedback situation, resulting in a display delay in the interface.
[0041] The current car machine operation processing logic can be: when the user operates, the control state in the interface will be updated immediately with the click action, and the control signal will be sent immediately. However, if the user clicks quickly and continuously, and the click speed exceeds the processing speed of the underlying feedback, the delayed feedback of the signal may cause the interface state to become disordered after multiple clicks. Specifically, the interface will display the new state immediately according to the user operation after each click, and the underlying hardware will return multiple status information at different time points. These status information will cause the interface to automatically switch back to the previous state according to the underlying feedback information while displaying the user operation results, resulting in frequent jumps.
[0042] For example, when the user quickly operates the switch, the interface may display a flickering phenomenon. Assuming the initial state is "off", the user quickly clicks the switch to switch to "on", and the interface will immediately display "on". At this time, although the interface has been displayed as "on", the feedback signal from the underlying hardware has not yet arrived; if the user immediately clicks the switch again to switch it to "off", the interface will also be immediately updated to "off". At this time, the "on state" signal fed back by the underlying hardware has still not arrived, but it will be displayed as "on" again on the interface, and then it will be updated to "off" after the feedback "off state" signal arrives. Repeatedly, the user will see a process from the first "on" to the first "off", then to the second "on", and then the second "off", resulting in frequent state jumps.
[0043] Based on the above situation, the embodiment of this specification proposes an interface update method, which generates a first operation instruction when receiving the first touch operation on the target control in the interactive interface, sends it to the back-end control unit for processing, and at the same time, determines that the state of the interactive interface is an operation follow-up state, that is, in this state, the display content of the interactive interface will be determined according to the touch operation, and can change instantly when the user operates frequently. After receiving the processing result of the control unit, that is, the first display content, the first display content is compared with the second display content determined based on the current second touch operation. If they are consistent, it means that the control unit processing result is consistent with the touch operation result expected by the current user, and it can be switched back to the signal follow-up mode to confirm the display content according to the actual processing feedback of the control unit to ensure the correctness of the display content. In this way, under the premise of easy operation, it is guaranteed that there will be no strobing and display abnormalities, and the accuracy of the interface content display is improved, thereby improving the human-computer interaction experience.
[0044] The interface updating method provided in this specification is described in detail below in conjunction with specific embodiments.
[0045] Figure 2 It is a flowchart of an interface updating method provided in an embodiment of this specification. It should be understood that the method can be applied to a vehicle, and specifically to an electronic control unit (ECU) in a vehicle.
[0046] like Figure 2 As shown, the method of the embodiment of this specification may include the following steps S101-S103.
[0047] S101, in response to a first touch operation on a target control in an interactive interface, sending a first operation instruction corresponding to the first touch operation to a control unit, and determining that the interactive interface is in an operation following state.
[0048] In one embodiment, when a first touch operation is triggered on a target control in an interactive interface, the touch screen generates a first operation instruction corresponding to the first touch operation to the control unit, so that the control unit responds to the first operation instruction and returns the instruction processing result. In a vehicle, the control unit may be an ECU. At the same time, the interactive interface is determined to be in an operation follow-up state. It is understandable that if the current state of the interactive interface is already in an operation follow-up state, the state may continue to be maintained; if the current state of the interactive interface is a signal follow-up state, the state may be switched to an operation follow-up state. It should be noted that the target control is the underlying control control in the vehicle system, which has a corresponding button control in the front-end interface, and the user controls the underlying target control by operating the button control. Usually the target control is a setting control, for example, it may be a "seat heating switch button", a "volume adjustment slider", a "seat tilt adjustment button", etc.
[0049] In a feasible implementation, the update of the interactive interface display content can be controlled based on the state machine, that is, the state of the interactive interface is determined according to the state of the state machine. The state machine defines multiple states and transitions between states. The state machine runs by responding to a series of events. When the event meets certain trigger conditions, it will cause the state machine to migrate from the current state to the next state, and the state machine starts running from the normal state. The normal state of the state machine can be a signal following state, that is, under normal circumstances, the display content in the interactive interface is determined according to the signal fed back by the control unit.
[0050] The operation following state is that the display content of the interactive interface is determined by the touch operation. It is understandable that if other touch operations are received after the first touch operation, the touch operation instructions are sent and the display content is determined according to the received touch operations.
[0051] When the user frequently operates the target control, each touch operation will generate a corresponding first operation instruction. In a feasible implementation, the first operation instruction can be sent to the control unit immediately. In another feasible implementation, the operation instruction generated by the first touch operation can be sent to the control unit, and then the instruction can be sent according to the preset instruction sending interval, so as to avoid the situation where the control unit cannot handle it in time when the user frequently operates.
[0052] S102: When the first display content generated by the control unit based on the first operation instruction is obtained, the second display content generated based on the second touch operation is obtained.
[0053] In one embodiment, when the interactive interface obtains the first display content generated based on the first operation instruction returned by the control unit, the first display content is compared with the second display content corresponding to the second touch operation. The second touch operation is a touch operation after the first touch operation or the first touch operation. The second touch operation can be the current touch operation. It is understandable that after receiving the first touch operation, the interactive interface enters the operation follow state, and the displayed content at this time follows the touch operation. When the feedback of the control unit is obtained, the second display content in the interactive interface at this time is obtained for comparison with the first display content.
[0054] Exemplarily, the display content of the interactive interface is determined according to the interface value, so the second display content can be determined according to the signal value determined by the second touch operation. In the signal following state, the interface value is updated by the signal value. For example, if a function has an on state and an off state, the function state is updated by the signal value. The signal value is the processing result returned by the control unit, and the first display content is determined according to the signal value obtained by processing the first touch operation.
[0055] S103: If the first display content is consistent with the second display content, switching the interactive interface from the operation following state to the signal following state.
[0056] In one embodiment, the signal following state is that the display content of the interactive interface is determined by the control unit. If the first display content is consistent with the second display content, it means that the current control unit processing result is consistent with the front-end display result, and the signal following state is switched to make the display content of the interactive interface consistent with the underlying system of the vehicle. If the touch command fails to be sent or the response is unsuccessful, the returned first display content will not be consistent with the second display content triggered by the user operation, and the interactive interface will jump back to the actual state of the underlying layer. The user can also observe the control failure at this time, so that the user can perform subsequent control.
[0057] The first touch operation is the operation before the second touch operation, or the second touch operation. For example, when the user touches the seat heating switch control and clicks "On", the switch control on the interactive interface is displayed as "On", and then clicks "Off", and then clicks "On", when the interactive interface obtains that the first display content generated by the control unit based on the first "On" operation is "On", which is consistent with the second display content corresponding to the last "On" operation, the control unit can be controlled to no longer respond to the subsequent second "Off" operation and the third "On" operation, thereby reducing the processing volume of the control unit.
[0058] Using the above example, when the interactive interface obtains that the first display content generated by the control unit based on the third "on" operation is "on", it is consistent with the second display content corresponding to the current "on" operation. At this time, it can also switch to the signal following state and update the display content of the interactive interface according to the first display content. It can be understood that since the second display content is consistent with the first display content, the display content in the interactive interface has not changed in the user's perception.
[0059] Continuing with the above example, when the interactive interface obtains that the first display content generated by the control unit based on the second "off" operation is "off", which is consistent with the second display content corresponding to the last "on" operation, then you can continue to wait for the processing result of the control unit until the processing result of the third "on" operation is obtained. During the waiting period, continue to display the function-on content in the interactive interface according to the third "on" operation.
[0060] In the embodiment of the present specification, when receiving the first touch operation on the target control in the interactive interface, a first operation instruction is generated and sent to the control unit at the back end for processing. At the same time, the state of the interactive interface is determined to be an operation following state, that is, in this state, the display content of the interactive interface will be determined according to the touch operation, and the display content can be updated immediately when the user frequently operates. After receiving the processing result of the control unit, that is, the first display content, the first display content is compared with the second display content determined based on the current second touch operation. If they are consistent, it means that the processing result of the control unit is consistent with the touch operation result expected by the current user, and the signal following mode can be switched back to confirm the display content according to the actual processing feedback of the control unit to ensure the correctness of the display content. In this way, under the premise of easy operation, it is ensured that there will be no strobing and display abnormalities, and the accuracy of the interface content display is improved, thereby improving the human-computer interaction experience.
[0061] See also Figure 3 , is a flowchart of an interface updating method provided in an embodiment of this specification. Figure 3 As shown, the method of the embodiment of this specification may include the following steps S201-S204.
[0062] S201, in response to a first touch operation on a target control in an interactive interface, if a command sending interval is set corresponding to the first touch operation, determine a waiting time between a reception time of the first touch operation and an end time of a timing task.
[0063] In one embodiment, for the provided operation controls, it can be set whether it is necessary to set an instruction sending interval. For example, for some operation controls that are frequently operated by some users, the instruction sending interval can be set according to the processing time of the control unit to control the instruction sending frequency. In a feasible implementation, it can be determined whether the target control needs to set an instruction sending interval based on historical operation records. In another feasible implementation, the trigger frequency of the touch operation for the target control can be detected in real time. When the trigger frequency is greater than the preset frequency, the instruction sending interval is set for the target control, so that when the target control is frequently operated, it will not frequently send instructions to the control unit, causing the control unit to handle failures or untimely processing. Among them, when the first touch operation is set with an instruction sending interval, the waiting time between the reception time of the first touch operation and the end time of the timing task is determined.
[0064] The timing task is used to start timing, and when the timing duration reaches the instruction sending interval, it stops, and the operation instruction corresponding to the touch operation closest to the end time is sent to the control unit for processing. The end time of the timing task is set based on the sending time of the last operation instruction and the instruction sending interval. It can be understood that when the first touch operation is the first operation that requires setting the instruction sending interval, that is, when the timing task has not been created yet, the first operation instruction corresponding to the first touch operation is sent first, and the timing task is generated according to the instruction sending interval.
[0065] S202: If the waiting time is less than or equal to zero, sending a first operation instruction corresponding to the first touch operation to the control unit.
[0066] In one embodiment, when there is a timing task, if the waiting time between the touch operation and the end time is less than or equal to zero, the first operation instruction corresponding to the first touch operation is sent to the control unit. That is, when the end time is just reached, the operation instruction is sent to the control unit; or, when the first touch operation is received after the end time, the first operation instruction corresponding to the first touch operation is sent to the control unit.
[0067] S203: If the waiting time is greater than zero, updating the cache instruction to a first operation instruction based on the first touch operation.
[0068] In one embodiment, when the waiting time is greater than zero, the operation instruction is not sent to the control unit first, and the operation instruction corresponding to the first touch operation is cached first, that is, the cache instruction is updated according to the first touch operation. Specifically, an instruction storage unit can be set to store the operation instructions corresponding to the touch operation obtained during the instruction sending interval, and the latest acquired touch operation is updated to the cache instruction by continuously updating the cache. It can be understood that after the first touch operation, touch operations can be continuously received, and the step of updating the cache instruction is performed according to the newly received touch operation until the waiting time is zero.
[0069] S204: When the end time of the timing task is reached, the cache instruction is sent to the control unit.
[0070] In one embodiment, when the end time of the timing task is reached, the cache instruction is sent to the control unit. At this time, the cache instruction received by the control unit is the operation instruction corresponding to the touch operation collected closest to the end time.
[0071] See also Figure 4 , Figure 4 A flow chart of an interface update method is provided for an embodiment of this specification. It is understandable that for touch operations of different target controls, it is possible to choose whether to set an instruction sending interval. After obtaining the first touch operation, it is determined whether the first touch operation is set with an instruction sending interval, or whether the instruction sending interval is greater than 0. If it is greater than 0, the waiting time T between the reception time of the first touch operation and the end time of the corresponding timing task is determined according to the set instruction sending interval. If T≤0, the first operation instruction corresponding to the first touch operation is issued. Specifically, a setting value can be generated according to the first touch operation and sent to the control unit as the first operation instruction. If T>0, the cache instruction is updated according to the first touch operation, and the cache instruction is issued after the end time of the timing task is reached.
[0072] In the embodiments of the present specification, by timing the frequency of issuing task control instructions, the instruction processing time of the control unit can be adapted to reduce the instruction processing amount of the vehicle control unit when there is a high-frequency operation.
[0073] See also Figure 5 , is a flowchart of an interface updating method provided in an embodiment of this specification. Figure 5 As shown, the method of the embodiment of this specification may include the following steps S301-S306.
[0074] S301, in response to a first touch operation on a target control in an interactive interface, sending a first operation instruction corresponding to the first touch operation to a control unit, and determining that the interactive interface is in a processing state.
[0075] In one embodiment, the operation following state specifically includes a processing state and a stop waiting state. When a touch operation is received, the interactive interface is in a processing state, indicating that the control unit is processing the operation instruction corresponding to the touch operation at this time, and the interactive interface follows the touch operation to determine the display content. The stop waiting state indicates that the control unit is waiting to update the display content and the waiting time is a preset duration.
[0076] It should be noted that in the embodiments of this specification, the first touch operation is a non-continuous operation, for example, a single operation such as a click operation. A single operation can obtain the result required by the user, such as switch control. Correspondingly, in other embodiments, the first touch operation can be a continuous operation, for example, a sliding operation. The user needs to slide and touch the screen for a period of time, and wait until the sliding end position to obtain the result required by the user, for example, adjusting the volume.
[0077] S302: When the first display content generated by the control unit based on the first operation instruction is obtained, the second display content generated based on the second touch operation is obtained.
[0078] Specifically, in the processing state, when the first display content is received, the second display content of the interactive interface at this time is obtained.
[0079] S303: In response to the interactive interface being in a processing state, if the first display content is consistent with the second display content, switching the interactive interface from the processing state to a signal following state.
[0080] In one embodiment, if the first display content returned by the control unit is received, the first display content and the second display content in the interface are compared and verified. If the verification is successful, it means that the operation has been closed-loop and switched back to the signal following state.
[0081] S304: In response to the interactive interface being in a processing state, if the first display content is inconsistent with the second display content, switching the interactive interface from the processing state to a waiting state.
[0082] Specifically, verification failure means that the control unit has not completed command processing, and what is received may be the result of the previous command processing, or the control unit fails and cannot feedback the display content that the user expects to implement the operation, and then enters the waiting state.
[0083] S305, in response to the interactive interface being in the stop and wait state, if the preset duration of the stop and wait state is exceeded or the third display content generated by the control unit based on the third operation instruction corresponding to the third touch operation is obtained, the interactive interface is switched to the signal following state.
[0084] Specifically, if the preset duration of the stop-wait state has not yet received the display content returned by the control unit or the third display content returned by the control unit is received within the preset duration, both of these situations will switch to the signal following state, so that the display content of the interactive interface is displayed according to the display content returned by the control unit last received. It can be understood that the preset duration of the stop-wait state is determined according to the processing speed of the control unit. Usually, the control unit can return the processing result of the most recent operation within the preset duration. However, when the control unit fails, the processing result of the most recent operation cannot be obtained after the preset duration. It is still necessary to switch to the signal following state and update the processing result returned by the control unit, that is, the first display content, as the current display content. At this time, the interface jumps, but the display content returned by the control unit is the real situation of the back end. For example, the target control is "seat heating function", and the user's last operation is "on", but after the stop-wait state ends, the control unit returns the result "off", indicating that the actual seat heating function has not been turned on. At this time, it is necessary to display according to the real situation of the back end to avoid the user being unable to perceive the realization of the function while the interface displays "on", causing confusion to the user.
[0085] If the third display content corresponding to the third operation instruction is obtained within the preset duration, the third display content is updated to the interactive interface. The third operation instruction is different from the first operation instruction, that is, it can be an instruction corresponding to the touch operation received after the first touch operation and between the second touch operation, and the third touch operation can actually be the second touch operation. Since the third display content is the latest return of the control unit, it represents the latest state of the control unit, so the display content of the interactive interface is set to the third display content, which fits the current actual situation of the backend.
[0086] S306: In response to the interactive interface being in the waiting state, if a fourth touch operation on a target control in the interactive interface is received, switching the interactive interface to the processing state.
[0087] In one embodiment, in the waiting state, if there is a user operation, it switches to the processing state to ensure that as long as there is a user operation, the interface display follows the user operation.
[0088] See also Figure 6 , Figure 6A flow chart of an interface updating method is provided for the embodiment of this specification. The interactive interface includes three states: signal following state: indicating the initial state. The display content of the target control in this state is updated synchronously with the signal value returned by the control unit. The signal value is used to update the interface value and then determine the display content according to the interface value. In this state, if the user clicks the target control, the interactive interface enters the processing state while issuing the instruction; processing state: indicating that the issued instruction is being processed. The display content of the setting item in this state is updated with the user's click operation. In this state, if the user clicks the target control again, the state remains unchanged while issuing the instruction; if the signal value update returned by the control unit is received, the signal value and the interface value will be compared and verified. If the verification is successful, it means that the operation has been closed and switched back to normal. If the verification fails, it means that the vehicle-side electronic control unit has not completed the instruction processing, and the result of the last instruction processing is received, it will enter the stop waiting state; stop waiting state: indicating that it is waiting for the signal value to be updated or waiting for timeout. In this state, if the user clicks on the target control, the state machine enters the processing state while issuing instructions; if a signal value update or timeout is received, the current signal value is updated to the interface value and switched back to the signal following state, and displayed according to the display content determined by the control unit.
[0089] In the embodiments of this specification, the operation following state includes a processing state and a stop waiting state. When a touch operation is received, the interactive interface is in a processing state, indicating that the control unit is processing the operation instruction corresponding to the touch operation at this time. If the first display content returned by the control unit is received, the first display content will be compared with the second display content in the interface. If they are consistent, it means that the operation has been closed and the signal following state is switched back. If they are inconsistent, it means that the control unit has not completed the instruction processing. What is received may be the result of the last instruction processing, or the control unit has a fault and cannot feedback the display content that the user expects to implement the operation, and then it enters the stop waiting state; the stop waiting state means that it is waiting for the control unit to update the display content and the waiting time is a preset duration. If the display content returned by the control unit is not received after the preset duration or the third display content returned by the control unit is received within the preset duration, both of these situations will switch to the signal following state, so that the display content of the interactive interface is displayed according to the display content returned by the control unit received most recently.
[0090] See also Figure 7 , is a flowchart of an interface updating method provided in an embodiment of this specification. Figure 7 As shown, the method of the embodiment of this specification may include the following steps S401-S406.
[0091] S401, in response to a first touch operation on a target control in an interactive interface, sending a first operation instruction corresponding to the first touch operation to a control unit, and determining that the interactive interface is in a processing state.
[0092] In the embodiments of this specification, the first touch operation is a continuous operation, such as a sliding operation, a long press operation, etc. The operation result required by the user is actually determined according to the touch situation after the operation is completed, such as the position where the sliding stops, or the duration of continuous pressing, etc. However, when the user starts the touch operation, that is, enters the processing state, the interactive interface is displayed according to the user's touch operation. For example, a sliding operation continuously displays the sliding track in the interface, and a long press can display the effect that the touch position is continuously selected, etc., which can be set according to the actual situation of the touch operation.
[0093] S402, in response to the interactive interface being in a processing state, if a touch-end operation on a target control in the interactive interface is received, switching the interactive interface from the processing state to a waiting state.
[0094] In one embodiment, when a touch-end operation of a continuous operation is received, that is, when the hand is raised to cancel the current touch operation, a waiting state is entered.
[0095] For example, the volume bar can be adjusted from 0 to 10. The user can control the volume by dragging the volume bar back and forth, and the user can cancel the operation by sliding it when the user raises his hand, which is the touch-end operation. If the signal following state is returned directly after the user stops the hand, the volume bar may jump back and forth due to the signal return delay. Therefore, the stop-wait state is entered. During the duration of the stop-wait state, the position of the volume bar is fixed at the last hand-raising position, waiting for the processing unit to process the control operation during this period.
[0096] S403: When the first display content generated by the control unit based on the first operation instruction is obtained, the second display content generated based on the second touch operation is obtained.
[0097] S404: If the first display content is consistent with the second display content, switching the interactive interface from the waiting state to the signal following state.
[0098] Specifically, in the stop and wait state, the second display content returned by the control unit is checked to determine whether they are consistent, and if they are consistent, the signal following state is switched back.
[0099] S405: If the first display content is inconsistent with the second display content, the waiting state is maintained; if the preset duration of the waiting state is exceeded, the interactive interface is switched to a signal following state.
[0100] In one embodiment, if there is no inconsistency, the waiting state is maintained, and the newly returned display content is continued to be waited for within the preset duration of the waiting state and compared with the first display content. If no new display content is received within the preset duration of the waiting state, it is switched back to the signal following state, and the most recently obtained display content is directly displayed.
[0101] S406: In response to the interactive interface being in the waiting state, if a fourth touch operation on a target control in the interactive interface is received, switching the interactive interface to the processing state.
[0102] In one embodiment, if a touch operation of the user is received in the waiting state, the state is switched to the processing state, and the displayed content is updated in real time according to the operation.
[0103] See also Figure 8 , Figure 8 A flow chart of an interface updating method is provided for the embodiment of this specification. The interactive interface includes three states: signal following state: indicating the initial state of the interactive interface. The interface value of the target control in this state is updated synchronously with the signal value. The display value is used to determine the display content. The signal value is also the display content returned by the control unit. In this state, if the user slides the setting item, the state machine enters the processing state while issuing the instruction; the processing state: indicates that the issued instruction is being processed. The interface value of the target control in this state is updated following the user's sliding operation. In this state, if the user continues to slide the target control, the state of the state machine remains unchanged while issuing the instruction; if the user raises his hand to cancel the sliding operation, it will enter the stop waiting state; the stop waiting state: indicates that it is waiting for the signal value to be updated or timed out. In this state, if the user slides the target control, the interactive interface enters the processing state while issuing the instruction; if the signal value update is received, the signal value and the interface value will be compared and verified. If the verification is successful, it means that the operation has been closed and switched back to the signal following state. If the verification fails, it means that the electronic control unit on the vehicle has not completed the command processing. What is currently received is the result of the last command processing, and the waiting state remains unchanged; if it times out, it switches back to the signal following state.
[0104] In the embodiment of the present specification, when the touch operation is a continuous operation, the interactive interface is in the processing state from the time the touch operation is received, and the interface is displayed following the continuous operation of the user. When the touch end operation of the continuous operation is received, that is, when the hand is raised to cancel the current touch operation, the interface enters the stop and wait state, and starts to verify the second display content returned by the control unit in the stop and wait state to determine whether it is consistent. If it is consistent, it switches back to the signal following state, and if it is inconsistent, it remains in the stop and wait state, waiting for the control unit to return a new processing result for verification or switches back to the signal following state after the preset duration of the stop and wait state. This ensures that when the user is performing a continuous operation, the interface can follow the user's operation to update the display content in real time, and when the user ends the continuous operation, it is determined whether it can switch back to the signal following state based on the processing result of the control unit, so that it can be displayed accurately and timely when the touch type is a continuous operation.
[0105] The following will be combined with the attached Fig. 9 , the interface updating device provided in the embodiment of this specification is introduced in detail. It should be noted that the attached Fig. 9 The interface update device in is used to execute this manual Figure 2-Figure 8 For the convenience of explanation, only the part related to the embodiment of this specification is shown. For the specific technical details not disclosed, please refer to this specification. Figure 2-Figure 8 The embodiment shown.
[0106] See also Fig. 9 , which shows a schematic diagram of the structure of an interface updating device provided by an exemplary embodiment of this specification. The interface updating device can be implemented as all or part of the device through software, hardware or a combination of both. The device 1 includes:
[0107] The operation response unit 11 is used to respond to a first touch operation on a target control in the interactive interface, send a first operation instruction corresponding to the first touch operation to the control unit, and determine that the interactive interface is in an operation follow-up state; the operation follow-up state is that the display content of the interactive interface is determined by the touch operation;
[0108] A signal acquisition unit 12, configured to acquire, when acquiring the first display content generated by the control unit based on the first operation instruction, second display content generated based on a second touch operation; the second touch operation is a touch operation after the first touch operation or is the first touch operation; and
[0109] The verification unit 13 is used to switch the interactive interface from the operation following state to the signal following state if the first display content is consistent with the second display content; the display content of the interactive interface in the signal following state is determined by the control unit.
[0110] Optionally, the operation response unit 11 is specifically used to: respond to a first touch operation on a target control in an interactive interface, if an instruction sending interval is set corresponding to the first touch operation, determine the waiting time between the reception time of the first touch operation and the end time of the timing task; the end time of the timing task is set based on the sending time of the last operation instruction and the instruction sending interval; if the waiting time is less than or equal to zero, send the first operation instruction corresponding to the first touch operation to the control unit.
[0111] Optionally, the operation response unit 11 is specifically used to: if the waiting time is greater than zero, update the cache instruction to a first operation instruction based on the first touch operation; when the end time of the timing task is reached, send the cache instruction to the control unit.
[0112] Optionally, the operation following state includes a processing state and a waiting state, and the operation response unit 11 is specifically used to: respond to a first touch operation on a target control in the interactive interface, send a first operation instruction corresponding to the first touch operation to the control unit, and determine that the interactive interface is in a processing state;
[0113] Optionally, the verification unit 13 is specifically used to: in response to the interactive interface being in a processing state, if the first display content is consistent with the second display content, switch the interactive interface from the processing state to a signal following state; in response to the interactive interface being in a processing state, if the first display content is inconsistent with the second display content, switch the interactive interface from the processing state to a stop and wait state; in response to the interactive interface being in the stop and wait state, if the preset duration of the stop and wait state is exceeded or the third display content generated by the control unit based on the third operation instruction corresponding to the third touch operation is obtained, switch the interactive interface to the signal following state.
[0114] Optionally, the verification unit 13 is also used to: in response to the interactive interface being in a processing state, if a first touch operation is received for a target control in the interactive interface, send a first operation instruction corresponding to the first touch operation to the control unit, and maintain the interactive interface in the processing state.
[0115] Optionally, the operation following state includes a processing state and a stop state, and the operation response unit 11 is specifically used to respond to a first touch operation on a target control in the interactive interface, send a first operation instruction corresponding to the first touch operation to the control unit, and determine that the interactive interface is in the processing state; in response to the interactive interface being in the processing state, if a touch end operation on the target control in the interactive interface is received, the interactive interface is switched from the processing state to the stop state;
[0116] Optionally, the verification unit 13 is specifically used to: if the first display content is consistent with the second display content, switch the interactive interface from the stop and wait state to the signal following state; if the first display content is inconsistent with the second display content, maintain the stop and wait state, and if the preset duration of the stop and wait state is exceeded, switch the interactive interface to the signal following state.
[0117] Optionally, the verification unit 13 is specifically used for: in response to the interactive interface being in the waiting state, if a fourth touch operation on a target control in the interactive interface is received, switching the interactive interface to the processing state.
[0118] It should be noted that the interface update device provided in the above embodiment only uses the division of the above functional modules as an example when executing the interface update method. In actual applications, the above functions can be assigned to different functional modules as needed, that is, the internal structure of the device is divided into different functional modules to complete all or part of the functions described above. In addition, the interface update device provided in the above embodiment and the interface update method embodiment belong to the same concept, and the implementation process thereof is detailed in the method embodiment, which will not be repeated here.
[0119] The serial numbers of the embodiments of the present specification are for description only and do not represent the advantages and disadvantages of the embodiments. In some cases, the actions or steps recorded in the claims can be performed in an order different from that in the embodiments and still achieve the desired results. In addition, the processes depicted in the drawings do not necessarily require the specific order or continuous order shown to achieve the desired results. In some embodiments, multitasking and parallel processing are also possible or may be advantageous.
[0120] The embodiment of the present specification also provides a computer storage medium having a computer program stored thereon, and when the computer program is executed by a processor, the above-mentioned Figure 2-Figure 8 The interface updating method of the embodiment shown in the figure can be found in the specific execution process. Figure 2-Figure 8 The specific description of the illustrated embodiment will not be repeated here.
[0121] Please refer to Fig.10 , which shows a schematic diagram of the structure of a vehicle provided by an exemplary embodiment of the present specification. The vehicle in the present specification may include one or more of the following components: a processor 110, a memory 120, an input device 130, an output device 140, and a bus 150. The processor 110, the memory 120, the input device 130, and the output device 140 may be connected via a bus 150.
[0122] The processor 110 may include one or more processing cores. The processor 110 uses various interfaces and lines to connect various parts of the entire vehicle, and executes various functions and processes data of the terminal 100 by running or executing instructions, programs, code sets or instruction sets stored in the memory 120, and calling data stored in the memory 120. Optionally, the processor 110 can be implemented in at least one hardware form of digital signal processing (DSP), field-programmable gate array (FPGA), and programmable logic array (PLA). The processor 110 can integrate one or a combination of a central processing unit (CPU), a graphics processing unit (GPU), and a modem. Among them, the CPU mainly processes the operating system, user pages, and applications; the GPU is responsible for rendering and drawing display content; and the modem is used to process wireless communications. It can be understood that the above-mentioned modem may not be integrated into the processor 110, but may be implemented separately through a communication chip.
[0123] The memory 120 may include a random access memory (RAM) or a read-only memory (ROM). Optionally, the memory 120 includes a non-transitory computer-readable medium (Non-Transitory Computer-Readable Storage Medium). The memory 120 may be used to store instructions, programs, codes, code sets, or instruction sets. The memory 120 may include a program storage area and a data storage area, wherein the program storage area may store instructions for implementing an operating system, instructions for implementing at least one function (such as a touch function, a sound playback function, an image playback function, etc.), instructions for implementing the above-mentioned various method embodiments, etc. The operating system may be an Android system, including a system deeply developed based on the Android system, an IOS system developed by Apple, including a system deeply developed based on the IOS system or other systems.
[0124] The memory 120 can be divided into an operating system space and a user space. The operating system runs in the operating system space, and native and third-party applications run in the user space. In order to ensure that different third-party applications can achieve good operating results, the operating system allocates corresponding system resources to different third-party applications. However, the requirements for system resources in different application scenarios in the same third-party application are also different. For example, in the local resource loading scenario, the third-party application has higher requirements for disk reading speed; in the animation rendering scenario, the third-party application has higher requirements for GPU performance. The operating system and third-party applications are independent of each other, and the operating system often cannot perceive the current application scenario of the third-party application in a timely manner, resulting in the operating system being unable to perform targeted system resource adaptation according to the specific application scenario of the third-party application.
[0125] In order for the operating system to distinguish the specific application scenarios of third-party applications, it is necessary to open up data communication between third-party applications and the operating system so that the operating system can obtain the current scenario information of third-party applications at any time, and then perform targeted system resource adaptation based on the current scenario.
[0126] The input device 130 is used to receive input commands or data, and includes but is not limited to a keyboard, a mouse, a camera, a microphone, or a touch device. The output device 140 is used to output commands or data, and includes but is not limited to a display device and a speaker. In one example, the input device 130 and the output device 140 can be combined, and the input device 130 and the output device 140 are touch screen displays.
[0127] The touch display screen can be designed as a full screen, a curved screen or a special-shaped screen. The touch display screen can also be designed as a combination of a full screen and a curved screen, or a combination of a special-shaped screen and a curved screen, which is not limited in the embodiments of this specification.
[0128] In addition, those skilled in the art will appreciate that the structure of the vehicle shown in the above drawings does not constitute a limitation on the vehicle, and the vehicle may include more or fewer components than shown, or a combination of certain components, or a different arrangement of components. For example, the vehicle also includes components such as a radio frequency circuit, an input unit, a sensor, an audio circuit, a WiFi module, a power supply, and a Bluetooth module, which will not be described in detail here.
[0129] exist Fig.10 In the vehicle shown, the processor 110 may be used to call a computer application stored in the memory 120 and specifically perform the following operations:
[0130] In response to a first touch operation on a target control in an interactive interface, a first operation instruction corresponding to the first touch operation is sent to a control unit, and the interactive interface is determined to be in an operation following state; the operation following state is that the display content of the interactive interface is determined by the touch operation;
[0131] When the first display content generated by the control unit based on the first operation instruction is obtained, the second display content generated based on the second touch operation is obtained; the second touch operation is a touch operation after the first touch operation or is the first touch operation;
[0132] If the first display content is consistent with the second display content, the interactive interface is switched from the operation following state to the signal following state; the signal following state is that the display content of the interactive interface is determined by the control unit.
[0133] In one embodiment, when the processor 110 executes a touch operation on a target control in the interactive interface, sends a first operation instruction corresponding to the first touch operation to the control unit, and determines that the interactive interface is in an operation following state, the processor 110 specifically performs the following operations:
[0134] In response to a first touch operation on a target control in an interactive interface, if an instruction sending interval is set corresponding to the first touch operation, determining a waiting time between a reception time of the first touch operation and an end time of a timing task; the end time of the timing task is set based on a sending time of a previous operation instruction and the instruction sending interval;
[0135] If the waiting time is less than or equal to zero, a first operation instruction corresponding to the first touch operation is sent to the control unit.
[0136] In one embodiment, the processor 110 may further perform the following operations:
[0137] If the waiting time is greater than zero, updating the cache instruction to a first operation instruction based on the first touch operation;
[0138] When the end time of the timing task is reached, the cache instruction is sent to the control unit.
[0139] In one embodiment, the operation following state includes a processing state and a waiting state. When the processor 110 executes a first touch operation in response to a target control in the interactive interface, sends a first operation instruction corresponding to the first touch operation to the control unit, and determines that the interactive interface is in the operation following state, the following operations may be performed specifically:
[0140] In response to a first touch operation on a target control in an interactive interface, a first operation instruction corresponding to the first touch operation is sent to a control unit, and the interactive interface is determined to be in a processing state;
[0141] In one embodiment, when the processor 110 switches the interactive interface from the operation following state to the signal following state if the first display content is consistent with the second display content, the processor 110 specifically performs the following operations:
[0142] In response to the interactive interface being in a processing state, if the first display content is consistent with the second display content, switching the interactive interface from the processing state to a signal following state;
[0143] In response to the interactive interface being in a processing state, if the first display content is inconsistent with the second display content, switching the interactive interface from the processing state to a waiting state;
[0144] In response to the interactive interface being in the stop-wait state, if the preset duration of the stop-wait state is exceeded or the third display content generated by the control unit based on the third operation instruction corresponding to the third touch operation is obtained, the interactive interface is switched to the signal following state.
[0145] In one embodiment, when the processor 110 executes a first touch operation in response to a target control in the interactive interface, sends a first operation instruction corresponding to the first touch operation to the control unit, and determines that the interactive interface is in a processing state, the processor 110 specifically performs the following operations:
[0146] In response to the interactive interface being in the processing state, if a first touch operation on a target control in the interactive interface is received, a first operation instruction corresponding to the first touch operation is sent to the control unit, and the interactive interface is maintained in the processing state.
[0147] In one embodiment, when the processor 110 executes a first touch operation in response to a target control in the interactive interface, sends a first operation instruction corresponding to the first touch operation to the control unit, and determines that the interactive interface is in an operation following state, the processor 110 specifically performs the following operations:
[0148] In response to a first touch operation on a target control in an interactive interface, a first operation instruction corresponding to the first touch operation is sent to a control unit, and the interactive interface is determined to be in a processing state;
[0149] In response to the interactive interface being in a processing state, if a touch-end operation on a target control in the interactive interface is received, switching the interactive interface from the processing state to a waiting state;
[0150] In one embodiment, when the processor 110 switches the interactive interface from the operation following state to the signal following state if the first display content is consistent with the second display content, the processor 110 specifically performs the following operations:
[0151] If the first display content is consistent with the second display content, switching the interactive interface from the stop-and-wait state to the signal-following state;
[0152] If the first display content is inconsistent with the second display content, the waiting state is maintained; if the preset duration of the waiting state is exceeded, the interactive interface is switched to a signal following state.
[0153] In one embodiment, the processor 110 may further perform the following operations:
[0154] In response to the interactive interface being in the waiting state, if a fourth touch operation on a target control in the interactive interface is received, the interactive interface is switched to the processing state.
[0155] In the embodiment of the present specification, in response to the first touch operation on the target control in the interactive interface, the first operation instruction corresponding to the first touch operation is sent to the control unit, and the interactive interface is determined to be in the operation following state; the operation following state is that the display content of the interactive interface is determined by the touch operation; when the first display content generated by the control unit based on the first operation instruction is obtained, the second display content generated based on the second touch operation is obtained; the second touch operation is a touch operation after the first touch operation or is the first touch operation; if the first display content is consistent with the second display content, the interactive interface is switched from the operation following state to the signal following state; the signal following state is that the display content of the interactive interface is determined by the control unit. When the user operates frequently, the efficiency of the interface update is guaranteed, and when the control unit processing result matches the display content corresponding to the operation, the conventional control logic of the control unit signal controlling the front-end display is restored to ensure the correctness of the display.
[0156] Further, in response to a first touch operation on a target control in the interactive interface, if a command sending interval is set corresponding to the first touch operation, the waiting time between the reception time of the first touch operation and the end time of the timing task is determined; the end time of the timing task is set based on the sending time of the last operation instruction and the instruction sending interval; if the waiting time is less than or equal to zero, the first operation instruction corresponding to the first touch operation is sent to the control unit. By controlling the frequency of instruction issuance through the timing task, the instruction processing time of the control unit can be adapted to reduce the instruction processing amount of the vehicle control unit when there is a high-frequency operation.
[0157] Furthermore, the operation following state includes a processing state and a stop waiting state. When a touch operation is received, the interactive interface is in a processing state, indicating that the control unit is processing the operation instruction corresponding to the touch operation at this time. If the first display content returned by the control unit is received, the first display content will be compared with the second display content in the interface. If they are consistent, it means that the operation has been closed and the signal following state is switched back. If they are inconsistent, it means that the control unit has not completed the instruction processing. What is received may be the result of the last instruction processing, or the control unit has a fault and cannot feedback the display content that the user expects to implement the operation, and then it enters the stop waiting state; the stop waiting state means that it is waiting for the control unit to update the display content and the waiting time is a preset duration. If the display content returned by the control unit is not received within the preset duration or the third display content returned by the control unit is received within the preset duration, both of these situations will switch to the signal following state, so that the display content of the interactive interface is displayed according to the display content returned by the control unit received most recently.
[0158] Furthermore, when the touch operation is a continuous operation, the interactive interface is in the processing state from the moment the touch operation is received, and the interface displays following the user's continuous operation. When the touch operation of the continuous operation is received to end, that is, when the hand is raised to cancel the current touch operation, the interface enters the stop-wait state, and in the stop-wait state, the second display content returned by the control unit is verified to determine whether it is consistent. If it is consistent, it switches back to the signal following state. If it is inconsistent, it remains in the stop-wait state, waiting for the control unit to return a new processing result for verification or switches back to the signal following state after the preset duration of the stop-wait state. This ensures that when the user is performing a continuous operation, the interface can update the display content in real time following the user's operation, and when the user ends the continuous operation, it determines whether it is enough to switch back to the signal following state based on the processing result of the control unit, so that it can be displayed accurately and timely when the touch type is a continuous operation.
[0159] In addition, the embodiments of this specification provide a computer program product, which includes a computer program. When the computer program is executed by a processor of a vehicle, the processor can at least implement the above-mentioned Figures 2 to 8 The interface updating method provided in the illustrated embodiment.
[0160] A person skilled in the art can understand that all or part of the processes in the above-mentioned embodiments can be implemented by instructing the relevant hardware through a computer program, and the above-mentioned program can be stored in a computer-readable storage medium, and when the program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, the above-mentioned storage medium can be a disk, an optical disk, a read-only memory (ROM) or a random access memory (RAM), etc.
[0161] The above disclosure is only the preferred embodiment of this specification, which certainly cannot be used to limit the scope of rights of this specification. Therefore, equivalent changes made according to the claims of this specification are still within the scope covered by this specification.
Claims
1. An interface updating method, characterized in that: The method comprises: In response to a first touch operation on a target control in an interactive interface, a first operation instruction corresponding to the first touch operation is sent to a control unit, and the interactive interface is determined to be in an operation following state; the operation following state is that the display content of the interactive interface is determined by the touch operation; When the first display content generated by the control unit based on the first operation instruction is obtained, the second display content generated based on the second touch operation is obtained; the second touch operation is a touch operation after the first touch operation or is the first touch operation; If the first display content is consistent with the second display content, the interactive interface is switched from the operation following state to the signal following state; the signal following state is that the display content of the interactive interface is determined by the control unit.
2. The method according to claim 1, characterized in that In response to a touch operation on a target control in an interactive interface, sending a first operation instruction corresponding to the first touch operation to a control unit, and determining that the interactive interface is in an operation following state, includes: In response to a first touch operation on a target control in an interactive interface, if an instruction sending interval is set corresponding to the first touch operation, determining a waiting time between a reception time of the first touch operation and an end time of a timing task; the end time of the timing task is set based on a sending time of a previous operation instruction and the instruction sending interval; If the waiting time is less than or equal to zero, a first operation instruction corresponding to the first touch operation is sent to the control unit.
3. The method according to claim 2, characterized in that The method further comprises: If the waiting time is greater than zero, updating the cache instruction to a first operation instruction based on the first touch operation; When the end time of the timing task is reached, the cache instruction is sent to the control unit.
4. The method according to claim 1, characterized in that The operation following state includes a processing state and a waiting state; In response to a first touch operation on a target control in the interactive interface, sending a first operation instruction corresponding to the first touch operation to a control unit, and determining that the interactive interface is in an operation following state, includes: In response to a first touch operation on a target control in an interactive interface, a first operation instruction corresponding to the first touch operation is sent to a control unit, and the interactive interface is determined to be in a processing state; If the first display content is consistent with the second display content, switching the interactive interface from the operation following state to the signal following state includes: In response to the interactive interface being in a processing state, if the first display content is consistent with the second display content, switching the interactive interface from the processing state to a signal following state; In response to the interactive interface being in a processing state, if the first display content is inconsistent with the second display content, switching the interactive interface from the processing state to a waiting state; In response to the interactive interface being in the stop-wait state, if the preset duration of the stop-wait state is exceeded or the third display content generated by the control unit based on the third operation instruction corresponding to the third touch operation is obtained, the interactive interface is switched to the signal following state.
5. The method according to claim 4, characterized in that In response to a first touch operation on a target control in the interactive interface, sending a first operation instruction corresponding to the first touch operation to a control unit, and determining that the interactive interface is in a processing state, includes: In response to the interactive interface being in the processing state, if a first touch operation on a target control in the interactive interface is received, a first operation instruction corresponding to the first touch operation is sent to the control unit, and the interactive interface is maintained in the processing state.
6. The method according to claim 1, characterized in that The operation following state includes a processing state and a waiting state; In response to a first touch operation on a target control in the interactive interface, sending a first operation instruction corresponding to the first touch operation to a control unit, and determining that the interactive interface is in an operation following state, includes: In response to a first touch operation on a target control in an interactive interface, a first operation instruction corresponding to the first touch operation is sent to a control unit, and the interactive interface is determined to be in a processing state; In response to the interactive interface being in a processing state, if a touch-end operation on a target control in the interactive interface is received, switching the interactive interface from the processing state to a waiting state; If the first display content is consistent with the second display content, switching the interactive interface from the operation following state to the signal following state includes: If the first display content is consistent with the second display content, switching the interactive interface from the stop-and-wait state to the signal-following state; If the first display content is inconsistent with the second display content, the waiting state is maintained; if the preset duration of the waiting state is exceeded, the interactive interface is switched to a signal following state.
7. The method according to claim 4 or 6, characterized in that: The method further comprises: In response to the interactive interface being in the waiting state, if a fourth touch operation on a target control in the interactive interface is received, the interactive interface is switched to the processing state.
8. An interface updating device, characterized in that: The device comprises: an operation response unit, configured to respond to a first touch operation on a target control in an interactive interface, send a first operation instruction corresponding to the first touch operation to a control unit, and determine that the interactive interface is in an operation follow-up state; the operation follow-up state is that the display content of the interactive interface is determined by the touch operation; a signal acquisition unit, configured to acquire, when acquiring the first display content generated by the control unit based on the first operation instruction, second display content generated based on a second touch operation; the second touch operation being a touch operation after the first touch operation or being the first touch operation; A verification unit is used to switch the interactive interface from the operation following state to the signal following state if the first display content is consistent with the second display content; the signal following state is that the display content of the interactive interface is determined by the control unit.
9. A vehicle, characterized in that: The vehicle comprises: a processor and a memory; wherein the memory stores a computer program, wherein the computer program is suitable for being loaded by the processor and executing the steps of 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 a computer program, and when the computer program is executed, the method according to any one of claims 1 to 7 is implemented.
Citation Information
Patent Citations
Control operation method, mobile terminal and computer readable storage medium
CN110109723A
Storage method and device, switch device, memory device and readable storage medium
CN112803938A
Information display method and device, electronic equipment and computer readable storage medium
CN114327331A
Information display method and device, computer equipment and storage medium
CN115657907A
Signal processing method and device, storage medium and vehicle
CN117193578A