Touch data acquisition method and device, touch module, and electronic device

By incorporating an integration circuit, a compensation circuit, and an analog-to-digital converter into the touch module, the touch noise problem caused by increased parasitic capacitance is solved, thereby improving the signal-to-noise ratio and the effectiveness of touch control.

CN115407892BActive Publication Date: 2026-06-19BEIJING XIAOMI MOBILE SOFTWARE CO LTD

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
BEIJING XIAOMI MOBILE SOFTWARE CO LTD
Filing Date
2021-05-27
Publication Date
2026-06-19

Smart Images

  • Figure CN115407892B_ABST
    Figure CN115407892B_ABST
Patent Text Reader

Abstract

This disclosure relates to a touch data acquisition method and apparatus, a touch module, and an electronic device. The module includes: an integrating circuit for converting current signals from touch detection lines at a touch location into a first touch signal; the first touch signal includes noise signals and touch signals; a compensation circuit for storing the first touch signal and compensating for noise signals in the first touch signal to obtain a second touch signal containing only touch signals; and an analog-to-digital converter for performing analog-to-digital conversion on the second touch signal to obtain touch data. This embodiment employs a method of storing, compensating, and then outputting, which can accurately filter out noise signals and obtain accurate touch signals, thus improving the signal-to-noise ratio of the touch signal and ensuring effective touch control by filtering out the influence of noise signals caused by increased parasitic capacitance.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This disclosure relates to the field of touch technology, and in particular to a touch data acquisition method and apparatus, a touch module, and an electronic device. Background Technology

[0002] With the development of full-screen displays, devices such as cameras need to be placed beneath the display, requiring certain structural modifications to the display, such as thin-film encapsulation (TFE) on the light-emitting layer. See also Figure 1 When the thin-film encapsulation becomes thinner, the distance between the touch panel and the light-emitting layer (RGB representation) decreases, resulting in an increase in the parasitic capacitance between the metal traces in the touch panel and the electrodes in the light-emitting layer. The effect is as follows: Figure 2 As shown, this leads to increased touch noise, reduced signal-to-noise ratio of touch signals, and even touch failure. Summary of the Invention

[0003] This disclosure provides a method and apparatus for acquiring touch data, a touch module, and an electronic device to address the shortcomings of related technologies.

[0004] According to a first aspect of the present disclosure, a touch module is provided, comprising: an integrating circuit, a first switch, an analog-to-digital converter, and a compensation circuit; wherein the integrating circuit is connected to a touch detection line; and the first switch is connected to the integrating circuit, the analog-to-digital converter, and the compensation circuit respectively.

[0005] The integrating circuit is used to convert the current signals in each touch detection line at the touch position into a first touch signal; the first touch signal includes noise signals and touch signals;

[0006] The compensation circuit is used to store the first touch signal and compensate for the noise signal in the first touch signal to obtain a second touch signal that includes only the touch signal;

[0007] The analog-to-digital converter is used to perform analog-to-digital conversion on the second touch signal to obtain touch data.

[0008] Optionally, the compensation circuit includes a second switch, a third switch, a storage capacitor, and a feedback module; wherein:

[0009] The first terminal of the second switch is connected to the integrating circuit, and the second terminal of the second switch is connected to the first terminal of the first switch, the first terminal of the storage capacitor, and the first terminal of the third switch, respectively; the second terminal of the storage capacitor is grounded; the first terminal of the third switch is connected to the first terminal of the storage capacitor, and the second terminal of the third switch is connected to the first terminal of the feedback module.

[0010] When the second switch is closed and the first switch and the third switch are open, the storage capacitor stores the first touch signal;

[0011] When the third switch is closed and the first and second switches are open, the storage capacitor stores the second touch signal;

[0012] When the first switch is closed and the second and third switches are open, the storage capacitor outputs the second touch signal.

[0013] Optionally, the feedback module is connected to multiple touch detection lines in a designated area; the multiple touch detection lines include at least one target touch detection line, which is determined based on the pixel data of the image to be displayed;

[0014] The feedback module is used to acquire a noise reference signal corresponding to at least one target touch detection line and generate a feedback current based on the noise reference signal; the feedback current is used to filter out the charge amount corresponding to the noise signal in the storage capacitor.

[0015] Optionally, the feedback module is used to acquire a noise reference signal corresponding to at least one target touch detection line, including:

[0016] When there is only one target touch detection line, the feedback module is used to acquire the electrical signal on the target touch detection line and use the electrical signal as the noise reference signal corresponding to the target touch detection line; the electrical signal includes voltage or current;

[0017] or,

[0018] When there are multiple target touch detection lines, the feedback module is used to acquire the electrical signal on each target touch detection line and to acquire the average value of the electrical signals of multiple target touch detection lines; the average value is used as the noise reference signal corresponding to the target touch detection line.

[0019] Optionally, the feedback module is configured to generate a feedback current based on the noise reference signal, including:

[0020] Obtain the pre-defined correspondence between the noise reference signal and the feedback current;

[0021] The feedback current corresponding to the noise reference signal is determined based on the aforementioned correspondence.

[0022] According to a second aspect of the present disclosure, an electronic device is provided, comprising: a display screen, a processor, and a touch module; wherein the processor is connected to the display screen and the touch module respectively;

[0023] The processor is used to determine at least one target touch detection line based on the image to be displayed on the display screen;

[0024] The touch module is used to acquire touch data based on electrical signals on at least one target touch detection line; the electrical signals include voltage or current;

[0025] The processor is also configured to determine the trigger position based on the touch data, and to determine the display content corresponding to the trigger position.

[0026] Optionally, the processor is configured to determine at least one target touch detection line based on the image to be displayed on the display screen, including:

[0027] Acquire the image to be displayed on the screen, and acquire the current touch detection line corresponding to the scan signal;

[0028] Obtain the difference between the pixel data corresponding to the current touch detection line and the pixel data corresponding to other touch detection lines;

[0029] When the difference is less than or equal to a preset threshold, at least one target touch detection line matching the current touch detection line is determined.

[0030] Optionally, the touch module is used to acquire touch data based on the electrical signal on the at least one target touch detection line, including:

[0031] The touch module is used to switch to a first working state to obtain a first touch signal when a scan signal is detected; the first touch signal includes a noise signal and a touch signal;

[0032] The touch module is used to switch to a second working state after obtaining a first touch signal, and to compensate for the noise signal in the first touch signal according to the electrical signal on the at least one target touch detection line, so as to obtain a second touch signal that only includes the touch signal.

[0033] The touch module is used to switch to a third working state after receiving the second touch signal to perform analog-to-digital conversion on the second touch signal to obtain touch data.

[0034] Optionally, the touch module is used to compensate for noise signals in the first touch signal based on electrical signals on the at least one target touch detection line, including:

[0035] When there is only one target touch detection line, the electrical signal on the target touch detection line is acquired, and the electrical signal is used as the noise reference signal corresponding to the target touch detection line; or, when there are multiple target touch detection lines, the average value of the voltage signals of the multiple target touch detection lines is acquired, and the average value is used as the noise reference signal corresponding to the target touch detection line.

[0036] Based on the preset correspondence between the noise reference signal and the feedback current, the feedback current corresponding to the noise reference signal is obtained;

[0037] The noise signal in the first touch signal is compensated based on the feedback current.

[0038] According to a third aspect of the present disclosure, a method for acquiring touch data is provided, comprising:

[0039] When a scan signal is detected, the system switches to a first operating state to obtain a first touch signal; the first touch signal includes a noise signal and a touch signal.

[0040] After obtaining the first touch signal, the system switches to the second working state and compensates for the noise signal in the first touch signal based on the electrical signal on at least one target touch detection line to obtain a second touch signal that only includes the touch signal.

[0041] After obtaining the second touch signal, the system switches to the third working state to perform analog-to-digital conversion on the second touch signal to obtain touch data.

[0042] Optionally, compensating for noise in the first touch signal based on an electrical signal on at least one target touch detection line includes:

[0043] Obtain the corresponding noise reference signal on the target touch detection line based on the electrical signal on the at least one target touch detection line;

[0044] Based on the preset correspondence between the noise reference signal and the feedback current, the feedback current corresponding to the noise reference signal is obtained;

[0045] The noise signal in the first touch signal is compensated based on the feedback current.

[0046] Optionally, obtaining a noise reference signal corresponding to the target touch detection line based on the electrical signal on the at least one target touch detection line includes:

[0047] When there is only one target touch detection line, the electrical signal on the target touch detection line is acquired, and the electrical signal is used as the noise reference signal corresponding to the target touch detection line.

[0048] or,

[0049] When there are multiple target touch detection lines, the average value of the voltage signals of the multiple target touch detection lines is obtained, and the average value is used as the noise reference signal corresponding to the target touch detection line.

[0050] Optionally, the method further includes acquiring at least one target touch detection line, specifically including:

[0051] Acquire the image to be displayed on the screen, and acquire the current touch detection line corresponding to the scan signal;

[0052] Obtain the difference between the pixel data corresponding to the current touch detection line and the pixel data corresponding to other touch detection lines;

[0053] When the difference is less than or equal to a preset threshold, at least one target touch detection line matching the current touch detection line is determined.

[0054] According to a fourth aspect of the present disclosure, a touch data acquisition device is provided, applied to an electronic device, comprising:

[0055] A first signal acquisition module is configured to switch to a first operating state to acquire a first touch signal when a scan signal is detected; the first touch signal includes a noise signal and a touch signal.

[0056] The second signal acquisition module is used to switch to a second working state after obtaining the first touch signal, and to compensate for the noise signal in the first touch signal according to the electrical signal on at least one target touch detection line, so as to obtain a second touch signal that only includes the touch signal.

[0057] The touch data acquisition module is used to switch to a third working state after obtaining the second touch signal to perform analog-to-digital conversion on the second touch signal to obtain touch data.

[0058] According to a fifth aspect of the present disclosure, an electronic device is provided, comprising:

[0059] processor;

[0060] Memory for storing computer programs executable by the processor;

[0061] The processor is configured to execute a computer program in the memory to implement the method as described in any of the preceding descriptions.

[0062] According to a sixth aspect of the present disclosure, a computer-readable storage medium is provided that, when an executable computer program in the storage medium is executed by a processor, enables the implementation of the method described in any of the preceding claims.

[0063] The technical solutions provided by the embodiments of this disclosure may include the following beneficial effects:

[0064] As can be seen from the above embodiments, the solution provided in this disclosure can include a compensation circuit in the touch module. This compensation circuit stores the first touch signal and compensates for noise signals in the first touch signal to filter out the noise signals, resulting in a second touch signal containing only the touch signal. Then, an analog-to-digital converter performs analog-to-digital conversion on the second touch signal to obtain touch data. Thus, this embodiment, by using a method of first storing, then compensating, and finally outputting, can accurately filter out noise signals and obtain accurate touch signals, which is beneficial for improving the signal-to-noise ratio of the touch signal and ensuring effective touch control, thereby filtering out the influence of noise signals caused by increased parasitic capacitance.

[0065] It should be understood that the above general description and the following detailed description are exemplary and explanatory only, and are not intended to limit this disclosure. Attached Figure Description

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

[0067] Figure 1 This is a structural block diagram of a display screen shown in related technologies.

[0068] Figure 2 It is shown in the related technology. Figure 1 A schematic diagram of the equivalent circuit of the display screen shown.

[0069] Figure 3 This is a schematic diagram illustrating a touch module according to an exemplary embodiment.

[0070] Figure 4 This is a block diagram illustrating an electronic device according to an exemplary embodiment.

[0071] Figure 5 This is a flowchart illustrating an example of acquiring a target touch detection line.

[0072] Figure 6 This is a flowchart illustrating an example of acquiring touch data according to an exemplary embodiment.

[0073] Figure 7 This is a flowchart illustrating a touch data acquisition method according to an exemplary embodiment.

[0074] Figure 8 This is a block diagram illustrating a touch data acquisition device according to an exemplary embodiment.

[0075] Figure 9This is a block diagram illustrating an electronic device according to an exemplary embodiment. Detailed Implementation

[0076] Exemplary embodiments will now be described in detail, examples of which are illustrated in the accompanying drawings. When the following description relates to the drawings, unless otherwise indicated, the same numerals in different drawings denote the same or similar elements. The embodiments described below by way of example do not represent all embodiments consistent with this disclosure. Rather, they are merely examples of apparatus consistent with some aspects of this disclosure as detailed in the appended claims.

[0077] To address the aforementioned technical problems, this disclosure provides a touch data acquisition method and apparatus, a touch module, and an electronic device. Figure 3 This is a block diagram illustrating a touch module according to an exemplary embodiment. Figure 4 This is a block diagram illustrating an electronic device according to an exemplary embodiment.

[0078] See Figure 3 A touch module includes an integrating circuit Igain, a first switch S1, an analog-to-digital converter (ADC), and a compensation circuit F. The integrating circuit Igain is connected to touch detection lines. The first switch S1 is connected to the integrating circuit Igain, the ADC, and the compensation circuit F. The integrating circuit Igain converts the current signals from each touch detection line at the touch position into a first touch signal; the first touch signal includes noise signals and touch signals. The compensation circuit F stores the first touch signal and compensates for the noise signals in the first touch signal to obtain a second touch signal containing only touch signals. The ADC performs analog-to-digital conversion on the second touch signal to obtain touch data.

[0079] It should be noted that in this embodiment, the current corresponding to the touch signal is i = Cm * dV / dt, where dV represents the voltage change across capacitor Cm.

[0080] It should be noted that in practical applications, when the display screen is not triggered, the touch module also uses the above process to obtain the first touch signal. At this time, the touch signal in the first touch signal can be regarded as 0, and the final obtained touch data is also 0, that is, no trigger operation is detected. In other words, the above-mentioned touch module can work reliably whether the display screen is triggered or not. This embodiment only describes the situation in the case of a triggered operation.

[0081] In this embodiment, the integrating circuit is implemented using an integrator consisting of an operational amplifier and an integrating capacitor. Technicians can select a suitable circuit scheme according to the specific scenario, and the corresponding scheme falls within the protection scope of this disclosure.

[0082] In this embodiment, see continue to refer to Figure 3 The compensation circuit may include a second switch S2, a third switch S3, a storage capacitor Cs, and a feedback module Feedback. The first terminal of the second switch S2 is connected to the integrating circuit Igain, and the second terminal of the second switch S2 is connected to the first terminal of the first switch S1, the first terminal of the storage capacitor Cs, and the first terminal of the third switch S3. The second terminal of the storage capacitor Cs is grounded. The first terminal of the third switch S3 is connected to the first terminal of the storage capacitor Cs, and the second terminal of the third switch S3 is connected to the first terminal of the feedback module Feedback.

[0083] In one example, the first switch S1, the second switch S2, and the third switch S3 can be implemented using switching devices such as transistors or MOSFETs. The feedback module includes a processing circuit with logic or calculation functions and a current source that can control the magnitude of the output current. The processor can send control signals to switches S1 to S3 to close or open the switches, and control the current source to output a feedback current of a specified magnitude.

[0084] It should be noted that, in the relevant technology, the parasitic capacitance C... N The corresponding current is i0. Compared with related technologies, the parasitic capacitance C in this disclosed solution is... N The change in current is i1-i0, and this change in current is the noise signal that appears subsequently. Theoretically, when the parasitic capacitance C... N When the capacitance value is equal to that of the storage capacitor Cs, Ifeedback = i1 - i0; in practical applications, due to the parasitic capacitance C N The capacitance value is not easily determined; therefore, this disclosure establishes a mapping relationship, rather than an equivalence, between Ifeedback and i1-i0. Based on this mapping relationship, it can be seen that when the feedback current Ifeedback is obtained, the aforementioned currents i1-i0 can be compensated.

[0085] In this embodiment, when the display screen shows different images, the parasitic capacitance C is caused by the voltage change on the electrodes. N Different noise signals of varying magnitudes are introduced, thus eliminating this noise signal. It is understood that when the images displayed at the two touch detection lines match (i.e., are the same or similar), the parasitic capacitance corresponding to those two touch detection lines introduces the same noise signal. Based on the above principle, this embodiment can obtain the correspondence between the noise reference signal and the feedback current.

[0086] Taking the voltage signal on the target touch detection line as an example, when a specified image is displayed at the target touch detection line, the pixel data of the specified image is 0. The voltage signal 0 can be read from the analog-to-digital converter (ADC). Different feedback currents (ifeedback) are used to compensate for the noise signal and obtain the signal-to-noise ratio (SNR) of the touch module. The feedback current with the highest SNR is taken as the feedback current ifeedback0 for this test. When the pixel data of the specified image is 1, the voltage signal 1 is read, and another feedback current ifeedback1 is obtained using the above method. This process continues until the pixel data of the specified image is 255, at which point the voltage signal 0 is read, and a feedback current ifeedback255 is obtained. Then, the voltages 0 to 255 and the feedback currents ifeedback0 to 255 are fitted to obtain the correspondence between the noise reference signal and the feedback current. Based on the above method, a correspondence between the reference current and the feedback current can be established. Based on the correspondence between the pixel data and the feedback current, a selection can be made according to the specific scenario, and the corresponding scheme falls within the protection scope of this disclosure.

[0087] In this embodiment, taking the acquisition of touch data on a touch detection line as an example, the working process of the compensation circuit F includes:

[0088] In the first operating state, signal storage occurs when the second switch S2 is closed and the first switch S1 and the third switch S3 are open. The storage capacitor Cs stores the first touch signal. Specifically, when the user triggers the display screen, a change in capacitance (Cm) at the intersection of the touch detection lines TX and RX generates current. The aforementioned integrating circuit integrates this current to obtain the first touch signal, which is then stored in the storage capacitor Cs to store charge.

[0089] Second working state, noise filtering: When the third switch S3 is closed and the first switch S1 and the second switch S2 are open, the feedback module outputs the ifeedback noise filtering signal, and the storage capacitor Cs stores the second touch signal.

[0090] In the third working state, the output signal is as follows: when the first switch S1 is closed and the second switch S2 and the third switch S3 are open, the storage capacitor Cs outputs the second touch signal.

[0091] It should be noted that, considering that the touch module will be installed in an electronic device, the following embodiments will use an electronic device as an example to describe the solutions of each embodiment. During this process, the structure and working process of the touch module, as well as the collaborative working process between the touch module and other devices, will be described simultaneously, but will not be described here.

[0092] Therefore, the solution provided in this embodiment can include a compensation circuit in the touch module. This compensation circuit stores the first touch signal and compensates for noise signals within the first touch signal to filter out the noise, resulting in a second touch signal containing only the touch signal. Then, an analog-to-digital converter performs analog-to-digital conversion on the second touch signal to obtain touch data. Thus, this embodiment, by using a method of storing, compensating, and then outputting, can accurately filter out noise signals and obtain accurate touch signals, which helps improve the signal-to-noise ratio of the touch signal and ensures effective touch control, thereby filtering out the influence of noise signals caused by increased parasitic capacitance.

[0093] Figure 4 This is a block diagram illustrating an electronic device according to an exemplary embodiment, wherein the electronic device may be a smartphone, tablet computer, or other similar device. For the sake of simplicity, Figure 4 Only components relevant to this embodiment are shown. See also Figure 4 An electronic device includes a processor, a display screen, and a touch module. The processor is connected to both the display screen and the touch module. The processor determines at least one target touch detection line based on an image to be displayed on the display screen and outputs the sequence number of the at least one target touch detection line to the touch module. The touch module acquires touch data based on voltage signals on the at least one target touch detection line. The processor also determines a trigger position and the corresponding display content based on the touch data.

[0094] The solution provided in this embodiment can include a compensation circuit in the touch module. This compensation circuit stores a first touch signal and compensates for noise signals within the first touch signal to filter out the noise, resulting in a second touch signal containing only the touch signal. Then, an analog-to-digital converter performs analog-to-digital conversion on the second touch signal to obtain touch data. In this way, this embodiment can accurately filter out noise signals and obtain accurate touch signals, which helps improve the signal-to-noise ratio of the touch signal and ensures effective touch control, thus eliminating the influence of noise signals caused by increased parasitic capacitance.

[0095] In this embodiment, see Figure 5 The processor can determine the target touch detection line based on the image to be displayed. The touch detection line may include:

[0096] In step 51, the processor can acquire the image to be displayed on the screen and the current touch detection line corresponding to the scan signal. During the touch phase, the touch chip outputs a scan signal to each touch detection line (e.g., TX) according to a preset cycle. This scan signal can adjust the level on the touch detection line (RX) to a preset level V. TXFor ease of explanation, the touch detection line corresponding to each scan signal will be used as the current touch detection line, and all other detection lines will be considered as other touch detection lines.

[0097] In step 52, the processor can obtain the difference between the pixel data corresponding to the current touch detection line and the pixel data corresponding to other touch detection lines. Since each touch detection line corresponds to one row (or column, which will be described in the following description according to row order) of pixels, the pixel data of the corresponding row can be used as the pixel data corresponding to the touch detection line, so the processor can obtain the pixel data corresponding to each row of touch detection lines. Then, the processor can obtain the difference between the pixel data of the current touch detection line and any other row of touch detection lines. If the difference is less than or equal to a preset threshold, it means that the corresponding display content matches; if the difference is greater than the preset threshold, it means that the corresponding display content does not match (i.e., is different). The above preset threshold can be set according to specific scenarios. For example, if the range of variation of the image displayed on the screen is large, the above preset threshold can be set larger; if the range of variation of the displayed image is small, the above preset threshold can be set smaller. The corresponding scheme falls within the protection scope of this disclosure. In one example, the value range of the above preset threshold is between 12 and 26 gray levels, or between 5% and 10% of the range.

[0098] In step 53, when the difference is less than or equal to a preset threshold, the processor can determine that at least one target touch detection line matches the current touch detection line. It is understood that the number of target touch detection lines can be selected according to the specific scenario, such as one or more.

[0099] In this embodiment, by determining the target touch detection line, the noise signal of the untriggered touch detection line can be determined as the subsequent noise reference signal, that is, the noise signal caused only by the increase of parasitic capacitance, which is beneficial for subsequent compensation of the noise signal in the first touch signal.

[0100] See also Figure 3 The touch module can acquire touch data based on electrical signals on at least one target touch detection line, see [link / reference]. Figure 6 ,include:

[0101] In step 61, upon detecting a scanning signal, the system switches to a first operating state to acquire a first touch signal; the first touch signal includes a noise signal and a touch signal. In step 62, after acquiring the first touch signal, the system switches to a second operating state and compensates for the noise signal in the first touch signal based on the electrical signal on at least one target touch detection line, obtaining a second touch signal that includes only the touch signal. In step 73, after acquiring the second touch signal, the system switches to a third operating state to perform analog-to-digital conversion on the second touch signal to obtain touch data. For step 62, regarding the touch module's compensation of the noise signal, see [link to documentation]. Figure 7 ,include:

[0102] In step 71, the feedback module in the touch module can be based on an electrical signal on at least one target touch detection line. For example, when there is only one target touch detection line, the voltage signal on the target touch detection line can be acquired; the acquisition process can be found in [reference needed]. Figure 3 The difference between the first and third working states in the illustrated embodiments is that... Figure 3 The voltage signal shown is the voltage on the touch detection line at the touch location, while the voltage signal in step 71 is the voltage on the touch detection line outside the touch location but displaying the same content. Then, the touch module can acquire the voltage signal on the target touch detection line as a noise reference signal corresponding to the target touch detection line. For example, when there are multiple target touch detection lines, the touch module can acquire the average value of the voltage signals from multiple target touch detection lines and use this average value as the noise reference signal corresponding to the target touch detection line.

[0103] In step 72, based on the preset correspondence between noise reference signals and feedback currents, the touch module can obtain the feedback current Ifeedback corresponding to the noise reference signal. The touch module stores the correspondence between noise reference signals and feedback currents, and the feedback current can be found according to the noise reference signal corresponding to the target touch detection line and the corresponding relationship.

[0104] In step 73, noise signals in the first touch signal are compensated based on the feedback current. The feedback module Feedback can adjust the current of the current source to the aforementioned feedback current Ifeedback. When the third switch S3 is closed, the charge in the storage capacitor can be extracted. Assuming that the closing time t3 of the third switch S3 and the closing time t1 of the first switch S1 are both known, the charge released by the storage capacitor is Q = Ifeedback * t3, thereby extracting the charge corresponding to the noise signal. That is, in step 72, by extracting the aforementioned charge Q from the storage capacitor Cs, the capacitance change of the storage capacitor is made the same as the aforementioned noise reference signal, achieving the effect of compensating for the noise signal.

[0105] Thus, this embodiment adopts the method of storing first, then compensating, and finally outputting, which can avoid the problem of noise error caused by voltage waveform subtraction, achieve the purpose of obtaining accurate touch signals, improve the signal-to-noise ratio of touch signals, and ensure effective touch, thereby filtering out the influence of noise signals caused by the increase of parasitic capacitance.

[0106] Based on the above embodiments, this disclosure also provides a method for acquiring touch data, including:

[0107] When a scan signal is detected, the system switches to a first operating state to obtain a first touch signal; the first touch signal includes a noise signal and a touch signal.

[0108] After obtaining the first touch signal, the system switches to the second working state and compensates for the noise signal in the first touch signal based on the electrical signal on at least one target touch detection line to obtain a second touch signal that only includes the touch signal.

[0109] After obtaining the second touch signal, the system switches to the third working state to perform analog-to-digital conversion on the second touch signal to obtain touch data.

[0110] In one embodiment, compensating for noise in the first touch signal based on an electrical signal on at least one target touch detection line includes:

[0111] Obtain the corresponding noise reference signal on the target touch detection line based on the electrical signal on the at least one target touch detection line;

[0112] Based on the preset correspondence between the noise reference signal and the feedback current, the feedback current corresponding to the noise reference signal is obtained;

[0113] The noise signal in the first touch signal is compensated based on the feedback current.

[0114] In one embodiment, obtaining a noise reference signal corresponding to the target touch detection line based on the electrical signal on the at least one target touch detection line includes:

[0115] When there is only one target touch detection line, the electrical signal on the target touch detection line is acquired, and the electrical signal is used as the noise reference signal corresponding to the target touch detection line.

[0116] or,

[0117] When there are multiple target touch detection lines, the average value of the electrical signals of the multiple target touch detection lines is obtained, and the average value is used as the noise reference signal corresponding to the target touch detection line.

[0118] In one embodiment, the method further includes acquiring at least one target touch detection line, specifically including:

[0119] Acquire the image to be displayed on the screen, and acquire the current touch detection line corresponding to the scan signal;

[0120] Obtain the difference between the pixel data corresponding to the current touch detection line and the pixel data corresponding to other touch detection lines;

[0121] When the difference is less than or equal to a preset threshold, at least one target touch detection line matching the current touch detection line is determined.

[0122] It is understood that the method provided in this disclosure is similar to that described above. Figure 3 and Figure 4 The working process of the illustrated embodiments corresponds to that of the above embodiments. For details, please refer to the contents of the embodiments above, which will not be repeated here.

[0123] Based on the above embodiments, see Figure 8 This disclosure also provides a touch data acquisition device, applied to an electronic device, including:

[0124] The first signal acquisition module 81 is used to switch to a first working state to acquire a first touch signal when a scan signal is detected; the first touch signal includes a noise signal and a touch signal.

[0125] The second signal acquisition module 82 is used to switch to a second working state after acquiring the first touch signal, and to compensate for the noise signal in the first touch signal according to the electrical signal on at least one target touch detection line, so as to obtain a second touch signal that only includes the touch signal.

[0126] The touch data acquisition module 83 is used to switch to a third working state after obtaining the second touch signal to perform analog-to-digital conversion on the second touch signal to obtain touch data.

[0127] It is understood that the apparatus provided in this disclosure corresponds to the method embodiments described above, and the specific details can be found in the various method embodiments, which will not be repeated here.

[0128] Figure 9 This is a block diagram illustrating an electronic device according to an exemplary embodiment. For example, the electronic device 900 may be a smartphone, computer, digital broadcasting terminal, tablet device, medical device, fitness equipment, personal digital assistant, etc.

[0129] Reference Figure 9The electronic device 900 may include one or more of the following components: a processing component 902, a memory 904, a power supply component 906, a multimedia component 908, an audio component 910, an input / output (I / O) interface 912, a sensor component 914, a communication component 916, and an image acquisition component 918.

[0130] Processing component 902 typically controls the overall operation of electronic device 900, such as operations associated with display, telephone calls, data communication, camera operation, and recording operations. Processing component 902 may include one or more processors 920 to execute computer programs. Furthermore, processing component 902 may include one or more modules to facilitate interaction between processing component 902 and other components. For example, processing component 902 may include a multimedia module to facilitate interaction between multimedia component 908 and processing component 902.

[0131] Memory 904 is configured to store various types of data to support the operation of electronic device 900. Examples of this data include computer programs for any application or method operating on electronic device 900, contact data, phone book data, messages, pictures, videos, etc. Memory 904 can 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 storage, flash memory, magnetic disk, or optical disk.

[0132] Power supply component 906 provides power to various components of electronic device 900. Power supply component 906 may include a power management system, one or more power supplies, and other components associated with generating, managing, and distributing power to electronic device 900. Power supply component 906 may include a power chip, and a controller may communicate with the power chip to control the power chip to turn on or off switching devices, enabling or disabling battery power supply to the motherboard circuitry.

[0133] Multimedia component 908 includes a screen that provides an output interface between electronic device 900 and target object. In some embodiments, the screen may include a liquid crystal display (LCD) and a touch panel. If the screen includes a touch panel, the screen may be implemented as a touchscreen to receive input signals from the target object. The touch panel includes one or more touch sensors to sense touches, swipes, and gestures on the touch panel. The touch sensors may sense not only the boundaries of touch or swipe actions but also the duration and pressure associated with the touch or swipe operation.

[0134] Audio component 910 is configured to output and / or input audio signals. For example, audio component 910 includes a microphone (MIC) configured to receive external audio signals when electronic device 900 is in an operating mode, such as call mode, recording mode, and voice recognition mode. The received audio signals may be further stored in memory 904 or transmitted via communication component 916. In some embodiments, audio component 910 also includes a speaker for outputting audio signals.

[0135] I / O interface 912 provides an interface between processing component 902 and peripheral interface modules, such as keyboards, click wheels, buttons, etc.

[0136] Sensor assembly 914 includes one or more sensors for providing state assessments of various aspects of electronic device 900. For example, sensor assembly 914 can detect the on / off state of electronic device 900, the relative positioning of components (e.g., the display screen and keypad of electronic device 900), changes in position of electronic device 900 or a component, the presence or absence of contact between a target object and electronic device 900, the orientation or acceleration / deceleration of electronic device 900, and temperature changes of electronic device 900. In this example, sensor assembly 914 may include a magnetic sensor, a gyroscope, and a magnetic field sensor, wherein the magnetic field sensor includes at least one of the following: a Hall sensor, a thin-film magnetoresistive sensor, and a magnetic fluid accelerometer.

[0137] Communication component 916 is configured to facilitate wired or wireless communication between electronic device 900 and other devices. Electronic device 900 can access wireless networks based on communication standards, such as WiFi, 2G, 3G, 4G, 5G, or combinations thereof. In one exemplary embodiment, communication component 916 receives broadcast signals or broadcast-related information from an external broadcast management system via a broadcast channel. In one exemplary embodiment, communication component 916 also includes a near-field communication (NFC) module to facilitate short-range communication. For example, the NFC module may be implemented based on radio frequency identification (RFID) technology, Infrared Data Association (IrDA) technology, ultra-wideband (UWB) technology, Bluetooth (BT) technology, and other technologies.

[0138] In an exemplary embodiment, the electronic device 900 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.

[0139] This disclosure also provides an electronic device, including:

[0140] processor;

[0141] Memory for storing computer programs executable by the processor;

[0142] The processor is configured to execute a computer program in the memory to implement the method as described in any of the preceding descriptions.

[0143] This disclosure also provides a computer-readable storage medium that, when executed by a processor, enables the implementation of the method described in any of the preceding embodiments. The readable storage medium may be a ROM, random access memory (RAM), CD-ROM, magnetic tape, floppy disk, or optical data storage device, etc.

[0144] Other embodiments of this disclosure will readily occur to those skilled in the art upon consideration of the specification and practice of the disclosure herein. This disclosure is intended to cover any variations, uses, or adaptations that follow the general principles of this disclosure and include common knowledge or customary techniques in the art not disclosed herein. The specification and examples are to be considered exemplary only, and the true scope and spirit of this disclosure are indicated by the following claims.

[0145] It should be understood that this disclosure is not limited to the precise structures described above and shown in the accompanying drawings, and various modifications and changes can be made without departing from its scope. The scope of this disclosure is limited only by the appended claims.

Claims

1. A touch module, characterized in that, include: The system comprises an integrating circuit, a first switch, an analog-to-digital converter, and a compensation circuit; wherein the integrating circuit is connected to a touch detection line; the first switch is connected to the integrating circuit, the analog-to-digital converter, and the compensation circuit respectively; the compensation circuit includes a feedback module. The integrating circuit is used to convert the current signals in each touch detection line at the touch position into a first touch signal; the first touch signal includes noise signals and touch signals; The compensation circuit is used to store the first touch signal and compensate for the noise signal in the first touch signal to obtain a second touch signal that includes only the touch signal; the compensation circuit is used to obtain the feedback current by searching for the feedback current, and then use the found feedback current to compensate for the noise signal in the first touch signal. The first switch is used to close after noise signal compensation is completed, so as to transmit the second touch signal to the analog-to-digital converter; The analog-to-digital converter is used to perform analog-to-digital conversion on the second touch signal to obtain touch data; The feedback module is used to generate a feedback current based on a noise reference signal, including: Obtain the noise reference signal corresponding to the target touch detection line based on the electrical signal on at least one target touch detection line; obtain the preset correspondence between the noise reference signal and the feedback current; determine the feedback current corresponding to the noise reference signal based on the correspondence. 2.The touch module according to claim 1, characterized in that, The compensation circuit further includes a second switch, a third switch, and a storage capacitor; wherein: The first terminal of the second switch is connected to the integrating circuit, and the second terminal of the second switch is connected to the first terminal of the first switch, the first terminal of the storage capacitor, and the first terminal of the third switch, respectively; the second terminal of the storage capacitor is grounded; the first terminal of the third switch is connected to the first terminal of the storage capacitor, and the second terminal of the third switch is connected to the first terminal of the feedback module. When the second switch is closed and the first switch and the third switch are open, the storage capacitor stores the first touch signal; When the third switch is closed and the first and second switches are open, the storage capacitor stores the second touch signal; When the first switch is closed and the second and third switches are open, the storage capacitor outputs the second touch signal. 3.The touch module according to claim 2, wherein, The feedback module is connected to multiple touch detection lines in a designated area; the multiple touch detection lines include at least one target touch detection line, which is determined based on the pixel data of the image to be displayed; The feedback module is used to acquire a noise reference signal corresponding to at least one target touch detection line and generate a feedback current based on the noise reference signal; the feedback current is used to filter out the charge amount corresponding to the noise signal in the storage capacitor.

4. The touch module according to claim 3, characterized in that, The feedback module is used to acquire noise reference signals corresponding to at least one target touch detection line, including: When there is only one target touch detection line, the feedback module is used to acquire the electrical signal on the target touch detection line and use the electrical signal as the noise reference signal corresponding to the target touch detection line; the electrical signal includes voltage or current; or, When there are multiple target touch detection lines, the feedback module is used to acquire the electrical signal on each target touch detection line and to acquire the average value of the electrical signals of multiple target touch detection lines; the average value is used as the noise reference signal corresponding to the target touch detection line.

5. An electronic device, characterized in that, include: Display screen, processor, and touch module as described in any one of claims 1 to 4; The processor is connected to the display screen and the touch module respectively; The processor is used to determine at least one target touch detection line based on the image to be displayed on the display screen; The touch module is used to acquire touch data based on electrical signals on at least one target touch detection line; the electrical signals include voltage or current; The processor is also configured to determine the trigger position based on the touch data, and to determine the display content corresponding to the trigger position; The touch module is used to compensate for noise signals in the first touch signal based on electrical signals on the at least one target touch detection line, including: When there is only one target touch detection line, the electrical signal on the target touch detection line is acquired, and the electrical signal is used as the noise reference signal corresponding to the target touch detection line; or, when there are multiple target touch detection lines, the average value of the electrical signals of the multiple target touch detection lines is acquired, and the average value is used as the noise reference signal corresponding to the target touch detection line. Based on the preset correspondence between the noise reference signal and the feedback current, the feedback current corresponding to the noise reference signal is obtained; The noise signal in the first touch signal is compensated based on the feedback current.

6. The electronic device according to claim 5, characterized in that, The processor is used to determine at least one target touch detection line based on the image to be displayed on the display screen, including: Acquire the image to be displayed on the screen, and acquire the current touch detection line corresponding to the scan signal; Obtain the difference between the pixel data corresponding to the current touch detection line and the pixel data corresponding to other touch detection lines; When the difference is less than or equal to a preset threshold, at least one target touch detection line matching the current touch detection line is determined.

7. The electronic device according to claim 5, characterized in that, The touch module is used to acquire touch data based on the electrical signals on the at least one target touch detection line, including: The touch module is used to switch to a first working state to obtain a first touch signal when a scan signal is detected; the first touch signal includes a noise signal and a touch signal; The touch module is used to switch to a second working state after receiving a first touch signal, and to compensate for the noise signal in the first touch signal according to the electrical signal on the at least one target touch detection line, so as to obtain a second touch signal that only includes the touch signal; the compensation circuit in the touch module is used to obtain the feedback current by searching for the feedback current, and then use the found feedback current to compensate for the noise signal in the first touch signal. The touch module is used to switch to a third working state after obtaining the second touch signal to perform analog-to-digital conversion on the second touch signal and obtain touch data; the touch module switching to the third working state includes the first switch in the touch module closing after noise signal compensation is completed, so as to transmit the second touch signal to the analog-to-digital converter of the touch module for analog-to-digital conversion.

8. A method for acquiring touch data, characterized in that, include: When a scanning signal is detected, switch to the first working state to obtain the first touch signal; The first touch signal includes a noise signal and a touch signal; After obtaining the first touch signal, the system switches to the second working state and compensates for the noise signal in the first touch signal based on the electrical signal on at least one target touch detection line to obtain a second touch signal that includes only the touch signal; wherein, the noise signal compensation in the first touch signal is obtained by the compensation circuit in the touch module using a feedback current compensation method obtained by searching for the feedback current. After obtaining the second touch signal, switch to the third working state to perform analog-to-digital conversion on the second touch signal to obtain touch data; The switching to the third working state includes closing the first switch in the touch module after noise signal compensation is completed, so as to transmit the second touch signal to the analog-to-digital converter of the touch module for analog-to-digital conversion; Compensating for noise in the first touch signal based on electrical signals from at least one target touch detection line includes: Obtain the corresponding noise reference signal on the target touch detection line based on the electrical signal on the at least one target touch detection line; Based on the preset correspondence between the noise reference signal and the feedback current, the feedback current corresponding to the noise reference signal is obtained; The noise signal in the first touch signal is compensated based on the feedback current.

9. The touch data acquisition method according to claim 8, characterized in that, Obtaining a noise reference signal corresponding to the target touch detection line based on the electrical signal on the at least one target touch detection line includes: When there is only one target touch detection line, the electrical signal on the target touch detection line is acquired, and the electrical signal is used as the noise reference signal corresponding to the target touch detection line. or, When there are multiple target touch detection lines, the average value of the electrical signals of the multiple target touch detection lines is obtained, and the average value is used as the noise reference signal corresponding to the target touch detection line.

10. The touch data acquisition method according to claim 8, characterized in that, The method further includes acquiring at least one target touch detection line, specifically including: Acquire the image to be displayed on the screen, and acquire the current touch detection line corresponding to the scan signal; Obtain the difference between the pixel data corresponding to the current touch detection line and the pixel data corresponding to other touch detection lines; When the difference is less than or equal to a preset threshold, at least one target touch detection line matching the current touch detection line is determined.

11. A touch data acquisition device, characterized in that, Applied to electronic devices, including: A first signal acquisition module is configured to switch to a first operating state to acquire a first touch signal when a scan signal is detected; the first touch signal includes a noise signal and a touch signal. The second signal acquisition module is used to switch to a second working state after obtaining the first touch signal, and to compensate for the noise signal in the first touch signal according to the electrical signal on at least one target touch detection line, so as to obtain a second touch signal that only includes the touch signal; wherein, the compensation of the noise signal in the first touch signal in the second signal acquisition module is obtained by the compensation circuit in the touch module by finding the feedback current, and then using the found feedback current for compensation. The touch data acquisition module is used to switch to a third working state after obtaining the second touch signal to perform analog-to-digital conversion on the second touch signal to obtain touch data; The third working state of the touch data acquisition module includes the closing of the first switch in the touch module after noise signal compensation is completed, so as to transmit the second touch signal to the analog-to-digital converter of the touch module for analog-to-digital conversion; The second signal acquisition module compensates for noise signals in the first touch signal based on electrical signals on at least one target touch detection line, including: acquiring a noise reference signal corresponding to the target touch detection line based on the electrical signals on the at least one target touch detection line; acquiring a feedback current corresponding to the noise reference signal based on a preset correspondence between the noise reference signal and the feedback current; and compensating for noise signals in the first touch signal based on the feedback current.

12. An electronic device, characterized in that, include: processor; Memory for storing computer programs executable by the processor; The processor is configured to execute a computer program in the memory to implement the method as described in any one of claims 8 to 10.

13. A computer-readable storage medium, characterized in that, When the executable computer program in the storage medium is executed by a processor, it can implement the method as described in any one of claims 8 to 10.