Touch screen control method and apparatus, and controller, vehicle and storage medium
Patent Information
- Application Number
- PCT/CN2026/071547
- Authority / Receiving Office
- WO · WO
- Patent Type
- Applications
- Current Assignee / Owner
- Priority Date
- 2025-03-26
- Filing Date
- 2026-01-09
- Publication Date
- 2026-10-01
Smart Images

Figure CN2026071547_01102026_PF_FP_ABST
Abstract
Description
Touchscreen control methods, devices, controllers, vehicles, and storage media
[0001] This disclosure is based on and claims priority to Chinese Patent Application No. 202510367010.7, filed on March 26, 2025, entitled “Control Method, Apparatus, Controller, Vehicle and Storage Medium for Touch Screen”, the entire contents of which are incorporated herein by reference. Technical Field
[0002] This application relates to the field of vehicle technology, and in particular to a touch screen control method, a touch screen control device, a computer-readable storage medium, a controller, and a vehicle. Background Technology
[0003] With the rapid development of the automotive industry, the intelligence and convenience of vehicle use have become increasingly important indicators for consumers. Touchscreens, as a crucial component of control systems, reduce the number of physical buttons by providing an interactive interface when users have needs, thereby improving the vehicle's intelligence. However, ordinary touchscreen designs suffer from low recognition accuracy and an inability to adapt to complex operating scenarios. Summary of the Invention
[0004] This application aims to at least partially address one of the technical problems in related technologies. To this end, one objective of this application is to provide a control method for a touchscreen, the touchscreen including at least one function button. The method includes: responding to a touch signal; determining a touch point center position based on the touch signal; determining a first distance between the touch point center position and the center position of each function button; determining a number of consecutive touch failures within a preset time period based on the first distance, and recording multiple corresponding touch point center positions; if the number of consecutive touch failures is greater than or equal to a preset consecutive touch failure number threshold, determining a target function button based on the multiple touch point center positions and the function button center positions; and controlling the touchscreen based on the target function button.
[0005] The control method of this application can more accurately identify user intentions and improve the response accuracy of the touch screen by dynamically analyzing the relationship between the touch point position and the function key position; and can still accurately identify the target function key even when the user operation is inaccurate or there is interference on the touch screen surface, thus improving the robustness of the system.
[0006] Another objective of this application is to provide a control device for a touch screen.
[0007] Another objective of this application is to provide a computer-readable storage medium.
[0008] Another objective of this application is to propose a controller.
[0009] Another objective of this application is to propose a vehicle.
[0010] To achieve the above objectives, one embodiment of this application proposes a control method for a touchscreen, the touchscreen including at least one function button. The method includes: responding to a touch signal; determining a touch point center position based on the touch signal; determining a first distance between the touch point center position and the center position of each function button; determining the number of consecutive touch failures within a preset time based on the first distance, and recording multiple corresponding touch point center positions; if the number of consecutive touch failures is greater than or equal to a preset threshold for the number of consecutive touch failures, determining a target function button based on the multiple touch point center positions and the center positions of the function buttons; and controlling the touchscreen based on the target function button.
[0011] According to one embodiment of this application, determining a target function key based on the center positions of multiple contact points and the center positions of the function keys includes: determining a target contact point center position based on the average of the center positions of multiple contact points; and determining the target function key based on a second distance between the target contact point center position and the center position of each function key.
[0012] According to one embodiment of this application, determining the target function key based on the second distance between the center position of the target touch point and the center position of each function key includes: determining the second distance between the center position of the target touch point and the center position of each function key; and determining the function key corresponding to the minimum value of the second distance as the target function key.
[0013] According to one embodiment of this application, the method further includes: if the number of consecutive touch failures is less than the preset threshold for the number of consecutive touch failures, it is not necessary to determine the target function key.
[0014] According to one embodiment of this application, determining the number of consecutive touch failures within a preset time period based on the first distance includes: obtaining the minimum distance in the first distance; determining a touch failure when the minimum distance is greater than the maximum sensing distance threshold of a preset function key, and recording the number of consecutive touch failures within the preset time period.
[0015] According to one embodiment of this application, the center position of the touch point includes an abscissa and a ordinate of the touch point center, and the center position of the function key includes an abscissa and a ordinate of the function key center. Determining the first distance between the center position of the touch point and each of the center positions of the function keys includes: determining a first absolute value based on the absolute value of the difference between the abscissa of the touch point center and the abscissa of the function key center; determining a second absolute value based on the absolute value of the difference between the ordinate of the touch point center and the ordinate of the function key center; determining the sum of the squares of the first and second absolute values; and calculating the square root of the sum to determine the first distance between the center position of the touch point and the center position of the function key.
[0016] To achieve the above objectives, another embodiment of this application proposes a control device for a touchscreen, the touchscreen including at least one function button. The device includes: a first determining module, configured to determine a touch point center position based on a touch signal in response to the touch signal; a second determining module, configured to determine a first distance between the touch point center position and the center position of each function button; a third determining module, configured to determine the number of consecutive touch failures within a preset time based on the first distance, and record multiple corresponding touch point center positions; a fourth determining module, configured to determine a target function button based on the multiple touch point center positions and the center positions of the function buttons when the number of consecutive touch failures is greater than or equal to a preset threshold for the number of consecutive touch failures; and a control module, configured to control the touchscreen based on the target function button.
[0017] According to one embodiment of this application, the fourth determining module is used to determine the target touch center position based on the average of the center positions of the plurality of touch points; and to determine the target function button based on the second distance between the target touch center position and the center position of each function button.
[0018] According to one embodiment of this application, the fourth determining module is used to determine a second distance between the center position of the target touch point and the center position of each function key; and to determine the function key corresponding to the minimum value of the second distance as the target function key.
[0019] According to one embodiment of this application, if the number of consecutive touch failures is less than the preset threshold for the number of consecutive touch failures, it is not necessary to determine the target function key.
[0020] According to one embodiment of this application, the third determining module is used to obtain the minimum distance in the first distance; if the minimum distance is greater than the maximum sensing distance threshold of the preset function key, determine that the touch has failed, and record the number of consecutive touch failures within the preset time period.
[0021] According to one embodiment of this application, the center position of the touch point includes an abscissa and a ordinate, and the center position of the function key includes an abscissa and a ordinate. The second determining module is configured to: determine a first absolute value based on the absolute value of the difference between the abscissa of the touch point and the abscissa of the function key; determine a second absolute value based on the absolute value of the difference between the ordinate of the touch point and the ordinate of the function key; determine the sum of the squares of the first and second absolute values; and calculate the square root of the sum to determine a first distance between the center position of the touch point and the center position of the function key.
[0022] To achieve the above objectives, another embodiment of this application proposes a computer-readable storage medium storing a touchscreen control program thereon, which, when executed by a processor, implements the aforementioned touchscreen control method.
[0023] To achieve the above objectives, another embodiment of this application proposes a controller, including a memory, a processor, and a touchscreen control program stored in the memory and executable on the processor. When the processor executes the touchscreen control program, it implements the aforementioned touchscreen control method.
[0024] To achieve the above objectives, another embodiment of this application proposes a vehicle including the aforementioned controller.
[0025] According to embodiments of this application, a touchscreen control method, apparatus, controller, vehicle, and storage medium include a touchscreen with at least one function button. The method includes: responding to a touch signal and determining a touch point center position based on the touch signal; determining the distance between the touch point center position and the center position of each function button; determining the number of consecutive touch failures within a preset time based on the distance, and recording multiple corresponding touch point center positions; if the number of consecutive touch failures is greater than or equal to a preset consecutive touch failure number threshold, determining a target function button based on the multiple touch point center positions and the function button center positions; and controlling the touchscreen based on the target function button. The control method of this application, by dynamically analyzing the relationship between touch point positions and function button positions, can more accurately identify user intentions and improve the response accuracy of the touchscreen; and even when user operation is inaccurate or there is interference on the touchscreen surface, it can still accurately identify the target function button, improving the robustness of the system. Attached Figure Description
[0026] Figure 1 is a schematic diagram of the implementation environment of a touch screen control method according to some embodiments of this application;
[0027] Figure 2 is a flowchart of a touch screen control method according to some embodiments of this application;
[0028] Figure 3 is a flowchart of a touch screen control method according to some other embodiments of this application;
[0029] Figure 4 is a schematic diagram of the structure of a touch screen control device according to some embodiments of this application;
[0030] Figure 5 is a schematic diagram of the structure of a controller according to some embodiments of this application;
[0031] Figure 6 is a block diagram of a vehicle according to some embodiments of this application. Detailed Implementation
[0032] The embodiments of this application are described in detail below. Examples of these embodiments are shown in the accompanying drawings, wherein the same or similar reference numerals denote the same or similar elements or elements having the same or similar functions throughout. The embodiments described below with reference to the accompanying drawings are exemplary and intended to explain this application, and should not be construed as limiting this application.
[0033] The control method, apparatus, controller, vehicle, and storage medium of the touch screen according to embodiments of this application will now be described in detail with reference to the accompanying drawings.
[0034] Figure 1 is a schematic diagram of the implementation environment of a touch screen control method according to some embodiments of the present application. The implementation environment includes: a first controller 10, a touch screen 20, a central control system 30 and at least one second controller 40. The first controller 10 is electrically connected to the touch screen 20 and the central control system 30, respectively, and the central control system 30 is electrically connected to at least one second controller 40.
[0035] In this embodiment, the first controller 10 can be a vehicle controller, the touch screen 20 can be a vehicle terminal touch screen 20, and at least one second controller 40 is a controller corresponding to at least one function button. The first controller 10, the touch screen 20, the central control system 30 and at least one second controller 40 are located in the same vehicle.
[0036] The touchscreen 20 of the vehicle terminal can be a capacitive touchscreen, a resistive touchscreen, an infrared touchscreen, etc., without specific limitations. Furthermore, the touchscreen 20 includes at least one function button. In the following description, the touchscreen 20 of the vehicle terminal is described as a capacitive touchscreen with two function buttons, but this is not intended to limit the scope of this application. The electrical connection can be a circuit connection, and the circuit connection can be a cable connection.
[0037] In this embodiment, when the vehicle is in motion or stationary, the user sends a touch signal by clicking the touch screen 20. The first controller 10 determines the target function key based on the touch signal, and then sends a signal to the central control system 30 based on the target function key. After receiving the signal, the central control system 30 sends a signal to the second controller 40 corresponding to the target function key, so that the second controller 40 corresponding to the target function key executes the operation corresponding to the target function key, while the first controller 10 controls the touch screen 20 to display the corresponding interface.
[0038] The second controller 40 corresponding to the target function button can be one or more, and there is no specific limitation on this.
[0039] Figure 2 is a flowchart of a touchscreen control method according to some embodiments of this application, wherein the execution entity is a first controller. Referring to Figure 2, the touchscreen control method of this application embodiment may include the following steps:
[0040] S210 responds to touch signals and determines the center position of the touch point based on the touch signals.
[0041] Specifically, users can send touch signals by clicking on the touch screen. The electrode array of the touch screen detects the change in capacitance and converts it into an electrical signal, which is then transmitted to the first controller, namely the ECU (Electronic Control Unit), for processing. The first controller determines the center position of the touch point based on the electrical signal. For example, the first controller uses linear interpolation or the least squares method to calculate the center position of the touch point based on the change in capacitance.
[0042] S220, determine the first distance between the center position of the contact point and the center position of each function key.
[0043] Specifically, assuming the touch screen's function buttons include function button 1 and function button 2, after determining the center position of the touch point, the first controller calculates the first distance between the center position of function button 1 and the center position of function button 2 and the center position of the touch point, respectively.
[0044] S230, based on the first distance, determines the number of consecutive touch failures within a preset time and records the center positions of multiple corresponding touch points.
[0045] The preset time can be determined according to the actual situation. For example, the preset time can be 3 seconds. There is no specific limit here.
[0046] Specifically, the first controller can determine whether the user's touch is valid based on a first distance between the center of the touch point and the center of the function key, and if the touch is valid, determine the target function key touched by the user. For example, if the distance between the center of the touch point and the center of function key 1 is relatively small, the first controller determines that the touch is valid and determines that the target function key is function key 1; if the distance between the center of the touch point and the center of function key 2 is relatively small, the first controller determines that the touch is valid and determines that the target function key is function key 2; if the distance between the center of the touch point and the centers of both function key 1 and function key 2 is relatively large, the first controller determines that the touch is invalid.
[0047] After determining that the touch has failed, it is necessary to further determine whether it was a user accidental touch. Therefore, the first controller starts timing after determining that the touch has failed. The touch screen continuously responds to the touch signal for a preset time so that the first controller can determine the center position of multiple touch points and determine a first distance between the center position of each touch point and the center position of the function button. Based on the first distance, it is determined whether each touch has failed, and the number of consecutive touch failures within the preset time is recorded. The number of consecutive touch failures within the preset time is used to determine whether it was a user accidental touch.
[0048] For example, if the number of consecutive touch failures within a preset time is relatively small, it is determined that the user accidentally touched the button; if the number of consecutive touch failures within a preset time is relatively large, it is determined that the user actually had a need to click the function button, and it was not a mistake.
[0049] If it is determined that the touch was not accidental, the first controller also needs to record the center position of the touch point for each touch. For example, if it is determined that the number of consecutive touch failures is 3, the center positions of the 3 touch points corresponding to each of the 3 touches will be recorded.
[0050] S240, if the number of consecutive touch failures is greater than or equal to a preset threshold for the number of consecutive touch failures, the target function key is determined based on the center positions of multiple touch points and the center position of the function key.
[0051] The preset threshold for the number of consecutive touch failures can be determined according to the actual situation. For example, the preset threshold for the number of consecutive touch failures can be 3, 4 or 5, and there is no specific restriction here.
[0052] Specifically, the first controller can determine whether a user touches the button accidentally by comparing the number of consecutive touch failures with a preset threshold. For example, if the number of consecutive touch failures is greater than or equal to the preset threshold, it is determined that the user did indeed have a need to click the function button; if the number of consecutive touch failures is less than the preset threshold, it is determined that the user touched the button accidentally.
[0053] If it is determined that the touch was not accidental, the first controller determines the target function button based on the center positions of multiple touch points and function buttons obtained within a preset time. For example, if there are 3 consecutive touch failures within the preset time, a total of 3 touch point center positions are obtained. The average of the 3 touch point center positions is determined as the target touch point center position. The distances from the target touch point center position to the center positions of function button 1 and function button 2 are calculated respectively. If the distance from the target touch point center position to the center position of function button 1 is smaller, then function button 1 is determined as the target function button. If the distance from the target touch point center position to the center position of function button 2 is smaller, then function button 2 is determined as the target function button.
[0054] The S250 controls the touchscreen based on the target function keys.
[0055] Specifically, after identifying the target function key, the first controller sends a CAN (Controller Area Network) signal to the central control system. This CAN signal can carry the identifier of the target function key. Upon receiving the CAN signal, the central control system, based on the identifier of the target function key, sends a CAN signal to the second controller corresponding to the target function key. This causes the second controller to execute the operation corresponding to the target function key, while the first controller controls the touchscreen to display the interface corresponding to the target function key.
[0056] In this system, after the second controller corresponding to the target function button performs the corresponding operation, it can send a first feedback message to the central control system. Correspondingly, after receiving the first feedback message, the central control system sends a second feedback message to the first controller. After receiving the second feedback message, the first controller determines that the second controller corresponding to the target function button has performed the corresponding operation. In this case, the first controller controls the touch screen to display the corresponding interface.
[0057] For example, if the target function button is the air conditioner turn-on button, the first controller sends a CAN signal to the central control system, the central control system sends a CAN signal to the air conditioner controller, the air conditioner controller turns on the air conditioner after receiving the CAN signal, and sends a first feedback message to the central control system, the central control system sends a second feedback message to the first controller, and the first controller controls the touch screen to display the air conditioner turn-on interface after receiving the second feedback message.
[0058] The control method of this application can more accurately identify user intentions and improve the response accuracy of the touch screen by dynamically analyzing the relationship between the touch point position and the function key position; and can still accurately identify the target function key even when the user operation is inaccurate or there is interference on the touch screen surface, thus improving the robustness of the system.
[0059] In some embodiments, determining a target function key based on the center positions of multiple contact points and the center positions of function keys includes: determining the center position of a target contact point based on the average of the center positions of multiple contact points; and determining the target function key based on a second distance between the center position of the target contact point and the center position of each function key.
[0060] In some embodiments, determining a target function key based on a second distance between the center position of the target contact and the center position of each function key includes: determining a second distance between the center position of the target contact and the center position of each function key; and selecting the function key corresponding to the minimum value of the second distance as the target function key.
[0061] For example, assuming that the number of consecutive touch failures within a preset time is 3, a total of 3 touch point center positions are obtained. For example, the coordinates of touch point center position 1 are (3, 4), the coordinates of touch point center position 2 are (3, 5), and the coordinates of touch point center position 3 are (2, 3). The coordinates corresponding to the average of the 3 touch point center positions are (2.67, 4).
[0062] Assuming the center coordinates of function button 1 are (2, 2), the center coordinates of function button 2 are (3, 3), and the center coordinates of the target contact are (2.67, 4), the distance between the center of the target contact and the center of function button 1 is 2.1, and the distance between the center of the target contact and the center of function button 2 is 1.1. Therefore, since the distance between the center of the target contact and the center of function button 2 is relatively small, function button 2 is the target function button.
[0063] In some embodiments, if the number of consecutive touch failures is less than a preset threshold for the number of consecutive touch failures, it is not necessary to determine the target function key.
[0064] Specifically, if the number of consecutive touch failures is less than the preset threshold for consecutive touch failures, it can be determined that the user accidentally touched the button. In this case, it is not necessary to identify the target function button.
[0065] In some embodiments, determining the number of consecutive touch failures within a preset time period based on a first distance includes: obtaining the minimum distance in the first distance; determining a touch failure when the minimum distance is greater than the maximum sensing distance threshold of a preset function key, and recording the number of consecutive touch failures within the preset time period.
[0066] The maximum sensing distance threshold for the preset function keys can be determined according to the actual situation, and no specific restrictions are imposed here.
[0067] Specifically, the first controller calculates distance 1 between the center position of function button 1 and the center position of the touch point, and calculates distance 2 between the center position of function button 2 and the center position of the touch point. If distance 1 is less than distance 2, distance 1 is compared with a preset maximum sensing distance threshold for function button 1 to determine if the touch is invalid. For example, if distance 1 is less than or equal to the preset maximum sensing distance threshold for function button 1, the touch is determined to be valid, and the user has touched function button 1; if distance 1 is greater than the preset maximum sensing distance threshold for function button 1, the touch is determined to be invalid. Similarly, if distance 2 is less than distance 1, distance 2 is compared with a preset maximum sensing distance threshold for function button 2 to determine if the touch is invalid. For example, if distance 2 is less than or equal to the preset maximum sensing distance threshold for function button 2, the touch is determined to be valid, and the user has touched function button 2; if distance 2 is greater than the preset maximum sensing distance threshold for function button 2, the touch is determined to be invalid.
[0068] If a touch failure is confirmed, determine the first moment corresponding to the first touch failure. Start recording the number of consecutive touch failures from the first moment until the second moment. The time interval between the second moment and the first moment is the preset time. For example, if the preset time is 3 seconds, the moment of the first touch failure is time t. Start recording the number of consecutive touch failures from time t until time t+3, and you can determine the number of consecutive touch failures within the preset time (3 seconds).
[0069] It should be noted that if a touch failure is initially determined at the first moment, but a touch is determined to be valid at the third moment, and the recorded number of consecutive touch failures is less than a preset threshold for consecutive touch failures, then the recording of the consecutive touch failure count is interrupted, and the function key corresponding to the valid touch is directly determined as the target function key. The third moment can be any moment between the first and second moments.
[0070] For example, if a touch failure is first determined at time t, but a touch is determined to be valid at time t+2, and the number of consecutive touch failures recorded is less than the preset threshold for consecutive touch failures, then the recording of the number of consecutive touch failures is interrupted, and the function key corresponding to the valid touch is directly determined as the target function key.
[0071] In some embodiments, the center position of the contact point includes an abscissa and a ordinate, and the center position of the function key includes an abscissa and a ordinate. Determining a first distance between the center positions of the contact points and the center positions of each function key includes: determining a first absolute value based on the absolute value of the difference between the abscissa of the contact point and the abscissa of the function key; determining a second absolute value based on the absolute value of the difference between the ordinate of the contact point and the ordinate of the function key; determining the sum of the squares of the first and second absolute values; and calculating the square root of the sum to determine the first distance between the center positions of the contact points and the center positions of the function keys.
[0072] For example, assuming the coordinates of the center position 1 of the contact point are (3, 4) and the coordinates of the center position of the function key are (2, 2), then the first absolute value is 1, the second absolute value is 2, and the distance between the center position of the contact point and the center position of the function key is...
[0073] As a specific example, referring to FIG3, the touch screen control method of this application embodiment may further include the following steps:
[0074] S301, Touch sensing module.
[0075] The touch sensing module is used to detect touch signals.
[0076] S302, touch signal.
[0077] When the touch sensing module detects a touch signal, it sends the touch signal to the first controller.
[0078] S303, the first controller obtains the center position of the touch point based on the touch signal processing, and calculates the first distance between the center position of the touch point and the center position of each function button.
[0079] S304, determine the minimum distance among the first distances between the center position of the contact point and the center position of each function key.
[0080] S305, determine whether the minimum distance is greater than or equal to the preset maximum sensing distance threshold of the function key. If yes, execute S306; otherwise, execute S301.
[0081] S306, wait for a preset time, and record the number of consecutive touch failures within the preset time.
[0082] S307, determine whether the number of consecutive touch failures is greater than or equal to the preset threshold for the number of consecutive touch failures. If yes, proceed to S308; otherwise, proceed to S301.
[0083] S308 uses the average of the center positions of multiple contacts as the target contact center position.
[0084] S309, the target function key is determined based on the second distance between the center position of the target contact and the center position of each function key.
[0085] S310, central control system.
[0086] The first controller sends CAN signals to the central control system based on the target function keys.
[0087] S311, the central control system sends a CAN signal to the second controller corresponding to the target function button, and the first controller controls the touch screen.
[0088] In summary, the control method of this application can effectively identify user mis-touch or swipe operations by calculating the distance between the center position of the touch point and the center position of each function button, thereby reducing the occurrence of misoperations. When the number of consecutive touch failures exceeds a threshold, the target function button is automatically determined based on multiple touch point positions, avoiding repeated user operations and improving ease of use. By dynamically analyzing the relationship between the touch point position and the function button position, the user's intent can be identified more accurately, improving the response accuracy of the touch screen. Furthermore, even when the user's operation is inaccurate or there is interference on the touch screen surface (such as stains or water stains), the target function button can still be accurately identified, improving the robustness of the system. It can also reduce the dependence on high-precision hardware sensors and reduce equipment costs.
[0089] Corresponding to the above embodiments, this application also proposes a touch screen control device.
[0090] In some embodiments, the touchscreen includes at least one function button. Referring to FIG4, the touchscreen control device 400 includes: a first determining module 410, a second determining module 420, a third determining module 430, a fourth determining module 440, and a control module 450.
[0091] The first determining module 410 responds to a touch signal and determines the center position of the touch point based on the touch signal. The second determining module 420 determines a first distance between the center position of the touch point and the center position of each function button. The third determining module 430 determines the number of consecutive touch failures within a preset time based on the first distance and records multiple corresponding touch point center positions. The fourth determining module 440 determines the target function button based on the multiple touch point center positions and the function button center positions when the number of consecutive touch failures is greater than or equal to a preset consecutive touch failure number threshold. The control module 450 controls the touchscreen based on the target function button.
[0092] According to one embodiment of this application, the fourth determining module 440 is specifically used to: determine the target contact center position based on the average of the center positions of multiple contact points; and determine the target function key based on the second distance between the target contact center position and the center position of each function key.
[0093] According to one embodiment of this application, the fourth determining module 440 is further configured to determine a second distance between the center position of the target touch point and the center position of each function key; and determine the function key corresponding to the minimum value of the second distance as the target function key.
[0094] According to one embodiment of this application, when the number of consecutive touch failures is less than a preset threshold for the number of consecutive touch failures, it is not necessary to determine the target function key.
[0095] According to one embodiment of this application, the third determining module 430 is specifically used to: obtain the minimum distance in the first distance; determine the touch failure when the minimum distance is greater than the maximum sensing distance threshold of the preset function key, and record the number of consecutive touch failures within a preset time.
[0096] According to one embodiment of this application, the center position of the contact point includes the horizontal coordinate and the vertical coordinate of the contact point, and the center position of the function key includes the horizontal coordinate and the vertical coordinate of the function key. The second determining module 420 is specifically used to: determine a first absolute value based on the absolute value of the difference between the horizontal coordinate of the contact point and the horizontal coordinate of the function key; determine a second absolute value based on the absolute value of the difference between the vertical coordinate of the contact point and the vertical coordinate of the function key; determine the sum of the squares of the first and second absolute values; and calculate the square root of the sum to determine a first distance between the center position of the contact point and the center position of the function key.
[0097] It should be noted that the above explanation of the embodiments and beneficial effects of the touch screen control method also applies to the touch screen control device of the embodiments of this application. To avoid redundancy, it will not be elaborated in detail here.
[0098] Corresponding to the above embodiments, this application also proposes a computer-readable storage medium.
[0099] The computer-readable storage medium of this application stores a touch screen control program thereon, which, when executed by a processor, implements the aforementioned touch screen control method.
[0100] It should be noted that the above explanation of the embodiments and beneficial effects of the touch screen control method also applies to the computer-readable storage medium of the embodiments of this application. To avoid redundancy, it will not be elaborated in detail here.
[0101] Corresponding to the above embodiments, this application also proposes a controller, which is the first controller mentioned above.
[0102] Referring to Figure 5, the controller 500 of this application includes: a main control module 501, a CAN interface 502, a hard-wired input interface 503, and a hard-wired output interface 504. The main control module 501 is connected to the CAN interface 502, the hard-wired input interface 503, and the hard-wired output interface 504, respectively.
[0103] The main control module 501 typically includes a memory 510 and a processor 520. The processor 520 may include one or more processing cores, such as a quad-core processor or an octa-core processor. The processor 520 may be implemented using at least one hardware form selected from DSP (Digital Signal Processing), FPGA (Field-Programmable Gate Array), and PLA (Programmable Logic Array). The processor 520 may also include a main processor and a coprocessor. The main processor, also known as a CPU (Central Processing Unit), is used to process data in the wake-up state; the coprocessor is a low-power processor used to process data in the standby state. In some embodiments, the processor 520 may integrate a GPU (Graphics Processing Unit), which is responsible for rendering and drawing the content required to be displayed on the vehicle's screen. In some embodiments, the processor 520 may also include an AI (Artificial Intelligence) processor, which is used to handle computational operations related to machine learning. The memory 510 may include one or more computer-readable storage media, which may be non-transitory. The memory 510 may also include high-speed random access memory and non-volatile memory, such as one or more disk storage devices or flash memory devices. In some embodiments, the non-transitory computer-readable storage medium in the memory 510 is used to store a touch screen control program, which is executed by the processor 520 to implement the aforementioned touch screen control method.
[0104] It should be noted that the above explanation of the embodiments and beneficial effects of the touch screen control method also applies to the controller of the embodiments of this application. To avoid redundancy, it will not be elaborated in detail here.
[0105] Corresponding to the above embodiments, this application also proposes a vehicle.
[0106] Referring to Figure 6, the vehicle 600 of this application includes the aforementioned controller 500.
[0107] It should be noted that the logic and / or steps represented in the flowchart or otherwise described herein, for example, can be considered as a sequenced list of executable instructions for implementing logical functions, and can be embodied in any computer-readable medium for use by, or in conjunction with, an instruction execution system, apparatus, or device (such as a computer-based system, a processor-included system, or other system that can fetch and execute instructions from, an instruction execution system, apparatus, or device). For the purposes of this specification, "computer-readable medium" can be any means that can contain, store, communicate, propagate, or transmit programs for use by, or in conjunction with, an instruction execution system, apparatus, or device. More specific examples (a non-exhaustive list) of computer-readable media include: an electrical connection having one or more wires (electronic device), a portable computer disk drive (magnetic device), random access memory (RAM), read-only memory (ROM), erasable and editable read-only memory (EPROM or flash memory), fiber optic devices, and portable optical disc read-only memory (CDROM). Alternatively, the computer-readable medium may be paper or other suitable media on which the program can be printed, since the program can be obtained electronically, for example, by optically scanning the paper or other medium, followed by editing, interpreting, or otherwise processing as necessary, and then stored in a computer memory.
[0108] It should be understood that various parts of this application can be implemented using hardware, software, firmware, or a combination thereof. In the above embodiments, multiple steps or methods can be implemented using software or firmware stored in memory and executed by a suitable instruction execution system. For example, if implemented in hardware, as in another embodiment, it can be implemented using any one or a combination of the following techniques known in the art: discrete logic circuits having logic gates for implementing logical functions on data signals, application-specific integrated circuits (ASICs) having suitable combinational logic gates, programmable gate arrays (PGAs), field-programmable gate arrays (FPGAs), etc.
[0109] In the description of this specification, the references to terms such as "one embodiment," "some embodiments," "example," "specific example," or "some examples," etc., indicate that a specific feature, structure, material, or characteristic described in connection with that embodiment or example is included in at least one embodiment or example of this application. In this specification, the illustrative expressions of the above terms do not necessarily refer to the same embodiment or example. Furthermore, the specific features, structures, materials, or characteristics described may be combined in any suitable manner in one or more embodiments or examples.
[0110] Furthermore, the terms "first" and "second" are used for descriptive purposes only and should not be construed as indicating or implying relative importance or implicitly specifying the number of technical features indicated. Thus, a feature defined as "first" or "second" may explicitly or implicitly include at least one of that feature. In the description of this application, "multiple" means at least two, such as two, three, etc., unless otherwise explicitly specified.
[0111] In this application, unless otherwise expressly specified and limited, the terms "installation," "connection," "joining," and "fixing," etc., should be interpreted broadly. For example, they can refer to a fixed connection, a detachable connection, or an integral part; they can refer to a mechanical connection or an electrical connection; they can refer to a direct connection or an indirect connection through an intermediate medium; they can refer to the internal communication of two components or the interaction between two components, unless otherwise expressly limited. Those skilled in the art can understand the specific meaning of the above terms in this application according to the specific circumstances.
[0112] Although embodiments of this application have been shown and described above, it is understood that the above embodiments are exemplary and should not be construed as limiting this application. Those skilled in the art can make changes, modifications, substitutions and variations to the above embodiments within the scope of this application.
Claims
1. A control method for a touchscreen, wherein, The touchscreen includes at least one function button, and the method includes: In response to a touch signal, determine the center position of the touch point based on the touch signal; Determine a first distance between the center position of the contact point and the center position of each function key; Based on the first distance, determine the number of consecutive touch failures within a preset time and record the center positions of multiple corresponding touch points; If the number of consecutive touch failures is greater than or equal to a preset threshold for the number of consecutive touch failures, the target function key is determined based on the center positions of the multiple touch points and the center positions of the function keys. The touchscreen is controlled based on the target function keys.
2. The control method of a touch screen according to claim 1, wherein The step of determining the target function key based on the center positions of multiple contact points and the center position of the function key includes: The target contact center position is determined based on the average of the center positions of multiple contact points. The target function key is determined based on the second distance between the center position of the target touch point and the center position of each function key.
3. The control method of the touch screen according to claim 2, wherein Determining the target function key based on the second distance between the center position of the target touch point and the center position of each function key includes: Determine a second distance between the center position of the target touch point and the center position of each function key; The function key corresponding to the minimum value of the second distance is determined as the target function key.
4. The control method of a touch screen according to claim 1, wherein The method further includes: If the number of consecutive touch failures is less than the preset threshold for consecutive touch failures, there is no need to determine the target function key.
5. The touchscreen control method according to claim 1, wherein, The step of determining the number of consecutive touch failures within a preset time period based on the first distance includes: Obtain the minimum distance from the first distance; If the minimum distance is greater than the maximum sensing distance threshold of the preset function key, a touch failure is determined, and the number of consecutive touch failures within the preset time period is recorded.
6. The control method of a touch screen according to claim 1, wherein The center position of the contact point includes an abscissa and a ordinate, and the center position of the function key includes an abscissa and a ordinate. Determining the first distance between the center position of the contact point and the center position of each function key includes: The first absolute value is determined based on the absolute value of the difference between the horizontal coordinate of the center of the touch point and the horizontal coordinate of the center of the function key; The second absolute value is determined based on the absolute value of the difference between the vertical coordinate of the center of the touch point and the vertical coordinate of the center of the function key; Determine the sum of the squares of the first absolute value and the squares of the second absolute value; The sum is squared to determine the first distance between the center position of the touch point and the center position of the function key.
7. A control device for a touch screen, wherein, The touchscreen includes at least one function button, and the device includes: The first determining module is used to respond to a touch signal and determine the center position of the touch point based on the touch signal; The second determining module is used to determine a first distance between the center position of the touch point and the center position of each function key; The third determining module is used to determine the number of consecutive touch failures within a preset time based on the first distance, and to record the center positions of multiple corresponding touch points. The fourth determining module is used to determine the target function key based on the center positions of multiple touch points and the center positions of the function keys when the number of consecutive touch failures is greater than or equal to a preset threshold for the number of consecutive touch failures. The control module is used to control the touch screen based on the target function keys.
8. The control device of the touch screen according to claim 7, wherein The fourth determining module is used to determine the center position of the target contact point based on the average of the center positions of the multiple contact points; The target function key is determined based on the second distance between the center position of the target touch point and the center position of each function key.
9. The control device of the touch screen according to claim 8, wherein, The fourth determining module is used to determine a second distance between the center position of the target touch point and the center position of each function key; and to determine the function key corresponding to the minimum value of the second distance as the target function key.
10. The control device of the touch screen according to claim 7, wherein If the number of consecutive touch failures is less than the preset threshold for consecutive touch failures, there is no need to determine the target function key.
11. The control device of the touch screen according to claim 7, wherein The third determining module is used to obtain the minimum distance in the first distance; if the minimum distance is greater than the maximum sensing distance threshold of the preset function key, it determines that the touch has failed and records the number of consecutive touch failures within the preset time.
12. The control device of the touch screen according to claim 7, wherein, The contact center position includes a horizontal coordinate and a vertical coordinate, and the function key center position includes a horizontal coordinate and a vertical coordinate. The second determining module is used to determine a first absolute value based on the absolute value of the difference between the horizontal coordinate of the contact center and the horizontal coordinate of the function key center; determine a second absolute value based on the absolute value of the difference between the vertical coordinate of the contact center and the vertical coordinate of the function key center; determine the sum of the squares of the first absolute value and the second absolute value; and calculate the square root of the sum to determine a first distance between the contact center position and the function key center position.
13. A computer readable storage medium, wherein, It stores a touch screen control program, which, when executed by a processor, implements the touch screen control method according to any one of claims 1-6.
14. A controller, wherein, The device includes a memory, a processor, and a touchscreen control program stored in the memory and executable on the processor. When the processor executes the touchscreen control program, it implements the touchscreen control method according to any one of claims 1-6.
15. A vehicle, wherein, Includes the controller as described in claim 14.