Opponent piece state adjusting method and device, vehicle and storage medium
By cumulative user operation adjustment values in intelligent driving vehicles, waiting for the feedback information of the underlying handpiece and then issuing it at one time, the abnormal jump problem during the adjustment of the underlying handpiece status is solved, and the adjustment effect and accuracy are improved.
Patent Information
- Application Number
- CN202411160787.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-08-22
- Publication Date
- 2024-12-13
AI Technical Summary
In intelligent driving vehicles, abnormal jumps are prone to occur when the underlying counterparts are adjusted, resulting in errors in the calculation of control commands and inability to accurately respond to user operations.
By receiving the accumulated adjustment value during user operations, waiting for the next feedback information of the underlying device to issue the accumulated value at one time, ensuring that the adjustment command is adjusted based on the latest reference value, and avoiding abnormal state jumps caused by using outdated reference value.
It effectively avoids abnormal jumps caused by the inconsistency between the reference value and the actual value of the underlying counterpart, and improves the adjustment effect and accuracy of user operations.
Smart Images

Figure CN119126974A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of vehicles, and more specifically, to a method, device, vehicle and storage medium for adjusting the state of a handpiece in the field of vehicles. Background Art
[0002] At present, with the rapid development of intelligent driving, various types of vehicles are committed to providing users with intelligent control solutions, so that users can quickly control various modes and functions in the vehicle by operating controls. Various functions in the vehicle are often implemented by relying on various underlying counterparts. Each underlying counterpart generally actively reports its current status at a fixed frequency to facilitate the vehicle to monitor whether the status of the counterpart is normal in real time. In order to allow the underlying counterpart to respond to the control instructions corresponding to the user's operation as quickly as possible, when the user interacts with the control, the corresponding control instructions are usually issued immediately. The target control amount in the control instruction is prone to calculation errors due to the feedback time difference of the counterpart, resulting in abnormal jumps in the status of the underlying counterpart. Summary of the invention
[0003] The present application provides a method, device, vehicle and storage medium for adjusting the state of a handpiece, which can solve the technical problem in the related art that abnormal jumps are prone to occur when adjusting the state of a controlled object.
[0004] In a first aspect, a method for adjusting a state of a handpiece is provided, the method comprising:
[0005] When receiving a user operation on a target control, determining an adjustment value corresponding to the user operation, and accumulating the adjustment value into unsent adjustment values;
[0006] When receiving the underlying status information automatically fed back by the underlying handpiece corresponding to the target control, determining the current reference value of the underlying handpiece based on the underlying status information, wherein the underlying handpiece is set to automatically feed back the underlying status information once every first preset time period;
[0007] The target value is obtained based on the above-mentioned current reference value and the above-mentioned unissued adjustment value, and the adjustment instruction corresponding to the above-mentioned target value is issued to the above-mentioned underlying counterpart and the above-mentioned unissued adjustment value is reset to zero, so that the above-mentioned underlying counterpart is adjusted to the control state corresponding to the above-mentioned target value.
[0008] The beneficial effects brought about by the technical solution of the first aspect above include at least the following: whenever a user operation occurs, the corresponding adjustment value is not directly issued, but the adjustment value is accumulated before the next feedback information from the opponent arrives, and all the currently accumulated adjustment values are issued immediately after the next feedback information from the opponent arrives, so that each adjustment value is issued based on the latest feedback information, which means that at the moment of issuing the target value, the reference value based on the adjustment instruction is consistent with the actual reference value of the underlying opponent at this time, thereby avoiding abnormal jumps in the underlying state of the opponent due to the inconsistency between the reference value used in the adjustment instruction and the current actual reference value, making the adjustment effect of the target control smoother.
[0009] In some possible implementations, the above-mentioned accumulation of the above-mentioned adjustment value into the unissued adjustment value includes: determining whether the state of the first reporting flag bit is the first reporting flag state; if the state of the above-mentioned first reporting flag bit is the first reporting flag state, determining the above-mentioned adjustment value as the unissued adjustment value through the adjustment value counter, and setting the state of the above-mentioned first reporting flag bit to the non-first reporting flag state; if the state of the above-mentioned first reporting flag bit is the non-first reporting flag state, accumulating the above-mentioned adjustment value into the unissued adjustment value through the adjustment value counter; the above-mentioned issuance of the adjustment instruction corresponding to the above-mentioned target value to the above-mentioned underlying counterpart and resetting the above-mentioned unissued adjustment value to zero includes: issuing the adjustment instruction corresponding to the above-mentioned target value to the above-mentioned underlying counterpart, and resetting the above-mentioned first reporting flag bit to the first reporting flag state, so that the above-mentioned unissued adjustment value is reset to zero.
[0010] Through the technical solutions in the above possible implementation methods, the first reporting flag is used to distinguish between the first operation and the non-first operation occurring in an instruction issuance cycle, and the adjustment value counter is used to accumulate the adjustment values of multiple operations. At the same time, after each feedback of the underlying status information to the opponent, the status of the first reporting flag is reset and the adjustment value counter is cleared, waiting for the user operation in the next instruction issuance cycle.
[0011] In some possible implementations, the target control is configured to report a user operation once every second preset time period, and the second preset time period is different from the first preset time period.
[0012] Through the technical solutions in the above possible implementation methods, in order to facilitate the sending of user operations, the target control can be set to report user operations once every second preset time period, and the second preset time period can be shorter than the feedback time period of the opponent, so that the target control can send user operations in a shorter unit time.
[0013] In some possible implementations, the method further includes: if the underlying status information fed back by the underlying counterpart is not received within a preset period of time, a underlying status acquisition request is sent to the underlying counterpart, so that the underlying counterpart returns the currently corresponding underlying status information based on the underlying status acquisition request.
[0014] Through the technical solutions in the above possible implementation methods, due to reasons such as signal link failure, the underlying counterpart may have problems such as feedback information loss, resulting in the vehicle processor not receiving feedback information from the underlying counterpart. In this case, when the underlying status information fed back by the underlying counterpart is not received for more than a preset period of time, the vehicle processor can actively send a request to the underlying counterpart to obtain the underlying status, thereby obtaining the current underlying status of the underlying counterpart and performing a calibration based on the current underlying status to ensure the normal operation of related functions in the vehicle.
[0015] In some possible implementations, the method further includes: if it is monitored that the time duration for which the user stops the user operation exceeds a preset time duration, a bottom-level status acquisition request is sent to the bottom-level counterparty, so that the bottom-level counterparty returns the current corresponding bottom-level status information based on the bottom-level status acquisition request.
[0016] Through the technical solutions in the above possible implementation methods, when the user operation is completed, in order to avoid the loss of user operation, the current underlying state can be actively obtained and calibrated from the underlying counterpart when the user operation stops for more than a preset time, so as to avoid control errors caused by the loss of user operation.
[0017] In some possible implementations, the underlying counterpart is also configured to send the underlying status information to the user interaction display simultaneously when automatically feeding back the underlying status information, so that the user interaction display displays a user interaction interface based on the underlying status information.
[0018] Through the technical solutions in the above possible implementation methods, while the underlying counterpart is feeding back the current underlying status information, the adjustment results can also be synchronously fed back to the user interaction display, so that the current status of the underlying counterpart can be displayed on the user interaction interface corresponding to the interactive display, allowing the user to intuitively see the adjustment results of the user operation.
[0019] In some possible implementations, the target control is a scroll wheel control, the user operation is a scroll operation, and the scroll operation is used to adjust the height of the head-up display interface, and the underlying hand control is used to control the height of the head-up display interface.
[0020] Through the technical solutions in the above possible implementation methods, the target control can specifically be a scroll wheel, and the user operation performed on the scroll wheel can be a scrolling operation. When the user performs the scrolling operation, the height of the head-up display interface can be adjusted, and the corresponding underlying hand component is the hand component that controls the height of the head-up display interface.
[0021] In a second aspect, a device for adjusting the state of a hand piece is provided, the device comprising:
[0022] A user operation receiving module, configured to, when receiving a user operation on a target control, determine an adjustment value corresponding to the user operation, and accumulate the adjustment value into an unsent adjustment value;
[0023] A reference step number determination module, configured to determine a current reference value of the underlying handpiece based on the underlying state information automatically fed back by the underlying handpiece corresponding to the target control when receiving the underlying state information automatically fed back by the underlying handpiece, wherein the underlying handpiece is configured to automatically feed back the underlying state information once every first preset time period;
[0024] The instruction calculation and issuance module is used to obtain the target value based on the above-mentioned current reference value and the above-mentioned unissued adjustment value, and to issue the adjustment instruction corresponding to the above-mentioned target value to the above-mentioned underlying counterpart and reset the above-mentioned unissued adjustment value to zero, so that the above-mentioned underlying counterpart is adjusted to the control state corresponding to the above-mentioned target value.
[0025] 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.
[0026] 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.
[0027] 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
[0028] Figure 1 An exemplary system architecture diagram of a method for adjusting the state of a handpiece provided in an embodiment of the present application;
[0029] Figure 2 A flowchart of a method for adjusting the state of a handpiece provided in an embodiment of the present application;
[0030] Figure 3 A flowchart of a method for adjusting the state of a handpiece provided in an embodiment of the present application;
[0031] Figure 4 A schematic diagram of the execution logic of a method for adjusting the state of a handpiece provided in an embodiment of the present application;
[0032] Figure 5 A structural block diagram of a device for adjusting the state of a hand piece provided in an embodiment of the present application;
[0033] Figure 6 A schematic diagram of the structure of a vehicle provided in an embodiment of the present application. DETAILED DESCRIPTION
[0034] 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.
[0035] 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.
[0036] 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.
[0037] At present, with the rapid development of intelligent driving, various types of vehicles are committed to providing users with intelligent control solutions, so that users can quickly control various modes and functions in the vehicle by operating controls. Various functions in the vehicle are often implemented by relying on various underlying counterparts. Each underlying counterpart generally actively reports its current status at a fixed frequency to facilitate the vehicle to monitor whether the status of the counterpart is normal in real time. In order to allow the underlying counterpart to respond to the adjustment instructions corresponding to the user's operation as quickly as possible, when the user interacts with the control, the vehicle usually directly generates the corresponding adjustment instructions for the operation information reported by the control, and immediately issues the adjustment instructions so that the underlying counterpart can quickly adjust to the state corresponding to the user's operation.
[0038] Generally speaking, there are underlying counterparts in vehicles that use various control methods. When controlling some underlying counterparts, it is necessary to determine the adjustment value based on the user operation, and then calculate the target value based on the reference value returned by the underlying counterpart that has been received at that time, and then send an adjustment instruction to instruct the underlying counterpart to adjust to the target value, so that the underlying counterpart can adjust based on the target value indicated in the adjustment instruction. Then for this type of underlying counterpart, every time a user operation arrives, the state value of the last feedback from the counterpart is used as the reference value, and the current adjustment value is added to it to obtain the target value and send it down. However, the actual state of the underlying counterpart at this time may have changed compared to the state of the last feedback, which causes the target value to be calculated incorrectly due to the feedback time difference of the counterpart, resulting in abnormal jumps in the state of the underlying counterpart, and the final state of the counterpart does not meet the user's operation intention.
[0039] For ease of understanding, the specific principle of the above abnormal jump is described by taking the interactive process of adjusting the height of the head-up display interface in the vehicle as an example. In the vehicle, the head-up display interface can be displayed on the front windshield or other carriers above the dashboard, so that the user can view the basic status of the vehicle at eye level during driving, thereby improving the user's driving experience. The height of the head-up display interface adapted to different users may be different, so the user can adjust the height of the head-up display interface by rolling the roller control used to adjust the height of the head-up display interface. The underlying handpiece that controls the head-up display interface actively feeds back the current height state to the processor every 200 milliseconds as the reference step number to ensure that the vehicle system can grasp the accurate height of the head-up display interface in real time. When the user performs a scrolling operation, the roller reports the scrolling steps of each user operation to the vehicle processor, and the processor directly superimposes the scrolling steps on the reference step number received last time to obtain the target step number, and sends an adjustment instruction to the handpiece with the target step number, so that the handpiece is adjusted to the height state corresponding to the target step number.
[0040] The problem is that when the scroll wheel continuously reports the scrolling steps corresponding to multiple adjustment operations in the time period between two feedbacks from the handpiece, if these scrolling steps are accumulated to the last valid height feedback, it will cause the calculation deviation of the target step number. For example, after receiving feedback with a reference step number a, if within the next 200ms, the scroll wheel first reports the adjustment step number b, the processor adds the adjustment step number b to the reference step number a to obtain the target step number b+a, and sends the adjustment instruction corresponding to the target step number b+a; then, in the absence of new height feedback, the scroll wheel reports the adjustment step number c again, and the processor also adds the adjustment step number c to the existing reference step number a again, instead of calculating based on the latest underlying reference step number b+a, resulting in the latest target step number being calculated as a+c, instead of the correct a+b+c. Finally, the height displayed on the head-up display interface will show abnormal jumps, which violates the user's intention of smooth and continuous adjustment, that is, the height change expected by the user should be cumulative and continuous, rather than fragmentary adjustment based on outdated information.
[0041] Therefore, an embodiment of the present application provides a method for adjusting the state of a handpiece to solve the technical problem that abnormal jumps are prone to occur when adjusting the state of the controlled object.
[0042] 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.
[0043] 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.
[0044] 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.
[0045] In an embodiment of the present application, when vehicle 101 receives a user operation on a target control, it determines an adjustment value corresponding to the user operation and accumulates the adjustment value into an unissued adjustment value; then, when vehicle 101 receives the underlying status information automatically fed back by the underlying counterpart corresponding to the target control, it determines the current reference value of the underlying counterpart based on the underlying status information, wherein the underlying counterpart is set to automatically feed back the underlying status information once every first preset time period; after determining the current latest reference step number and the adjustment value to be adjusted, vehicle 101 can further obtain a target value based on the current reference value and the unissued adjustment value, send the adjustment instruction corresponding to the target value to the underlying counterpart and reset the unissued adjustment value to zero, so that the underlying counterpart is adjusted to the control state corresponding to the target value.
[0046] In the embodiment of the present application, the target control may be a control such as "height adjustment control of the head-up display interface", "window lift control", "air conditioning switch", etc., 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 "GPS switch", and the underlying state needs to communicate with the corresponding server 103 to be determined. Then, if it is necessary to establish a communication link between the vehicle 101 and 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.
[0047] Similarly, in addition to the exemplary vehicle 101 in the embodiment of the present application, the handpiece state adjustment 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 handpiece state adjustment method. The vehicle 101 for executing the handpiece state adjustment method provided in the embodiment of the present application should not limit the electronic device that implements the handpiece state adjustment method.
[0048] 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.
[0049] See also Figure 2 , Figure 2 A flowchart of a method for adjusting the state of a handpiece provided in an embodiment of the present application. The execution subject of the embodiment of the present application can be a vehicle that executes the adjustment of the state of the handpiece, or a processor in a vehicle that executes the method for adjusting the state of the handpiece, or an opponent state adjustment service in a vehicle that executes the method for adjusting the state of the handpiece. For the convenience of description, the specific execution process of the method for adjusting the state of the handpiece is introduced below by taking the execution subject being a processor in a vehicle as an example.
[0050] like Figure 2 As shown, the method for adjusting the state of the hand piece may at least include:
[0051] S202: When a user operation on a target control is received, an adjustment value corresponding to the user operation is determined, and the adjustment value is accumulated into an unsent adjustment value.
[0052] Optionally, since the underlying counterparty feeds back underlying status information at a certain frequency, in order to avoid using outdated underlying information as a reference value and obtaining an erroneous target value, the adjustment value corresponding to each user operation may not be issued first, but accumulated. When the underlying counterparty feeds back new underlying status information next time, the current reference value is determined based on the latest underlying status information, and all accumulated adjustment values are issued based on the current reference value. In this way, the reference value on which the target value issued at this time is based is consistent with the actual reference value of the underlying counterparty at this time, thereby avoiding abnormal jumps caused by outdated reference values as the basis.
[0053] Specifically, when the user operates the target control, the vehicle receives and responds to the user operation on the target control, and can further determine the adjustment value corresponding to the user operation based on the user operation signal reported by the target control. If the adjustment value is directly issued based on the baseline value of the known opponent in the last feedback, the target value issued may be wrong because the known baseline value is outdated and does not conform to the actual state of the opponent at this moment. In this case, the adjustment value may not be issued first, but accumulated into the unissued adjustment value until the next feedback arrives, and all accumulated unissued adjustment values will be issued uniformly based on the latest baseline value.
[0054] In a feasible implementation, the target control may be a wheel control located on the vehicle steering wheel, which is used to adjust the height of the vehicle head-up display interface. Specifically, the user may lower the height of the head-up display interface by scrolling the wheel control downward, and raise the height of the head-up display interface by scrolling the wheel control upward. Considering that when the wheel is scrolled, the user may scroll quickly or slowly, if the signal is sent according to the number of scrolling steps, the frequency of signal sending cannot be stably controlled, which is also not conducive to the response of the handpiece and various signal transmissions. Therefore, the target control can be set to report the user operation once every second preset time. It should also be noted that the feedback cycle of the handpiece is determined as the first preset time, and the reporting cycle of the target control is determined as the second preset time. The first preset time of the handpiece is generally slightly longer, while the target control that directly interacts with the user requires a shorter reporting cycle to facilitate the timely capture and processing of the user operation. Therefore, the second preset time can be different from the first preset time. Preferably, the second preset time can be slightly shorter than the first preset time, for example, the first preset time is 200 milliseconds, and the second preset time is 50 milliseconds.
[0055] S204. When receiving the underlying status information automatically fed back by the underlying counterpart corresponding to the target control, determine the current reference value of the underlying counterpart based on the underlying status information, wherein the underlying counterpart is set to automatically feed back the underlying status information once every first preset time period.
[0056] Optionally, in a setting where the underlying opponent automatically feeds back underlying status information every first preset time period, each time the vehicle receives the underlying status information automatically fed back by the underlying opponent corresponding to the target control, the current baseline value of the underlying opponent can be determined based on the underlying status information. The current baseline value determined at this time is the latest baseline value at this moment. On the basis of this baseline value, the target value is calculated and the corresponding adjustment instructions are generated in combination with all accumulated unissued adjustment values, so that the opponent can obtain more accurate control effects in the future.
[0057] S206. Obtain a target value based on the current reference value and the unissued adjustment value, issue an adjustment instruction corresponding to the target value to the underlying counterpart and reset the unissued adjustment value to zero, so that the underlying counterpart is adjusted to a control state corresponding to the target value.
[0058] Optionally, the target value can be obtained based on the current baseline value and the unissued adjustment value. The specific method of calculating the target value can be to superimpose the unissued adjustment value on the current baseline value, and issue the adjustment instruction corresponding to the target value to the underlying counterpart, so that the underlying counterpart adjusts to the control state corresponding to the target value according to the adjustment instruction. At the same time, the vehicle also needs to reset the unissued adjustment value to zero after the unissued adjustment value is issued, so as to facilitate the accumulation of adjustment values for the next cycle. For example, when the target control is a roller control, and is combined with the corresponding underlying counterpart to adjust the user interaction interface, the underlying counterpart can also be set to send the underlying status information to the user interaction display while automatically feeding back the underlying status information, so that the user interaction display displays the user interaction interface based on the underlying status information. Preferably, the user interaction interface can be a head-up display interface of the vehicle.
[0059] In an embodiment of the present application, a method for adjusting the state of an opponent is provided. When a user operation on a target control is received, an adjustment value corresponding to the user operation is determined, and the adjustment value is accumulated into the unissued adjustment value; when underlying state information automatically fed back by an underlying opponent corresponding to the target control is received, a current reference value of the underlying opponent is determined based on the underlying state information, wherein the underlying opponent is set to automatically feed back the underlying state information once every first preset time period; a target value is obtained based on the current reference value and the unissued adjustment value, an adjustment instruction corresponding to the target value is issued to the underlying opponent and the unissued adjustment value is reset to zero, so that the underlying opponent is adjusted to the control state corresponding to the target value. Whenever a user operation occurs, the corresponding adjustment value is not issued directly, but the adjustment value is accumulated before the next feedback information from the handpiece arrives. After the next feedback information from the handpiece arrives, all the currently accumulated adjustment values are issued immediately. In this way, each adjustment value is issued based on the latest feedback information, which means that at the moment of issuing the target value, the reference value based on the adjustment instruction is consistent with the actual reference value of the underlying handpiece at this time, thereby avoiding abnormal jumps in the underlying state of the handpiece due to the inconsistency between the reference value used in the adjustment instruction and the current actual reference value, making the adjustment effect of the target control smoother.
[0060] See also Figure 3 , Figure 3 A flowchart of a method for adjusting the state of a handpiece provided in an embodiment of the present application.
[0061] like Figure 3As shown, the method for adjusting the state of the hand piece may at least include:
[0062] S302: When a user operation on a target control is received, an adjustment value corresponding to the user operation is determined.
[0063] Optionally, to facilitate the understanding of the specific steps of the handpiece adjustment method, please refer to Figure 4 , Figure 4 A schematic diagram of the execution logic of a method for adjusting the state of a handpiece provided in an embodiment of the present application. Figure 4 As shown, for the vehicle, the target control facing the user and accepting the user's interactive operation, and the counterpart in the underlying system, all need to transmit signals with the vehicle processor through the CAN bus to send and receive information and instructions, etc. Then, in the embodiment of the present application, when the user operates the target control, the target control sends the user's user operation on the target control to the vehicle processor through the CAN bus. When the vehicle processor receives the user's user operation on the target control, it can determine the adjustment value corresponding to the user operation.
[0064] S304: Determine whether the state of the first reporting flag is the first reporting flag state.
[0065] Alternatively, if Figure 4 As shown, when receiving a user operation, the corresponding adjustment values need to be accumulated first, and after the last accumulated unissued adjustment value is issued, the count of the unissued adjustment value will be reset to zero, and the adjustment value corresponding to the first reported user operation in the accumulation period after the reset will be directly used as the unissued adjustment value, and the subsequent non-first adjustment values in the accumulation period will be accumulated on this basis. Then for the vehicle processor, the first reporting flag can be set, and the state of the first reporting flag can be used to determine whether the user operation reported by the target control each time is the first report, so as to accurately accumulate the unissued adjustment amount.
[0066] S306: If the state of the first reporting flag is the first reporting flag state, determine the adjustment value as the unissued adjustment value through the adjustment value counter, and set the state of the first reporting flag to the non-first reporting flag state.
[0067] Optionally, see Figure 4, when judging whether the state of the first report flag is the first report flag state, if the state of the first report flag is the first report flag state, it means that the user operation reported by the target control this time is the first reported user operation after the adjustment value is reset, then the adjustment value corresponding to the user operation can be determined as the unissued adjustment value through the adjustment value counter. In addition, it is also necessary to set the state of the first report flag to the non-first report flag state, so that when the subsequent target control reports the user operation, these non-first user operations can be identified, and the adjustment value can be accumulated based on the existing unissued adjustment value.
[0068] S308: If the state of the first reporting flag is the non-first reporting flag state, the adjustment value is accumulated into the unsent adjustment value through the adjustment value counter.
[0069] It can be understood that when judging whether the state of the first reporting flag is the first reporting flag state, if the state of the first reporting flag is the non-first reporting flag state, it means that the user operation reported by the target control this time is not the first user operation reported after the adjustment value is reset. The adjustment value counter can be used to accumulate the adjustment value that has not been issued to ensure the correct counting of all adjustment values within the accumulation period.
[0070] S310. When receiving the underlying status information automatically fed back by the underlying counterpart corresponding to the target control, determine the current reference value of the underlying counterpart based on the underlying status information, wherein the underlying counterpart is set to automatically feed back the underlying status information once every first preset time period.
[0071] Regarding step S310, please refer to the detailed description in step S204, which will not be repeated here.
[0072] S312. Obtain the target value based on the current reference value and the unissued adjustment value, issue the adjustment instruction corresponding to the target value to the underlying counterpart, and reset the first reporting flag to the first reporting flag state so that the unissued adjustment value is reset to zero.
[0073] Optionally, see Figure 4, the underlying counterpart automatically feeds back the underlying status information to the vehicle processor via the CAN bus every first preset time. Whenever the processor receives the underlying status information automatically fed back by the underlying counterpart corresponding to the target control, the current reference value of the underlying counterpart can be determined based on the underlying status information. The current reference value determined at this time is the latest reference value at this moment. Based on the current reference value received this time, all the accumulated adjustment values that have not been issued can be superimposed to obtain the target value, and the adjustment instruction corresponding to the target value can be issued to the underlying counterpart, so that the underlying counterpart is adjusted to the control state corresponding to the target value. In addition, the first report flag is reset to the first report flag state at the same time, so that the unissued adjustment value is reset to zero. On the other hand, when the underlying counterpart automatically feeds back the underlying status information, it also feeds back the underlying status information to the corresponding user interaction display at the same time, so that the user interaction display displays the user interaction interface based on the underlying status information, allowing the user to intuitively see the adjustment effect corresponding to his operation.
[0074] S314: If the underlying state information fed back by the underlying counterpart is not received within a preset time period, a underlying state acquisition request is sent to the underlying counterpart, so that the underlying counterpart returns the currently corresponding underlying state information based on the underlying state acquisition request.
[0075] Optionally, in a vehicle, due to reasons such as signal link failure, the underlying counterpart may experience problems such as feedback information loss, resulting in the vehicle processor failing to receive feedback information from the underlying counterpart according to the original agreed rules. In this case, when the underlying status information fed back by the underlying counterpart is not received for a preset period of time, the vehicle processor can proactively send a request to the underlying counterpart to obtain the underlying status, thereby obtaining the current underlying status of the underlying counterpart and performing a calibration based on the current underlying status to ensure the normal operation of related functions in the vehicle.
[0076] S316: If it is monitored that the duration of the user stopping the user operation exceeds the preset duration, a bottom-level state acquisition request is sent to the bottom-level counterpart, so that the bottom-level counterpart returns the current corresponding bottom-level state information based on the bottom-level state acquisition request.
[0077] Similarly, when the user is performing an operation, in order to promptly determine that the user operation is lost, when it is detected that the time for which the user stops the operation exceeds the preset time, the underlying counterpart can actively send a bottom-level status acquisition request to the bottom-level counterpart, so that the bottom-level counterpart returns the current corresponding bottom-level status information based on the bottom-level status acquisition request, thereby achieving calibration and avoiding control errors caused by the loss of user operation.
[0078] In an embodiment of the present application, a method for adjusting the state of a handpiece is provided, which distinguishes the first operation and the non-first operation in a command issuing cycle by the first reporting flag, and realizes the adjustment value accumulation of multiple operations by the adjustment value counter, and resets the state of the first reporting flag and clears the adjustment value counter each time the handpiece feeds back the underlying state information, waiting for the user operation in the next command issuing cycle. When the underlying state information fed back by the underlying handpiece is not received for more than a preset time, a request for obtaining the underlying state can be actively sent to the underlying handpiece, so as to obtain the current underlying state of the underlying handpiece and perform a calibration based on the current underlying state to ensure the normal operation of the relevant functions in the vehicle. When the user operation stops for more than a preset time, the current underlying state is also actively obtained and calibrated from the underlying handpiece to avoid control errors caused by the loss of user operation. When the underlying handpiece automatically feeds back the underlying state information, it also feeds back the underlying state information to the corresponding user interaction display, so that the user interaction display displays the user interaction interface based on the underlying state information, so that the user can intuitively see the adjustment effect corresponding to his operation.
[0079] See also Figure 5 , Figure 5 This is a structural block diagram of a device for adjusting the state of a handpiece provided in an embodiment of the present application. Figure 5 As shown, the hand state adjustment device 500 includes:
[0080] The user operation receiving module 510 is used to determine the adjustment value corresponding to the user operation when receiving the user operation on the target control, and accumulate the adjustment value into the unsent adjustment value;
[0081] The reference step number determination module 520 is used to determine the current reference value of the underlying hand component based on the underlying state information when receiving the underlying state information automatically fed back by the underlying hand component corresponding to the target control, wherein the underlying hand component is set to automatically feed back the underlying state information once every first preset time period;
[0082] The instruction calculation and delivery module 530 is used to obtain the target value based on the current reference value and the undelivered adjustment value, deliver the adjustment instruction corresponding to the target value to the underlying counterpart and reset the undelivered adjustment value to zero, so that the underlying counterpart is adjusted to the control state corresponding to the target value.
[0083] Optionally, the user operation receiving module 510 is also used to determine whether the state of the first reporting flag is the first reporting flag state; if the state of the first reporting flag is the first reporting flag state, the adjustment value is determined as the non-issued adjustment value through the adjustment value counter, and the state of the first reporting flag is set to the non-first reporting flag state; if the state of the first reporting flag is the non-first reporting flag state, the adjustment value is accumulated into the non-issued adjustment value through the adjustment value counter; the instruction calculation and sending module 530 is also used to send the adjustment instruction corresponding to the target value to the underlying counterpart, and reset the first reporting flag to the first reporting flag state, so that the non-issued adjustment value is reset to zero.
[0084] Optionally, the target control is configured to report the user operation once every second preset time period, and the second preset time period is different from the first preset time period.
[0085] Optionally, the opponent device state adjustment device 500 also includes: a bottom-level feedback calibration module, which is used to send a bottom-level state acquisition request to the bottom-level opponent device if the bottom-level state information fed back by the bottom-level opponent device is not received within a preset time period, so that the bottom-level opponent device returns the current corresponding bottom-level state information based on the bottom-level state acquisition request.
[0086] Optionally, the opponent device state adjustment device 500 also includes: a user operation calibration module, which is used to send a bottom-level state acquisition request to the bottom-level opponent device if it is monitored that the duration of the user stopping the user operation exceeds a preset duration, so that the bottom-level opponent device returns the current corresponding bottom-level state information based on the bottom-level state acquisition request.
[0087] Optionally, the underlying counterpart is further configured to send the underlying status information to the user interaction display simultaneously when automatically feeding back the underlying status information, so that the user interaction display displays a user interaction interface based on the underlying status information.
[0088] Optionally, the target control is a scroll wheel control, the user operation is a scroll operation, and the scroll operation is used to adjust the height of the head-up display interface, and the underlying hand component is used to control the height of the head-up display interface.
[0089] See also Figure 6 , Figure 6 A schematic diagram of the structure of a vehicle provided in an embodiment of the present application. Figure 6 As shown, the vehicle 600 may include: at least one vehicle processor 601 , at least one network interface 604 , a user interface 603 , a memory 605 , and at least one communication bus 602 .
[0090] The communication bus 602 is used to realize the connection and communication between these components.
[0091] The user interface 603 may include a display screen (Display) and a camera (Camera), and the optional user interface 603 may also include a standard wired interface and a wireless interface.
[0092] The network interface 604 may optionally include a standard wired interface or a wireless interface (such as a WI-FI interface).
[0093] Among them, the vehicle processor 601 may include one or more processing cores. The vehicle processor 601 uses various interfaces and lines to connect various parts of the entire vehicle 600, and executes various functions and processes data of the vehicle 600 by running or executing instructions, programs, code sets or instruction sets stored in the memory 605, and calling data stored in the memory 605. Optionally, the vehicle processor 601 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 601 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; and 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 601, and can be implemented separately through a chip.
[0094] The memory 605 may include a random access memory (RAM) or a read-only memory (ROM). Optionally, the memory 605 includes a non-transitory computer-readable storage medium. The memory 605 may be used to store instructions, programs, codes, code sets or instruction sets. The memory 605 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 605 may optionally be at least one storage device located away from the aforementioned vehicle processor 601. As Figure 6 As shown, the memory 605 as a computer storage medium may include an operating system, a network communication module, a user interface module, and a partner state adjustment program.
[0095] exist Figure 6 In the vehicle 600 shown, the user interface 603 is mainly used to provide an input interface for the user and obtain the data input by the user; and the vehicle processor 601 can be used to call the opponent state adjustment program stored in the memory 605, and specifically perform the following operations:
[0096] When receiving a user operation on a target control, determining an adjustment value corresponding to the user operation, and accumulating the adjustment value into an unsent adjustment value;
[0097] When receiving the underlying state information automatically fed back by the underlying handpiece corresponding to the target control, determining the current reference value of the underlying handpiece based on the underlying state information, wherein the underlying handpiece is set to automatically feed back the underlying state information once every first preset time period;
[0098] The target value is obtained based on the current reference value and the unissued adjustment value, the adjustment instruction corresponding to the target value is issued to the underlying counterpart and the unissued adjustment value is reset to zero, so that the underlying counterpart is adjusted to the control state corresponding to the target value.
[0099] In some embodiments, when the vehicle processor 601 executes the accumulation of the adjustment value into the unissued adjustment value, the following steps are specifically performed: determine whether the state of the first reported flag is the first reported flag state; if the state of the first reported flag is the first reported flag state, determine the adjustment value as the unissued adjustment value through the adjustment value counter, and set the state of the first reported flag to the non-first reported flag state; if the state of the first reported flag is the non-first reported flag state, accumulate the adjustment value into the unissued adjustment value through the adjustment value counter; when the vehicle processor 601 executes the issuance of the adjustment instruction corresponding to the target value to the underlying counterpart and resets the unissued adjustment value to zero, the following steps are specifically performed: send the adjustment instruction corresponding to the target value to the underlying counterpart, and reset the first reported flag to the first reported flag state, so that the unissued adjustment value is reset to zero.
[0100] In some embodiments, the target control is configured to report the user operation once every second preset time period, and the second preset time period is different from the first preset time period.
[0101] In some embodiments, the vehicle processor 601 also specifically performs the following steps: if the underlying status information fed back by the underlying counterpart is not received within a preset time period, a underlying status acquisition request is sent to the underlying counterpart, so that the underlying counterpart returns the currently corresponding underlying status information based on the underlying status acquisition request.
[0102] In some embodiments, the vehicle processor 601 also specifically performs the following steps: if it is monitored that the time for which the user stops the user operation exceeds the preset time, a bottom-level status acquisition request is sent to the bottom-level counterpart, so that the bottom-level counterpart returns the current corresponding bottom-level status information based on the bottom-level status acquisition request.
[0103] In some embodiments, the underlying counterpart is further configured to send the underlying status information to the user interaction display simultaneously when automatically feeding back the underlying status information, so that the user interaction display displays a user interaction interface based on the underlying status information.
[0104] In some embodiments, the target control is a scroll wheel control, the user operation is a scroll operation and the scroll operation is used to adjust the height of the head-up display interface, and the underlying hand control is used to control the height of the head-up display interface.
[0105] 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 adjusting the state of a handpiece provided in the above embodiment.
[0106] 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 enabled to execute the above-mentioned related steps to implement a method for adjusting the state of a handpiece provided in the above embodiment.
[0107] 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.
[0108] 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.
[0109] 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.
[0110] 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.
[0111] 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.
[0112] 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.
[0113] The above is a description of a handpiece state adjustment 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 method for adjusting the state of a handpiece, characterized in that: The method comprises: When receiving a user operation on a target control, determining an adjustment value corresponding to the user operation, and accumulating the adjustment value into unsent adjustment values; When receiving the underlying status information automatically fed back by the underlying counterpart corresponding to the target control, determining the current reference value of the underlying counterpart based on the underlying status information, wherein the underlying counterpart is set to automatically feed back the underlying status information once every first preset time period; A target value is obtained based on the current reference value and the unissued adjustment value, an adjustment instruction corresponding to the target value is issued to the underlying counterpart and the unissued adjustment value is reset to zero, so that the underlying counterpart is adjusted to the control state corresponding to the target value.
2. The method according to claim 1, characterized in that The accumulating the adjustment value into the unissued adjustment value includes: Determine whether the state of the first reporting flag is the first reporting flag state; If the state of the first reporting flag is the first reporting flag state, determining the adjustment value as an unissued adjustment value through an adjustment value counter, and setting the state of the first reporting flag to a non-first reporting flag state; If the state of the first reporting flag is the non-first reporting flag state, accumulating the adjustment value into the unissued adjustment value through the adjustment value counter; The step of sending the adjustment instruction corresponding to the target value to the underlying counterparty and resetting the unsent adjustment value to zero includes: The adjustment instruction corresponding to the target value is sent to the bottom-level counterpart, and the first reporting flag is reset to the first reporting flag state, so that the unsent adjustment value is reset to zero.
3. The method according to claim 1, characterized in that The target control is configured to report a user operation once every second preset time period, and the second preset time period is different from the first preset time period.
4. The method according to claim 1, characterized in that: The method further comprises: If the underlying state information fed back by the underlying counterpart is not received within a preset time period, a underlying state acquisition request is sent to the underlying counterpart, so that the underlying counterpart returns the currently corresponding underlying state information based on the underlying state acquisition request.
5. The method according to claim 1, characterized in that The method further comprises: If it is monitored that the duration of the user stopping the user operation exceeds the preset duration, a bottom layer state acquisition request is sent to the bottom layer counterpart, so that the bottom layer counterpart returns the current corresponding bottom layer state information based on the bottom layer state acquisition request.
6. The method according to claim 1, characterized in that The underlying counterpart is also configured to send the underlying status information to the user interaction display simultaneously when automatically feeding back the underlying status information, so that the user interaction display displays a user interaction interface based on the underlying status information.
7. The method according to claim 1, characterized in that The target control is a wheel control, the user operation is a scrolling operation and the scrolling operation is used to adjust the height of the head-up display interface, and the underlying hand control is used to control the height of the head-up display interface.
8. A device for adjusting the state of a hand piece, characterized in that: The device comprises: A user operation receiving module, configured to, when receiving a user operation on a target control, determine an adjustment value corresponding to the user operation, and accumulate the adjustment value into an unsent adjustment value; A reference step number determination module, configured to determine a current reference value of the underlying opponent based on the underlying status information automatically fed back by the underlying opponent corresponding to the target control when receiving the underlying status information automatically fed back by the underlying opponent corresponding to the target control, wherein the underlying opponent is configured to automatically feed back the underlying status information once every first preset time period; An instruction calculation and issuance module is used to obtain a target value based on the current reference value and the unissued adjustment value, issue an adjustment instruction corresponding to the target value to the underlying counterpart and reset the unissued adjustment value to zero, so that the underlying counterpart is adjusted to a control state corresponding to the target value.
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
