Touch method and device, electronic equipment and storage medium

By using the touch data of the first channel as reference data, the touch data of the multiple second channels are corrected, the coordinates of the touch points are determined and the touch event is executed, which solves the problem of inaccurate touch position caused by noise interference on the display screen, and improves the accuracy of touch operations.

CN119690260AActive Publication Date: 2025-03-25BEIJING XIAOMI MOBILE SOFTWARE CO LTD
View PDF 7 Cites 0 Cited by

Patent Information

Application Number
CN202311247040.1
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2023-09-25
Publication Date
2025-03-25
Estimated Expiration
2043-09-25

AI Technical Summary

Technical Problem

As the thickness of the touch display becomes thinner, the noise of the display will interfere with the touch sensor more and more, reducing the accuracy of the touch sensor positioning and affecting the interactive experience.

Method used

By acquiring the current frame touch data output by the touch sensor, using the touch data of the first channel as reference data, the touch data of the multiple second channels are corrected, the coordinates of the touch point are determined, and the corresponding touch events are performed.

Benefits of technology

It improves the accuracy of obtaining touch point coordinates, improves the accuracy of touch movement, and reduces the impact of noise interference on touch sensors.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119690260A_ABST
    Figure CN119690260A_ABST
Patent Text Reader

Abstract

The invention provides a touch method and device, electronic equipment and a storage medium. The method comprises the steps of obtaining current frame touch data output by a touch sensor; the current frame touch data comprises first touch data output by a first channel of the touch sensor and second touch data output by a plurality of second channels; the first channel is located among the plurality of second channels, and the first touch data is used as reference data of the second touch data; obtaining a touch point coordinate of the current frame touch data; according to the touch point coordinates of at least one frame of touch data, a corresponding touch event is executed, and the at least one frame of touch data comprises the current frame of touch data. Thus, the first channel between the second channels serves as the reference channel, the first touch data serves as the reference data, the accuracy of obtaining the coordinates of the touch point is improved, and the accuracy of the touch action is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present disclosure relates to the field of data processing technology, and in particular to a touch control method and device, an electronic device, and a storage medium. Background Art

[0002] More and more electronic devices use touch screens to achieve display and human-computer interaction. As the thickness of touch screens becomes thinner, the noise of the screen interferes more and more with the touch sensor, thereby reducing the accuracy of the touch sensor in locating the touch position and affecting the interactive experience. Summary of the invention

[0003] The present disclosure provides a touch control method and device, an electronic device, and a storage medium to solve the above technical problems.

[0004] According to a first aspect of the present disclosure, a touch control method is provided, comprising:

[0005] Acquire current frame touch data output by the touch sensor; the current frame touch data includes first touch data output by a first channel of the touch sensor and second touch data output by a plurality of second channels; the first channel is located between the plurality of second channels and the first touch data is used as reference data for the second touch data;

[0006] Acquire the touch point coordinates of the current frame touch data;

[0007] A corresponding touch event is executed according to the touch point coordinates of at least one frame of touch data, wherein the at least one frame of touch data includes the current frame of touch data.

[0008] Optionally, acquiring the touch point coordinates of the current frame touch data includes:

[0009] Performing correction processing on the second touch data of each second channel in the current frame of touch data to obtain touch correction data of each second channel;

[0010] The coordinates of the touch points in the current frame of touch data are determined according to the first touch data of the first channel and the touch correction data of each second channel.

[0011] Optionally, performing correction processing on the second touch data of each second channel in the current frame touch data to obtain touch correction data of each second channel includes:

[0012] Taking the first channel as a reference channel, acquiring touch correction data of the current second channel in ascending order of distance, the touch correction data being the sum of the second touch data of the current second channel, the second touch data of the second channels between the current second channel and the reference channel, and the first touch data;

[0013] In response to acquiring the touch integral value of the outermost second channel, it is determined to obtain the touch correction data of each second channel.

[0014] Optionally, determining the coordinates of the touch point in the current frame touch data according to the first touch data of the first channel and the touch correction data of each second channel includes:

[0015] Obtaining the maximum value of each frame of touch data in the row direction and the maximum value in the column direction, and obtaining the candidate positions of the maximum value in the row direction and the maximum value in the column direction;

[0016] Respectively acquiring the touch correction data of the row and the column where the candidate position is located to obtain first candidate data and second candidate data;

[0017] Respectively obtain the weighted sum of the touch correction data of each column in the first candidate data and its weight value to obtain row coordinate data;

[0018] Respectively obtain the weighted sum of the touch correction data of each row in the second candidate data and its weight value to obtain column coordinate data;

[0019] The row coordinate data and the column coordinate data are determined as coordinates of the touch point in the touch data.

[0020] Optionally, executing a corresponding touch event according to the touch point coordinates of at least one frame of touch data includes:

[0021] Determine a touch track according to the coordinates of the touch point in the at least one frame of touch data;

[0022] Execute a touch event corresponding to the touch track.

[0023] Optionally, determining the touch track according to the coordinates of the touch point in the at least one frame of touch data includes:

[0024] In response to acquiring the coordinate data of the current frame of touch data, acquiring the coordinates of the touch point in the at least one frame of touch data;

[0025] The coordinates of the touch points in the at least one frame of touch data are input into a preset trajectory recognition model to obtain a touch trajectory output by the preset trajectory recognition model.

[0026] Optionally, before acquiring the current frame touch data output by the touch sensor, the method further includes:

[0027] In response to receiving the frame synchronization signal, starting a target timer, the target timer being used to time a preset duration;

[0028] In response to the target timer timing reaching the preset time length, a scan signal is output to each transmitting channel of the touch sensor, so that each receiving channel of the touch sensor generates touch data.

[0029] According to a second aspect of the present disclosure, a touch control device is provided, comprising:

[0030] A current data acquisition module is used to acquire current frame touch data output by the touch sensor; the current frame touch data includes first touch data output by a first channel of the touch sensor and second touch data output by a plurality of second channels; the first channel is located between the plurality of second channels and the first touch data is used as reference data for the second touch data;

[0031] A coordinate data acquisition module, used to acquire the coordinates of the touch point of the current frame touch data;

[0032] The touch event execution module is used to execute a corresponding touch event according to a touch point in at least one frame of touch data, wherein the at least one frame of touch data includes a current frame of touch data.

[0033] Optionally, the coordinate data acquisition module includes:

[0034] A correction data acquisition submodule, used for performing correction processing on the second touch data of each second channel in the current frame touch data to obtain touch correction data of each second channel;

[0035] The coordinate data acquisition submodule is used to determine the coordinates of the touch points in the current frame touch data according to the first touch data of the first channel and the touch correction data of each second channel.

[0036] Optionally, the correction data acquisition submodule includes:

[0037] a correction data acquisition unit, configured to use the first channel as a reference channel and sequentially acquire touch correction data of the current second channel from the inside to the outside, wherein the touch correction data is a sum of the second touch data of the current second channel, the second touch data of the second channels between the current second channel and the reference channel, and the first touch data;

[0038] The correction data determination unit is used to determine and obtain touch correction data of each second channel in response to acquiring the touch integral value of the outermost second channel.

[0039] Optionally, the coordinate data acquisition submodule includes:

[0040] A candidate position acquisition unit, used to acquire the maximum value of each frame of touch data in the row direction and the maximum value in the column direction, and obtain the candidate position where the maximum value in the row direction and the maximum value in the column direction are located;

[0041] A candidate data acquisition unit, used to respectively acquire the touch correction data of the row and the column where the candidate position is located, to obtain first candidate data and second candidate data;

[0042] A row coordinate acquisition unit, used to respectively acquire a weighted sum of the touch correction data of each column in the first candidate data and its weight value, to obtain row coordinate data;

[0043] A column coordinate acquisition unit, used to respectively acquire a weighted sum of the touch correction data of each row in the second candidate data and its weight value, to obtain column coordinate data;

[0044] The touch point coordinate determining unit is used to determine the row coordinate data and the column coordinate data as the coordinates of the touch point in each frame of touch data.

[0045] Optionally, the touch event execution module includes:

[0046] A touch track determination submodule, configured to determine the touch track according to the coordinates of the touch point in the at least one frame of touch data;

[0047] The touch event execution submodule is used to execute the touch event corresponding to the touch track.

[0048] Optionally, the touch track determination submodule includes:

[0049] a coordinate data acquisition unit, configured to acquire, in response to acquiring the coordinate data of the current frame of touch data, the coordinates of a touch point in at least one frame of touch data before the current frame of touch data;

[0050] The touch track acquisition unit is used to input the coordinates of the touch points in the current frame touch data and at least one previous frame touch data into a preset track recognition model to obtain the touch track output by the preset track recognition model.

[0051] Optionally, the device further comprises:

[0052] A timer starting module, used for starting a target timer in response to receiving a frame synchronization signal, wherein the target timer is used for timing a preset duration;

[0053] The scanning signal output module is used to output a scanning signal to each transmitting channel of the touch sensor in response to the target timer timing reaching the preset time length, so that each receiving channel of the touch sensor generates touch data.

[0054] According to a third aspect of the present disclosure, there is provided an electronic device, including:

[0055] Processor and memory;

[0056] The memory is used to store a computer program executable by the processor;

[0057] The processor is configured to execute the computer program in the memory to implement the method as described in any one of the first aspects.

[0058] Optionally, the touch sensor includes a first differentiator arranged in the first channel and a second differentiator arranged in the second channel; an inverting input terminal of the first differentiator is grounded, a non-inverting input terminal of the first differentiator is electrically connected to a non-inverting input terminal of a second differentiator of a previous stage and an inverting input terminal of a second differentiator of a subsequent stage respectively, and an output terminal of the first differentiator is electrically connected to a receiving signal line of the row;

[0059] The inverting input end of each stage of the second differentiator is electrically connected to the matching transmission signal line and the non-phase input end of the previous stage of the second differentiator, and the output end of each stage of the second differentiator is electrically connected to the receiving signal line of the row.

[0060] According to a fourth aspect of the present disclosure, a non-transitory computer-readable storage medium is provided, and when an executable computer program in the storage medium is executed by a processor, the method described in any one of the first aspects can be implemented.

[0061] The technical solution provided by the embodiments of the present disclosure may have the following beneficial effects:

[0062] The solution of this embodiment can obtain the current frame touch data output by the touch sensor; the current frame touch data includes the first touch data output by the first channel of the touch sensor and the second touch data output by multiple second channels; the first channel is located between the multiple second channels and the first touch data is used as reference data for the second touch data; the touch point coordinates of the current frame touch data are obtained; and the corresponding touch event is executed according to the touch point coordinates of at least one frame of touch data, wherein the at least one frame of touch data includes the current frame touch data. In this way, this embodiment uses the first channel between the second channels as the reference channel and the first touch data as the reference data, which is conducive to improving the accuracy of obtaining the coordinates of the touch point and improving the accuracy of the touch action.

[0063] 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

[0064] Figure 1 The figure is a schematic diagram of the structure of a touch sensor according to an embodiment of the present disclosure.

[0065] Figure 2The present invention is a schematic structural diagram of a touch display screen according to an embodiment of the present invention.

[0066] Figure 3 The figure is a schematic diagram of the structure of a touch sensor according to an embodiment of the present disclosure.

[0067] Figure 4 The present invention is a schematic structural diagram of a touch display screen according to an embodiment of the present invention.

[0068] Figure 5 The present invention is a schematic structural diagram of a touch display screen according to an embodiment of the present invention.

[0069] Figure 6 A schematic diagram of a scanning signal timing according to an embodiment of the present disclosure.

[0070] Figure 7 The present invention is a schematic structural diagram of a touch display screen according to an embodiment of the present invention.

[0071] Figure 8 The present invention is a flow chart of a touch control method according to an embodiment of the present invention.

[0072] Fig. 9 The present invention is a flowchart of obtaining coordinate data according to an embodiment of the present invention.

[0073] Fig.10 The present invention is a block diagram of a touch control device according to an embodiment of the present invention.

[0074] Fig.11 The present invention is a block diagram of an electronic device according to an embodiment of the present invention. DETAILED DESCRIPTION

[0075] 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 consistent with some aspects of the present disclosure as detailed in the appended claims.

[0076] The embodiments of the present disclosure provide a touch control method and device, an electronic device, and a storage medium. The touch control method can be applied to an electronic device provided with a touch sensor. The electronic device can include but is not limited to a smart phone, a tablet computer, a server, and other devices. The electronic device includes a touch sensor, and the touch sensor includes a plurality of columns of transmitting signal lines and a plurality of rows of receiving signal lines.

[0077] For example, there are 5 transmitting signal lines and 5 receiving signal lines. Figure 1 FIG. 1 is a schematic diagram of a touch sensor according to an embodiment of the present disclosure. Figure 1, the touch sensor includes transmitting signal lines TX1~TX5 and receiving signal lines RX1~RX5. A coupling capacitor C is formed at the overlapping position of the transmitting signal line TX and the receiving signal line RX, such as C(1,1)~C(5,5). When the transmitting signal line TX receives the scanning signal, touch data can be detected at the receiving signal line RX via the coupling capacitor C. The touch data may include at least one of the following: voltage value, capacitance value, current value, etc. When the touch sensor is not touched, the coupling capacitor C is small, and the touch data at this time is small, which can be regarded as no output data or the touch data is 0. When the touch sensor is touched (for example, clicked or the distance is less than the distance threshold (such as 2mm)), the coupling capacitor C becomes larger (equivalent to short-circuiting the transmitting signal line and the receiving signal line at the touch position), and larger touch data can be detected at the receiving signal line RX.

[0078] Considering that electronic equipment may be affected by the surrounding environment, noise signals may enter through the edge transmission signal line.

[0079] Since the distances between the far-end transmission signal line RX_far and the near-end transmission signal line RX_near and the controller of the touch sensor (which may be one of the following: a touch chip, a processor, etc.) are different, the sizes of the received noise signals are different, thereby affecting the working performance of the touch sensor. To this end, in one embodiment, the touch sensor includes a first differentiator arranged in a first channel and a second differentiator arranged in a second channel; the inverting input terminal of the first differentiator is grounded, the non-inverting input terminal of the first differentiator is electrically connected to the non-inverting input terminal of the second differentiator of the previous stage and the inverting input terminal of the second differentiator of the next stage, respectively, and the output terminal of the first differentiator is electrically connected to the receiving signal line of the row;

[0080] The inverting input end of each stage of the second differentiator is electrically connected to the matching transmission signal line and the non-phase input end of the previous stage of the second differentiator, and the output end of each stage of the second differentiator is electrically connected to the receiving signal line of the row.

[0081] It is understandable that the first differentiator is located between multiple second differentiators. In one example, the first differentiator is located in the middle of the multiple second differentiators. When the number of receiving signal lines is an odd number, the middle position is the channel where the middle row of receiving signal lines is located; when the number of receiving signal lines is an even number, the middle position is the channel where any one of the two middle rows of receiving signal lines is located. It should be noted that the position of the differentiator refers to the row number of the receiving signal line to which the output end of the differentiator is connected. In other words, in each embodiment of the present disclosure, the channel refers to the signal transmission path of the signal line or the row and column where the signal line is located; for example, the transmitting channel refers to the transmitting signal line, and the receiving channel refers to the receiving signal line or the path formed by the receiving signal line and the differentiator.

[0082] For example, if there are 5 transmitting signal lines TX and 5 receiving signal lines, see Figure 3 The touch sensor includes differentiators A1 to A5. Differentiator A3 is used as a first differentiator, and differentiators A1, A2, A4 and A5 are used as second differentiators.

[0083] The inverting input terminal of the differentiator A1 is electrically connected to the transmission signal line TX1, the non-inverting input terminal of the differentiator A1 is electrically connected to the transmission signal line TX2 and the inverting input terminal of the differentiator A2, and the output terminal of the differentiator A1 is electrically connected to the reception signal line RX1.

[0084] The inverting input terminal of the differentiator A2 is electrically connected to the transmission signal line TX2, the non-inverting input terminal of the differentiator A2 is electrically connected to the transmission signal line TX2 and the non-inverting input terminal of the differentiator A3, and the output terminal of the differentiator A2 is electrically connected to the reception signal line RX2.

[0085] The inverting input terminal of the differentiator A3 is grounded, the non-inverting input terminal of the differentiator A3 is electrically connected to the transmission signal line TX3 and the inverting input terminal of the differentiator A4, and the output terminal of the differentiator A3 is electrically connected to the reception signal line RX3.

[0086] The inverting input terminal of the differentiator A4 is electrically connected to the transmission signal line TX3, the non-inverting input terminal of the differentiator A4 is electrically connected to the transmission signal line TX4 and the inverting input terminal of the differentiator A5, and the output terminal of the differentiator A4 is electrically connected to the reception signal line RX4.

[0087] The in-phase input terminal of the differentiator A5 is electrically connected to the transmission signal line TX5, and the output terminal of the differentiator A5 is electrically connected to the reception signal line RX5.

[0088] When the scanning signals are written to the transmitting signal lines TX1 to TX5 in sequence, the touch data output by the receiving signal lines RX1 to RX5 are D RX2-RX1 , D RX3-RX2 , D RX3 , D RX4-RX3 and D RX5-RX4 In other words, except for the receiving signal line RX3, the touch data output by other receiving signal lines are all differential data, which can avoid the influence of edge noise on the reference channel, namely the receiving signal line RX3, and make the touch data output by the receiving signal line RX3 less volatile.

[0089] Considering that the touch sensor is integrated into the display screen, ie, the touch display screen, the distance between the display circuit and the touch sensor is relatively close.

[0090] See also Figure 4 , the TFE package between the touch sensor 41 and the display circuit 42 is getting thinner and thinner, for example, 8 to 12 um.

[0091] See also Figure 5 There is a coupling circuit between the touch sensor 41 and the display circuit 42, for example, there is a coupling capacitor C2 between the transmitting signal line TX and the display circuit 42, and there is a coupling capacitor C3 between the receiving signal line RX and the display circuit 42; when the TFE package is thinner, the coupling capacitance between the display circuit 42 and the transmitting signal line TX and the receiving signal line RX becomes larger and larger. At this time, the display noise of the display circuit will also be coupled to the touch sensor through the coupling capacitors C2 and C3, thereby affecting the touch data output by the receiving signal line RX, and further affecting the working performance of the touch display screen.

[0092] In the process of implementing the disclosed solution, the inventors have verified through a large number of experiments that when the display circuit is in the frame synchronization signal switching state, the interference to the touch sensor is relatively large.

[0093] See also Figure 6 , when the display circuit switches the frame synchronization signal (display hsync), it will synchronously generate display noise (display noise). In one embodiment, see Figure 7 The touch sensor also includes a controller 71, which includes a synchronization signal pin, and the synchronization signal pin is used to receive a frame synchronization signal (display hsync) of the display circuit. The controller 71 can start a target timer when receiving the frame synchronization signal, and the target timer is used to time a preset duration. The value range of the preset duration is [0, 10ms], which can be adjusted according to the frame rate of the touch display screen. In one example, the preset duration can be 1ms. When the target timer reaches the preset duration, the controller can output a scan signal to each transmission signal line of the touch sensor, where the scan signal is Figure 6 The signal Scan_TX shown in FIG. 1 makes each receiving signal line of the touch sensor generate and output touch data. In this way, the interference of display noise on the touch sensor can be avoided in this embodiment, and the signal-to-noise ratio of the reference data of the reference channel can be further improved.

[0094] exist Figure 1 to Figure 7 Based on the electronic device exemplified, the present disclosure also provides a touch control method, see Figure 8 , including steps 81 to 83.

[0095] In step 81, the current frame touch data output by the touch sensor is obtained; the current frame touch data includes first touch data output by a first channel of the touch sensor and second touch data output by multiple second channels; the first channel is located between the multiple second channels and the first touch data serves as reference data for the second touch data.

[0096] In this step, the electronic device can output a scanning signal to the touch sensor according to a set period. For example, when the display frame rate is 30fps, the preset period can be 33ms, which can be set according to the specific scenario and is not limited here. In one example, the electronic device can output a scanning signal to the touch sensor after a preset delay time when detecting a frame synchronization signal (display hsync), which can be seen in Figure 7 The content of the exemplary solution is not repeated here. Then, the electronic device can obtain the touch data output by the touch sensor, which is subsequently referred to as the current frame touch data.

[0097] It is understandable that the above current frame touch data includes the first touch data output by the first channel of the touch sensor and the second touch data output by the plurality of second channels; the first channel is located between the plurality of second channels and the first touch data is used as the reference data of the second touch data, which can be seen in Figure 3 The content of the example solution will not be repeated here.

[0098] In step 82, the coordinates of the touch point of the current frame touch data are obtained.

[0099] In this step, the electronic device can obtain the coordinates of the touch point of the current frame touch data, see Fig. 9 , including step 91 and step 92.

[0100] In step 91, the second touch data of each second channel in the current frame of touch data is corrected to obtain touch correction data of each second channel.

[0101] In this step, the electronic device can perform correction processing on the second touch data of each second channel in the current frame touch data, for example, perform integration processing on the second control data of each second channel to obtain touch correction data of each second channel. For example, taking the first channel as the reference channel, the electronic device can sequentially obtain the touch correction data of the current second channel starting from the reference channel in the order of distance from small to large, and the touch correction data is the sum of the second touch data of the current second channel, the second touch data of the second channel between the current second channel and the reference channel, and the first touch data. Then, in response to obtaining the touch integral value of the outermost second channel, the electronic device can determine to obtain the touch correction data of each second channel.

[0102] Continue to see Figure 3 , the touch calibration data of each channel are as follows:

[0103] RX1:D RX1 =D RX3 +D RX3-RX2 +D RX2-RX1 ;

[0104] RX2:D RX2 =D RX3 +D RX3-RX2 ;

[0105] RX5:D RX3

[0106] RX4:D RX4 =D RX3 +D RX4-RX3 ;

[0107] RX5:D RX5 =D RX3 +D RX4-RX3 +D RX5-RX4 .

[0108] In step 92, the coordinates of the touch points in the current frame of touch data are determined according to the first touch data of the first channel and the touch correction data of each second channel.

[0109] In this step, the electronic device can obtain the maximum value of each frame of touch data in the row direction and the maximum value in the column direction, and obtain the candidate positions of the maximum value in the row direction and the maximum value in the column direction, such as X(3, 3) shown in Table 1.

[0110] Table 1 Touch calibration data for each frame

[0111] X(1,1) X(1,2) X(1,3) X(1,4) X(1,5) X(2,1) X(2,2) X(2,3) X(2,4) X(2,5) X(3,1) X(3,2) X(3,3) X(3,4) X(3,5) X(4,1) X(4,2) X(4,3) X(4,4) X(4,5) X(5,1) X(5,2) X(5,3) X(5,4) X(5,5)

[0112] Then, the electronic device can respectively obtain the touch correction data of the row and column where the candidate position is located to obtain the first candidate data and the second candidate data, such as the first candidate data is the touch correction data of the third row in Table 1, and the second candidate data is the touch correction data of the third column in Table 1.

[0113] Afterwards, the electronic device can respectively obtain the weighted sum of the touch correction data of each column in the first candidate data and its weight value to obtain row coordinate data, as shown in formula (1).

[0114]

[0115] In formula (1), X (3,1) , X (3,2) , X (3,3) , X (3,4) , X (3,5) They are respectively the touch correction data of each column in the first candidate data.

[0116] The electronic device can respectively obtain the weighted sum of the touch correction data of each row in the second candidate data and its weight value to obtain column coordinate data, as shown in formula (2).

[0117]

[0118] In formula (2), X (1,3) ,X (2,3) ,X (3,3) ,X (4,3) ,X (5,3) are touch correction data of each row in the second candidate data respectively.

[0119] Finally, the electronic device can determine the row coordinate data and the column coordinate data as the coordinates of the touch point in each frame of touch data. It can be understood that the above candidate position is a preliminary position selected, such as (3, 3); and the coordinates of the above touch point are a precise position, such as (3.1, 2.9).

[0120] In step 83, a corresponding touch event is executed according to the touch point coordinates of at least one frame of touch data, wherein the at least one frame of touch data includes the current frame of touch data.

[0121] In this step, the electronic device can determine the touch trajectory according to the coordinates of the touch point in at least one frame of touch data. It should be noted that the at least one frame of touch data includes the current frame of touch data, that is, the electronic device can obtain the touch data before the current frame of touch data, and / or the touch data after the current frame of touch data to constitute the above at least one frame of touch data.

[0122] Taking the acquisition of previous touch data as an example, after acquiring the coordinate data of the current frame touch data, the electronic device can acquire the coordinates of the touch point in at least one frame of touch data before the current frame touch data. Then, the electronic device can input the coordinates of the touch point in the current frame touch data and at least one frame of touch data before it into the preset trajectory recognition model to obtain the touch trajectory output by the preset trajectory recognition model.

[0123] It should be noted that the above-mentioned preset trajectory recognition model can be implemented using a neural network, such as a convolutional neural network, a recurrent neural network, etc., which is not limited here. The preset trajectory recognition model can be preset to complete training, that is, different touch trajectories are input into the neural network for training; when the proportion of the number of touch trajectories recognized by the neural network that are the same as the labeled categories in the training data exceeds a proportion threshold (such as 80% to 100%), it is determined that the neural network has completed training and is used as the above-mentioned preset trajectory model.

[0124] In this step, the electronic device can execute the touch event corresponding to the touch track, and the above touch events include but are not limited to switching pages, displaying pop-up windows, launching APPs, clicking, long pressing, etc., and the touch events can be set according to specific scenarios. After executing the touch event, touch feedback matching the touch event can be generated, such as page switching, pop-up windows, etc.

[0125] So far, the scheme of this embodiment can obtain the current frame touch data output by the touch sensor; the current frame touch data includes the first touch data output by the first channel of the touch sensor and the second touch data output by multiple second channels; the first channel is located between the multiple second channels and the first touch data is used as reference data for the second touch data; the touch point coordinates of the current frame touch data are obtained; and the corresponding touch event is executed according to the touch point coordinates of at least one frame of touch data, wherein the at least one frame of touch data includes the current frame touch data. In this way, this embodiment uses the first channel between the second channels as the reference channel and the first touch data as the reference data, which is conducive to improving the accuracy of obtaining the coordinates of the touch point and improving the accuracy of the touch action.

[0126] In the present disclosure, a touch control method is provided. The present disclosure also provides a touch control device. Fig.10 , the device comprises:

[0127] The current data acquisition module 101 is used to acquire the current frame touch data output by the touch sensor; the current frame touch data includes the first touch data output by the first channel of the touch sensor and the second touch data output by the plurality of second channels; the first channel is located between the plurality of second channels and the first touch data is used as the reference data of the second touch data;

[0128] A coordinate data acquisition module 102 is used to acquire the coordinates of the touch point of the current frame touch data;

[0129] The touch event execution module 103 is used to execute a corresponding touch event according to a touch point in at least one frame of touch data, wherein the at least one frame of touch data includes a current frame of touch data.

[0130] Optionally, the coordinate data acquisition module includes:

[0131] A correction data acquisition submodule, used for performing correction processing on the second touch data of each second channel in the current frame touch data to obtain touch correction data of each second channel;

[0132] The coordinate data acquisition submodule is used to determine the coordinates of the touch points in the current frame touch data according to the first touch data of the first channel and the touch correction data of each second channel.

[0133] Optionally, the correction data acquisition submodule includes:

[0134] a correction data acquisition unit, configured to use the first channel as a reference channel and sequentially acquire touch correction data of the current second channel from the inside to the outside, wherein the touch correction data is a sum of the second touch data of the current second channel, the second touch data of the second channels between the current second channel and the reference channel, and the first touch data;

[0135] The correction data determination unit is used to determine and obtain touch correction data of each second channel in response to acquiring the touch integral value of the outermost second channel.

[0136] Optionally, the coordinate data acquisition submodule includes:

[0137] A candidate position acquisition unit, used to acquire the maximum value of each frame of touch data in the row direction and the maximum value in the column direction, and obtain the candidate position where the maximum value in the row direction and the maximum value in the column direction are located;

[0138] A candidate data acquisition unit, used to respectively acquire the touch correction data of the row and the column where the candidate position is located, to obtain first candidate data and second candidate data;

[0139] A row coordinate acquisition unit, used to respectively acquire a weighted sum of the touch correction data of each column in the first candidate data and its weight value, to obtain row coordinate data;

[0140] A column coordinate acquisition unit, used to respectively acquire a weighted sum of the touch correction data of each row in the second candidate data and its weight value, to obtain column coordinate data;

[0141] The touch point coordinate determining unit is used to determine the row coordinate data and the column coordinate data as the coordinates of the touch point in each frame of touch data.

[0142] Optionally, the touch event execution module includes:

[0143] A touch track determination submodule, configured to determine the touch track according to the coordinates of the touch point in the at least one frame of touch data;

[0144] The touch event execution submodule is used to execute the touch event corresponding to the touch track.

[0145] Optionally, the touch track determination submodule includes:

[0146] a coordinate data acquisition unit, configured to acquire, in response to acquiring the coordinate data of the current frame of touch data, the coordinates of a touch point in at least one frame of touch data before the current frame of touch data;

[0147] The touch track acquisition unit is used to input the coordinates of the touch points in the current frame touch data and at least one previous frame touch data into a preset track recognition model to obtain the touch track output by the preset track recognition model.

[0148] Optionally, the device further comprises:

[0149] A timer starting module, used for starting a target timer in response to receiving a frame synchronization signal, wherein the target timer is used for timing a preset duration;

[0150] The scanning signal output module is used to output a scanning signal to each transmitting channel of the touch sensor in response to the target timer timing reaching the preset time length, so that each receiving channel of the touch sensor generates touch data.

[0151] It should be noted that the device embodiment shown in this embodiment matches the content of the above method embodiment, and the content of the above method embodiment can be referred to, which will not be repeated here.

[0152] Fig.11 1 is a block diagram of an electronic device according to an exemplary embodiment. For example, the electronic device 1100 may be a smart phone, a computer, a digital broadcast terminal, a tablet device, a medical device, a fitness device, a personal digital assistant, etc.

[0153] Reference Fig.11 The electronic device 1100 may include one or more of the following components: a processing component 1102 , a memory 1104 , a power component 1106 , a multimedia component 1108 , an audio component 1110 , an input / output (I / O) interface 1112 , a sensor component 1114 , a communication component 1116 , and an image acquisition component 1118 .

[0154] The processing component 1102 generally controls the overall operation of the electronic device 1100, such as operations associated with display, phone calls, data communications, camera operations, and recording operations. The processing component 1102 may include one or more processors 1120 to execute computer programs. In addition, the processing component 1102 may include one or more modules to facilitate interaction between the processing component 1102 and other components. For example, the processing component 1102 may include a multimedia module to facilitate interaction between the multimedia component 1108 and the processing component 1102. In an example, the processor 1120 may implement the scheme of the above-mentioned power supply control method.

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

[0156] The power supply component 1106 provides power to various components of the electronic device 1100. The power supply component 1106 may include a power management system, one or more power supplies, and other components associated with generating, managing, and distributing power to the electronic device 1100. The power supply component 1106 may include a power chip, and the controller may communicate with the power chip to control the power chip to turn on or off the first switch device, so that the battery supplies power to the mainboard circuit or not. In one example, the power supply component 1106 includes Figure 3 The first power supply circuit and the second power supply circuit shown, and / or Figure 6 The third power supply circuit is shown.

[0157] The multimedia component 1108 includes a screen that provides an output interface between the electronic device 1100 and the target object. 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 information from the target object. 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 a touch or slide action, but also detect the duration and pressure associated with the touch or slide operation.

[0158] The audio component 1110 is configured to output and / or input audio file information. For example, the audio component 1110 includes a microphone (MIC), and when the electronic device 1100 is in an operation mode, such as a call mode, a recording mode, and a speech recognition mode, the microphone is configured to receive external audio file information. The received audio file information can be further stored in the memory 1104 or sent via the communication component 1116. In some embodiments, the audio component 1110 also includes a speaker for outputting audio file information.

[0159] The I / O interface 1112 provides an interface between the processing component 1102 and a peripheral interface module, which may be a keyboard, a click wheel, a button, etc.

[0160] The sensor component 1114 includes one or more sensors for providing various aspects of status assessment for the electronic device 1100. For example, the sensor component 1114 can detect the open / closed state of the electronic device 1100, the relative positioning of the components, such as the display screen and the keypad of the electronic device 1100, and the sensor component 1114 can also detect the position change of the electronic device 1100 or a component, the presence or absence of contact between the target object and the electronic device 1100, the orientation or acceleration / deceleration of the electronic device 1100, and the temperature change of the electronic device 1100. In this example, the sensor component 1114 can include a magnetic sensor, a gyroscope, and a magnetic field sensor, and can also include an inertial sensor, an image sensor, etc., wherein the magnetic field sensor includes at least one of the following: a Hall sensor, a thin film magnetoresistive sensor, and a magnetic liquid acceleration sensor.

[0161] The communication component 1116 is configured to facilitate wired or wireless communication between the electronic device 1100 and other devices. The electronic device 1100 can access a wireless network based on a communication standard, such as WiFi, 2G, 3G, 4G, 5G, or a combination thereof. In an exemplary embodiment, the communication component 1116 receives broadcast information or broadcast-related information from an external broadcast management system via a broadcast channel. In an exemplary embodiment, the communication component 1116 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.

[0162] In an exemplary embodiment, the electronic device 1100 may 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.

[0163] In an exemplary embodiment, the present disclosure also provides a non-transitory computer-readable storage medium, and when an executable computer program in the storage medium is executed by a processor, the above-mentioned method can be implemented.

[0164] In an exemplary embodiment, a chip is also provided, the chip including a processor and an interface for reading a computer program through the interface to implement the above method. The chip may be a conventional CPU (central processing unit) chip, a GPU (graphics processing unit) chip, etc., or an acceleration chip dedicated to artificial intelligence technology, such as an AI (Artificial Intelligence) accelerator, etc.

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

[0166] 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 control method, characterized in that: include: Acquire current frame touch data output by the touch sensor; the current frame touch data includes first touch data output by a first channel of the touch sensor and second touch data output by a plurality of second channels; the first channel is located between the plurality of second channels and the first touch data is used as reference data for the second touch data; Acquire the touch point coordinates of the current frame touch data; A corresponding touch event is executed according to the touch point coordinates of at least one frame of touch data, wherein the at least one frame of touch data includes the current frame of touch data.

2. The method according to claim 1, characterized in that Acquiring the touch point coordinates of the current frame touch data includes: Performing correction processing on the second touch data of each second channel in the current frame of touch data to obtain touch correction data of each second channel; The coordinates of the touch points in the current frame of touch data are determined according to the first touch data of the first channel and the touch correction data of each second channel.

3. The method according to claim 2, characterized in that Correcting the second touch data of each second channel in the current frame of touch data to obtain touch correction data of each second channel includes: Taking the first channel as a reference channel, acquiring touch correction data of the current second channel in ascending order of distance, the touch correction data being the sum of the second touch data of the current second channel, the second touch data of the second channels between the current second channel and the reference channel, and the first touch data; In response to acquiring the touch integral value of the outermost second channel, it is determined to obtain the touch correction data of each second channel.

4. The method according to claim 2, characterized in that: Determining the coordinates of the touch points in the current frame touch data according to the first touch data of the first channel and the touch correction data of each second channel includes: Obtaining the maximum value of each frame of touch data in the row direction and the maximum value in the column direction, and obtaining the candidate positions of the maximum value in the row direction and the maximum value in the column direction; Respectively acquiring the touch correction data of the row and the column where the candidate position is located to obtain first candidate data and second candidate data; Respectively obtain the weighted sum of the touch correction data of each column in the first candidate data and its weight value to obtain row coordinate data; Respectively obtain the weighted sum of the touch correction data of each row in the second candidate data and its weight value to obtain column coordinate data; The row coordinate data and the column coordinate data are determined as coordinates of the touch point in the touch data.

5. The method according to claim 1, characterized in that Executing a corresponding touch event according to the touch point coordinates of at least one frame of touch data includes: Determine a touch track according to the coordinates of the touch point in the at least one frame of touch data; Execute a touch event corresponding to the touch track.

6. The method according to claim 5, characterized in that Determining a touch track according to the coordinates of the touch point in the at least one frame of touch data includes: In response to acquiring the coordinate data of the current frame of touch data, acquiring the coordinates of the touch point in the at least one frame of touch data; The coordinates of the touch points in the at least one frame of touch data are input into a preset trajectory recognition model to obtain a touch trajectory output by the preset trajectory recognition model.

7. The method according to claim 1, characterized in that Before acquiring the current frame touch data output by the touch sensor, the method further includes: In response to receiving the frame synchronization signal, starting a target timer, the target timer being used to time a preset duration; In response to the target timer timing reaching the preset time length, a scan signal is output to each transmitting channel of the touch sensor, so that each receiving channel of the touch sensor generates touch data.

8. A touch device, characterized in that: include: A current data acquisition module is used to acquire current frame touch data output by the touch sensor; the current frame touch data includes first touch data output by a first channel of the touch sensor and second touch data output by a plurality of second channels; the first channel is located between the plurality of second channels and the first touch data is used as reference data for the second touch data; A coordinate data acquisition module, used to acquire the coordinates of the touch point of the current frame touch data; The touch event execution module is used to execute a corresponding touch event according to a touch point in at least one frame of touch data, wherein the at least one frame of touch data includes a current frame of touch data.

9. An electronic device, characterized in that: include: touch sensors, processors and memory; The touch sensor is used to output current frame touch data; The memory is used to store a computer program executable by the processor; The processor is configured to execute the computer program in the memory to implement the method according to any one of claims 1 to 7.

10. The electronic device according to claim 9, characterized in that: The touch sensor includes a first differentiator arranged in a first channel and a second differentiator arranged in a second channel; an inverting input terminal of the first differentiator is grounded, a non-inverting input terminal of the first differentiator is electrically connected to a non-inverting input terminal of a second differentiator of a previous stage and an inverting input terminal of a second differentiator of a subsequent stage respectively, and an output terminal of the first differentiator is electrically connected to a receiving signal line of a row; The inverting input end of each stage of the second differentiator is electrically connected to the matching transmission signal line and the non-phase input end of the previous stage of the second differentiator, and the output end of each stage of the second differentiator is electrically connected to the receiving signal line of the row.

11. A non-transitory computer-readable storage medium, characterized in that: When the executable computer program in the storage medium is executed by a processor, the method according to any one of claims 1 to 7 can be implemented.

Citation Information

Patent Citations

  • Method, electronic device and terminal device for determining touch control sensing distance

    CN109643195A

  • Method and device for multi-channel touch detection in touch screen

    CN112947791A

  • Touch detection method, medium, touch control chip and touch control display device

    US11460962B1

  • Touch Sensing Device

    US20140176488A1

  • Display device and method of driving the same

    US20200326800A1