Control state control method and device, vehicle and storage medium
By responding to user operations in smart driving vehicles and adjusting control states based on timing and underlying status information, the problem of out-of-sync control states caused by frequent user operations is solved, improving user experience and vehicle stability.
Patent Information
- Application Number
- CN202410801265.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-20
- Publication Date
- 2024-10-11
AI Technical Summary
In smart driving vehicles, when users frequently and quickly operate controls, the state of the underlying controls and the state of the page controls are easily out of sync, causing the state of the page controls to rebound and affecting the user experience.
By responding to user operations, start the timing operation and cancel the previous timing operation, wait until the timing time is reached and then issue the control signal, and compare the underlying status information with the page status, automatically adjust the underlying status to maintain consistency, and reduce unnecessary signal responses. and page bounce.
Ensure that the user's last operation is used as a criterion to issue control signals to avoid excessive vehicle response, improve page fluency and user experience, and reduce page bounce.
Smart Images

Figure CN118760388A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of vehicles, and more specifically, to a control state control method, device, vehicle and storage medium in the field of vehicles. Background Art
[0002] At present, with the rapid development of intelligent driving, most vehicles are equipped with on-board terminals to provide users with intelligent vehicle control solutions. Users can quickly control various modes and functions of the vehicle by clicking buttons or controls on the on-board terminal. When a user clicks a page control, the underlying series of technical processing flows will still have a certain time lag compared to the instant click behavior intuitively felt by the user. When a user frequently and quickly operates a unified control multiple times in a short period of time to achieve control needs, the underlying control state will be out of sync with the instant control state that the user sees on the page. At this time, after the multiple underlying control states corresponding to multiple operations are called back, the control state on the page will refresh and rebound multiple times, which greatly affects the user experience. Summary of the invention
[0003] The present application provides a control state control method, device, vehicle and storage medium, which can solve the technical problem in the related art that the page control state rebounds due to the user's frequent operation of the control.
[0004] In a first aspect, a method for controlling a control state is provided, the method comprising:
[0005] In response to a user operation on a target control, displaying a first page state triggered by the user operation on the target control on the page;
[0006] Initiate a first timing operation for the user operation and cancel a second timing operation initiated based on a previous user operation for the target control;
[0007] When the timing duration of the first timing operation reaches a preset duration, a manual control signal corresponding to the user operation is issued, and underlying state information of the target control automatically returned by the target control in response to the manual control signal is received;
[0008] Determine the second page state of the target control in the page at the current moment, and determine whether the underlying state of the target control is consistent with the second page state based on the underlying state information;
[0009] If they are inconsistent, an automatic control signal corresponding to the second page state is sent down, so that the target control adjusts the underlying state to be consistent with the second page state in response to the automatic control signal.
[0010] The beneficial effects brought about by the technical solution of the first aspect above include at least: when the user operates the control, the control signal will be sent only if there is no new user operation within a subsequent period of time, which can ensure that the control signal of the target control is sent according to the last hand-off operation among the user's frequent operations, avoiding excessive vehicle response caused by signal sending and feedback for each continuous operation of the user, and ensuring vehicle stability; and when receiving the underlying state callback information of the control, it can compare the second page state of the control at the current moment with the underlying state, and automatically send a signal to adjust the underlying state of the control when the underlying state is inconsistent with the current second page state, so as to keep the consistency between the underlying state of the control and the page state, and adjust the underlying state of the control based on the final state of the page control, reduce unnecessary rebound in the page, improve page fluency and enhance user experience.
[0011] In some possible implementations, after receiving the underlying status information of the target control automatically returned by the target control in response to the manual control signal, the method further includes: after receiving the callback status, determining whether there is a timing operation being timed at the current moment; if there is a timing operation being timed, not responding to the underlying status information; if there is no timing operation being timed, executing the step of determining the second page status of the target control in the page at the current moment.
[0012] Through the technical solutions in the above possible implementation methods, when the user performs user operations on the control, the underlying status information of the callback is not responded to, thereby avoiding the page freeze problem caused by the control responding to the underlying callback during the user operation.
[0013] In some possible implementations, before the manual control signal corresponding to the user operation is sent, the step also includes: obtaining the initial underlying state information of the target control, and judging whether the initial underlying state of the target control is consistent with the first page state based on the initial underlying state information; if they are consistent, ignoring the manual control signal corresponding to the user operation; if they are inconsistent, executing the step of sending the manual control signal corresponding to the user operation.
[0014] Through the technical solutions in the above possible implementation methods, it is possible to determine whether the underlying state of the current control is consistent with the page state before sending a signal. In this way, when the underlying state of the control and the page state are already consistent, the control signal does not need to be sent to reduce unnecessary signal response processes.
[0015] In some possible implementations, after the timing duration of the above-mentioned first timing operation reaches a preset duration, it also includes: determining whether the above-mentioned target control is in the process of adjusting from one underlying state to another underlying state; if the above-mentioned target control is in the adjustment process, ignoring the manual control signal corresponding to the above-mentioned user operation; if the above-mentioned target control is not in the adjustment process, executing the above-mentioned step of sending the manual control signal corresponding to the above-mentioned user operation.
[0016] Through the technical solutions in the above possible implementation methods, in the scenario where the bottom layer responds slowly and takes a long time, before sending a new control signal, it can be determined whether the control is in the "adjusting" state. When the control is in the adjustment process, it cannot respond to the new control signal, so the new control signal can be directly ignored at this time.
[0017] In some possible implementations, the first timing operation and the second timing operation are implemented based on a preset timer.
[0018] In some possible implementations, the above-mentioned starting the first timing operation for the above-mentioned user operation and canceling the second timing operation started based on the last user operation for the above-mentioned target control include: determining whether there is a second timing operation being timed, the second timing operation being started based on the last user operation for the target control; if so, starting the first timing operation for the above-mentioned user operation, and resetting the preset timer started based on the second timing operation based on the above-mentioned first timing operation; if not, starting the first timing operation for the above-mentioned user operation, and starting the preset timer based on the above-mentioned first timing operation.
[0019] Through the technical solution in the above possible implementation method, a preset timer is used to accurately time the maintenance time of each user operation.
[0020] In some possible implementations, the target control includes at least two state effects; the user operation includes at least one of a click operation, a voice operation, and a sliding operation.
[0021] Through the technical solutions in the above possible implementations, users can control the controls in various states through various operation modes.
[0022] In a second aspect, a control state control device is provided, the device comprising:
[0023] An operation module, for responding to a user operation on a target control, and displaying a first page state triggered by the user operation on the target control on the page;
[0024] A control delay module, used to start a first timing operation for the above user operation and cancel a second timing operation started based on the last user operation for the above target control;
[0025] a signal sending module, configured to send a manual control signal corresponding to the user operation when the timing duration of the first timing operation reaches a preset duration, and receive the underlying state information of the target control automatically returned by the target control in response to the manual control signal;
[0026] A state checking module, used to determine the second page state of the target control in the page at the current moment, and to determine whether the underlying state of the target control is consistent with the second page state based on the underlying state information;
[0027] The automatic adjustment module is used to send an automatic control signal corresponding to the second page state if there is inconsistency, so that the target control adjusts the underlying state to be consistent with the second page state in response to the automatic control signal.
[0028] In a third aspect, a vehicle is provided, comprising a memory for storing executable program code; and a processor for calling and running the executable program code from the memory, so that the vehicle executes the method in the above-mentioned first aspect or any possible implementation of the first aspect.
[0029] In a fourth aspect, a computer program product is provided, comprising: a computer program code, which, when executed on a computer, enables the computer to execute the method in the first aspect or any possible implementation of the first aspect.
[0030] In a fifth aspect, a computer-readable storage medium is provided, which stores a computer program code. When the computer program code runs on a computer, the computer executes the method in the above-mentioned first aspect or any possible implementation manner of the first aspect. BRIEF DESCRIPTION OF THE DRAWINGS
[0031] Figure 1 An exemplary system architecture diagram of a control state control method provided in an embodiment of the present application;
[0032] Figure 2 A flowchart of a control state control method provided in an embodiment of the present application;
[0033] Figure 3 A flowchart of a control state control method provided in an embodiment of the present application;
[0034] Figure 4A flow logic example diagram of a control state control method provided in an embodiment of the present application;
[0035] Figure 5 A flowchart of a control state control method provided in an embodiment of the present application;
[0036] Figure 6 A structural block diagram of a control state control device provided in an embodiment of the present application;
[0037] Figure 7 A schematic diagram of the structure of a vehicle provided in an embodiment of the present application. DETAILED DESCRIPTION
[0038] In order to make the features and advantages of the present application more obvious and easy to understand, the technical solutions in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by those skilled in the art without creative work are within the scope of protection of the present application.
[0039] When the following description refers to the drawings, unless otherwise indicated, the same numbers in different drawings represent the same or similar elements. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the present application. Instead, they are merely examples of devices and methods consistent with some aspects of the present application as detailed in the appended claims. And in the description of the embodiments of the present application, 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 three relationships can exist, 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 the present application, "multiple" refers to two or more than two.
[0040] 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.
[0041] At present, with the rapid development of intelligent driving, most vehicles are equipped with on-board terminals to provide users with intelligent vehicle control solutions. Users can quickly control various modes and functions of the vehicle by clicking buttons or controls on the on-board terminals. For users, in order to give users a smooth control experience, the state of the controls in the interactive page will usually change with the user's operation, giving users an "easy-to-operate" experience. However, for the underlying operating system, from the moment the user clicks, it will go through a series of processing processes, including the sending of control signals, the response of the underlying control system, and the return of the response results.
[0042] The specific process is that when the interactive end receives a user control operation, the control state in the interactive interface will first change to the state corresponding to the user control operation. At the same time, the interactive end will send the control signal triggered by the user control operation to the corresponding underlying control. After the control signal is sent, the interactive end cannot immediately know whether it is sent successfully, but must asynchronously and passively receive the signal feedback returned by the underlying control after responding to the control signal, and then display the final state of the page control based on the feedback. These signal sending processes, waiting for response processes, and receiving feedback results will inevitably consume a certain amount of time objectively. This results in a certain time lag in the response process of the control signal compared to the instant click behavior intuitively felt by the user.
[0043] When users frequently operate controls and the state of controls in the interactive interface changes repeatedly, each operation triggers a complete signal transmission process. The bottom layer will receive multiple identical requests and return corresponding data, resulting in multiple unnecessary page refreshes. For example, the initial state of a switch control is "off", and then the user quickly clicks the switch to make it "on", and the interface immediately displays the switch state as "on", which is the first "on"; and before the "on state" information of the underlying feedback of the first "on" signal arrives, the user immediately clicks again to change the switch control state to "off", and the interface immediately jumps to display the switch state as "off", which is the first "off"; after the interface displays the first "off", the "on state" information of the underlying feedback arrives, and the interface jumps to "on" again according to the "on state" information, which is the second "on", and after the "off state" information of the underlying feedback of the "off" signal arrives, the interface jumps to "off" again, which is the second "off". From the user's point of view, the switch state on the interface may be the first "on" (manual) → the first "off" (manual) → the second "on" (the signal feedback of the first "on") → the second "off" (the signal feedback of the first "off").
[0044] In this way, while ensuring easy operation, when the combo speed is greater than the underlying feedback speed, multiple clicks and delayed feedback of each click will directly cause the interface to automatically jump multiple times based on the multiple status information returned by the underlying layer after each click behavior is displayed easily. The status effects displayed easily and the status effects of the underlying feedback are interspersed with each other, resulting in frequent and unreasonable rebounds and delayed rebounds in the display effect of the control status in the page from the user's perspective. At this time, the page has problems of jumping and flickering.
[0045] Therefore, an embodiment of the present application provides a control state control method to solve the technical problem that the page control state rebounds due to the user's frequent control operations.
[0046] See also Figure 1 , Figure 1 An exemplary system architecture diagram of a control state control method provided in an embodiment of the present application.
[0047] like Figure 1 As shown, the system architecture may include a vehicle 101, a network 102, and a server 103. The network 102 is used to provide a medium for a communication link between the vehicle 101 and the server 103. The network 102 may include various types of wireless communication links, such as a near field communication link (NFC), an ultra wideband communication link (Ultra WideBand, UWB), a Bluetooth communication link, a wireless fidelity (Wi-Fi) communication link, or a microwave communication link.
[0048] The vehicle 101 can interact with the server 103 through the network 102 to receive messages from the server 103 or send messages to the server 103, or the vehicle 101 can interact with the server 103 through the network 102 to receive messages or data sent to the server 103 by other users. The server 103 can be a business server that provides various services. It should be noted that the server 103 can be hardware or software. When the server 103 is hardware, it can be implemented as a distributed server cluster composed of multiple servers, or it can be implemented as a single server. When the server 103 is software, it can be implemented as multiple software or software modules (for example, used to provide distributed services), or it can be implemented as a single software or software module, which is not specifically limited here.
[0049] In an embodiment of the present application, vehicle 101 first responds to a user operation on a target control and displays a first page state triggered by the user operation on the target control on the page; when a user operation occurs, vehicle 101 starts a first timing operation for the user operation and cancels a second timing operation started based on the last user operation on the target control; when the timing duration of the first timing operation reaches a preset duration, vehicle 101 sends a manual control signal corresponding to the user operation, and receives the underlying state information of the target control automatically returned after the target control responds to the manual control signal; after receiving the underlying callback information, vehicle 101 further determines the second page state of the target control in the page at the current moment, and determines whether the underlying state of the target control is consistent with the second page state based on the underlying state information; if not, vehicle 101 needs to send an automatic control signal corresponding to the second page state, so that the target control adjusts the underlying state to be consistent with the second page state in response to the automatic control signal.
[0050] In the embodiment of the present application, the target control may be a control such as an "air conditioning switch", and its actual state in the underlying system can be determined based on the vehicle 101 itself; the target control may also be a control such as a "GPS switch", and the underlying state needs to communicate with the corresponding server 103 to be determined. Then, if it is necessary for the vehicle 101 to establish a communication link with the server 103, and determine the underlying state information of the target control in the vehicle 101 based on the communication link, the system architecture should include the server 103; and if the vehicle 101 itself can determine the underlying state information of the target control, then the system architecture may not include the server 103. In other words, the server 103 can be an optional device in the embodiment of this specification, that is, the method provided in the embodiment of the present application can be applied to a system structure that only includes the vehicle 101, and the embodiment of the present application does not limit this.
[0051] Similarly, in addition to the exemplary vehicle 101 in the embodiment of the present application, the control state control method can also be executed on electronic devices such as smart phones, smart tablets, and various types of computers. According to implementation needs, the system architecture can include any electronic device with corresponding processing capabilities to execute the control state control method. The vehicle 101 for executing the control state control method provided in the embodiment of the present application should not limit the electronic device that implements the control state control method.
[0052] It should be understood that Figure 1 The number of vehicles, networks, and servers in the figure is only illustrative, and any number of vehicles, networks, and servers may be used according to implementation requirements.
[0053] See also Figure 2 , Figure 2A flowchart of a control state control method provided for an embodiment of the present application. The execution subject of the embodiment of the present application can be a vehicle that executes the control state control, or a processor in a vehicle that executes the control state control method, or a control state control service in a vehicle that executes the control state control method. For the convenience of description, the specific execution process of the control state control method is introduced below by taking the execution subject being a processor in a vehicle as an example.
[0054] like Figure 2 As shown, the control state control method may at least include:
[0055] S202: In response to a user operation on a target control, a first page state triggered by the user operation on the target control is displayed on the page.
[0056] Optionally, according to the control principle of the control, when the user operates the control, he actually touches the page icon displayed on the page, thereby triggering a control signal to the underlying system of the vehicle. When the underlying system responds to the control signal and adjusts the underlying state of the control to the target state corresponding to the user operation, it automatically returns the underlying state information, and then the state of the control in the page can be changed to the target state. At this time, the operation is determined to be successful from the user's perspective. However, since the signal sending, response and callback will consume a certain amount of time, the user will feel an obvious sense of operation delay when the reaction time is long. In order to improve the user experience, the first page state triggered by the user operation on the target control can be directly displayed on the page according to the user operation on the target control in the page. For example, for the Bluetooth control of the vehicle, there are two state effects of "open" and "close". Then the user clicks twice to switch "close" to "open" and then switch back to "close". Then each time the user clicks, the front-end interface directly displays the corresponding mode state according to the click behavior, so that the user has an easy-to-operate experience and will not feel the delay caused by the underlying reaction.
[0057] It should be noted that the target control is the underlying control control in the vehicle system, and a corresponding button control is displayed on the front-end page. The user controls the underlying state of the target control by operating the page button control of the target control. The target control includes at least two state effects, such as "on / off", "standard mode / sports mode", "first gear / second gear / third gear", etc.; user operations may include at least one of click operations, voice operations, and sliding operations. The embodiment of the present application does not limit the operation method of the user controlling the target control.
[0058] S204: Start a first timing operation for the user operation and cancel a second timing operation started based on the last user operation on the target control.
[0059] Optionally, when the user performs continuous operations on the target control in a short period of time, the time lag of the bottom-level state feedback will cause the control state of the page to rebound if the operations are done casually, which greatly affects the user experience. When the user performs continuous click operations, it can be considered that the state after the last operation in the continuous click operation is the final result that the user wants to achieve in this operation. In this case, the last release operation of the continuous click can be used as the basis, and only the control signal is sent to the bottom level based on the last release operation. For other operations in the continuous click, no control signal is sent to the bottom level. In this way, the bottom level will not perform multiple state feedbacks due to receiving multiple control signals, thereby avoiding the problem of frequent rebound of the control state in the page caused by frequent continuous operations.
[0060] Specifically, in order to send a control signal to the bottom layer based on the last hand-off operation of the user's multiple continuous operations, a timing operation can be started for each user operation, and the timing operation is used to trigger the sending of the manual control signal corresponding to the user operation after the timing reaches the preset duration. If a new user operation occurs when the timing started by a certain user operation does not reach the preset duration, then the new user operation will start a new timing operation and cancel the timing operation that is timing and has not reached the preset duration, that is, start the first timing operation for the user operation and cancel the second timing operation started based on the last user operation on the target control. It should be noted that in the embodiment of the present application, the preset duration is used to determine the user's last operation. For example, when the preset duration is set to 200 milliseconds, it means that the user does not perform a new operation within 200 milliseconds after the current operation, and the current operation is considered to be the last operation. In actual situations, the specific value of the preset duration can be set according to the needs of the actual scenario, and the embodiment of the present application does not limit this.
[0061] For example, taking the preset time of 200 milliseconds as an example, the user performs the first click operation on the target control, and the timing operation is started based on the click operation. Based on the timing operation, the corresponding manual control signal can be issued after the 200 milliseconds of timing are completed; if the user performs the second click operation within 200 milliseconds, it is necessary to cancel the previous timing operation that has not completed the 200 milliseconds of timing and restart the timing operation corresponding to this user operation. In this way, since the interval between the two user operations is less than the preset duration, the corresponding manual control signal is actually only issued to the bottom layer based on the user's last operation.
[0062] S206: When the timing duration of the first timing operation reaches a preset duration, a manual control signal corresponding to the user operation is issued, and underlying state information of the target control automatically returned after receiving the target control in response to the manual control signal.
[0063] Optionally, as described above, when the timing duration of the first timing operation reaches the preset duration, it means that no new user operation occurs within the preset duration, then it can be considered that the user operation is a hand-off operation of the user, based on which a manual control signal corresponding to the user operation can be sent to the underlying layer. After the manual control signal reaches the underlying system, the underlying state of the target control will be adjusted, and the underlying layer will actively return the underlying state information of the target control after responding to the control signal, that is, the underlying state information of the target control automatically returned by the target control after responding to the manual control signal will be received.
[0064] S208: Determine the second page state of the target control in the page at the current moment, and determine whether the underlying state of the target control is consistent with the second page state based on the underlying state information.
[0065] Optionally, when a manual control signal is sent, there may be control failures such as signal sending failure and underlying response failure due to various circumstances, which will cause the manual control signal to fail after it is sent, and the underlying state of the target control is not adjusted to match the page state, that is, the underlying state of the target control will be inconsistent with its page state. In another case, after the manual control signal is sent and before the underlying callback information arrives, the user may perform an operation again to change the page state of the target control, resulting in the underlying state being changed and called back, but still inconsistent with the page state of the target control.
[0066] Optionally, if the state information of the underlying callback is inconsistent with the page state of the target control, the page state of the target control is usually adjusted according to the underlying callback state, which causes a change in the page state of the target control that is not caused by direct user operation. However, the result of the user's operation on the control may be the control result that the user needs most. Therefore, in the embodiment of the present application, the page state of the target control is used as the basis. When the page state of the target control is different from the underlying state, the underlying state of the target control is modified to make it consistent with the page state of the target control, thereby achieving the unification of the page and the underlying without useless page refresh.
[0067] Specifically, after receiving the returned underlying state information of the target control, the second page state of the target control in the page at the current moment is determined, based on the page state of the target control at this moment, and whether the underlying state of the target control is consistent with the second page state is determined based on the underlying state information.
[0068] S210: If they are inconsistent, an automatic control signal corresponding to the second page state is sent down, so that the target control adjusts the underlying state to be consistent with the second page state in response to the automatic control signal.
[0069] Optionally, if the two are detected to be inconsistent, the underlying state of the target control needs to be adjusted to ensure synchronization between the two. At this time, an automatic control signal corresponding to the second page state can be automatically triggered and sent down, and the automatic control signal is used to adjust the target control so that the underlying state of the target control is adjusted to be consistent with the second page state on the page, thereby ensuring the accuracy and consistency of the underlying state of the target control and the page state.
[0070] In an embodiment of the present application, a control state control method is provided, which displays the first page state triggered by the user operation on the target control in the page; starts the first timing operation for the user operation; when the timing duration of the first timing operation reaches the preset duration, sends the manual control signal corresponding to the user operation, and receives the underlying state information of the target control automatically returned by the target control; determines whether the underlying state of the target control is consistent with the second page state of the target control at the current moment based on the underlying state information; if not, the target control is made to adjust the underlying state to be consistent with the second page state in response to the automatic control signal. When the user operates the control, it can ensure that the control signal of the target control is sent according to the last hand-off operation in the user's frequent operations, avoiding excessive vehicle response caused by sending and feedback of signals for each continuous operation of the user, and ensuring vehicle stability; and when the underlying state callback information of the control is received, it can automatically send a signal to adjust the underlying state of the control when the underlying state is inconsistent with the current second page state, and adjust the underlying state of the control based on the final state of the page control, reduce unnecessary rebound in the page, and improve user experience.
[0071] See also Figure 3 , Figure 3 A flowchart of a control state control method provided in an embodiment of the present application.
[0072] like Figure 3 As shown, the control state control method may at least include:
[0073] S302: In response to a user operation on a target control, a first page state triggered by the user operation on the target control is displayed on the page.
[0074] Regarding step S302, please refer to the detailed description in step S202, which will not be repeated here.
[0075] S304: Determine whether there is a second timing operation in progress, where the second timing operation is initiated based on the last user operation on the target control.
[0076] Optionally, when a user operation occurs, a first timing operation corresponding to the user operation will be started. The first timing operation is used to start timing and send a manual control signal corresponding to the user operation after the timing duration reaches a preset duration. Specifically, in an embodiment of the present application, all timing operations corresponding to user operations can be implemented based on a preset timer.
[0077] Specifically, when starting the first timing operation corresponding to the user operation, first determine whether there is a second timing operation in progress. The second timing operation is initiated based on the last user operation on the target control. Therefore, the purpose of this step is to determine whether the preset timer is timing based on the last user operation. If the preset timer is timing, it needs to be reset. If not, start the timing of the preset timer directly.
[0078] S306: If it exists, start the first timing operation for the user operation, and reset the preset timer started based on the second timing operation based on the first timing operation; if it does not exist, start the first timing operation for the user operation, and start the preset timer based on the first timing operation.
[0079] Optionally, if there is a second timing operation in progress, it means that the user operation corresponding to the second timing operation is not the user's hand-off operation, and the corresponding timing should also be cancelled, and the timing should be restarted based on the current user operation, that is, the first timing operation is started for the current user operation, and the preset timer started based on the second timing operation is reset based on the first timing operation. If there is no second timing operation, the preset timer can be directly started based on the first timing operation.
[0080] S308: When the timing duration of the first timing operation reaches a preset duration, determine whether the target control is in the process of adjusting from one underlying state to another underlying state.
[0081] Optionally, when the timing duration of the first timing operation reaches a preset duration, it indicates that the user operation can be determined as a hand-off operation of the user, and a manual control signal corresponding to the user operation can be sent to control the underlying state of the target control.
[0082] Optionally, since the bottom layer's response to the control signal takes time, and the specific time duration is related to the vehicle computer environment, that is, the vehicle computer's current load and temperature will affect the bottom layer's response speed, when the bottom layer responds slowly and takes a long time to respond, the target control may be in an "adjusting" state for a period of time when it is adjusted from one bottom layer state to another, and the target control cannot respond to other control signals to the bottom layer received when it is in this "adjusting" state, and therefore can only ignore the control signals received at this time.
[0083] Optionally, before sending the manual control signal corresponding to this user operation, it is possible to first determine whether the target control is in the process of adjusting from one underlying state to another underlying state, so as to determine whether the target control can respond to the control signal corresponding to this user operation, and then determine how to execute subsequent steps.
[0084] S310: If the target control is in the process of adjustment, the manual control signal corresponding to the user operation is ignored; if the target control is not in the process of adjustment, the step of sending the manual control signal corresponding to the user operation is executed.
[0085] Optionally, from the introduction of the above embodiments, it can be known that if the target control is in the adjustment process, it cannot respond to the new control signal, and therefore the manual control signal corresponding to the user operation will be ignored; if the target control is not in the adjustment process, the step of sending the manual control signal corresponding to the user operation can be executed.
[0086] See also Figure 4 , Figure 4 This is a flow logic example diagram of a control state control method provided in an embodiment of the present application. Figure 4 As shown, for example, the target control is a Bluetooth control and there are two states of "on" and "off". When the Bluetooth control is in the "off" state, the user performs a series of user operations (the hollow arrows in the "user operation" part of the figure indicate non-hand-off operations, and the solid arrows indicate hand-off operations), and finally sends a manual control signal of "on" with a hand-off operation "on", the Bluetooth control responds to the manual control signal of "on" and adjusts the underlying state from "off" to "on". However, in scenario 1 where the underlying response speed is slow, it takes a while for the Bluetooth control to complete the adjustment of the underlying state; however, during the adjustment of the underlying state, the user performs valid user operations on the page again and sends a manual control signal of "off", but at this time the Bluetooth control cannot respond to the manual control signal of "off" and can only ignore it.
[0087] Furthermore, when the bottom layer ignores the new control signal because it is responding to the control signal, the page state of the target control operated by the user on the page will be different from the bottom layer state of the target control. For example, when the page state and bottom layer state of the target control are both "off", the user operates the target control on the page to change its page state to "on"; at the same time, based on this user operation, a manual control signal of "on" is sent to the bottom layer, so that the bottom layer state of the target control is adjusted from "off" to "on". During the adjustment process, the page state of the target control is operated by the user to be "closed", but because the underlying state is being adjusted at this time, the manual control signal of "close" is ignored by the underlying state, which will cause the underlying state to be adjusted to "open" and its information will be called back. At this time, the page state of the target control is already "closed", that is, the page state is inconsistent with the underlying state. Based on the subsequent steps S318-S320 in the embodiment of the present application, the inconsistency between the page state and the underlying state can be detected at this time, and the automatic control signal of "close" can be re-sent according to the page state, so that the target control responds to the automatic control signal of "close" at the underlying level and adjusts the underlying state to "closed", thereby ensuring that the page does not rebound unnecessarily and maintaining the consistency and accuracy of the page and underlying states of the control.
[0088] S312: Send a manual control signal corresponding to the user operation, and receive the underlying state information of the target control automatically returned after the target control responds to the manual control signal.
[0089] Furthermore, a manual control signal corresponding to the user operation is sent to the underlying layer. After the manual control signal reaches the underlying system, the underlying state of the target control will be adjusted, and the underlying layer will actively return the underlying state information of the target control after responding to the control signal, that is, the underlying state information of the target control automatically returned by the target control after responding to the manual control signal will be received.
[0090] S314: After receiving the callback status, determine whether there is a timing operation in progress at the current moment.
[0091] Optionally, in some scenarios, while the underlying layer is responding to a control signal, the user may continue to operate the target control on the page. That is, while the underlying layer is responding to a control signal and calling back the underlying status information, the page status of the target control is still changing, and based on new user operations, a new control signal will appear as the user's operation ends.
[0092] Alternatively, from the user's perspective, the page only needs to display the user's own casual operations. If the underlying callback status information is received and responded to during the user operation, it will cause unnecessary page jams. Therefore, after receiving the callback status, it should first determine whether there is a timing operation in progress at the current moment.
[0093] S316: If there is a timing operation in progress, do not respond to the underlying status information; if there is no timing operation in progress, execute the step of determining the second page state of the target control in the page at the current moment.
[0094] Optionally, if there is a timing operation in progress, it means that the user's hand-off operation is still being determined, and the target control in the page is still being operated by the user and the operation has not yet ended, so it is not necessary to respond to the underlying state information of the callback. If there is no timing operation in progress, the step of determining the second page state of the target control in the page at the current moment can be performed, thereby avoiding the page freeze problem caused by the control responding to the underlying callback during the user operation.
[0095] Likewise, Figure 4 As shown, for example, the target control is a Bluetooth control and there are two states of "on" and "off". When the Bluetooth control is in the "off" state, the user sends a manual control signal of "on" through user operation, and the Bluetooth control responds to the manual control signal of "on" and adjusts the underlying state from "off" to "on". In scenario 2 where the underlying response speed is fast, the Bluetooth control can quickly complete the adjustment of the underlying state and automatically return the underlying state information as "on"; however, before receiving the underlying state information, the target control starts a new timing operation based on the user's user operation "off" performed again, and the timing duration has not reached the preset duration when the underlying state information is received, which means that the user is performing a new operation at this time, and the new user operation will subsequently send a new manual control signal of "off", so the callback underlying state information "on" received at this time can be directly ignored and no longer processed; instead, it waits for the manual control signal of "off" sent by the new user operation, and performs subsequent processing based on it.
[0096] S318: Determine the second page state of the target control in the page at the current moment, and determine whether the underlying state of the target control is consistent with the second page state based on the underlying state information.
[0097] S320: If they are inconsistent, an automatic control signal corresponding to the second page state is sent down, so that the target control adjusts the underlying state to be consistent with the second page state in response to the automatic control signal.
[0098] Regarding steps S318-S320, please refer to the detailed description in steps S208-S210, which will not be repeated here.
[0099] In an embodiment of the present application, a control state control method is provided. In a scenario where the underlying response is slow and time-consuming, before sending a new control signal, it can be determined whether the control is in an "adjusting" state. When the control is in the adjustment process, the newly appearing control signal is ignored. In a scenario where the underlying response is fast, when the user operates the target control of the page, the method can ignore the underlying state information of the fast callback, thereby avoiding page freeze problems caused by the control responding to the underlying callback during the user's operation.
[0100] See also Figure 5 , Figure 5 A flowchart of a control state control method provided in an embodiment of the present application.
[0101] like Figure 5 As shown, the control state control method may at least include:
[0102] S502: Before issuing a manual control signal corresponding to the user operation, obtain initial bottom-level state information of the target control, and determine whether the initial bottom-level state of the target control is consistent with the first page state based on the initial bottom-level state information.
[0103] Optionally, when the user operates the target control, it is possible that the result of the user's operation on the page state of the target control remains unchanged from before the operation. For example, the initial page state and initial underlying state of the target control are both "closed", and after the user has performed a series of "open", "close", "open", and "close" operations on the page, the user performs "close" as the last user operation. At this time, the page state of the target control is still "closed" as is the underlying state. In this case, there is actually no need to perform redundant control on the underlying layer, that is, there is no need to send redundant manual control signals.
[0104] Optionally, before sending the manual control signal corresponding to the user operation, it can be determined whether the manual control signal is necessary to be sent. Specifically, the initial underlying state information of the target control can be obtained, and based on the initial underlying state information, it can be determined whether the initial underlying state of the target control is consistent with the first page state of the target control after the user operation.
[0105] S504: If they are consistent, ignore the manual control signal corresponding to the user operation.
[0106] Optionally, if the initial bottom layer state of the target control is consistent with the first page state of the target control, it means that no unnecessary adjustment of the bottom layer is required at this time, and the manual control signal corresponding to the user operation can be ignored, thereby reducing unnecessary signal response processes.
[0107] S506: If they are inconsistent, executing the step of sending a manual control signal corresponding to the user operation.
[0108] Optionally, if the initial underlying state of the target control is inconsistent with the first page state of the target control, it is necessary to adjust the underlying state of the target control to make it consistent with the page, that is, directly send a manual control signal corresponding to the user operation. The steps after sending the manual control signal are the same as those described in the above embodiment and will not be repeated here.
[0109] In an embodiment of the present application, a control state control method is provided, which can determine whether the underlying state of the current control and the page state are consistent before sending a signal. In this way, when the underlying state of the control and the page state are already consistent, the control signal does not need to be sent to reduce unnecessary signal response processes.
[0110] See also Figure 6 , Figure 6 This is a structural block diagram of a control state control device provided in an embodiment of the present application. Figure 6 As shown, the control state control device 600 includes:
[0111] An operation module 610 is used to respond to a user operation on a target control and display a first page state triggered by the user operation on the target control on the page;
[0112] A control delay module 620, configured to start a first timing operation for a user operation and cancel a second timing operation started based on a previous user operation for a target control;
[0113] The signal sending module 630 is used to send a manual control signal corresponding to the user operation when the timing duration of the first timing operation reaches a preset duration, and receive the underlying state information of the target control automatically returned after the target control responds to the manual control signal;
[0114] The state checking module 640 is used to determine the second page state of the target control in the page at the current moment, and judge whether the underlying state of the target control is consistent with the second page state based on the underlying state information;
[0115] The automatic adjustment module 650 is used to send an automatic control signal corresponding to the second page state if there is inconsistency, so that the target control adjusts the underlying state to be consistent with the second page state in response to the automatic control signal.
[0116] Optionally, the first timing operation and the second timing operation are implemented based on a preset timer.
[0117] Optionally, the timing task module 620 is also used to determine whether there is a second timing task in progress; if so, reset the preset timer started based on the second timing task so that the preset timer starts timing based on the first timing task; if not, start the preset timer based on the first timing task.
[0118] Optionally, the control state control device 600 also includes: a state verification module in the control operation, which is used to determine whether there is a timing operation being timed at the current moment after receiving the callback state; if there is a timing operation being timed, no response is made to the underlying state information; if there is no timing operation being timed, a step of determining the second page state of the target control in the page at the current moment is executed.
[0119] Optionally, the control state control device 600 also includes: a verification module before signal issuance, which is used to obtain the initial underlying state information of the target control, and determine whether the initial underlying state of the target control is consistent with the first page state based on the initial underlying state information; if they are consistent, the manual control signal corresponding to the user operation is ignored; if they are inconsistent, the step of issuing the manual control signal corresponding to the user operation is executed.
[0120] Optionally, the control state control device 600 also includes: a control controllability verification module, used to determine whether the target control is in the adjustment process from one underlying state to another underlying state; if the target control is in the adjustment process, the manual control signal corresponding to the user operation is ignored; if the target control is not in the adjustment process, the step of sending the manual control signal corresponding to the user operation is executed.
[0121] Optionally, the first timing operation and the second timing operation are implemented based on a preset timer.
[0122] Optionally, the control delay module 620 is also used to determine whether there is a second timing operation in progress, the second timing operation being initiated based on the last user operation on the target control; if so, the first timing operation is initiated for the user operation, and the preset timer initiated based on the second timing operation is reset based on the first timing operation; if not, the first timing operation is initiated for the user operation, and the preset timer initiated based on the first timing operation is started.
[0123] Optionally, the target control includes at least two state effects; the user operation includes at least one of a click operation, a voice operation, and a sliding operation.
[0124] See also Figure 7 , Figure 7 A schematic diagram of the structure of a vehicle provided in an embodiment of the present application. Figure 7 As shown, the vehicle 700 may include: at least one vehicle processor 701 , at least one network interface 704 , a user interface 703 , a memory 705 , and at least one communication bus 702 .
[0125] The communication bus 702 is used to realize the connection and communication between these components.
[0126] The user interface 703 may include a display screen (Display) and a camera (Camera), and the optional user interface 703 may also include a standard wired interface and a wireless interface.
[0127] The network interface 704 may optionally include a standard wired interface or a wireless interface (such as a WI-FI interface).
[0128] Among them, the vehicle processor 701 may include one or more processing cores. The vehicle processor 701 uses various interfaces and lines to connect various parts of the entire vehicle 700, and executes various functions and processes data of the vehicle 700 by running or executing instructions, programs, code sets or instruction sets stored in the memory 705, and calling data stored in the memory 705. Optionally, the vehicle processor 701 can be implemented in at least one hardware form of digital signal processing (Digital Signal Processing, DSP), field programmable gate array (Field-Programmable Gate Array, FPGA), and programmable logic array (Programmable Logic Array, PLA). The vehicle processor 701 can integrate one or a combination of a central processing unit (Central Processing Unit, CPU), a graphics processing unit (Graphics Processing Unit, GPU) and a modem. Among them, the CPU mainly processes the operating system, user interface and application programs; the GPU is responsible for rendering and drawing the content to be displayed on the display screen; the modem is used to process wireless communications. It can be understood that the above-mentioned modem may not be integrated into the vehicle processor 701, and it can be implemented separately through a chip.
[0129] The memory 705 may include a random access memory (RAM) or a read-only memory (ROM). Optionally, the memory 705 includes a non-transitory computer-readable storage medium. The memory 705 may be used to store instructions, programs, codes, code sets or instruction sets. The memory 705 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 at least one function (such as a touch function, a sound playback function, an image playback function, etc.), instructions for implementing the above-mentioned method embodiments, etc.; the data storage area may store data involved in the above-mentioned method embodiments, etc. The memory 705 may optionally be at least one storage device located away from the aforementioned vehicle processor 701. As Figure 7 As shown, the memory 705 as a computer storage medium may include an operating system, a network communication module, a user interface module, and a control state control program.
[0130] exist Figure 7 In the vehicle 700 shown, the user interface 703 is mainly used to provide an input interface for the user and obtain the data input by the user; and the vehicle processor 701 can be used to call the control state control program stored in the memory 705, and specifically perform the following operations:
[0131] In response to a user operation on a target control, displaying a first page state triggered by the user operation on the target control on the page;
[0132] Initiate a first timing operation for a user operation and cancel a second timing operation initiated based on a previous user operation for a target control;
[0133] When the timing duration of the first timing operation reaches a preset duration, a manual control signal corresponding to the user operation is sent, and underlying state information of the target control automatically returned by the target control in response to the manual control signal is received;
[0134] Determine the second page state of the target control in the page at the current moment, and determine whether the underlying state of the target control is consistent with the second page state based on the underlying state information;
[0135] If they are inconsistent, an automatic control signal corresponding to the second page state is sent down, so that the target control adjusts the underlying state to be consistent with the second page state in response to the automatic control signal.
[0136] In some embodiments, after executing the execution of receiving the underlying status information of the target control automatically returned after the target control responds to the manual control signal, the vehicle processor 701 also specifically performs the following steps: determining whether there is a second timing task being timed; after receiving the callback status, determining whether there is a timing operation being timed at the current moment; if there is a timing operation being timed, not responding to the underlying status information; if there is no timing operation being timed, executing the step of determining the second page state of the target control in the page at the current moment.
[0137] In some embodiments, before executing and sending the manual control signal corresponding to the user operation, the vehicle processor 701 also specifically performs the following steps: obtaining the initial underlying state information of the target control, and determining whether the initial underlying state of the target control is consistent with the first page state based on the initial underlying state information; if they are consistent, ignoring the manual control signal corresponding to the user operation; if they are inconsistent, executing the step of sending the manual control signal corresponding to the user operation.
[0138] In some embodiments, after the timing duration of the first timing operation reaches a preset duration, the vehicle processor 701 further specifically performs the following steps: determining whether the target control is in the process of adjusting from one underlying state to another underlying state; if the target control is in the process of adjusting, ignoring the manual control signal corresponding to the user operation; if the target control is not in the process of adjusting, executing the step of sending the manual control signal corresponding to the user operation.
[0139] In some embodiments, the first timing operation and the second timing operation are implemented based on a preset timer.
[0140] In some embodiments, when the vehicle processor 701 executes a first timing operation to start a user operation and cancels a second timing operation started based on the last user operation on the target control, it specifically performs the following steps: determine whether there is a second timing operation in progress, the second timing operation being started based on the last user operation on the target control; if so, start the first timing operation for the user operation, and reset the preset timer started based on the second timing operation based on the first timing operation; if not, start the first timing operation for the user operation, and start the preset timer based on the first timing operation.
[0141] In some embodiments, the target control includes at least two state effects; the user operation includes at least one of a click operation, a voice operation, and a sliding operation.
[0142] An embodiment of the present application also provides a computer-readable storage medium, in which a computer program code is stored. When the computer program code is executed on a computer, the computer executes the above-mentioned related method steps to implement a method for controlling a control state provided in the above embodiment.
[0143] The embodiment of the present application also provides a computer program product. When the computer program product is run on a computer, the computer is caused to execute the above-mentioned related steps to implement a method for controlling the state of a control provided in the above embodiment.
[0144] Among them, the device, computer-readable storage medium, computer program product or chip provided in the embodiments of the present application are all used to execute the corresponding methods provided above. Therefore, the beneficial effects that can be achieved can refer to the beneficial effects in the corresponding methods provided above and will not be repeated here.
[0145] In the several embodiments provided in the present application, it should be understood that the disclosed devices and methods can be implemented in other ways. For example, the device embodiments described above are only schematic. For example, the division of modules is only a logical function division. There may be other division methods in actual implementation, such as multiple modules or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or modules, which can be electrical, mechanical or other forms.
[0146] The modules described as separate components may or may not be physically separated, and the components shown as modules may or may not be physical modules, that is, they may be located in one place or distributed on multiple network modules. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
[0147] In the above embodiments, it can be implemented in whole or in part by software, hardware, firmware or any combination thereof. When implemented using software, it can be implemented in whole or in part in the form of a computer program product. The above computer program product includes one or more computer instructions. When the above computer program instructions are loaded and executed on a computer, the above process or function according to the embodiment of this specification is generated in whole or in part. The above computer can be a general-purpose computer, a special-purpose computer, a computer network, or other programmable devices. The above computer instructions can be stored in a computer-readable storage medium or transmitted by the above computer-readable storage medium. The above computer instructions can be transmitted from a website site, computer, server or data center to another website site, computer, server or data center by wired (e.g., coaxial cable, optical fiber, digital subscriber line (Digital Subscriber Line, DSL)) or wireless (e.g., infrared, wireless, microwave, etc.) mode. The above computer-readable storage medium can be any available medium that a computer can access or a data storage device such as a server, data center, etc. that contains one or more available media integrated. The above-mentioned available media can be magnetic media (for example, floppy disks, hard disks, tapes), optical media (for example, digital versatile discs (DVD)), or semiconductor media (for example, solid state drives (SSD)), etc.
[0148] It should be noted that, for the above-mentioned method embodiments, for the sake of simplicity of description, they are all expressed as a series of action combinations, but those skilled in the art should be aware that the present application is not limited by the described action sequence, because according to the present application, certain steps can be performed in other sequences or simultaneously. Secondly, those skilled in the art should also be aware that the embodiments described in the specification are all preferred embodiments, and the actions and modules involved are not necessarily required by the present application.
[0149] In the above embodiments, the description of each embodiment has its own emphasis. For parts that are not described in detail in a certain embodiment, reference can be made to the relevant descriptions of other embodiments.
[0150] The above is a description of a control state control method, device, storage medium and vehicle provided in the present application. For technicians in this field, according to the ideas of the embodiments of the present application, there may be changes in the specific implementation methods and application scopes. In summary, the content of this specification should not be understood as a limitation on the present application.
Claims
1. A control state control method, characterized in that: The method comprises: In response to a user operation on a target control, displaying a first page state triggered by the user operation on the target control on a page; Initiate a first timing operation for the user operation and cancel a second timing operation initiated based on a previous user operation for the target control; When the timing duration of the first timing operation reaches a preset duration, a manual control signal corresponding to the user operation is issued, and underlying state information of the target control is automatically returned by the target control in response to the manual control signal; Determine a second page state of the target control in the page at a current moment, and determine whether the underlying state of the target control is consistent with the second page state based on the underlying state information; If they are inconsistent, an automatic control signal corresponding to the second page state is sent down, so that the target control adjusts the underlying state to be consistent with the second page state in response to the automatic control signal.
2. The method according to claim 1, characterized in that After receiving the bottom state information of the target control automatically returned by the target control in response to the manual control signal, the method further includes: After receiving the callback status, determine whether there is a timing operation in progress at the current moment; If there is a timing operation in progress, the bottom layer status information is not responded to; If there is no timing operation in progress, the step of determining the second page state of the target control in the page at the current moment is performed.
3. The method according to claim 1, characterized in that Before sending the manual control signal corresponding to the user operation, the method further includes: Acquire initial bottom-level state information of the target control, and determine whether the initial bottom-level state of the target control is consistent with the first page state based on the initial bottom-level state information; If they are consistent, the manual control signal corresponding to the user operation is ignored; If they are inconsistent, the step of sending the manual control signal corresponding to the user operation is executed.
4. The method according to claim 1, characterized in that: When the timing duration of the first timing operation reaches a preset duration, the method further includes: Determining whether the target control is in the process of adjusting from one underlying state to another underlying state; If the target control is in the process of adjustment, the manual control signal corresponding to the user operation is ignored; If the target control is not in the adjustment process, the step of sending the manual control signal corresponding to the user operation is performed.
5. The method according to claim 1, characterized in that: The first timing operation and the second timing operation are implemented based on a preset timer.
6. The method according to claim 5, characterized in that The starting a first timing operation for the user operation and canceling a second timing operation started based on a previous user operation for the target control includes: Determine whether there is a second timing operation in progress, where the second timing operation is initiated based on a previous user operation on the target control; If yes, start a first timing operation for the user operation, and reset a preset timer started based on the second timing operation based on the first timing operation; If not present, a first timing operation is started for the user operation, and the preset timer is started based on the first timing operation.
7. The method according to claim 1, characterized in that The target control includes at least two state effects; the user operation includes at least one of a click operation, a voice operation, and a sliding operation.
8. A control state control device, characterized in that: The device comprises: An operation module, for responding to a user operation on a target control, and displaying a first page state triggered by the user operation on the target control on the page; A control delay module, used to start a first timing operation for the user operation and cancel a second timing operation started based on the last user operation for the target control; a signal sending module, configured to send a manual control signal corresponding to the user operation when the timing duration of the first timing operation reaches a preset duration, and receive the underlying state information of the target control automatically returned by the target control in response to the manual control signal; A state checking module, used to determine the second page state of the target control in the page at the current moment, and judge whether the underlying state of the target control is consistent with the second page state based on the underlying state information; The automatic adjustment module is used to send an automatic control signal corresponding to the second page state if there is inconsistency, so that the target control adjusts the underlying state to be consistent with the second page state in response to the automatic control signal.
9. A vehicle, characterized in that: The vehicle comprises: A memory for storing executable program codes; A processor, configured to call and run the executable program code from the memory, so that the vehicle executes the method according to any one of claims 1 to 7.
10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores 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
Cited By
Mutual exclusion function control method and device, vehicle and storage medium
CN119781324A
A mutual exclusion function control method, device, vehicle and storage medium
CN119781324B
Interface updating method and device, vehicle and storage medium
CN119883312A
