Touch detection method, device, terminal and storage medium

By generating interrupt signals in advance and processing data during the touch point data acquisition process, the problem of slow response speed of touch screens in the prior art is solved, and faster response speed and better user experience are achieved.

CN114281207BActive Publication Date: 2025-05-23BEIJING XIAOMI MOBILE SOFTWARE CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202111572724.X
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-12-21
Publication Date
2025-05-23
Estimated Expiration
2041-12-21

AI Technical Summary

Technical Problem

In the prior art, the response speed of the touch screen is slow, resulting in poor user experience, mainly because the processor starts processing data after the touch point data is collected, resulting in delay.

Method used

During the process of collecting touch point data, when the acquisition time reaches or exceeds the preset time threshold, an interrupt signal is generated. The processor acquires and processes the touch point data in advance after receiving the interrupt signal, thereby performing a touch operation before the data acquisition is completed.

Benefits of technology

By generating interrupt signals in advance and processing touch point data, the time of touch point data processing is effectively saved, the response speed of the touch screen is improved, and the user experience is improved.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114281207B_ABST
    Figure CN114281207B_ABST
Patent Text Reader

Abstract

The present disclosure relates to a touch detection method, device, terminal and storage medium, and relates to the field of touch technology, and is applied to a terminal, including: collecting touch point data corresponding to a touch operation; generating an interrupt signal when the collection time of the touch point data is greater than or equal to a preset time threshold; wherein the preset time threshold is less than the total time to complete the collection of the touch point data; and performing a touch operation based on the interrupt signal according to the collected touch point data. In this way, the time for processing the touch point data can be effectively saved, thereby improving the response speed of the touch screen and enhancing the user experience.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present disclosure relates to the field of touch technology, and in particular to a touch detection method, device, terminal and storage medium. Background Art

[0002] With the continuous development of electronic information technology, more and more terminal devices are equipped with touch screens, such as smart phones and tablet computers. Users have higher and higher requirements for touch screen devices, and the response speed of the touch screen directly affects the user experience. Summary of the invention

[0003] In order to overcome the problems existing in the related art, the present disclosure provides a touch detection method, device, terminal and storage medium.

[0004] According to a first aspect of an embodiment of the present disclosure, a method for touch detection is provided, which is applied to a terminal, and the method includes: collecting touch point data corresponding to a touch operation; generating an interrupt signal when a collection time for collecting the touch point data is greater than or equal to a preset time threshold; wherein the preset time threshold is less than the total time to complete the collection of the touch point data; and based on the interrupt signal, performing the touch operation according to the collected touch point data.

[0005] Optionally, the preset time threshold is obtained in the following manner: determining a preset total data volume of touch point data to be collected; obtaining a preset communication rate for data communication between the processor of the terminal and the touch chip of the terminal, and collection capability information of the touch chip for collecting touch point data; determining the preset time threshold based on the preset total data volume, the preset communication rate and the collection capability information.

[0006] Optionally, the acquisition capability information includes a preset acquisition rate of the touch chip and a preset amount of data acquired by the touch chip in a single time; determining the preset time threshold based on the preset total data amount, the preset communication rate and the acquisition capability information includes: determining the total transmission time required for the processor to obtain touch point data corresponding to the preset total data amount from the touch chip based on the preset communication rate of the processor and the preset total data amount; determining the data acquisition time based on the preset total data amount and the preset acquisition rate; determining the single transmission time required for the processor to obtain the preset data amount based on the preset communication rate and the preset data amount acquired by the touch chip in a single time; determining the preset time threshold based on the total transmission time, the data acquisition time and the single transmission time.

[0007] Optionally, determining the preset time threshold based on the total transmission time, the data acquisition time and the single transmission time includes: calculating a first time difference between the total transmission time and the single transmission time; calculating a second time difference between the data acquisition time and the first time difference; and obtaining the preset time threshold based on the second time difference.

[0008] Optionally, obtaining the preset time threshold according to the second time difference includes: using the second time difference as the preset time threshold; or using the sum of the second time difference and the first preset time as the preset time threshold.

[0009] Optionally, the method also includes: obtaining the data processing time corresponding to the processor; and obtaining the preset time threshold based on the second time difference includes: taking the difference between the second time difference and the data processing time as the preset time threshold.

[0010] Optionally, obtaining the data processing time corresponding to the processor includes: taking the preprocessing time for the processor to perform data preprocessing as the data processing time; or taking the sum of the preprocessing time for the processor to perform data preprocessing and a second preset time as the data processing time.

[0011] According to a second aspect of an embodiment of the present disclosure, a touch detection device is provided, comprising: a data acquisition module, configured to acquire touch point data corresponding to a touch operation; a signal generation module, configured to generate an interrupt signal when an acquisition time for acquiring the touch point data is greater than or equal to a preset time threshold; wherein the preset time threshold is less than the total time for completing the acquisition of the touch point data; and a control module, configured to perform the touch operation according to the acquired touch point data based on the interrupt signal.

[0012] Optionally, the preset time threshold is obtained in the following manner: determining a preset total data volume of touch point data to be collected; obtaining a preset communication rate for data communication between the processor of the terminal and the touch chip of the terminal, and collection capability information of the touch chip for collecting touch point data; determining the preset time threshold based on the preset total data volume, the preset communication rate and the collection capability information.

[0013] Optionally, the acquisition capability information includes a preset acquisition rate of the touch chip and a preset amount of data acquired by the touch chip in a single time; determining the preset time threshold based on the preset total data amount, the preset communication rate and the acquisition capability information includes: determining the total transmission time required for the processor to obtain touch point data corresponding to the preset total data amount from the touch chip based on the preset communication rate of the processor and the preset total data amount; determining the data acquisition time based on the preset total data amount and the preset acquisition rate; determining the single transmission time required for the processor to obtain the preset data amount based on the preset communication rate and the preset data amount acquired by the touch chip in a single time; determining the preset time threshold based on the total transmission time, the data acquisition time and the single transmission time.

[0014] Optionally, determining the preset time threshold based on the total transmission time, the data acquisition time and the single transmission time includes: calculating a first time difference between the total transmission time and the single transmission time; calculating a second time difference between the data acquisition time and the first time difference; and obtaining the preset time threshold based on the second time difference.

[0015] Optionally, obtaining the preset time threshold according to the second time difference includes: using the second time difference as the preset time threshold; or using the sum of the second time difference and the first preset time as the preset time threshold.

[0016] Optionally, the method also includes: obtaining the data processing time corresponding to the processor; and obtaining the preset time threshold based on the second time difference includes: taking the difference between the second time difference and the data processing time as the preset time threshold.

[0017] Optionally, obtaining the data processing time corresponding to the processor includes: taking the preprocessing time for the processor to perform data preprocessing as the data processing time; or taking the sum of the preprocessing time for the processor to perform data preprocessing and a second preset time as the data processing time.

[0018] According to a third aspect of an embodiment of the present disclosure, a terminal is provided, comprising: a touch chip and a processor, the touch chip being connected to the processor; the touch chip being configured to collect touch point data corresponding to a touch operation; generating an interrupt signal when a collection time for collecting the touch point data is greater than or equal to a preset time threshold; wherein the preset time threshold is less than the total time for completing the collection of the touch point data; and the processor being configured to perform the touch operation according to the collected touch point data based on the interrupt signal.

[0019] According to a fourth aspect of an embodiment of the present disclosure, a computer-readable storage medium is provided, on which computer program instructions are stored. When the program instructions are executed by a processor, the steps of the touch detection method provided in the first aspect of the present disclosure are implemented.

[0020] The technical solution provided by the embodiments of the present disclosure may include the following beneficial effects: collecting touch point data corresponding to a touch operation; generating an interrupt signal when the collection time of the touch point data is greater than or equal to a preset time threshold; and performing a touch operation according to the collected touch point data based on the interrupt signal. Through the above method, an interrupt signal can be generated in advance before the collection of the touch point data is completed. And based on the interrupt signal, a touch operation is performed according to the collected touch point data. In this way, the time for processing the touch point data can be effectively saved, thereby improving the response speed of the touch screen and enhancing the user experience.

[0021] It is to be understood that the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the present disclosure. BRIEF DESCRIPTION OF THE DRAWINGS

[0022] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present disclosure and, together with the description, serve to explain the principles of the present disclosure.

[0023] Figure 1 is a flow chart of a touch detection method according to an exemplary embodiment;

[0024] Figure 2 is a flow chart of a method for setting a preset time threshold according to an exemplary embodiment;

[0025] Figure 3 is a block diagram of a touch detection device according to an exemplary embodiment;

[0026] Figure 4 It is a block diagram of a device according to an exemplary embodiment. DETAILED DESCRIPTION

[0027] Exemplary embodiments will be described in detail herein, examples of which are shown in the accompanying drawings. When the following description refers to the drawings, the same numbers in different drawings represent the same or similar elements unless otherwise indicated. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the present disclosure. Instead, they are merely examples of devices and methods consistent with some aspects of the present disclosure as detailed in the appended claims.

[0028] Before introducing the touch detection method, device, terminal and storage medium provided by the present disclosure, the application scenarios involved in each embodiment of the present disclosure are first introduced. The present disclosure is applied to the scenario where the user performs a touch operation on the touch screen of the terminal. In the related technology, after detecting the user's touch operation on the touch screen, the touch point data is collected by the touch chip. When the collection of the touch point data is completed, the touch chip sends an interrupt signal to the processor. After receiving the interrupt signal, the processor starts to obtain the touch point data collected by the touch chip, processes the acquired touch point data, and generates a control instruction corresponding to the touch operation. Based on the above scenario, the inventor found that since the amount of collected touch point data is large, the processor will take a long time to obtain the touch point data, thereby affecting the generation time of the control instruction, that is, affecting the response speed of the touch screen, resulting in a poor user experience.

[0029] In order to solve the above problems, the present disclosure provides a touch detection method, device, terminal and storage medium, which can generate an interrupt signal in advance before the collection of touch point data is completed. Based on the interrupt signal, the touch operation is performed according to the collected touch point data. In this way, the time for processing touch point data can be effectively saved, and it is not necessary to wait until all touch point data are collected before processing the touch point data, thereby improving the response speed of the touch screen and enhancing the user experience.

[0030] Figure 1 FIG. 1 is a flow chart of a touch detection method according to an exemplary embodiment. The method is used in a terminal, which may be any device including a touch screen, such as but not limited to a mobile terminal, a tablet computer, a vehicle-mounted central control, etc. Figure 1 As shown, the method comprises the following steps:

[0031] In step S101, touch point data corresponding to the touch operation is collected.

[0032] When a user triggers a touch operation on the touch screen, each touch operation generates multiple touch points on the touch screen, and the touch chip of the terminal can detect the touch point data corresponding to each touch point of the touch operation, that is, the touch point data is collected in the touch chip and cached, so that the processor of the terminal can obtain the touch point data cached by the touch chip. Among them, the touch operation can include, for example, a click operation, a sliding operation, and a long press operation.

[0033] In step S102, when the collection time of the touch point data is greater than or equal to a preset time threshold, an interrupt signal is generated.

[0034] The preset time threshold is less than the total time required to complete the touch point data collection.

[0035] When the acquisition time of the touch point data is greater than or equal to the preset time threshold, an interrupt signal is generated and sent to the processor of the terminal. In this way, since the preset time threshold is less than the total time to complete the touch point data acquisition, the processor can receive the interrupt signal sent by the touch chip in advance, and after receiving the interrupt signal, start to acquire the touch point data cached by the touch chip, and process the acquired touch point data. The processor does not need to wait until the touch chip completes the acquisition of all the touch point data before starting to acquire the touch point data, which effectively saves the time for processing the touch point data and improves the response speed of the touch screen.

[0036] In step S103, based on the interrupt signal, a touch operation is performed according to the collected touch point data.

[0037] It can be understood that after the touch chip generates an interrupt signal, the interrupt signal is sent to the processor. After receiving the interrupt signal, the processor starts to obtain the touch point data cached by the touch chip. And based on the acquired touch point data, the coordinates corresponding to the touch point data are calculated. According to the calculated coordinates and the current interface information of the terminal, a control instruction corresponding to the touch operation is generated, and the control instruction is executed. Among them, the interface information includes the coordinate information of all icons in the interface currently displayed by the terminal. For example, if the interface currently displayed by the terminal is a telephone dialing interface, the interface information may include the coordinate information of each digital button icon and the dial button icon.

[0038] For example, the coordinates corresponding to the touch point data can be calculated by a centroid algorithm based on the acquired touch point data, wherein the centroid algorithm can refer to related technologies and will not be described in detail here. The coordinates corresponding to the acquired touch point data are compared with the current interface information of the terminal to determine the target icon corresponding to the touch operation in the current interface, and the control instruction corresponding to the touch operation is generated in combination with the touch point data.

[0039] For example, if the interface currently in which the terminal is located is the main interface of the desktop, the user's touch operation on the terminal touch screen is sliding to the left. Accordingly, after detecting the user's touch operation, the touch chip collects the touch point data corresponding to each touch point of the user's touch operation, caches the touch point data, and sends an interrupt signal to the processor when the acquisition time is greater than or equal to the preset time threshold. After receiving the interrupt signal, the processor starts to obtain the touch point data cached by the touch chip. The processor calculates the coordinates corresponding to the touch point data based on the acquired touch point data, generates a control instruction for controlling the main interface of the desktop to slide to the left based on the coordinates and the interface information of the current terminal, and executes the control instruction, that is, the terminal slides from the main interface to the interface on the right side of the main interface. If the interface currently in which the terminal is located is a telephone dialing interface, the user's touch operation on the terminal touch screen is clicking the dial button. Similarly, after detecting the user's touch operation, the touch chip collects the touch point data corresponding to each touch point of the user's touch operation, caches the touch point data, and sends an interrupt signal to the processor when the acquisition time is greater than or equal to the preset time threshold. After receiving the interrupt signal, the processor starts to obtain the touch point data cached by the touch chip. The processor calculates the coordinates corresponding to the touch point data based on the acquired touch point data, generates a control instruction for controlling the dialing based on the coordinates and the interface information of the current terminal, and executes the control instruction, that is, dials the server.

[0040] By adopting the above method, an interrupt signal can be generated in advance before the collection of touch point data is completed. Based on the interrupt signal, the touch operation is performed according to the collected touch point data. In this way, the time for processing touch point data can be effectively saved, and the touch point data does not need to be processed until all touch point data are collected, thereby improving the response speed of the touch screen and enhancing the user experience.

[0041] The following is an explanation of the setting of the preset time threshold in the above method. Figure 2 As shown, the preset time threshold can be obtained by following the steps below:

[0042] S1: Determine a preset total amount of touch point data to be collected.

[0043] The preset total data volume is the maximum data volume that the terminal can collect.

[0044] S2: Acquire a preset communication rate for data communication between a processor of the terminal and a touch chip of the terminal, and acquisition capability information of the touch chip for acquiring touch point data.

[0045] The acquisition capability information of the touch chip may include a preset acquisition rate of the touch chip and a preset amount of data acquired by the touch chip in a single time.

[0046] In some embodiments, the total transmission time required for the processor to acquire the touch point data corresponding to the preset total data volume from the touch control chip can be determined according to the preset communication rate and the preset total data volume of the processor.

[0047] The amount of touch point data acquired by the processor is numerically equal to the amount of touch point data collected by the touch chip, to ensure that the touch point data acquired by the processor is all touch point data collected by the touch chip, avoiding omission of touch point data.

[0048] For example, the ratio of the preset total data volume to the preset communication rate can be used as the total transmission time. 1 , the preset total amount of data to be acquired is d, then the total transmission time t required for the processor to acquire the touch point data corresponding to the preset total amount of data from the touch chip can be calculated by the formula t = d / s 1 get.

[0049] In some embodiments, the data collection time of the touch chip can be determined according to the preset total data volume and the preset collection rate, wherein the data collection time represents the time required for the touch chip to complete the collection of the preset total data volume at the preset collection rate.

[0050] For example, the ratio of the preset total data volume to the preset acquisition rate can be used as the data acquisition time. For example, if the preset total data volume to be collected is d, and the preset acquisition rate of the touch chip is s 2 , then the data acquisition time T of the touch chip can be calculated by the formula T = d / s 2 get.

[0051] It should be noted that the touch chip uses a segmented acquisition method when collecting touch point data, that is, the touch chip divides the data to be collected into multiple groups, and collects one group of data each time. For example, the touch chip needs to collect m×n touch point data (that is, m rows and n columns of data), and can collect j rows (where j is greater than or equal to 1) of data each time, so the touch chip needs to collect m×n touch point data m / j times.

[0052] It should be noted that before the processor obtains the last set of touch point data, the touch chip has completed the collection of the last set of touch point data, so that it can be ensured that data communication and data collection will not conflict. Therefore, in this embodiment, the single transmission time required for the processor to obtain a set of touch point data can also be determined, and the preset time threshold is determined according to the single transmission time.

[0053] In some embodiments, the single transmission time required for the processor to obtain the preset amount of data from the touch chip can be determined according to a preset communication rate and a preset amount of data collected by the touch chip at a single time.

[0054] For example, the ratio of the preset data volume to the preset communication rate can be used as the single transmission time required for the processor to obtain the preset data volume from the touch chip. 1 , the preset amount of data collected by the touch chip at a time is c, then the single transmission time t required for the processor to obtain the preset amount of data from the touch chip i It can be obtained by formula t i =c / s 1 get.

[0055] S3: Determine a preset time threshold according to a preset total data volume, a preset communication rate and the acquisition capability information.

[0056] Accordingly, step S3 may determine a preset time threshold according to the above-mentioned total transmission time, data collection time and single transmission time.

[0057] In some embodiments, first, a first time difference between the total transmission time and the single transmission time may be calculated.

[0058] For example, if the total transmission time is t and the single transmission time is t i , then we can get the total transmission time t and the single transmission time t i The first time difference t 1 =tt i .

[0059] Secondly, a second time difference between the data collection time and the first time difference may be calculated.

[0060] For example, if the data collection time is T, the first time difference is t 1 , then we can get the data acquisition time T and the first time difference t 1 The second time difference t′=Tt 1 .

[0061] Finally, the preset time threshold can be obtained according to the second time difference.

[0062] The following describes how to obtain the preset time threshold according to the second time difference.

[0063] In a possible implementation manner, the second time difference may be used as a preset time threshold.

[0064] For example, if the preset total amount of data to be collected is 1000 data, the preset collection rate of the touch chip is 100 / ms, the preset amount of data collected in a single time is 100 data, and the preset communication rate of the processor is 1000 / ms. According to the preset communication rate of 1000 / ms and the preset total amount of data of 1000 data, it can be obtained that the total transmission time required for the processor to obtain the touch point data corresponding to the preset total amount of data (1000 data) from the touch chip is 1ms. According to the preset total amount of data of 1000 data and the preset collection rate of 100 / ms, it can be obtained that the data collection time of the touch chip is 10ms. According to the preset communication rate of 1000 / ms and the preset amount of data collected by the touch chip in a single time of 100 data, it can be obtained that the single transmission time required for the processor to obtain the preset amount of data is 0.1ms. The first time difference between the total transmission time of 1ms and the single transmission time of 0.1ms is calculated to be 0.9ms, and the second time difference between the data collection time of 10ms and the first time difference of 0.9ms is calculated to be 9.1ms. In this implementation, the second time difference value 9.1 ms may be used as the preset time threshold, that is, the preset time threshold is 9.1 ms.

[0065] In addition, considering that the touch chip is actually collecting touch point data and / or the processor is acquiring touch point data, due to some factors, the actual acquisition rate of the touch chip and / or the actual communication rate of the processor may fluctuate, which may cause the touch chip to have not completed the acquisition of the last set of touch point data before the processor acquires the last set of touch point data. In this way, there will be a conflict between the acquisition of touch point data by the processor and the acquisition of touch point data by the touch chip. Therefore, in order to ensure that the processor will not conflict with the acquisition of touch point data by the touch chip during the process of acquiring touch point data, that is, to ensure that the touch chip has completed the acquisition of the last set of data before the processor acquires the last set of data. Therefore, in another possible implementation of the present disclosure, the sum of the second time difference and the first preset time can also be used as a preset time threshold. Among them, the first preset time is a reserved buffer time to avoid fluctuations in the actual acquisition rate and / or the actual communication rate, resulting in a conflict between the acquisition of touch point data and the acquisition of touch point data.

[0066] For the sake of convenience, the data in the above example is used as an example. For example, if the first preset time is 0.05 ms, the sum of the second time difference 9.1 ms and the first preset time 0.05 ms can be used as the preset time threshold, that is, the preset time threshold is 9.15 ms.

[0067] Considering that the processor may need to perform data preprocessing after receiving the interrupt signal, to ensure that the touch point data can be transmitted normally between the processor and the touch chip.

[0068] For example, the data preprocessing performed by the processor may include one or more of the following processing operations:

[0069] Adjust the parameters of the external bus, where the external bus is used for data transmission between the processor and the touch chip; the external bus parameters may include, for example, bus width, bandwidth, and bus frequency. When there is no communication between the processor and the touch chip, in order to reduce power consumption, the processor may turn off the external bus clock or stop supplying power to the external bus when there is no communication. Therefore, when the processor communicates with the touch chip, it is necessary to adjust the parameters of the external bus to ensure normal communication with the touch chip.

[0070] Alternatively, when the current interface of the terminal contains multiple task windows, system scheduling is performed; if the terminal is a multi-tasking operating system, when the processor is communicating, the terminal interface may be in a multi-tasking window, that is, the current interface contains multiple applications. Then, the applications corresponding to the multiple task windows in the current interface can be scheduled according to the priority of each application to determine the target application to be controlled, so as to generate corresponding control instructions according to the acquired touch point data.

[0071] Alternatively, when the terminal is in a low power state, the low power state is switched to the communication state. When the processor and the touch chip do not communicate for a long time, the terminal may be in a low power state to reduce power consumption, and the processor and the touch chip will not communicate in the low power state. Therefore, when the processor and the touch chip communicate, it is necessary to switch from the low power state to the communication state.

[0072] Therefore, in another possible implementation, the data processing time corresponding to the processor can also be obtained. The data preprocessing time is the maximum time required for the processor to perform data preprocessing. The difference between the second time difference and the data processing time is used as the preset time threshold.

[0073] Among them, obtaining the data processing time corresponding to the processor may include the following two methods:

[0074] In a first approach, the preprocessing time of the processor performing data preprocessing may be used as the data processing time.

[0075] For the sake of ease of explanation, we will continue to use the data in the above example as an example. For example, if the preprocessing time is 0.1ms, that is, the data processing time is 0.1ms, the difference between the second time difference 9.1ms and the data processing time 0.1ms can be used as the preset time threshold, that is, the preset time threshold is 9ms.

[0076] In a second method, the sum of the preprocessing time and the second preset time may be used as the data processing time.

[0077] The second preset time is a buffer time reserved for data preprocessing to ensure that the processor can complete data preprocessing within the data processing time.

[0078] For the sake of ease of explanation, we will continue to use the data in the above example as an example. For example, if the preprocessing time is 0.1ms and the second preset time is 0.05ms, the data processing time can be obtained as 0.15ms. The difference between the second time difference of 9.1ms and the data processing time of 0.15ms can be used as the preset time threshold, that is, the preset time threshold is 8.95ms.

[0079] In another possible implementation, the difference between the sum of the second time difference and the first preset time and the data processing time may be used as the preset time threshold, wherein the data processing time includes the sum of the preprocessing time and the second preset time.

[0080] For the sake of ease of explanation, we will continue to use the data in the above example as an example. For example, the sum of the second time difference 9.1ms and the first preset time 0.05ms and the difference between the data processing time 0.15ms can also be used as the preset time threshold, that is, the preset time threshold is 9ms.

[0081] By adopting the above method, an interrupt signal can be generated in advance before the collection of touch point data is completed. Based on the interrupt signal, the touch operation is performed according to the collected touch point data. In this way, the time for processing touch point data can be effectively saved, and the touch point data does not need to be processed until all touch point data are collected, thereby improving the response speed of the touch screen and enhancing the user experience.

[0082] Figure 3 is a block diagram of a touch detection device according to an exemplary embodiment. Figure 3 As shown, the device 300 includes:

[0083] The data collection module 301 is configured to collect touch point data corresponding to the touch operation;

[0084] The signal generating module 302 is configured to generate an interrupt signal when the acquisition time of the touch point data is greater than or equal to a preset time threshold; wherein the preset time threshold is less than the total time to complete the touch point data acquisition;

[0085] The control module 303 is configured to perform a touch operation according to the collected touch point data based on the interrupt signal.

[0086] Optionally, the preset time threshold is obtained in the following manner: determining a preset total data volume of touch point data to be collected; obtaining a communication rate at which data is communicated between the terminal's processor and the terminal's touch chip, and collection capability information of the touch chip for collecting touch point data; and determining a preset time threshold based on the preset total data volume, the preset communication rate, and the collection capability information.

[0087] Optionally, the acquisition capability information includes a preset acquisition rate of the touch chip and a preset amount of data collected by the touch chip in a single time; determining the preset time threshold based on the preset total data amount, the preset communication rate and the sampling capability information includes: determining the total transmission time required for the processor to obtain touch point data corresponding to the preset total data amount from the touch chip based on the preset communication rate and the preset total data amount of the processor; determining the data acquisition time based on the preset total data amount and the preset acquisition rate; determining the single transmission time required for the processor to obtain the preset data amount based on the preset communication rate and the preset data amount collected by the touch chip in a single time; determining the preset time threshold based on the total transmission time, the data acquisition time and the single transmission time.

[0088] Optionally, determining the preset time threshold based on the total transmission time, the data acquisition time and the single transmission time includes: calculating a first time difference between the total transmission time and the single transmission time; calculating a second time difference between the data acquisition time and the first time difference; and obtaining the preset time threshold based on the second time difference.

[0089] Optionally, obtaining the preset time threshold according to the second time difference includes: taking the second time difference as the preset time threshold; or taking the sum of the second time difference and the first preset time as the preset time threshold.

[0090] Optionally, the method further includes: acquiring a data processing time corresponding to the processor; and obtaining a preset time threshold according to the second time difference, including: taking a difference between the second time difference and the data processing time as the preset time threshold.

[0091] Optionally, obtaining the data processing time corresponding to the processor includes: taking the preprocessing time for the processor to perform data preprocessing as the data processing time; or taking the sum of the preprocessing time for the processor to perform data preprocessing and a second preset time as the data processing time.

[0092] By adopting the above device, an interrupt signal can be generated in advance before the collection of touch point data is completed. Based on the interrupt signal, a touch operation is performed according to the collected touch point data. In this way, the time for processing touch point data can be effectively saved, and it is not necessary to wait until all touch point data are collected before processing the touch point data, thereby improving the response speed of the touch screen and enhancing the user experience.

[0093] Regarding the device in the above embodiment, the specific manner in which each module performs operations has been described in detail in the embodiment of the method, and will not be elaborated here.

[0094] The present disclosure also provides a computer-readable storage medium having computer program instructions stored thereon, and the program instructions, when executed by a processor, implement the steps of the touch detection method provided by the present disclosure.

[0095] Figure 4 4 is a block diagram of a terminal 400 according to an exemplary embodiment. For example, the terminal 400 may be a mobile phone, a computer, a digital broadcast terminal, a messaging device, a game console, a tablet device, a medical device, a fitness device, a personal digital assistant, etc.

[0096] Reference Figure 4 The terminal 400 may include one or more of the following components: a processing component 402 , a memory 404 , a power component 406 , a multimedia component 408 , an audio component 410 , an input / output (I / O) interface 412 , a sensor component 414 , and a communication component 416 .

[0097] The processing component 402 generally controls the overall operation of the terminal 400, such as operations associated with display, phone calls, data communications, camera operations, and recording operations. The processing component 402 may include one or more processors 420 to execute instructions to complete all or part of the steps of the above-mentioned touch detection method. In addition, the processing component 402 may include one or more modules to facilitate the interaction between the processing component 402 and other components. For example, the processing component 402 may include a multimedia module to facilitate the interaction between the multimedia component 408 and the processing component 402.

[0098] The memory 404 is configured to store various types of data to support operations at the terminal 400. Examples of such data include instructions for any application or method operating on the terminal 400, contact data, phone book data, messages, pictures, videos, etc. The memory 404 may be implemented by any type of volatile or non-volatile storage device or a combination thereof, such as a static random access memory (SRAM), an electrically erasable programmable read-only memory (EEPROM), an erasable programmable read-only memory (EPROM), a programmable read-only memory (PROM), a read-only memory (ROM), a magnetic memory, a flash memory, a magnetic disk, or an optical disk.

[0099] Power component 406 provides power to various components of terminal 400. Power component 406 may include a power management system, one or more power supplies, and other components associated with generating, managing, and distributing power to terminal 400.

[0100] The multimedia component 408 includes a screen that provides an output interface between the terminal 400 and the user. In some embodiments, the screen may include a liquid crystal display (LCD) and a touch panel (TP). If the screen includes a touch panel, the screen may be implemented as a touch screen to receive input signals from the user. The touch panel includes one or more touch sensors to sense touch, slide, and gestures on the touch panel. The touch sensor may not only sense the boundaries of the touch or slide action, but also detect the duration and pressure associated with the touch or slide operation. In some embodiments, the multimedia component 408 includes a front camera and / or a rear camera. When the terminal 400 is in an operating mode, such as a shooting mode or a video mode, the front camera and / or the rear camera may receive external multimedia data. Each front camera and the rear camera may be a fixed optical lens system or have a focal length and optical zoom capability.

[0101] The audio component 410 is configured to output and / or input audio signals. For example, the audio component 410 includes a microphone (MIC), and when the terminal 400 is in an operation mode, such as a call mode, a recording mode, and a speech recognition mode, the microphone is configured to receive an external audio signal. The received audio signal can be further stored in the memory 404 or sent via the communication component 416. In some embodiments, the audio component 410 also includes a speaker for outputting audio signals.

[0102] I / O interface 412 provides an interface between processing component 402 and peripheral interface modules, such as keyboards, click wheels, buttons, etc. These buttons may include but are not limited to: a home button, a volume button, a start button, and a lock button.

[0103] The sensor assembly 414 includes one or more sensors for providing various aspects of status assessment for the terminal 400. For example, the sensor assembly 414 can detect the open / closed state of the terminal 400, the relative positioning of the components, such as the display and keypad of the terminal 400, and the sensor assembly 414 can also detect the position change of the terminal 400 or a component of the terminal 400, the presence or absence of contact between the user and the terminal 400, the orientation or acceleration / deceleration of the terminal 400, and the temperature change of the terminal 400. The sensor assembly 414 may include a proximity sensor configured to detect the presence of nearby objects without any physical contact. The sensor assembly 414 may also include an optical sensor, such as a CMOS or CCD image sensor, for use in imaging applications. In some embodiments, the sensor assembly 414 may also include an acceleration sensor, a gyroscope sensor, a magnetic sensor, a pressure sensor, or a temperature sensor.

[0104] The communication component 416 is configured to facilitate wired or wireless communication between the terminal 400 and other devices. The terminal 400 can access a wireless network based on a communication standard, such as WiFi, 2G or 3G, or a combination thereof. In an exemplary embodiment, the communication component 416 receives a broadcast signal or broadcast-related information from an external broadcast management system via a broadcast channel. In an exemplary embodiment, the communication component 416 also includes a near field communication (NFC) module to facilitate short-range communication. For example, the NFC module can be implemented based on radio frequency identification (RFID) technology, infrared data association (IrDA) technology, ultra-wideband (UWB) technology, Bluetooth (BT) technology and other technologies.

[0105] In an exemplary embodiment, the terminal 400 can be implemented by one or more application-specific integrated circuits (ASICs), digital signal processors (DSPs), digital signal processing devices (DSPDs), programmable logic devices (PLDs), field programmable gate arrays (FPGAs), controllers, microcontrollers, microprocessors or other electronic components to perform the above-mentioned touch detection method.

[0106] In an exemplary embodiment, a non-transitory computer-readable storage medium including instructions is also provided, such as a memory 404 including instructions, and the instructions can be executed by a processor 420 of the device 400 to complete the above touch detection method. For example, the non-transitory computer-readable storage medium can be a ROM, a random access memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, an optical data storage device, etc.

[0107] In another exemplary embodiment, a computer program product is further provided. The computer program product includes a computer program that can be executed by a programmable device. The computer program has a code portion for executing the above touch detection method when executed by the programmable device.

[0108] Those skilled in the art will readily appreciate other embodiments of the present disclosure after considering the specification and practicing the present disclosure. This application is intended to cover any variations, uses or adaptations of the present disclosure, which follow the general principles of the present disclosure and include common knowledge or customary technical means in the art that are not disclosed in the present disclosure. The specification and examples are to be considered as exemplary only, and the true scope and spirit of the present disclosure are indicated by the following claims.

[0109] It should be understood that the present disclosure is not limited to the exact structures that have been described above and shown in the drawings, and that various modifications and changes may be made without departing from the scope thereof. The scope of the present disclosure is limited only by the appended claims.

Claims

1. A touch detection method, It is characterized in that Applied to a terminal, the method comprises: Collecting touch point data corresponding to the touch operation; When the acquisition time of the touch point data is greater than or equal to a preset time threshold, an interrupt signal is generated; wherein the preset time threshold is less than the total time to complete the touch point data acquisition; Based on the interrupt signal, start acquiring the touch point data collected by the touch chip, and perform the touch operation according to the collected touch point data; wherein, before acquiring the last set of touch point data, the touch chip has completed the collection of the last set of touch point data; The preset time threshold is obtained in the following way: Determine a preset total amount of touch point data to be collected; Acquire a preset communication rate for data communication between the processor of the terminal and the touch chip of the terminal, and acquisition capability information of the touch chip for acquiring touch point data; Determining the preset time threshold according to the preset total data volume, the preset communication rate and the acquisition capability information; The acquisition capability information includes a preset acquisition rate of the touch chip and a preset amount of data collected by the touch chip in a single time; and determining the preset time threshold according to the preset total amount of data, the preset communication rate and the acquisition capability information includes: Determining, according to the preset communication rate and the preset total data volume, a total transmission time required for the processor to acquire the touch point data corresponding to the preset total data volume from the touch control chip; Determine the data collection time according to the preset total data volume and the preset collection rate; wherein the data collection time represents the time required for the touch control chip to complete the collection of the preset total data volume at the preset collection rate; Determining a single transmission time required for the processor to acquire the preset data volume according to the preset communication rate and the preset data volume collected by the touch control chip at a single time; The preset time threshold is determined according to the total transmission time, the data collection time and the single transmission time.

2. The method according to claim 1, It is characterized in that Determining the preset time threshold according to the total transmission time, the data collection time, and the single transmission time includes: Calculate a first time difference between the total transmission time and the single transmission time; Calculate a second time difference between the data collection time and the first time difference; The preset time threshold is obtained according to the second time difference.

3. The method according to claim 2, It is characterized in that The obtaining the preset time threshold according to the second time difference includes: Using the second time difference as the preset time threshold; or, The sum of the second time difference and the first preset time is used as the preset time threshold.

4. The method according to claim 2, It is characterized in that The method further comprises: Obtaining data processing time corresponding to the processor; The obtaining the preset time threshold according to the second time difference includes: The difference between the second time difference and the data processing time is used as the preset time threshold.

5. The method according to claim 4, It is characterized in that The obtaining of the data processing time corresponding to the processor comprises: The preprocessing time of the processor performing data preprocessing is used as the data processing time; or, The sum of the preprocessing time for the processor to perform data preprocessing and the second preset time is used as the data processing time.

6. A touch detection device, It is characterized in that include: A data acquisition module is configured to acquire touch point data corresponding to the touch operation; A signal generating module, configured to generate an interrupt signal when the acquisition time of the touch point data is greater than or equal to a preset time threshold; wherein the preset time threshold is less than the total time to complete the touch point data acquisition; The control module is configured to start acquiring the touch point data collected by the touch chip based on the interrupt signal, and perform the touch operation according to the collected touch point data; wherein, before acquiring the last set of touch point data, the touch chip has completed the collection of the last set of touch point data; The preset time threshold is obtained in the following way: Determine a preset total amount of touch point data to be collected; Acquire a preset communication rate for data communication between a processor of a terminal and a touch chip of the terminal, and acquisition capability information of the touch chip for acquiring touch point data; Determining the preset time threshold according to the preset total data volume, the preset communication rate and the acquisition capability information; The acquisition capability information includes a preset acquisition rate of the touch chip and a preset amount of data collected by the touch chip in a single time; and determining the preset time threshold according to the preset total amount of data, the preset communication rate and the acquisition capability information includes: Determining, according to the preset communication rate and the preset total data volume, a total transmission time required for the processor to acquire the touch point data corresponding to the preset total data volume from the touch control chip; Determine the data collection time according to the preset total data volume and the preset collection rate; wherein the data collection time represents the time required for the touch control chip to complete the collection of the preset total data volume at the preset collection rate; Determining a single transmission time required for the processor to acquire the preset data volume according to the preset communication rate and the preset data volume collected by the touch control chip at a single time; The preset time threshold is determined according to the total transmission time, the data collection time and the single transmission time.

7. A terminal, It is characterized in that include: A touch chip and a processor, wherein the touch chip is connected to the processor; The touch chip is configured to collect touch point data corresponding to the touch operation; When the acquisition time of the touch point data is greater than or equal to a preset time threshold, an interrupt signal is generated; wherein the preset time threshold is less than the total time to complete the touch point data acquisition; The processor is configured to start acquiring the touch point data collected by the touch chip based on the interrupt signal, and perform the touch operation according to the collected touch point data; wherein, before acquiring the last set of touch point data, the touch chip has completed the collection of the last set of touch point data; The preset time threshold is obtained in the following way: Determine a preset total amount of touch point data to be collected; Acquire a preset communication rate for data communication between a processor of a terminal and a touch chip of the terminal, and acquisition capability information of the touch chip for acquiring touch point data; Determining the preset time threshold according to the preset total data volume, the preset communication rate and the acquisition capability information; The acquisition capability information includes a preset acquisition rate of the touch chip and a preset amount of data collected by the touch chip in a single time; and determining the preset time threshold according to the preset total amount of data, the preset communication rate and the acquisition capability information includes: Determining, according to the preset communication rate and the preset total data volume, a total transmission time required for the processor to acquire the touch point data corresponding to the preset total data volume from the touch control chip; Determine the data collection time according to the preset total data volume and the preset collection rate; wherein the data collection time represents the time required for the touch control chip to complete the collection of the preset total data volume at the preset collection rate; Determining a single transmission time required for the processor to acquire the preset data volume according to the preset communication rate and the preset data volume collected by the touch control chip at a single time; The preset time threshold is determined according to the total transmission time, the data collection time and the single transmission time.

8. A computer-readable storage medium having computer program instructions stored thereon, It is characterized in that When the program instructions are executed by a processor, the steps of the method described in any one of claims 1 to 5 are implemented.

Citation Information

Patent Citations

  • Touch operation recognition and response method, apparatus and game control method, apparatus

    CN105183214A

  • Touch sensing circuit touch display device and touch sensing method

    CN108121477A