Processing method and device and electronic equipment
By detecting whether the touch data is disturbed by noise in the capacitive touch screen and dynamically adjusting the dead zone parameter value, the problem of coordinate jitter and low response efficiency of small-range touch is solved due to noise interference, and a more stable touch effect is achieved.
Patent Information
- Application Number
- CN202510378906.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-03-28
- Publication Date
- 2025-07-01
AI Technical Summary
Existing capacitive touch screens are easily disturbed by noise during use, resulting in large jitter in the output coordinates and fixed dead zone parameters, which cannot effectively suppress noise or respond to small-range touch operations.
When the touch data is received by the touch panel, it detects whether the data is disturbed by noise, and dynamically adjusts the dead zone parameter value according to the detection results. If noise interference is detected, the dead zone parameters are increased to suppress noise; if noise interference is not detected, the dead zone parameters are reduced to improve the response efficiency for small-range touch operations.
Effectively suppress coordinate jitter caused by noise interference, improve the response efficiency of the touch panel to small-range touch operations, and improve the touch effect.
Smart Images

Figure CN120233907A_ABST
Abstract
Description
Technical Field
[0001] This application belongs to the technical field of electronic devices, and particularly relates to a processing method, apparatus, and electronic device. Background Art
[0002] With the development of electronic technology and people's increasing exposure to touch screen products, such as terminal mobile phones and in-vehicle touch screens, touch screen products are usually capacitive touch screens. During actual use of a capacitive touch screen, the touch screen is affected by noise to varying degrees, resulting in large fluctuations in the output coordinates. To reduce the impact of noise, a dead zone parameter is generally set. When the coordinate change is less than the threshold, the output coordinates do not change.
[0003] In related technologies, the dead zone parameter is a set fixed value, and there are problems such as the inability to normally respond to small-range touches or the inability to suppress coordinate fluctuations caused by noise. Therefore, there are problems with poor touch effects in the prior art. Summary of the Invention
[0004] The purpose of the embodiments of this application is to provide a processing method, apparatus, and electronic device to solve the problem of poor touch effects in related technologies.
[0005] In a first aspect, the embodiments of this application provide a processing method, which is executed by an electronic device. The electronic device includes a touch panel. The processing method includes: receiving touch data through the touch panel; when it is determined according to the touch data that noise interference is present, increasing the value of the dead zone parameter of the touch panel; or, when it is determined according to the touch data that no noise interference is present, decreasing the value of the dead zone parameter of the touch panel.
[0006] In a second aspect, the embodiments of this application provide a processing apparatus, which is applied to an electronic device. The electronic device includes a touch panel. The processing apparatus includes: a receiving module, configured to receive touch data through the touch panel; an adjustment module, configured to increase the value of the dead zone parameter of the touch panel when it is determined according to the touch data that noise interference is present; or, the adjustment module is configured to decrease the value of the dead zone parameter of the touch panel when it is determined according to the touch data that no noise interference is present.
[0007] In a third aspect, the embodiments of this application provide an electronic device, including a processor and a memory. The memory stores a program or instructions that can run on the processor. When the program or instructions are executed by the processor, the steps of the method in the first aspect are implemented.
[0008] In a fourth aspect, the embodiments of this application provide a readable storage medium, on which a program or instructions are stored. When the program or instructions are executed by the processor, the steps of the method in the first aspect are implemented.
[0009] Fifth aspect, an embodiment of the present application provides a chip, which includes a processor and a communication interface. The communication interface is coupled to the processor, and the processor is configured to run programs or instructions to implement the steps of the method according to the first aspect.
[0010] Sixth aspect, an embodiment of the present application provides a computer program product, which is stored in a storage medium and is executed by at least one processor to implement the method according to the first aspect.
[0011] In an embodiment of the present application, when the touch panel receives touch data, it detects whether the touch data received by the touch panel is affected by noise interference. If it is detected that the touch data is affected by noise interference, the dead zone parameter of the touch panel is increased, so that the increased dead zone parameter value can effectively suppress noise and reduce the jitter of the output coordinates in the touch data caused by noise. If it is detected that the touch data is not affected by noise interference, the dead zone parameter of the touch panel is decreased, so that the decreased dead zone parameter value will not affect the reading of the touch data and improve the response efficiency of the touch panel to small-range touch operations of the user. The present application adjusts the dead zone parameter value by referring to whether the touch panel is affected by noise interference when receiving touch data, so that the adjusted dead zone parameter is related to the noise interference situation of the touch data, avoiding that the dead zone parameter is too small to suppress coordinate jitter under noise interference, and avoiding that the dead zone parameter is too large to prevent the touch panel from responding to small-range touch operations of the user under the condition of no noise interference, thereby solving the problem of poor touch effect in the related art. BRIEF DESCRIPTION OF THE DRAWINGS
[0012] Figure 1 One of the flow diagrams of the processing method provided in some embodiments of the present application is shown;
[0013] Figure 2 A coordinate value curve diagram under noise interference provided in some embodiments of the present application is shown;
[0014] Figure 3 A waveform diagram of the coordinate difference queue provided in some embodiments of the present application is shown;
[0015] Figure 4 Another flow diagram of the processing method provided in some embodiments of the present application is shown;
[0016] Figure 5 A flow diagram of the noise interference detection process provided in some embodiments of the present application is shown;
[0017] Figure 6 A flow diagram of the periodic detection process of the coordinate difference queue provided in some embodiments of the present application is shown;
[0018] Figure 7 A schematic block diagram of a processing device provided in some embodiments of the present application is shown;
[0019] Figure 8 A structural block diagram of an electronic device in some embodiments of the present application is shown;
[0020] Figure 9 A schematic diagram of the hardware structure of an electronic device provided in some embodiments of the present application is shown. Detailed implementation manners
[0021] Next, the technical solutions in the embodiments of the present application will be clearly described in conjunction with the accompanying drawings in the embodiments of the present application. Obviously, the described embodiments are some, rather than all, embodiments of the present application. Based on the embodiments in the present application, all other embodiments obtained by those of ordinary skill in the art belong to the scope of protection of the present application.
[0022] The terms "first", "second", etc. in the specification and claims of the present application are used to distinguish similar objects, rather than to describe a specific order or sequence. It should be understood that such terms may be interchanged under appropriate circumstances so that the embodiments of the present application can be implemented in an order other than those illustrated or described herein, and the objects distinguished by "first", "second", etc. are generally of the same category, and the number of objects is not limited. For example, the first object may be one or multiple. In addition, "and / or" in the specification and claims means at least one of the connected objects, and the character " / " generally indicates an "or" relationship between the associated objects before and after.
[0023] Next, in conjunction with the attached Figures 1 to 9 , the processing method, device, and electronic device provided in the embodiments of the present application will be described in detail through specific embodiments and their application scenarios.
[0024] In some embodiments of the present application, a processing method is provided, which is executed by an electronic device. The electronic device includes a touch panel. Figure 1 One of the flow diagrams of the processing method provided in some embodiments of the present application is shown. As Figure 1 shown, the processing method includes:
[0025] Step 102, receiving touch data through the touch panel;
[0026] In the embodiments of the present application, the electronic device can receive touch data through the touch panel. The touch data is data generated in response to a touch input executed by the user on the touch panel. Specifically, the touch panel is selected as a capacitive touch panel. When the user performs a touch operation on the touch panel, the touch operation causes a change in the capacitance between the electrodes in the touch panel, thereby receiving the touch data. Exemplarily, the touch data includes touch coordinates.
[0027] Step 104: When it is determined according to the touch data that noise interference exists, increase the dead zone parameter value of the touch panel; or when it is determined according to the touch data that no noise interference exists, decrease the dead zone parameter value of the touch panel.
[0028] In the embodiments of the present application, noise refers to the interference of signals generated by some external energies during the signal transmission process. For example, a stray electric field. When the touch data received by the touch panel is affected by noise, the noise will cause the touch data received by the touch panel to be distorted, that is, the obtained coordinates are inaccurate. Therefore, during the process of the touch panel receiving touch data, it is detected whether the touch data received by the touch panel is affected by noise, and subsequently, the dead zone parameter value of the touch panel is adjusted based on whether the touch data is affected by noise.
[0029] Exemplarily, the touch panel can detect noise interference through a differential signal detection method. For example, by synchronously collecting the capacitance changes of adjacent sensing electrodes in the touch panel and comparing the differences between the differential signal and the common-mode signal, it is thereby identified whether the touch panel is affected by noise such as a stray electric field.
[0030] Exemplarily, the touch panel can also determine whether the coordinate values and the fitting values of multiple touch data change periodically, so as to identify whether the received touch data is affected by noise.
[0031] Exemplarily, when the touch panel does not receive touch data, the reference capacitance value of the touch panel is recorded, and based on whether the recorded reference capacitance undergoes a non-contact offset, it is thereby determined whether the touch panel is affected by noise.
[0032] In the embodiments of the present application, the dead zone refers to the range of input signals corresponding to an output of zero in the transfer function of the control system. In the touch panel, the dead zone represents the range of input coordinates when the output coordinate change is 0. For example, if the dead zone parameter value is 5 and the historical output coordinate is 15, then when the input coordinate is between 10 and 20, the output coordinate remains 15.
[0033] In the embodiments of the present application, when it is detected that the touch data is affected by noise, if the dead zone parameter is small at this time, the dead zone parameter cannot suppress the noise, resulting in jitter of the output coordinates corresponding to the touch data. Therefore, when it is detected that the touch data is affected by noise, the dead zone parameter value of the touch panel is increased, so that the increased dead zone parameter value can effectively suppress the noise and reduce the jitter of the output coordinates in the touch data caused by the influence of noise.
[0034] Specifically, when it is determined that the touch data is affected by noise and the dead zone parameter of the touch panel is less than or equal to the default value, it is determined that the dead zone parameter of the touch panel is small at this time, and then the dead zone parameter value of the touch panel is increased. Here, the default value is the initial dead zone parameter value of the touch panel, that is, the dead zone parameter value before adjustment according to the noise interference situation.
[0035] In the embodiments of the present application, when it is detected that the touch data is not affected by noise, if the dead zone parameter is large at this time, the touch data received by the touch panel is overly affected by the dead zone parameter value, and the corresponding output coordinate remains unchanged, resulting in the inability to normally read the small-range touch operations performed by the user on the touch panel. Therefore, when it is detected that the touch data is not affected by noise, the dead zone parameter value of the touch panel is decreased, so that the decreased dead zone parameter value will not affect the reading of the touch data, and the response efficiency of the touch panel to the small-range touch operations of the user is improved.
[0036] In the embodiments of the present application, when the touch panel receives touch data, it is detected whether the touch data received by the touch panel is affected by noise. If it is detected that the touch data is affected by noise, the dead zone parameter of the touch panel is increased, so that the increased dead zone parameter value can effectively suppress the noise and reduce the jitter of the output coordinate in the touch data caused by the noise. If it is detected that the touch data is not affected by noise, the dead zone parameter of the touch panel is decreased, so that the decreased dead zone parameter value will not affect the reading of the touch data, and the response efficiency of the touch panel to the small-range touch operations of the user is improved. The present application adjusts the dead zone parameter value by referring to whether the touch panel is affected by noise when receiving touch data, so that the adjusted dead zone parameter is related to the noise interference situation of the touch data, avoiding that the dead zone parameter is small under noise interference and unable to suppress coordinate jitter, and avoiding that the dead zone parameter is large when not affected by noise and the touch panel is unable to respond to the small-range touch operations of the user, thereby solving the problem of poor touch effect in the related art.
[0037] In some embodiments of the present application, when it is determined according to the touch data that the touch data is not affected by noise, decreasing the dead zone parameter value of the touch panel includes: when it is determined according to the touch data that the touch data is not affected by noise and the dead zone parameter value of the touch panel is greater than the default value, decreasing the dead zone parameter value of the touch panel.
[0038] In the embodiments of the present application, when it is detected that the touch data received by the touch panel is not affected by noise, the numerical relationship between the current dead zone parameter value of the touch panel and the default value is judged. If it is determined that the dead zone parameter value is greater than the default value, it is determined that the dead zone parameter value is too large at this time, and the output coordinates after the touch data is processed by the dead zone parameter value may remain unchanged, resulting in the inability to normally read the small-range touch operations performed by the user on the touch panel. At this time, the dead zone parameter of the current touch panel is adjusted to a smaller value to reduce the influence of the adjusted smaller dead zone parameter on the touch data noise, thereby improving the response effect of the touch panel to small-range touch operations.
[0039] Specifically, the default value is the initial dead zone parameter value of the touch panel, that is, the dead zone parameter value before adjustment according to the noise interference situation. When the touch data is not affected by noise and the dead zone parameter value is greater than the default value, it is determined that a larger adjustment may have been performed on the dead zone parameter value before. Therefore, the dead zone parameter value needs to be adjusted to a smaller value.
[0040] Exemplarily, the dead zone parameter value is adjusted to the default value, that is, when the touch data is not affected by noise, the dead zone parameter value is maintained at the default value. The default value is the dead zone parameter value set according to actual tests, and this default value is adapted to the touch data of the touch panel not affected by noise, enabling the touch panel to respond to small-range touch operations.
[0041] In some embodiments of the present application, the number of touch data is N, where N is a positive integer greater than 2. After receiving the touch data through the touch panel, the processing method further includes: fitting the coordinate values of the N touch data to obtain a fitting value; obtaining a coordinate difference queue according to the coordinate values and the fitting value of the N touch data; and determining whether it is affected by noise according to the coordinate difference queue.
[0042] In the embodiments of the present application, when the touch panel receives N touch data, and the N touch data correspond to N coordinate values, fitting processing is respectively performed on the N coordinate values corresponding to the N touch data to obtain N fitting values. By performing difference calculations on the N coordinate values and the N fitting values one by one according to the corresponding relationship, N corresponding coordinate differences are obtained. The N coordinate differences are arranged in the receiving order of the corresponding touch data in sequence to obtain a coordinate difference queue. Whether the touch data is affected by noise is judged through the coordinate difference queue. Specifically, when the coordinate difference queue changes periodically, it is determined that the touch data is affected by noise; when the coordinate difference queue does not change periodically, it is determined that the touch data is not affected by noise.
[0043] Exemplarily, the coordinate values of the touch data are polynomially fitted by the least squares method to obtain the fitting value of each touch data. After obtaining the fitting value, the coordinate difference is obtained by subtracting the fitting value. It should be noted that the least squares method, also known as the least square method, is a mathematical optimization modeling method. It finds the best function match for the data by minimizing the sum of squares of the error. The least squares method can be used to easily obtain unknown data and minimize the sum of squares of the error between the obtained data and the actual data. The least squares method is a standard method for obtaining an approximate solution to a system of linear equations, that is, a system of equations with more equations than unknowns, by regression analysis. In this entire solution, the least squares method is calculated to minimize the sum of the residual sum of squares in the result of each equation. Polynomial fitting is a type of curve fitting, and a polynomial function is used for curve fitting.
[0044] In an embodiment of the present application, a coordinate difference queue can be obtained based on the coordinate values and fitting values of N touch data. The changing state of the coordinate difference queue can reflect whether the touch data is interfered by noise, thereby improving the accuracy of detecting whether the touch data of the current touch panel is interfered by noise, thereby improving the accuracy of subsequent adjustment of the dead zone parameter value.
[0045] The following is an explanation of building a coordinate difference queue:
[0046] When the touch panel receives touch data, a touch coordinate queue is constructed. According to the order in which the multiple touch data are received, the coordinate values of the multiple touch data are sequentially stored in the touch coordinate queue until the touch coordinate queue is full. At this time, it is determined that a complete touch coordinate queue is obtained. It should be noted that the coordinate values of the touch data include x-axis coordinate values and y-axis coordinate values.
[0047] After obtaining the complete touch coordinate queue, it is necessary to determine the coordinate difference queue corresponding to the touch coordinate queue. The number of coordinate differences in the coordinate difference queue is the same as the number of coordinate values in the touch coordinate queue, and the coordinate difference corresponds to the coordinate value one by one. Specifically, each coordinate value corresponds to a coordinate difference, and the coordinate difference is the difference calculated by the difference between the coordinate value of the touch data and the fitting value. Since the touch coordinate queue includes x-axis coordinate values and y-axis coordinate values, the coordinate difference queue also includes x-axis coordinate difference values and y-axis coordinate difference values. By fitting the x-axis coordinate values and the y-axis coordinate values respectively, the x-axis fitting values and the y-axis fitting values are obtained. The x-axis coordinate difference is obtained by performing a difference calculation between the x-axis coordinate value and the corresponding x-axis fitting value, and the y-axis coordinate difference is obtained by performing a difference calculation between the y-axis coordinate value and the y-axis fitting value.
[0048] The following is an explanation of judging whether the touch data is interfered by noise based on the coordinate difference queue:
[0049] Figure 2 shows the coordinate value curve diagram under noise interference provided in some embodiments of the present application. As Figure 2 shown, under noise interference, the coordinate values of the touch coordinates will jitter periodically. Therefore, it is possible to determine whether the touch data is affected by noise interference by checking whether the coordinate difference queue changes periodically.
[0050] Based on whether the change state of the coordinate differences in the coordinate difference queue is in periodic change, the noise interference situation is determined. When it is detected that the change state of the coordinate differences is in periodic change, it is determined that the touch data is affected by noise interference. When the change state of the coordinate differences is not in periodic change, it is determined that the touch data is not affected by noise interference.
[0051] In some embodiments of the present application, when it is determined according to the touch data that the touch data is affected by noise interference, the dead zone parameter value of the touch panel is increased, including: when it is determined according to the touch data that the touch data is affected by noise interference, the dead zone parameter value of the touch panel is increased according to the peak-to-peak value of the coordinate difference queue.
[0052] In the embodiments of the present application, when it is determined according to the coordinate difference queue that the touch data is affected by noise interference, the dead zone parameter value is increased according to the peak-to-peak value in the coordinate difference queue. Among them, the peak-to-peak value of the coordinate difference queue can reflect the magnitude of the noise interference. When the peak-to-peak value is large, the noise interference is large, and a larger dead zone parameter value is required to suppress the coordinate value jitter of the touch data. Therefore, adjusting the dead zone parameter value according to the peak-to-peak value in the touch coordinate queue can improve the suppression effect of the adjusted dead zone parameter value on the coordinate jitter caused by noise interference.
[0053] Exemplarily, the adjusted dead zone parameter value is calculated through the peak-to-peak value, and the adjusted dead zone parameter value is greater than the default value. The expression (1) of the adjusted dead zone parameter value is as follows:
[0054] Deadband = 1 / 2l × N(1)
[0055] where Deadband is the target dead zone parameter, l is the peak-to-peak value, and N is a constant, which can take values from 1 to 1.5, specifically 1.1 for example.
[0056] Specifically for example: when the peak-to-peak value is 188 and N = 1.1, the adjusted dead zone parameter value is (188 / 2) × 1.1 = 103.4.
[0057] Specifically, the increased dead zone parameter values include the dead zone parameters corresponding to the x-axis and y-axis respectively. When determining the increased dead zone parameter values, it is necessary to determine the corresponding target dead zone parameters according to the peak-to-peak values corresponding to the x-axis and y-axis in the coordinate difference queue. The finally obtained increased dead zone parameter values are the increased dead zone parameter values of the x-axis and the increased dead zone parameter values of the y-axis. When outputting the input coordinates, the x-axis coordinate value and y-axis coordinate value in the touch data are output processed through the increased dead zone parameter values of the x-axis and the increased dead zone parameter values of the y-axis respectively.
[0058] In some embodiments of the present application, determining whether there is noise interference according to the coordinate difference queue includes: obtaining the bottom peak value and the top peak value in the coordinate difference queue; determining that there is noise interference when the number of bottom peak values and the number of top peak values are both greater than or equal to M; determining that there is no noise interference when at least one of the number of bottom peak values and the number of top peak values is less than M; where M is a positive integer less than N.
[0059] In the embodiments of the present application, when judging whether the touch data is interfered by noise according to the coordinate difference queue, it is necessary to detect whether the coordinate difference queue changes periodically. If the coordinate difference queue changes periodically, it is determined that the touch data is interfered by noise. If the coordinate difference queue does not change periodically, it is determined that the touch data is not interfered by noise. Specifically, the number of top peak values and bottom peak values in the coordinate difference queue is counted. When the number of top peak values and the number of bottom peak values are both greater than or equal to M, it is determined that the coordinate difference queue changes periodically, that is, the touch data is interfered by noise. When at least one of the number of top peak values and the number of bottom peak values is less than M, it is determined that the coordinate difference queue does not change periodically, that is, the touch data is not interfered by noise; M is a threshold for determining whether the coordinate difference queue changes periodically. Therefore, the number of M needs to be less than the number of coordinate differences in the coordinate difference queue, that is, M < N.
[0060] It should be noted that the value range of M is related to the number of coordinate differences in the coordinate difference queue. If the number of coordinate differences in the coordinate difference queue is large, the value of M is large. If the number of coordinate differences in the coordinate difference queue is small, the value of M is small.
[0061] Exemplarily, the number of coordinate differences in the coordinate difference queue is 16, and the value of M is 3.
[0062] In the embodiments of the present application, by obtaining the peak values and valley values in the coordinate difference queue, counting the peak values and valley values, and based on the numerical relationship between the number of valley values, the number of peak values and the number threshold M, accurately detecting whether the coordinate difference queue is in periodic change, thereby improving the accuracy of detecting whether the touch data is interfered by noise.
[0063] The following details the detection of whether the coordinate difference queue is in periodic change:
[0064] In the process of detecting whether the coordinate differences in the coordinate difference queue are in periodic change, it is necessary to count the valley values and peak values in the coordinate difference queue, and detect whether the coordinate differences in the coordinate difference queue are in periodic change through the number of valley values and the number of peak values.
[0065] Among them, the peak values and valley values in the coordinate difference queue are detected by a first difference threshold and a second difference threshold. Among them, the first difference threshold is less than the second difference threshold. The first difference threshold is used to detect valley values, and the second difference threshold is used to detect peak values. Among them, the first difference threshold and the second difference threshold are thresholds determined based on the median and the peak-to-peak value in the coordinate difference queue. The expressions of the first difference threshold and the second difference threshold are as follows:
[0066] lv1 = m - 1 / 4l; (1)
[0067] lv2 = m + 1 / 4l; (2)
[0068] Among them, lv1 is the first difference threshold, lv2 is the second difference threshold, m is the median, and l is the peak-to-peak value.
[0069] Figure 3 Shows the waveform diagram of the coordinate difference queue provided in some embodiments of the present application, as Figure 3 shown. Exemplarily, the coordinate difference queue is as follows: 12, 17, 10, -106, 54, -94, 71, 65, -74, 82, 53, -67, 12, 5, 9, 12. Among them, the median m is -12, the peak-to-peak value l is (82 - (-106)) = 188, the first difference threshold lv1 is -59, and the second difference threshold lv2 is 35.
[0070] In the process of screening the peak values and valley values in the coordinate difference queue, it is necessary to judge each coordinate value in the coordinate difference queue as the target difference in turn, and according to the change direction of the target difference and the numerical relationship between the target difference and the first difference threshold and the second difference threshold, judge whether the target difference is a peak value or a valley value.
[0071] Specifically, when the target difference is less than the first difference threshold and the change direction of the target difference is the downward direction, it is determined that the target difference is a small coordinate difference, that is, the target difference may be the bottom value of the peak. It is necessary to determine whether the change direction of the target difference is opposite to the change direction of the subsequent difference of the target difference. If the change direction of the subsequent difference is opposite to the change direction of the target difference, it is determined that the target difference is the bottom value of the peak. When the target difference is greater than the second difference threshold and the change direction of the target difference is the upward direction, it is determined that the target difference is a large coordinate difference, that is, the target difference may be the peak value of the peak. At this time, it is necessary to determine whether the change direction of the target difference is opposite to the change direction of the subsequent difference of the target difference. If the change direction of the subsequent difference is opposite to the change direction of the target difference, it is determined that the target difference is the peak value of the peak.
[0072] It should be noted that when the coordinate difference in the coordinate difference queue is less than the previous coordinate difference, the change direction of the coordinate difference is determined to be the downward direction; when the coordinate difference in the coordinate difference queue is greater than the previous coordinate difference, the change direction of the coordinate difference is determined to be the upward direction. Exemplarily, if the coordinate difference is 17 and the previous coordinate difference is 12, it is determined that the coordinate difference 17 is in the upward direction. If the coordinate difference is 10 and the previous coordinate difference is 17, it is determined that the coordinate difference 10 is in the downward direction.
[0073] Exemplarily, the coordinate difference queue is as follows: 12, 17, 10, -106, 54, -94, 71, 65, -74, 82, 53, -67, 12, 5, 9, 12. The change direction of each coordinate difference in the coordinate difference queue is determined as follows: 0, 1, -1, -1, 1, -1, 1, -1, -1, 1, -1, -1, 1, -1, 1, 1, where 0 represents no change direction, 1 represents the upward direction, and -1 represents the downward direction.
[0074] Among them, the first coordinate difference is 12, which is not less than the first difference threshold and not greater than the second difference threshold, and no processing is performed;
[0075] The second coordinate difference is 17, which is not less than the first difference threshold and not greater than the second difference threshold, and no processing is performed;
[0076] The third coordinate difference is 10, which is not less than the first difference threshold and not greater than the second difference threshold, and no processing is performed;
[0077] The fourth coordinate difference is -106, which is less than the first difference threshold. The fourth coordinate difference is in the downward direction, the fifth coordinate difference is in the upward direction, the fourth coordinate difference is a small coordinate difference. Since there is no bottom value of the peak before, this data is marked as the bottom value of the peak;
[0078] The 5th coordinate difference is 54, which is greater than the second difference threshold. The 5th coordinate difference is in the upward direction, the 6th coordinate difference is in the downward direction, and the 5th coordinate difference is a large coordinate difference. Since the previous peak is the bottom value of the peak, mark this data as the top value of the peak;
[0079] The 6th coordinate difference is -94, which is less than the first difference threshold. The 6th coordinate difference is in the downward direction, the 7th coordinate difference is in the upward direction, and the 6th coordinate difference is a small coordinate difference. Since the previous peak is the top value of the peak, mark this data as the bottom value of the peak;
[0080] The 7th coordinate difference is 71, which is greater than the second difference threshold. The 7th coordinate difference is in the upward direction, the 8th coordinate difference is in the downward direction, and the 7th coordinate difference is a large coordinate difference. Since the previous peak is the bottom of the peak, mark this data as the top value of the peak;
[0081] The 8th coordinate difference is 65, which is greater than the second difference threshold. The 8th coordinate difference is in the downward direction, the 9th coordinate difference is in the downward direction, and the 8th coordinate difference, which is greater than the second difference threshold, shows a downward trend, indicating that this is not a peak and no processing is required;
[0082] The 9th coordinate difference is -74, which is less than the first difference threshold. The 9th coordinate difference is in the downward direction, the 10th coordinate difference is in the upward direction, and the 9th coordinate difference is a small coordinate difference. Since the previous peak is the top value of the peak, mark this data as the bottom value of the peak;
[0083] The 10th coordinate difference is 82, which is greater than the second difference threshold. The 10th coordinate difference is in the upward direction, the 11th coordinate difference is in the downward direction, and the 10th coordinate difference is a large coordinate difference. Since the previous peak is the bottom of the peak, mark this data as the top of the peak;
[0084] The 11th coordinate difference is 53, which is greater than the second difference threshold. The 11th coordinate difference is in the downward direction, the 12th coordinate difference is in the downward direction, and the 11th coordinate difference, which is greater than the second difference threshold, shows a downward trend, indicating that this is not a peak and no processing is required;
[0085] The 12th coordinate difference is -67, which is less than the first difference threshold. The 12th coordinate difference is in the downward direction, the 13th coordinate difference is in the upward direction, and the 12th coordinate difference is a small coordinate difference. Since the previous peak is the top value of the peak, mark this data as the bottom value of the peak;
[0086] The 13th coordinate difference is 12, which is not less than the first difference threshold nor greater than the second difference threshold, so no processing is required;
[0087] The 14th coordinate difference is 5, which is not less than the first difference threshold nor greater than the second difference threshold, so no processing is required;
[0088] The 15th coordinate difference is 9, which is not less than the first difference threshold and not greater than the second difference threshold, so no processing is performed;
[0089] The 16th coordinate difference is 12, which is not less than the first difference threshold and not greater than the second difference threshold, so no processing is performed.
[0090] It should be noted that during the process of the electronic device sequentially determining whether the coordinate differences are peak values, when the target difference is less than the first difference, it is determined that the target difference is a small coordinate difference, and it is judged whether the previous coordinate difference has been determined as the bottom value of the peak. If the previous one is the bottom value of the peak, the previous coordinate difference is compared with the target difference, and the minimum value of the previous coordinate difference and the target difference is used as the bottom value of the peak; when the target difference is greater than the second difference, it is determined that the target difference is a large coordinate difference, and it is judged whether the previous coordinate difference has been determined as the peak value. If the previous one is the peak value, the previous coordinate difference is compared with the target difference, and the maximum value of the previous coordinate difference and the target difference is used as the peak value; until all the coordinate differences in the coordinate difference queue are judged, so as to screen out all the peak values and bottom values of the peaks.
[0091] The number of coordinate values in the touch coordinate queue is 16, the number of coordinate differences in the coordinate difference queue is 16, and the quantity threshold M = 3.
[0092] In summary, there are 4 bottom values of the peaks and 3 peak values in total in the coordinate difference queue. Since the number of peak values and the number of bottom values of the peaks are both greater than the quantity threshold, it is determined that the coordinate difference queue changes periodically, that is, it is determined that the touch data corresponding to the coordinate difference queue is affected by noise.
[0093] Figure 4 The second flow diagram of the processing method provided in some embodiments of the present application is shown. As Figure 4 shown, the processing method includes:
[0094] Step 401, storing the coordinate values of the touch data into the touch coordinate queue;
[0095] Step 402, judging whether the touch coordinate queue is full. If the judgment result is yes, execute step 403, otherwise execute step 404;
[0096] Step 403, performing noise detection and adjusting the dead zone parameter up or down;
[0097] Step 404, using the default value of the dead zone parameter;
[0098] Step 405, outputting the coordinate values in the touch data.
[0099] Figure 5The flowchart shows the noise interference detection process provided in some embodiments of the present application, as Figure 5 shown. The noise interference detection includes:
[0100] Step 501: Fit the coordinate values of the touch data to obtain the fitting values;
[0101] Step 502: Subtract the fitting value from the coordinate value to obtain the coordinate difference;
[0102] Step 503: Determine whether the coordinate difference queue has periodicity. If the determination result is yes, execute Step 504; if the determination result is no, end;
[0103] Step 504: Increase the dead zone parameter value according to the peak-to-peak value in the coordinate difference queue.
[0104] Figure 6 The flowchart shows the periodicity detection process of the coordinate difference queue provided in some embodiments of the present application, as Figure 6 shown. The periodicity detection of the coordinate difference queue includes:
[0105] Step 601: Determine the dir of the coordinate difference and the peak-to-peak value of the coordinate difference queue;
[0106] wherein, dir is the direction of change.
[0107] Step 602: Determine lv1 and lv2 according to the peak-to-peak value;
[0108] wherein, lv1 is the first difference threshold and lv2 is the second difference threshold;
[0109] Step 603: Successively use the coordinate differences in the coordinate difference queue as the target differences;
[0110] Step 604: Determine whether n < lv1, dir < 0, and the next dir > 0 are satisfied. If the determination result is yes, execute Step 605; if the determination result is no, execute Step 607;
[0111] wherein, n is the numerical value of the coordinate difference;
[0112] Step 605: The coordinate difference is a small coordinate difference;
[0113] Step 606: When the previous coordinate difference is the bottom value of the peak, update the bottom value of the peak and execute Step 610;
[0114] Step 607: Determine whether n > lv2, dir > 0, and the next dir < 0 are satisfied. If the determination result is yes, execute Step 608; if the determination result is no, execute Step 610;
[0115] Step 608: The coordinate difference is a large coordinate difference;
[0116] Step 609, when the previous coordinate difference is the peak value, update the peak value and execute Step 610;
[0117] Step 610, determine whether it is the last coordinate difference. If the determination result is no, return to execute Step 603. If the determination result is yes, end.
[0118] In the embodiment of the present application, the execution subject of the processing method can be a processing device. In the embodiment of the present application, taking the processing device executing the processing method as an example, the processing method provided by the embodiment of the present application is described.
[0119] In some embodiments of the present application, a processing device is provided. The processing device includes a touch panel. Figure 7 The schematic block diagram of the processing device provided in some embodiments of the present application is shown. As Figure 7 shown, the processing device 700 further includes:
[0120] A receiving module 702, configured to receive touch data through the touch panel;
[0121] An adjustment module 704, configured to increase the dead zone parameter value of the touch panel when it is determined according to the touch data that noise interference is received; or, decrease the dead zone parameter value of the touch panel when it is determined according to the touch data that no noise interference is received.
[0122] In the embodiment of the present application, when the touch panel receives touch data, it detects whether the touch data received by the touch panel is affected by noise interference. If it is detected that the touch data is affected by noise interference, the dead zone parameter of the touch panel is increased, so that the increased dead zone parameter value can effectively suppress noise and reduce the jitter of the output coordinates in the touch data caused by noise. If it is detected that the touch data is not affected by noise interference, the dead zone parameter of the touch panel is decreased, so that the decreased dead zone parameter value will not affect the reading of the touch data and improve the response efficiency of the touch panel to small-range touch operations of the user. The present application adjusts the dead zone parameter value by referring to whether the touch data received by the touch panel is affected by noise interference, so that the adjusted dead zone parameter is related to the noise interference situation of the touch data, avoiding that the dead zone parameter is too small to suppress coordinate jitter under noise interference, and avoiding that the dead zone parameter is too large to prevent the touch panel from responding to small-range touch operations of the user under the condition of no noise interference, thereby solving the problem of poor touch effect in the related art.
[0123] In some embodiments of the present application, the adjustment module 704 is specifically configured to decrease the dead zone parameter value of the touch panel when it is determined according to the touch data that no noise interference is received and the dead zone parameter value of the touch panel is greater than the default value.
[0124] In the embodiments of the present application, when it is detected that the touch data received by the touch panel is not interfered by noise, the numerical relationship between the dead zone parameter value of the current touch panel and the default value is judged. If it is determined that the dead zone parameter value is greater than the default value, it is determined that the dead zone parameter value is too large at this time, and the output coordinates after the touch data is processed by the dead zone parameter value may remain unchanged, resulting in the inability to normally read the small-range touch operations performed by the user on the touch panel. At this time, the dead zone parameter of the current touch panel is adjusted to be smaller to reduce the influence of the adjusted dead zone parameter on the touch data noise, thereby improving the response effect of the touch panel to small-range touch operations.
[0125] In some embodiments of the present application, the number of touch data is N, where N is a positive integer greater than 2, and the processing device 700 further includes:
[0126] A fitting module, configured to fit the coordinate values of N touch data to obtain a fitting value;
[0127] A determination module, configured to obtain a coordinate difference queue according to the coordinate values and the fitting value of N touch data;
[0128] The determination module is further configured to determine whether it is interfered by noise according to the coordinate difference queue.
[0129] In the embodiments of the present application, a coordinate difference queue can be obtained according to the coordinate values and the fitting value of N touch data. The change state of the coordinate difference queue can reflect whether the touch data is interfered by noise, improving the accuracy of detecting whether the touch data of the current touch panel is interfered by noise, and thus improving the accuracy of subsequent adjustment of the dead zone parameter value.
[0130] In some embodiments of the present application, an adjustment module 704 is configured to, when it is determined that the touch data is interfered by noise according to the touch data, increase the dead zone parameter value of the touch panel according to the peak-to-peak value of the coordinate difference queue.
[0131] In the embodiments of the present application, when it is determined that the touch data is interfered by noise according to the coordinate difference queue, the dead zone parameter value is increased according to the peak-to-peak value in the coordinate difference queue. Among them, the peak-to-peak value of the coordinate difference queue can reflect the magnitude of the noise interference. When the peak-to-peak value is large, the noise interference is large, and a larger dead zone parameter value is required to suppress the coordinate value jitter of the touch data. Therefore, adjusting the dead zone parameter value according to the peak-to-peak value in the touch coordinate queue can improve the suppression effect of the adjusted dead zone parameter value on the coordinate jitter caused by noise interference.
[0132] In some embodiments of the present application, the processing device 700 further includes:
[0133] An acquisition module, configured to acquire the bottom value and the top value of the peak in the coordinate difference queue;
[0134] The determination module is further configured to determine that noise interference exists when the number of bottom peak values and the number of top peak values are both greater than or equal to M.
[0135] The determination module is further configured to determine that no noise interference exists when at least one of the number of bottom peak values and the number of top peak values is less than M.
[0136] Where M is a positive integer less than N.
[0137] In the embodiments of the present application, by obtaining the top peak values and bottom peak values in the coordinate difference queue, counting the top peak values and bottom peak values, and based on the numerical relationship between the number of bottom peak values, the number of top peak values and the quantity threshold M, it accurately detects whether the coordinate difference queue is in periodic change, thereby improving the accuracy of detecting whether the touch data is interfered by noise.
[0138] The processing device in the embodiments of the present application may be an electronic device or a component in an electronic device, such as an integrated circuit or a chip. The electronic device may be a terminal or other devices other than a terminal. Exemplarily, the electronic device may be a mobile phone, a tablet computer, a laptop computer, a handheld computer, a vehicle-mounted electronic device, a Mobile Internet Device (MID), an augmented reality (AR) / virtual reality (VR) device, a robot, a wearable device, an ultra-mobile personal computer (UMPC), a netbook or a personal digital assistant (PDA), etc., and may also be a server, a Network Attached Storage (NAS), a personal computer (PC), a television (TV), a teller machine or a self-service machine, etc. The embodiments of the present application do not make specific limitations.
[0139] The processing device in the embodiments of the present application may be a device with an operating system. The operating system may be an Android operating system, an iOS operating system, or other possible operating systems. The embodiments of the present application do not make specific limitations.
[0140] The processing device provided in the embodiments of the present application can implement each process implemented in the above method embodiments. To avoid repetition, it will not be elaborated here.
[0141] Optionally, the embodiments of the present application further provide an electronic device. Figure 8The block diagram of the electronic device in some embodiments of the present application is shown. As Figure 8 shown, the electronic device 800 includes a processor 802, a memory 804, a program or instruction stored on the memory 804 and executable on the processor 802. When the program or instruction is executed by the processor 802, it implements each process of the above-mentioned method embodiment and can achieve the same technical effect. To avoid repetition, it will not be elaborated here.
[0142] It should be noted that the electronic device in the embodiment of the present application includes the above-mentioned mobile electronic device and non-mobile electronic device.
[0143] Figure 9 It is a schematic diagram of the hardware structure of an electronic device for implementing an embodiment of the present application.
[0144] The electronic device 900 includes, but is not limited to: a radio frequency unit 901, a network module 902, an audio output unit 903, an input unit 904, a sensor 905, a display unit 906, a user input unit 907, an interface unit 908, a memory 909, a processor 910, and other components.
[0145] Those skilled in the art can understand that the electronic device 900 may further include a power supply (such as a battery) for supplying power to each component. The power supply can be logically connected to the processor 910 through a power management system, so as to realize functions such as management of charging, discharging, and power consumption management through the power management system. Figure 9 The electronic device structure shown in does not constitute a limitation on the electronic device. The electronic device may include more or fewer components than shown in the figure, or combine some components, or have different component arrangements, which will not be elaborated here.
[0146] Among them, the processor 910 is used to receive touch data through the touch panel;
[0147] The processor 910 is used to increase the dead zone parameter value of the touch panel when it is determined that noise interference is received according to the touch data; or, decrease the dead zone parameter value of the touch panel when it is determined that no noise interference is received according to the touch data.
[0148] In the embodiment of the present application, when the touch panel receives touch data, it detects whether the touch data received by the touch panel is affected by noise interference. If it is detected that the touch data is affected by noise interference, the dead zone parameter of the touch panel is increased, so that the increased dead zone parameter value can effectively suppress the noise and reduce the jitter of the output coordinates in the touch data caused by the influence of the noise. If it is detected that the touch data is not affected by noise interference, the dead zone parameter of the touch panel is decreased, so that the decreased dead zone parameter value will not affect the reading of the touch data, and the response efficiency of the touch panel to small-range touch operations of the user is improved. The present application adjusts the dead zone parameter value by referring to whether the touch data received by the touch panel is affected by noise interference, so that the adjusted dead zone parameter is related to the noise interference situation of the touch data, avoiding that the dead zone parameter is too small under noise interference and unable to suppress coordinate jitter, and avoiding that the dead zone parameter is too large when not affected by noise interference and the touch panel is unable to respond to small-range touch operations of the user, thereby solving the problem of poor touch effect in the related art.
[0149] Further, the processor 910 is configured to decrease the dead zone parameter value of the touch panel when it is determined according to the touch data that there is no noise interference and the dead zone parameter value of the touch panel is greater than the default value.
[0150] In the embodiment of the present application, when it is detected that the touch data received by the touch panel is not affected by noise interference, the numerical relationship between the current dead zone parameter value of the touch panel and the default value is judged. If it is determined that the dead zone parameter value is greater than the default value, it is determined that the dead zone parameter value is too large at this time, and the output coordinates of the touch data processed by the dead zone parameter value may remain unchanged, resulting in the inability to normally read the small-range touch operations performed by the user on the touch panel. At this time, the dead zone parameter of the current touch panel is decreased to reduce the influence of the decreased dead zone parameter on the touch data noise, thereby improving the response effect of the touch panel to small-range touch operations.
[0151] Further, the number of touch data is N, where N is a positive integer greater than 2. The processor 910 is configured to fit the coordinate values of the N touch data to obtain a fitting value;
[0152] The processor 910 is configured to obtain a coordinate difference queue according to the coordinate values and the fitting value of the N touch data;
[0153] The processor 910 is configured to determine whether there is noise interference according to the coordinate difference queue.
[0154] In the embodiment of the present application, a coordinate difference queue can be obtained according to the coordinate values and the fitting value of the N touch data. The change state of the coordinate difference queue can reflect whether the touch data is affected by noise interference, improving the accuracy of detecting whether the touch data of the current touch panel is affected by noise interference, and thus improving the accuracy of subsequent adjustment of the dead zone parameter value.
[0155] Further, the processor 910 is configured to, when it is determined that noise interference is present based on the touch data, increase the dead zone parameter value of the touch panel according to the peak-to-peak value of the coordinate difference queue.
[0156] In the embodiment of the present application, when it is determined that the touch data is affected by noise according to the coordinate difference queue, the dead zone parameter value is increased according to the peak-to-peak value in the coordinate difference queue. Among them, the peak-to-peak value of the coordinate difference queue can reflect the magnitude of the noise interference. When the peak-to-peak value is large, the noise interference is large, and a larger dead zone parameter value is required to suppress the coordinate value jitter of the touch data. Therefore, adjusting the dead zone parameter value according to the peak-to-peak value in the touch coordinate queue can improve the suppression effect of the increased dead zone parameter value on the coordinate jitter caused by noise interference.
[0157] Further, the processor 910 is configured to obtain the bottom peak value and the top peak value in the coordinate difference queue;
[0158] The processor 910 is configured to determine that noise interference is present when the number of bottom peak values and the number of top peak values are both greater than or equal to M;
[0159] The processor 910 is configured to determine that no noise interference is present when at least one of the number of bottom peak values and the number of top peak values is less than M;
[0160] Wherein, M is a positive integer less than N.
[0161] In the embodiment of the present application, by obtaining the top peak value and the bottom peak value in the coordinate difference queue, counting the top peak value and the bottom peak value, and based on the numerical relationship between the number of bottom peak values, the number of top peak values and the quantity threshold M, the periodic change of the coordinate difference queue is accurately detected, thereby improving the accuracy of detecting whether the touch data is affected by noise.
[0162] It should be understood that in the embodiments of the present application, the input unit 904 may include a Graphics Processing Unit (GPU) 9041 and a microphone 9042. The graphics processor 9041 processes the image data of static pictures or action files obtained by an image capture device (such as a camera) in the action file capture mode or the image capture mode. The display unit 906 may include a display panel 9061, and the display panel 9061 may be configured in the form of a liquid crystal display, an organic light emitting diode, etc. The user input unit 907 includes at least one of a touch panel 9071 and other input devices 9072. The touch panel 9071 is also called a touch screen. The touch panel 9071 may include two parts: a touch detection device and a touch controller. The other input devices 9072 may include, but are not limited to, a physical keyboard, function keys (such as volume control keys, switch keys, etc.), a trackball, a mouse, and a joystick, which will not be elaborated here.
[0163] The memory 909 can be used to store software programs and various data. The memory 909 may mainly include a first storage area for storing programs or instructions and a second storage area for storing data. Among them, the first storage area may store an operating system, application programs or instructions required for at least one function (such as a sound playback function, an image playback function, etc.). In addition, the memory 909 may include a volatile memory or a non-volatile memory, or the memory 909 may include both a volatile and a non-volatile memory. Among them, the non-volatile memory may be a read-only memory (ROM), a programmable read-only memory (PROM), an erasable programmable read-only memory (EPROM), an electrically erasable programmable read-only memory (EEPROM), or a flash memory. The volatile memory may be a random access memory (RAM), a static random access memory (SRAM), a dynamic random access memory (DRAM), a synchronous dynamic random access memory (SDRAM), a double data rate synchronous dynamic random access memory (DDR SDRAM), an enhanced synchronous dynamic random access memory (ESDRAM), a synch link dynamic random access memory (SLDRAM), and a direct rambus random access memory (DRRAM). The memory 909 in the embodiments of the present application includes, but is not limited to, these and any other suitable types of memories.
[0164] The processor 910 may include one or more processing units; optionally, the processor 910 integrates an application processor and a modem processor. Among them, the application processor mainly processes operations related to the operating system, user interface, and application programs, etc., and the modem processor mainly processes wireless communication signals, such as a baseband processor. It can be understood that the above modem processor may not be integrated into the processor 910 either.
[0165] The embodiments of the present application also provide a readable storage medium, on which a program or instruction is stored. When the program or instruction is executed by a processor, it implements each process of the above method embodiments and can achieve the same technical effects. To avoid repetition, it will not be elaborated here.
[0166] Among them, the processor is the processor in the electronic device in the above embodiment. The readable storage medium includes computer-readable storage media, such as computer read-only memory ROM, random access memory RAM, magnetic disk or optical disc, etc.
[0167] Another embodiment of the present application provides a chip, which includes a processor and a communication interface. The communication interface is coupled to the processor. The processor is used to run programs or instructions to implement each process of the above-mentioned embodiment of the processing method, and can achieve the same technical effects. To avoid repetition, it will not be elaborated here.
[0168] It should be understood that the chip mentioned in the embodiment of the present application may also be referred to as a system-on-chip, system chip, chip system, or system-on-chip, etc.
[0169] The embodiment of the present application provides a computer program product, which is stored in a storage medium. The program product is executed by at least one processor to implement each process of the above-mentioned embodiment of the processing method, and can achieve the same technical effects. To avoid repetition, it will not be elaborated here.
[0170] It should be noted that in this article, the term "including", "comprising" or any other variant thereof is intended to cover non-exclusive inclusion, so that a process, device, article or device including a series of elements not only includes those elements, but also includes other elements not explicitly listed, or also includes elements inherent to such process, device, article or device. Without further limitation, an element defined by the statement "including one..." does not exclude the existence of another identical element in the process, device, article or device including the element. In addition, it should be pointed out that the devices and the scope of the devices in the embodiments of the present application are not limited to performing functions in the order shown or discussed, and may also include performing functions in a substantially simultaneous manner or in a reverse order according to the functions involved. For example, the devices described can be executed in an order different from that described, and various steps can also be added, omitted, or combined. In addition, the features described with reference to certain examples can be combined in other examples.
[0171] Through the description of the above embodiments, those skilled in the art can clearly understand that the above-mentioned embodiment devices can be implemented by means of software plus a necessary general hardware platform. Of course, they can also be implemented by hardware, but in many cases the former is a better implementation method. Based on such an understanding, the technical solution of the present application, in essence, or the part that contributes to the prior art, can be embodied in the form of a computer software product. The computer software product is stored in a storage medium (such as ROM / RAM, magnetic disk, optical disc), and includes several instructions to enable a terminal (which can be a mobile phone, computer, server, or network device, etc.) to execute the devices of various embodiments of the present application.
[0172] The embodiments of the present application have been described above in conjunction with the accompanying drawings. However, the present application is not limited to the above specific embodiments. The above specific embodiments are merely illustrative and not restrictive. Under the inspiration of the present application, those of ordinary skill in the art can also make many forms without departing from the purpose of the present application and the scope protected by the claims, and all of them fall within the protection scope of the present application.
Claims
1. A processing method, characterized in that: The method is executed by an electronic device, wherein the electronic device includes a touch panel, and the processing method includes: receiving touch data via the touch panel; When it is determined according to the touch data that the touch panel is interfered by noise, increasing the dead zone parameter value of the touch panel; or, When it is determined according to the touch data that the touch panel is not interfered by noise, the dead zone parameter value of the touch panel is reduced.
2. The processing method according to claim 1, characterized in that: When it is determined according to the touch data that the touch panel is not interfered by noise, reducing the dead zone parameter value of the touch panel includes: When it is determined according to the touch data that the touch panel is not interfered by noise and the dead zone parameter value of the touch panel is greater than a default value, the dead zone parameter value of the touch panel is reduced.
3. The processing method according to claim 1, characterized in that: The number of the touch data is N, where N is a positive integer greater than 2. After the touch data is received by the touch panel, the processing method further includes: Fitting the coordinate values of the N touch data to obtain fitting values; Obtaining a coordinate difference queue according to the coordinate values of the N touch data and the fitting value; Determine whether the coordinate difference queue is interfered by noise.
4. The processing method according to claim 3, characterized in that: When it is determined according to the touch data that the touch panel is interfered by noise, increasing the dead zone parameter value of the touch panel includes: When it is determined according to the touch data that the touch panel is interfered by noise, the dead zone parameter value of the touch panel is increased according to the peak-to-peak value of the coordinate difference queue.
5. The processing method according to claim 3, characterized in that: The determining whether the coordinate difference queue is interfered by noise includes: Obtaining the peak bottom value and the peak top value in the coordinate difference queue; When the number of the peak bottom values and the number of the peak top values are both greater than or equal to M, it is determined that the noise interference occurs; When at least one of the number of the peak bottom values and the number of the peak top values is less than M, it is determined that there is no noise interference; Wherein, M is a positive integer less than N.
6. A processing device, characterized in that: The processing device includes a touch panel, and the processing device also includes: A receiving module, used for receiving touch data through the touch panel; The adjustment module is used to increase the dead zone parameter value of the touch panel when it is determined according to the touch data that the touch panel is interfered by noise; or to decrease the dead zone parameter value of the touch panel when it is determined according to the touch data that the touch panel is not interfered by noise.
7. The processing device according to claim 6, characterized in that The adjustment module is specifically used to reduce the dead zone parameter value of the touch panel when it is determined according to the touch data that the touch panel is not interfered by noise and the dead zone parameter value of the touch panel is greater than a default value.
8. The processing device according to claim 6, characterized in that The number of the touch data is N, where N is a positive integer greater than 2, and the processing device further includes: A fitting module, used for fitting the coordinate values of the N touch data to obtain fitting values; A determination module, configured to obtain a coordinate difference queue according to the coordinate values of the N touch data and the fitting value; The determination module is further used to determine whether the coordinate difference queue is interfered by noise.
9. The processing device according to claim 8, characterized in that The adjustment module is used to increase the dead zone parameter value of the touch panel according to the peak-to-peak value of the coordinate difference queue when it is determined according to the touch data that the touch panel is interfered by noise.
10. The processing device according to claim 8, characterized in that Also includes: An acquisition module, used for acquiring a peak bottom value and a peak top value in the coordinate difference queue; The determining module is further configured to determine that the device is subject to noise interference when the number of the peak bottom values and the number of the peak top values are both greater than or equal to M; The determining module is further configured to determine that there is no noise interference when at least one of the number of the peak bottom values and the number of the peak top values is less than M; Wherein, M is a positive integer less than N.
11. An electronic device, characterized in that: include: A processor and a memory, wherein the memory stores a program or instruction that can be run on the processor, and when the program or instruction is executed by the processor, the steps of the method according to any one of claims 1 to 5 are implemented.