Touch signal processing method and device, electronic equipment and storage medium
By monitoring the terminal usage status and obtaining touch screen capacitance data, and determining and eliminating display noise and grid noise, the problem of inaccurate identification caused by noise interference by capacitive touch screens is solved, and the accuracy of touch response is improved.
Patent Information
- Application Number
- CN202311433510.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-10-31
- Publication Date
- 2025-05-02
AI Technical Summary
In the prior art, capacitive touch screens cause point jumps, ghost points or interruptions due to external noise interference, which in turn affects the accuracy of touch recognition.
By monitoring the usage status of the terminal, obtaining the capacitance data of the touch screen, determining whether there is display noise and grid noise, and eliminating these noises from the capacitance data to obtain a real touch signal.
Effectively distinguish and filter display noise and grid noise, improve the accuracy of touch response, and avoid touch abnormalities.
Smart Images

Figure CN119916955A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the technical field of touch recognition of touch screens, and in particular to a method, device, electronic device and storage medium for processing touch signals. Background Art
[0002] The basic principle of capacitive touch screen is: when the user touches the capacitive screen, a coupling capacitor will be formed between the human body's electric field, fingers and conductor layer. The current emitted by the four-sided electrodes will flow to the contact point, and its strength is proportional to the distance between the finger and the electrode. The controller behind the touch screen will calculate the proportion and strength of the current and accurately calculate the position of the touch point.
[0003] In actual applications, the touch screen may experience jumping points, ghost points or disconnected touches due to relevant external factors, which may lead to incorrect recognition of touch operations. The abnormal operation described above needs to be effectively avoided.
[0004] Therefore, there is an urgent need for a processing method that can avoid the occurrence of jump points, ghost points or disconnected touches and effectively improve the accuracy of touch recognition. Summary of the invention
[0005] The purpose of the embodiments of the present application is to provide a method, device, electronic device and storage medium for processing a touch signal, so as to solve the technical problem in the related art of inaccurate recognition caused by inaccurate processing of touch operation signals.
[0006] In a first aspect, an embodiment of the present application provides a method for processing a touch signal, including:
[0007] Acquire a usage state of the terminal, wherein the usage state is one of a charging state and a non-charging state;
[0008] Acquiring capacitance data of a touch screen of the terminal, and determining whether display noise exists according to the capacitance data;
[0009] In the case where it is determined that display noise exists, removing the display noise from the capacitance data to obtain an intermediate signal;
[0010] It is determined whether grid noise exists according to the use status, and when it is determined that grid noise exists, the grid noise is removed from the intermediate signal to obtain a real signal generated when a touch operation is performed on the touch screen.
[0011] In a second aspect, an embodiment of the present application provides a touch signal processing device, including:
[0012] An information acquisition module, used to acquire a use status of the terminal, wherein the use status is one of a charging state and a non-charging state;
[0013] A first judgment module, used to obtain capacitance data of the touch screen of the terminal, and determine whether display noise exists according to the capacitance data;
[0014] A noise removal module, configured to remove the display noise from the capacitance data to obtain an intermediate signal when it is determined that display noise exists;
[0015] The second judgment module is used to determine whether there is grid noise according to the use status, and when it is determined that there is grid noise, remove the grid noise from the intermediate signal to obtain a real signal generated when a touch operation is performed on the touch screen.
[0016] In a third aspect, an embodiment of the present application provides an electronic device, comprising a processor, a memory, and a computer program stored in the memory and executable on the processor, wherein the processor implements the steps in any one of the above-mentioned methods for processing touch signals when executing the computer program.
[0017] In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium, wherein the computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the steps in any one of the above-mentioned methods for processing touch signals are implemented.
[0018] The embodiment of the present application provides a method, device, electronic device and storage medium for processing touch signals. During the use of the terminal, the terminal realizes different functions by identifying the user performing touch operations on the touch screen. Specifically, during the processing, the use status of the terminal is monitored, wherein the use status is one of a charging state and a non-charging state, and the capacitance data on the touch screen is obtained at the same time, which is obtained by obtaining the capacitance value of each node to determine whether there is display noise, and whether there is power grid noise will also be determined according to the use status of the terminal, wherein when the terminal is in a charging state, there is power grid noise, and finally, after determining the display noise and power grid noise, the display noise and power grid noise are filtered in the capacitance data of the touch screen to obtain the real signal of the touch screen. It is realized that during the use of the terminal, the display noise and the power grid noise are distinguished and filtered to obtain a real and effective touch signal, thereby improving the accuracy of the touch response and avoiding the occurrence of touch abnormalities. BRIEF DESCRIPTION OF THE DRAWINGS
[0019] Figure 1 It is a flowchart of a method for processing a touch signal provided in an embodiment of the present application;
[0020] Figure 2 is a flowchart of the steps of making judgments based on capacitance data provided in an embodiment of the present application;
[0021] Figure 3 is a schematic diagram showing noise in capacitance data provided in an embodiment of the present application;
[0022] Figure 4 is another flowchart of the steps of determining whether there is display noise provided by an embodiment of the present application;
[0023] Figure 5 is another schematic diagram showing noise in capacitance data provided in an embodiment of the present application;
[0024] Figure 6 This embodiment of the present application provides Figure 5 Schematic diagram showing capacitance data after noise filtering;
[0025] Figure 7 is another schematic diagram showing noise in capacitance data provided in an embodiment of the present application;
[0026] Figure 8 This embodiment of the present application provides Figure 7 Another schematic diagram showing capacitance data after noise filtering;
[0027] Fig. 9 is a schematic diagram of grid noise in capacitance data provided by an embodiment of the present application;
[0028] Fig.10 is a structural schematic diagram of a touch signal processing device provided in an embodiment of the present application;
[0029] Fig.11 is a structural schematic diagram of an electronic device provided in an embodiment of the present application;
[0030] Fig.12 This is another structural schematic diagram of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0031] The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.
[0032] It should be understood that the various steps described in the method embodiments of the present disclosure may be performed in different orders and / or in parallel. In addition, the method embodiments may include additional steps and / or omit the steps shown. The scope of the present disclosure is not limited in this respect.
[0033] The term "including" and its variations used herein are open inclusions, i.e., "including but not limited to". The term "based on" means "based at least in part on". The term "one embodiment" means "at least one embodiment"; the term "another embodiment" means "at least one additional embodiment"; the term "some embodiments" means "at least some embodiments". The relevant definitions of other terms will be given in the following description.
[0034] In the related technology, the working principle of capacitive touch screen is: when the user touches the capacitive screen, a coupling capacitor is formed between the human body electric field, the finger and the conductor layer, and the current emitted by the four-sided electrodes flows to the touch point, and its strength is proportional to the distance between the finger and the electrode. The controller behind the touch screen will calculate the proportion and strength of the current and accurately calculate the position of the touch point. However, in actual use, due to the influence of the external environment, such as noise interference, the touch response is inaccurate, such as jumping points, ghost points and ghost animals.
[0035] In order to solve the technical problems existing in the related art, the present application embodiment provides a method for processing a touch signal, see Figure 1 , Figure 1 1 is a flow chart of a method for processing a touch signal provided in an embodiment of the present application. The method includes steps 101 to 104 .
[0036] Step 101: Acquire the use status of the terminal, where the use status is one of a charging state and a non-charging state.
[0037] In actual applications, when clicking or sliding operations are frequently performed on the touch screen of a terminal device, it can be in the case of entertainment, such as playing games or watching videos, or in the case of work, such as document editing. If inaccurate touch recognition and response occur at this time, it will greatly affect the actual experience. Therefore, it is necessary to accurately determine the signals generated by the touch screen and then respond accurately.
[0038] In one embodiment, when the terminal is in a game mode, the use state of the terminal is monitored and obtained, wherein the use state of the terminal is one of a charging state and a non-charging state. When determining the use state of the terminal, the reason for determining whether it is in a charging state is that in addition to the display noise generated by the touch screen, the power grid noise is also generated in the charging state, which leads to abnormal operations such as ghost points or jumping points. Therefore, when performing denoising, in addition to filtering the display noise generated by the touch screen itself, the noise generated in special circumstances (such as the charging state) is also filtered, thereby improving the accuracy of signal recognition.
[0039] Step 102: Acquire capacitance data of the touch screen of the terminal, and determine whether display noise exists according to the capacitance data.
[0040] In one embodiment, when performing denoising, it is necessary to first determine the noise that exists, and then complete the signal filtering process. Specifically, during the use of the terminal, the capacitance data of the touch screen of the terminal is obtained, and whether display noise exists is determined based on the capacitance data.
[0041] Exemplarily, based on the characteristics of capacitive touch screens, operations on the touch screen can be determined by acquiring capacitance data, wherein the capacitance data is the capacitance value of each node on the touch screen. When the capacitance value of the node changes and satisfies the conditions for a touch operation (such as the capacitance value is greater than a certain set value), it indicates that a touch operation exists on the touch screen at this time, and the touch operation can be a real and valid touch operation or an invalid erroneous operation.
[0042] Further, when obtaining capacitance data to determine whether there is display noise, you can refer to Figure 2 , Figure 2 It is a flowchart diagram of the steps of making judgments based on capacitance data provided in an embodiment of the present application, wherein the steps include steps 201 to 204.
[0043] Step 201, acquiring capacitance data of a touch screen of a terminal, and dividing the capacitance data to obtain single-column capacitance data or single-row capacitance data;
[0044] Step 202, obtaining the capacitance value of each node in the single column capacitance data or the single row capacitance data, and determining whether the capacitance value meets a preset condition, wherein the preset condition is that the capacitance value of each node in the single column capacitance data or the single row capacitance data is greater than the capacitance value of the adjacent node in the adjacent column;
[0045] Step 203: if it is determined that the capacitance value meets the preset condition, it is determined that display noise exists;
[0046] Step 204: If it is determined that the capacitance value does not meet the preset condition, it is determined that there is no display noise.
[0047] It should be noted that display noise has certain characteristics, which are characterized by the rise of the DC component in the same row or column, and the capacitance value is that the capacitance values of all nodes in an entire column or row are greater than the default capacitance value. For example, the default capacitance value range is -5 to 5, and the capacitance range of the capacitance value corresponding to the display noise is 15 to 30. That is, when it is detected that the capacitance values of all nodes in an entire row or column are in the range of 15 to 30, it means that display noise exists at this time. In addition, the capacitance values of the nodes included in the display noise can be the same or not. For details, please refer to Figure 3,like Figure 3 As shown, Figure 3 The R10 column shown in the figure shows the noise signal.
[0048] In addition, in different scenarios, the default capacitance value range will be different. For example, when in the non-charging state, the default capacitance value range is -5 to 5, and when in the charging state, the default capacitance value range will be adjusted, such as adjusted to -8 to 8. Similarly, the capacitance range corresponding to the display noise can be adjusted, such as 20 to 40 when in the charging state. The specific range can be determined based on actual experiments and test data. Therefore, when removing display noise, the preset conditions, such as the capacitance value range, can be determined according to the use status of the terminal, and then by determining whether there is display noise, the actual noise can be removed when it is determined to exist.
[0049] Specifically, when determining whether there is display noise, the capacitance data of the touch screen of the terminal is obtained, and then the capacitance data is divided and processed according to columns or rows to obtain single-column capacitance data of several columns or single-row capacitance data of several rows, so as to divide and process the data according to columns. At this time, the capacitance data can be as follows: Figure 3 As shown, the divided data can be Figure 3 As shown in R9, R10, R11 and R12, at this time, by obtaining the capacitance value of each node in the single-column capacitance data, and then comparing the capacitance value with the set capacitance value range, it is determined whether the set preset condition is met. When the capacitance value of each node in the single-column capacitance data is greater than the capacitance value of the adjacent node in the adjacent column and is within the set capacitance value range, it is determined that the set preset condition is met, and then when the set condition is met, it is determined that display noise exists, otherwise it is determined that display noise does not exist.
[0050] For example, when determining whether there is display noise, Figure 3 For example, for the R10 column, the capacitance value of each node is larger than the capacitance value of the adjacent node, and the difference is several times the capacitance value of the adjacent node. At this time, it can be determined that display noise exists, and the display noise is the R10 column.
[0051] For example, when determining whether the R11 column is display noise, since the capacitance value of each node in the R11 column is less than the capacitance value of the adjacent node in the R10 column, it is determined that the capacitance change of the R11 column is not caused by display noise. Similarly, the Figure 3 Judgment of columns R9 and R12.
[0052] Further, when determining whether there is display noise, since the position of the actual touch operation is uncontrollable, that is, the column where the display noise is located may pass through the touch area or may not pass through the touch area. When it does not pass through the touch area, the display noise data can be directly determined in the manner described in steps 201 to 204. When the display noise passes through the touch area, since the capacitance change on the touch area is obvious due to the touch operation, that is, the capacitance value is obviously greater than the capacitance value of the display noise, when determining whether there is display noise, reference can be made to Figure 4 , Figure 4 It is another flowchart diagram of the step of determining whether there is display noise provided in an embodiment of the present application, wherein the step includes step 401 to step 403.
[0053] Step 401, determining a touch area of a touch operation on the touch screen, and determining a first node included in the touch area;
[0054] Step 402, identifying a second node corresponding to the single-column capacitance data or the single-row capacitance data, and filtering the single-column capacitance data or the single-row capacitance data according to the first node and the second node;
[0055] Step 403 : determining whether display noise exists according to the filtered single-column capacitance data or single-row capacitance data.
[0056] Specifically, a touch area where a touch operation is located is determined on the touch screen, and a first node in the touch area is identified and acquired, and then a second node corresponding to a single column of capacitance data or a single row of capacitance data is determined, and the single column of capacitance data or the single row of capacitance data is filtered according to the first node and the second node, and finally, whether display noise exists is determined according to the filtered single column of capacitance data or the single row of capacitance data. Since the subsequent processing of the single column of capacitance data and the single row of capacitance data is the same, the process of determining whether display noise exists is described by taking the single column of capacitance data as an example.
[0057] Exemplarily, when a single column of capacitance data passes through the touch area, that is, there are some nodes in the single column of capacitance data whose capacitance values are significantly greater than those of other nodes, for example, the capacitance value of some nodes is 500, while the capacitance value of most nodes is 25, which means that the node with a capacitance value of 500 may be a touch node. Therefore, at this time, the touch node with a capacitance value of 500 needs to be filtered. Specifically, by removing the touch node with a capacitance value of 500 from the nodes corresponding to the single column of capacitance data, a single column of capacitance data that does not contain a touch node with a capacitance value of 500 is obtained, wherein the number of nodes contained in the single column of capacitance data obtained after filtering will be less than that before filtering, and finally, whether display noise exists is determined based on the filtered single column of capacitance data.
[0058] Furthermore, when filtering the single-column capacitance data according to the first node and the second node, it includes: performing node comparison between the first node and the second node to determine whether the first node and the second node have the same node; if it is determined that the same node exists, obtaining the same node in the first node or the second node, and eliminating the capacitance value of the same node in the single-column capacitance data; if it is determined that the same node does not exist, not processing the single-column capacitance data.
[0059] That is, when filtering, it is determined whether there are identical nodes in the first node and the second node. If the identical nodes are determined, filtering is required, otherwise it is not required. For the first node and the second node, both are node sets, that is, both contain a certain number of nodes.
[0060] Step 103: When it is determined that display noise exists, the display noise is removed from the capacitance data to obtain an intermediate signal.
[0061] In one embodiment, when it is determined that there is display noise, since the display noise has a certain impact on the recognition and response of the touch signal, it is necessary to filter it. Specifically, when it is determined that there is display noise, the display noise is filtered from the actual capacitance data by calculating the difference of the capacitance data to obtain an intermediate signal that does not contain the display noise.
[0062] Exemplarily, when filtering the display noise, it includes: when it is determined that there is display noise, obtaining the third node corresponding to the display noise and the display noise capacitance value corresponding to the third node, and calculating the display noise mean value based on the display noise capacitance value; performing a difference calculation between the actual capacitance value corresponding to the third node and the capacitance difference to obtain a difference calculation result; and performing capacitance coverage on the third node based on the difference calculation result to obtain an intermediate signal.
[0063] Specifically, when filtering the display noise, the display noise is subtracted from the original signal, that is, the third node corresponding to the display noise and the display noise capacitance value corresponding to the third node are determined, and the display noise mean of the display noise capacitance value is calculated. Then, when filtering the display noise, the capacitance value of each node in the display noise is subtracted from the display noise mean to complete the filtering of the display noise.
[0064] To show the noise Figure 5 As an example, in Figure 5In the display noise shown in FIG. 1 , the display noise mean is first calculated to be (25+26+23+24+22+25+26+27+25+22+26+21+27+25+26+27) / 16=24.8125. For the convenience of calculation, the display noise mean can be rounded off to 25. Then, through calculation processing, the capacitance data after removing the display noise can be obtained, as shown in FIG. Figure 6 shown.
[0065] It should be noted that when the display noise passes through the touch area, Figure 7 As shown, when calculating, the nodes in the touch area are removed and then the display noise mean is calculated, and the display noise mean is (25+26+23+24+22+25+26+27+25+27+25+26+27) / 13=25.2308, which is rounded to 25. Then, the display noise mean is subtracted from the entire column where the display noise is located. The capacitance data obtained at this time is as follows Figure 8 shown.
[0066] Step 104 , determining whether there is grid noise according to the use status, and removing the grid noise from the intermediate signal when it is determined that there is grid noise, to obtain a real signal generated when a touch operation is performed on the touch screen.
[0067] In one embodiment, when performing noise filtering, in addition to filtering the display noise, it is also necessary to filter the possible grid noise. Specifically, when it is determined that there is grid noise, the determined grid noise is removed from the intermediate signal to obtain a real signal for performing a touch operation on the touch screen.
[0068] When determining the grid noise, it includes: when determining that the use state is the charging state, determining that there is grid noise, and analyzing and processing the capacitance data to determine the grid noise; calculating the capacitance difference between the intermediate signal and the grid noise to obtain the real signal of the touch operation on the touch screen.
[0069] For example, when it is determined that the terminal is in a charging state, it is determined that there is grid noise. At this time, the grid noise contained is first determined by analyzing and processing the capacitance data, and then the difference between the intermediate signal and the grid noise is calculated to obtain a real signal of the touch operation.
[0070] In addition, in actual application, when the user does not perform touch operations on the terminal device, noise removal operations can also be performed. This can be understood as filtering the contained display noise data and power grid noise data in advance before operating the terminal device, so that the touch operation can be accurately identified and responded to when the actual touch operation is performed.
[0071] In fact, when it is determined that there is grid noise, the grid noise can be expressed in the form of capacitance data as follows: Fig. 9 As shown, it is usually composed of several adjacent nodes in a row or column, rather than a whole row or column. For details, please refer to Fig. 9 As shown in FIG. 1 , for an actual touch signal, it is a visible area, that is, a combination area of a row and a column.
[0072] Therefore, when analyzing the capacitance data to determine the power grid noise, it includes: determining the nodes where the capacitance changes on the touch screen according to the capacitance data and the first threshold; dividing the regions according to the nodes to obtain the node regions where the capacitance changes on the touch screen; determining the regional form of the node regions, and obtaining the power grid noise according to the regional form, wherein the regional form includes row regions, column regions, and row-column combination regions.
[0073] Exemplarily, the determination of the grid noise can be determined based on a pre-set first threshold value. When the capacitance values of several adjacent nodes in the same row or column are all greater than the first threshold value, it is determined that there is currently grid noise, such as Fig. 9 The grid noise shown in the figure is formed by aggregating adjacent nodes whose capacitance values are greater than a first threshold to form different node regions, and then determining the grid noise according to the regional form of the node regions.
[0074] In fact, the grid noise has certain characteristics, specifically: the maximum value is in a strip shape. That is, the capacitance maximum values of several adjacent nodes will form a strip shape, including a row strip shape and a column strip shape. Therefore, when determining the grid noise, it can be determined based on the characteristics of the grid noise.
[0075] Furthermore, after filtering the display noise and the power grid noise, real capacitance data can be obtained, and the current touch operation can be accurately identified and determined.
[0076] It should be noted that, in the actual processing process, the elimination of display noise and power grid noise is not limited in order, that is, the display noise can be eliminated first and then the power grid noise can be eliminated as described in the above embodiments of the present application, or the power grid noise can be eliminated first and then the display noise can be eliminated, and at the same time, the total noise can be determined first based on the display noise and the power grid noise, and then the total noise can be eliminated, or the display noise and the power grid noise can be eliminated in parallel.
[0077] In summary, the present application discloses a method for processing touch signals. During the use of the terminal, the terminal realizes different functions by identifying the user performing touch operations on the touch screen. Specifically, during the processing, the use state of the terminal is monitored, wherein the use state is one of a charging state and a non-charging state, and the capacitance data on the touch screen is obtained at the same time, which is obtained by obtaining the capacitance value of each node to determine whether there is display noise, and whether there is power grid noise will also be determined according to the use state of the terminal, wherein when the terminal is in a charging state, there is power grid noise, and finally, after determining the display noise and power grid noise, the display noise and power grid noise are filtered in the capacitance data of the touch screen to obtain the real signal of the touch screen. It is realized that during the use of the terminal, the display noise and the power grid noise are distinguished and filtered to obtain a real and effective touch signal, thereby improving the accuracy of the touch response and avoiding the occurrence of touch abnormalities.
[0078] According to the method described in the above embodiments, this embodiment will be further described from the perspective of a touch signal processing device, which can be implemented as an independent entity or integrated in an electronic device such as a terminal, which can include a mobile phone, a tablet computer, etc.
[0079] See also Fig.10 , Fig.10 is a structural diagram of a touch signal processing device provided in an embodiment of the present application, such as Fig.10 As shown, the touch signal processing device 1000 provided in the embodiment of the present application includes:
[0080] The information acquisition module 1001 is used to acquire the use status of the terminal, wherein the use status is one of a charging state and a non-charging state;
[0081] The first judgment module 1002 is used to obtain capacitance data of the touch screen of the terminal and determine whether display noise exists according to the capacitance data;
[0082] A noise removal module 1003 is used to remove the display noise from the capacitance data to obtain an intermediate signal when it is determined that there is display noise;
[0083] The second judgment module 1004 is used to determine whether there is grid noise according to the use status, and to remove the grid noise from the intermediate signal when it is determined that there is grid noise, so as to obtain a real signal generated when a touch operation is performed on the touch screen.
[0084] In one embodiment, the first determining module 1002 is further configured to:
[0085] Acquiring capacitance data of the touch screen of the terminal, and performing data division processing on the capacitance data to obtain single-column capacitance data or single-row capacitance data;
[0086] Obtaining the capacitance value of each node in the single-column capacitance data or the single-row capacitance data, and determining whether the capacitance value meets a preset condition, wherein the preset condition is that the capacitance value of each node in the single-column capacitance data or the single-row capacitance data is greater than the capacitance value of an adjacent node in an adjacent column;
[0087] If it is determined that the capacitance value meets the preset condition, it is determined that display noise exists;
[0088] If it is determined that the capacitance value does not meet the preset condition, it is determined that there is no display noise.
[0089] In one embodiment, the first determining module 1002 is further configured to:
[0090] Determining a touch area of a touch operation on the touch screen, and determining a first node included in the touch area;
[0091] Identify a second node corresponding to a single column of capacitance data or a single row of capacitance data, and filter the single column of capacitance data according to the first node and the second node;
[0092] Whether display noise exists is determined according to the filtered single-column capacitance data or the single-row capacitance data.
[0093] In one embodiment, the first determining module 1002 is further configured to:
[0094] Compare the first node with the second node to determine whether the first node and the second node are identical.
[0095] If it is determined that the same node exists, the same node is obtained in the first node or the second node, and the capacitance value of the same node is removed from the single-column capacitance data or the single-row capacitance data;
[0096] If it is determined that no identical nodes exist, the single-column capacitance data or the single-row capacitance data is not processed.
[0097] In one embodiment, the noise removal module 1003 is further used to:
[0098] When it is determined that display noise exists, obtaining a third node corresponding to the display noise and a display noise capacitance value corresponding to the third node, and calculating a display noise mean value according to the display noise capacitance value;
[0099] Performing a difference calculation on the actual capacitance value corresponding to the third node and the capacitance difference to obtain a difference calculation result;
[0100] The capacitance of the third node is covered according to the difference calculation result to obtain an intermediate signal.
[0101] In one embodiment, the second determining module 1004 is further configured to:
[0102] When it is determined that the usage state is the charging state, it is determined that there is grid noise, and the capacitance data is analyzed and processed to determine the grid noise;
[0103] The capacitance difference between the intermediate signal and the grid noise is calculated to obtain the real signal of the touch operation on the touch screen.
[0104] In one embodiment, the second determining module 1004 is further configured to:
[0105] Determine, according to the capacitance data and the first threshold, a node where capacitance changes on the touch screen;
[0106] Divide the area according to the nodes to obtain the node area where the capacitance change exists on the touch screen;
[0107] The regional form of the node area is determined, and the power grid noise is obtained according to the regional form, wherein the regional form includes a row area, a column area, and a row-column combination area.
[0108] During specific implementation, the above modules and / or units can be implemented as independent entities, or can be arbitrarily combined to be implemented as the same or several entities. The specific implementation of the above modules and / or units can refer to the previous method embodiments. The specific beneficial effects that can be achieved can also refer to the beneficial effects in the previous method embodiments, which will not be repeated here.
[0109] Also, see Fig.11 , Fig.11 is a schematic diagram of a structure of an electronic device provided in an embodiment of the present application, and the electronic device may be a mobile terminal such as a smart phone, a tablet computer, or the like. Fig.11 As shown, the electronic device 1100 includes a processor 1101 and a memory 1102. The processor 1101 and the memory 1102 are electrically connected.
[0110] Processor 1101 is the control center of electronic device 1100. It uses various interfaces and lines to connect various parts of the entire electronic device, executes various functions of electronic device 1100 and processes data by running or loading applications stored in memory 1102 and calling data stored in memory 1102, thereby monitoring electronic device 1100 as a whole.
[0111] In this embodiment, the processor 1101 in the electronic device 1100 will load the instructions corresponding to the processes of one or more applications into the memory 1102 according to the following steps, and the processor 1101 will run the application stored in the memory 1102, thereby implementing any step in the touch signal processing method provided in the above embodiment.
[0112] The electronic device 1100 can implement the steps in any embodiment of the touch signal processing method provided in the embodiments of the present application. Therefore, it can achieve the beneficial effects that can be achieved by any touch signal processing method provided in the embodiments of the present application. Please refer to the previous embodiments for details and will not be repeated here.
[0113] See also Fig.12 , Fig.12 is another structural schematic diagram of an electronic device provided in an embodiment of the present application, such as Fig.12 As shown, Fig.12 The specific structural block diagram of the electronic device provided in the embodiment of the present application is shown, and the electronic device can be used to implement the touch signal processing method provided in the above embodiment. The electronic device 1200 can be a mobile terminal such as a smart phone or a laptop computer.
[0114] The RF circuit 1210 is used to receive and send electromagnetic waves, realize the mutual conversion between electromagnetic waves and electrical signals, and thus communicate with a communication network or other devices. The RF circuit 1210 may include various existing circuit elements for performing these functions, such as antennas, radio frequency transceivers, digital signal processors, encryption / decryption chips, user identity module (SIM) cards, memories, etc. The RF circuit 1210 can communicate with various networks such as the Internet, corporate intranets, wireless networks, or communicate with other devices through wireless networks. The above-mentioned wireless networks may include cellular telephone networks, wireless local area networks, or metropolitan area networks. The above-mentioned wireless networks can use various communication standards, protocols and technologies, including but not limited to Global System for Mobile Communication (GSM), Enhanced Data GSM Environment (EDGE), Wideband Code Division Multiple Access (WCDMA), Code Division Multiple Access (CDMA), Time Division Multiple Access (TDMA), Wireless Fidelity (Wi-Fi) (such as Institute of Electrical and Electronics Engineers standards IEEE 802.11a, IEEE 802.11b, IEEE802.11g and / or IEEE802.11n), Voice over Internet Protocol (VoIP), Worldwide Interoperability for Microwave Access (Wi-Max), other protocols for email, instant messaging and short messages, and any other suitable communication protocols, even those that have not yet been developed.
[0115] The memory 1220 can be used to store software programs and modules, such as the program instructions / modules corresponding to the touch signal processing method in the above embodiment. The processor 1280 executes various functional applications and touch signal processing methods by running the software programs and modules stored in the memory 1220.
[0116] The memory 1220 may include a high-speed random access memory, and may also include a non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. In some examples, the memory 1220 may further include a memory remotely arranged relative to the processor 1280, and these remote memories may be connected to the electronic device 1200 via a network. Examples of the above-mentioned network include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof.
[0117] The input unit 1230 can be used to receive input digital or character information, and generate keyboard, mouse, joystick, optical or trackball signal input related to user settings and function control. Specifically, the input unit 1230 may include a touch-sensitive surface 1231 and other input devices 1232. The touch-sensitive surface 1231, also known as a touch display screen or a touch pad, can collect user touch operations on or near it (such as operations performed by the user using any suitable object or accessory such as a finger, stylus, etc. on or near the touch-sensitive surface 1231), and drive the corresponding connection device according to a pre-set program. Optionally, the touch-sensitive surface 1231 may include two parts: a touch detection device and a touch controller. Among them, the touch detection device detects the user's touch direction, detects the signal brought by the touch operation, and transmits the signal to the touch controller; the touch controller receives the touch information from the touch detection device, converts it into touch point coordinates, and then sends it to the processor 1280, and can receive and execute commands sent by the processor 1280. In addition, the touch-sensitive surface 1231 may be implemented in various types such as resistive, capacitive, infrared, and surface acoustic wave. In addition to the touch-sensitive surface 1231, the input unit 1230 may further include other input devices 1232. Specifically, the other input devices 1232 may include, but are not limited to, one or more of a physical keyboard, a function key (such as a volume control key, a switch key, etc.), a trackball, a mouse, a joystick, and the like.
[0118] The display unit 1240 can be used to display information input by the user or information provided to the user and various graphical user interfaces of the electronic device 1200, which can be composed of graphics, text, icons, videos and any combination thereof. The display unit 1240 may include a display panel 1241. Optionally, the display panel 1241 may be configured in the form of LCD (Liquid Crystal Display), OLED (Organic Light-Emitting Diode), etc. Further, the touch-sensitive surface 1231 may cover the display panel 1241. When the touch-sensitive surface 1231 detects a touch operation on or near it, it is transmitted to the processor 1280 to determine the type of the touch event, and then the processor 1280 provides a corresponding visual output on the display panel 1241 according to the type of the touch event. Although in the figure, the touch-sensitive surface 1231 and the display panel 1241 are implemented as two independent components to implement input and output functions, in some embodiments, the touch-sensitive surface 1231 and the display panel 1241 can be integrated to implement input and output functions.
[0119] The electronic device 1200 may also include at least one sensor 1250, such as a light sensor, a motion sensor, and other sensors. Specifically, the light sensor may include an ambient light sensor and a proximity sensor, wherein the ambient light sensor may adjust the brightness of the display panel 1241 according to the brightness of the ambient light, and the proximity sensor may generate an interrupt when the flip cover is closed or closed. As a type of motion sensor, the gravity acceleration sensor can detect the magnitude of acceleration in each direction (generally three axes), and can detect the magnitude and direction of gravity when stationary. It can be used for applications that identify the posture of the mobile phone (such as horizontal and vertical screen switching, related games, magnetometer posture calibration), vibration recognition related functions (such as pedometer, tapping), etc.; as for other sensors such as gyroscopes, barometers, hygrometers, thermometers, infrared sensors, etc. that can also be configured in the electronic device 1200, they will not be repeated here.
[0120] The audio circuit 1260, the speaker 1261, and the microphone 1262 can provide an audio interface between the user and the electronic device 1200. The audio circuit 1260 can transmit the received audio data to the speaker 1261 after converting the received audio data into an electrical signal, which is converted into a sound signal for output; on the other hand, the microphone 1262 converts the collected sound signal into an electrical signal, which is received by the audio circuit 1260 and converted into audio data, and then the audio data is processed by the output processor 1280 and sent to another terminal through the RF circuit 1210, or the audio data is output to the memory 1220 for further processing. The audio circuit 1260 may also include an earplug jack to provide communication between an external headset and the electronic device 1200.
[0121] The electronic device 1200 can help the user receive requests, send information, etc. through the transmission module 1270 (such as a Wi-Fi module), which provides the user with wireless broadband Internet access. Although the transmission module 1270 is shown in the figure, it is understandable that it is not a necessary component of the electronic device 1200 and can be omitted as needed without changing the essence of the invention.
[0122] The processor 1280 is the control center of the electronic device 1200. It uses various interfaces and lines to connect various parts of the entire mobile phone. By running or executing software programs and / or modules stored in the memory 1220, and calling data stored in the memory 1220, it executes various functions of the electronic device 1200 and processes data, thereby monitoring the electronic device as a whole. Optionally, the processor 1280 may include one or more processing cores; in some embodiments, the processor 1280 may integrate an application processor and a modem processor, wherein the application processor mainly processes the operating system, user interface, and application programs, etc., and the modem processor mainly processes wireless communications. It can be understood that the above-mentioned modem processor may not be integrated into the processor 1280.
[0123] The electronic device 1200 also includes a power supply 1290 (such as a battery) for supplying power to various components. In some embodiments, the power supply can be logically connected to the processor 1280 through a power management system, so that the power management system can manage charging, discharging, and power consumption management. The power supply 1290 can also include any components such as one or more DC or AC power supplies, recharging systems, power failure detection circuits, power converters or inverters, and power status indicators.
[0124] Although not shown, the electronic device 1200 also includes a camera (such as a front camera, a rear camera), a Bluetooth module, etc., which will not be described in detail here. Specifically in this embodiment, the display unit of the electronic device is a touch screen display, and the mobile terminal also includes a memory, and one or more programs, wherein one or more programs are stored in the memory, and are configured to be executed by one or more processors to implement any step in the touch signal processing method provided in the above embodiment.
[0125] In specific implementation, the above modules can be implemented as independent entities, or can be arbitrarily combined and implemented as the same or several entities. The specific implementation of the above modules can be found in the previous method embodiments, which will not be repeated here.
[0126] A person skilled in the art can understand that all or part of the steps in the various methods of the above embodiments can be completed by instructions, or by controlling related hardware through instructions, and the instructions can be stored in a computer-readable storage medium and loaded and executed by a processor. To this end, an embodiment of the present application provides a storage medium, which stores multiple instructions, and the instructions can be executed by the processor to implement any step in the touch signal processing method provided in the above embodiments.
[0127] The storage medium may include: a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk, etc.
[0128] Since the instructions stored in the storage medium can execute the steps in any embodiment of the touch signal processing method provided in the embodiments of the present application, the beneficial effects that can be achieved by any touch signal processing method provided in the embodiments of the present application can be achieved. Please refer to the previous embodiments for details and will not be repeated here.
[0129] The above is a detailed introduction to a touch signal processing method, device, electronic device and storage medium provided in the embodiments of the present application. This article uses specific examples to illustrate the principles and implementation methods of the present application. The description of the above embodiments is only used to help understand the method and its core idea of the present application. At the same time, for those skilled in the art, according to the idea of the present application, there will be changes in the specific implementation methods and application scope. In summary, the content of this specification should not be understood as a limitation on the present application. Moreover, for those of ordinary skill in the art, without departing from the principles of the present application, they can also make several improvements and modifications, and these improvements and modifications are also considered to be within the scope of protection of the present application.
Claims
1. A method for processing a touch signal, characterized in that: include: Acquire a usage state of the terminal, wherein the usage state is one of a charging state and a non-charging state; Acquiring capacitance data of a touch screen of the terminal, and determining whether display noise exists according to the capacitance data; In the case where it is determined that display noise exists, removing the display noise from the capacitance data to obtain an intermediate signal; It is determined whether grid noise exists according to the use status, and when it is determined that grid noise exists, the grid noise is removed from the intermediate signal to obtain a real signal generated when a touch operation is performed on the touch screen.
2. The method according to claim 1, characterized in that The acquiring capacitance data of the touch screen of the terminal, and determining whether there is display noise according to the capacitance data, includes: Acquiring capacitance data of the touch screen of the terminal, and performing data division processing on the capacitance data to obtain single-column capacitance data or single-row capacitance data; Obtaining a capacitance value of each node in the single-column capacitance data or the single-row capacitance data, and determining whether the capacitance value meets a preset condition, wherein the preset condition is that the capacitance value of each node in the single-column capacitance data or the single-row capacitance data is greater than the capacitance value of an adjacent node in an adjacent column; If it is determined that the capacitance value satisfies the preset condition, it is determined that display noise exists; If it is determined that the capacitance value does not satisfy the preset condition, it is determined that there is no display noise.
3. The method according to claim 2, characterized in that The acquiring the capacitance value of each node in the single-column capacitance data or the single-row capacitance data, and determining whether the capacitance value meets a preset condition, includes: Determining a touch area of a touch operation on the touch screen, and determining a first node included in the touch area; Identifying a second node corresponding to the single-column capacitance data or the single-row capacitance data, and filtering the single-column capacitance data or the single-row capacitance data according to the first node and the second node; Whether display noise exists is determined according to the filtered single-column capacitance data or the single-row capacitance data.
4. The method according to claim 3, characterized in that The filtering the single-column capacitance data or the single-row capacitance data according to the first node and the second node includes: Perform node comparison between the first node and the second node to determine whether the first node and the second node are identical nodes; If it is determined that the same node exists, the same node is obtained in the first node or the second node, and the capacitance value of the same node is removed from the single-column capacitance data or the single-row capacitance data; If it is determined that there is no identical node, the single column capacitance data or the single row capacitance data is not processed.
5. The method according to claim 1, characterized in that In the case where it is determined that display noise exists, removing the display noise from the capacitance data to obtain an intermediate signal includes: When it is determined that display noise exists, obtaining a third node corresponding to the display noise and a display noise capacitance value corresponding to the third node, and calculating a display noise mean value according to the display noise capacitance value; Performing a difference calculation on the actual capacitance value corresponding to the third node and the capacitance difference to obtain a difference calculation result; The third node is capacitively covered according to the difference calculation result to obtain an intermediate signal.
6. The method according to claim 2, characterized in that The determining whether there is grid noise according to the use state, and removing the grid noise from the intermediate signal when it is determined that there is grid noise, to obtain a real signal generated when a touch operation is performed on the touch screen, includes: When it is determined that the use state is a charging state, it is determined that there is grid noise, and the capacitance data is analyzed and processed to determine the grid noise; The capacitance difference between the intermediate signal and the grid noise is calculated to obtain a real signal of the touch operation on the touch screen.
7. The method according to claim 6, characterized in that The analyzing and processing the capacitance data to determine the grid noise includes: Determining nodes on the touch screen where capacitance changes according to the capacitance data and a first threshold; Divide the area according to the nodes to obtain the node area where the capacitance change exists on the touch screen; The area form of the node area is determined, and the power grid noise is obtained according to the area form, wherein the area form includes a row area, a column area, and a row-column combination area.
8. A touch signal processing device, characterized in that: include: An information acquisition module, used to acquire a use status of the terminal, wherein the use status is one of a charging state and a non-charging state; A first judgment module, used to obtain capacitance data of the touch screen of the terminal, and determine whether display noise exists according to the capacitance data; A noise removal module, configured to remove the display noise from the capacitance data to obtain an intermediate signal when it is determined that display noise exists; The second judgment module is used to determine whether there is grid noise according to the use status, and when it is determined that there is grid noise, remove the grid noise from the intermediate signal to obtain a real signal generated when a touch operation is performed on the touch screen.
9. An electronic device, characterized in that: The electronic device comprises a processor, a memory, and a computer program stored in the memory and executable on the processor, and the processor implements the steps in the method according to any one of claims 1 to 7 when executing the computer program.
10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the steps in the method according to any one of claims 1 to 7 are implemented.