Contact reporting method and device and electronic equipment
By obtaining and analyzing the capacitance signals of the touch data frame affected by electrostatic interference in the touch screen, and combining the contact positions of the historical touch data frames, a more accurate contact position is determined and reported, which solves the problem that the touch screen cannot accurately determine the contacts under electrostatic interference, and improves the accuracy of touch response.
Patent Information
- Application Number
- CN202411427140.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-10-12
- Publication Date
- 2025-03-25
AI Technical Summary
In an environment of electrostatic interference, the touch screen cannot accurately determine the user's contact position, causing the touch screen to incorrectly sense the position of the finger or touch device.
By acquiring the capacitance signal of the first touch data frame affected by electrostatically, the initial first contact position is determined, and the second contact position on the previous touch data frame is obtained. When the distance between the first contact position and the second contact position is greater than the first distance threshold, the actual third contact position is determined based on the contact position of the previous N touch data frames, and the position is reported.
It effectively reduces the impact of electrostatic interference on contact position judgment, ensures that the touch screen can accurately determine the user's contacts in an environment of electrostatic interference, and improves the accuracy of reported contact positions.
Smart Images

Figure CN119690266A_ABST
Abstract
Description
Technical Field
[0001] The present application belongs to the field of electronic technology, and specifically relates to a contact reporting method, device and electronic equipment. Background Art
[0002] Nowadays, touch screens are becoming more and more common. The working principle of touch screens is to sense the change in capacitance between the user's finger or touch device and the screen to determine the touch point. However, when there is static electricity in the external environment, this static electricity may accumulate on the touch screen surface or on the user's finger. When this static electricity is suddenly released, abnormal electrical signals will be generated on the touch screen. These electrical signals may be confused with normal touch signals, causing the touch screen to incorrectly sense the position of the finger or touch device, resulting in the touch screen being unable to accurately determine the touch point. Summary of the invention
[0003] The purpose of the embodiments of the present application is to provide a touch point reporting method, device and electronic device, which can solve the technical problem of being unable to accurately determine the touch point.
[0004] In a first aspect, an embodiment of the present application provides a contact reporting method, the method comprising:
[0005] determining a first touch point position on the first touch data frame according to a capacitance signal of the first touch data frame;
[0006] Acquire a second touch point position on a touch data frame previous to the first touch data frame;
[0007] When the distance between the first touch point position and the second touch point position is greater than a first distance threshold, a third touch point position on the first touch data frame is determined according to the touch point positions of N touch data frames before the first touch data frame, and the third touch point position is reported, where N is a positive integer.
[0008] In a second aspect, an embodiment of the present application provides a contact reporting device, the device comprising:
[0009] a determination module, configured to determine a first touch point position on the first touch data frame according to a capacitance signal of the first touch data frame;
[0010] an acquisition module, configured to acquire a second touch point position on a touch data frame previous to the first touch data frame;
[0011] The first reporting module is used to determine the third touch point position on the first touch data frame according to the touch point positions of N touch data frames before the first touch data frame when the distance between the first touch point position and the second touch point position is greater than a first distance threshold, and report the third touch point position, where N is a positive integer.
[0012] In a third aspect, an embodiment of the present application provides an electronic device, which includes a processor and a memory, wherein the memory stores programs or instructions that can be run on the processor, and when the programs or instructions are executed by the processor, the steps of the method provided in the first aspect are implemented.
[0013] In a fourth aspect, an embodiment of the present application provides a readable storage medium, on which a program or instruction is stored, and when the program or instruction is executed by a processor, the steps of the method provided in the first aspect are implemented.
[0014] In a fifth aspect, an embodiment of the present application provides a chip, the chip including a processor and a communication interface, the communication interface and the processor are coupled, and the processor is used to run programs or instructions to implement the method provided in the first aspect.
[0015] In a 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 provided in the first aspect.
[0016] In the touch point reporting method, device and electronic device of the present application, a first touch data frame subjected to electrostatic interference and a capacitance signal on the first touch data frame are obtained; the initial first touch point position on the first touch data frame is determined according to the capacitance signal; the second touch point position on the previous touch data frame of the first touch data frame is obtained; when the distance between the first touch point position and the second touch point position is greater than the first distance threshold, the actual third touch point position on the first touch data frame is determined according to the touch point positions of the N touch data frames before the first touch data frame; and the third touch point position is reported. That is, by comparing the touch point positions of the current frame and the previous frame, when it is found that the touch point position changes too much, the touch point position of the current frame is corrected with the help of the historical touch point positions of the N touch data frames before the current frame, and the corrected touch point position is reported. This method effectively reduces the influence of electrostatic interference on the judgment of the touch point position, ensures that the touch screen can still determine the user's touch point in an environment of electrostatic interference, and improves the accuracy of the reported touch point. BRIEF DESCRIPTION OF THE DRAWINGS
[0017] Figure 1 It is a flowchart of a contact reporting method provided by an embodiment of the present application;
[0018] Figure 2 This is one of the schematic diagrams of a capacitive sensing unit in a touch screen provided by an embodiment of the present application;
[0019] Figure 3 This is a second schematic diagram of a capacitive sensing unit in a touch screen provided by an embodiment of the present application;
[0020] Figure 4is a structural schematic diagram of a contact reporting device provided by another embodiment of the present application;
[0021] Figure 5 is a structural schematic diagram of an electronic device provided by another embodiment of the present application;
[0022] Figure 6 It is a schematic diagram of the hardware structure of the electronic device provided in the embodiment of the present application. DETAILED DESCRIPTION
[0023] The following will be combined with the drawings in the embodiments of the present application to clearly describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are part of the embodiments of the present application, rather than all the embodiments. All other embodiments obtained by ordinary technicians in this field based on the embodiments in the present application belong to the scope of protection of this application.
[0024] The terms "first", "second", etc. in the specification and claims of the present application are used to distinguish similar objects, and are not used to describe a specific order or sequence. It should be understood that the terms used in this way are interchangeable where appropriate, 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 one type, and the number of objects is not limited. For example, the first object can be one or more. In addition, "and / or" in the specification and claims represents at least one of the connected objects, and the character " / " generally indicates that the objects associated with each other are in an "or" relationship.
[0025] In order to solve the above technical problems, the present application provides a contact reporting method. The contact reporting method provided by the embodiment of the present application is described in detail below through specific embodiments and application scenarios in conjunction with the accompanying drawings.
[0026] like Figure 1 As shown, Figure 1 : is a flow chart of a contact reporting method provided by an embodiment of the present application. The embodiment of the present application provides a contact reporting method, which may include:
[0027] S101, determining a first touch point position on a first touch data frame according to a capacitance signal of the first touch data frame;
[0028] In this embodiment, a plurality of continuous touch data frames may be displayed in sequence on the touch screen of the electronic device. A touch data frame refers to a collection of capacitance data of all sensing units collected by the touch screen system at a certain moment. When a user performs a touch operation such as clicking or sliding on any touch data frame on the touch screen through a finger or other touch device, the capacitance signal on the touch screen will change in response to the touch operation. These changed capacitance signals constitute the touch signal in the touch data frame.
[0029] After collecting the capacitance signal on the first touch data frame, the area where the capacitance value has changed significantly can be identified, and then a rectangular frame is formed based on the area where the capacitance difference is greater than the preset fourth difference threshold, and the rectangular frame represents the area that the user may touch.
[0030] After the rectangular frame is determined, the center of gravity position of the touch point in the rectangular frame can be calculated. The center of gravity calculation is usually completed by a weighted average method, and the weight is determined by the capacitance value of each small area in the frame. The center position of the rectangular frame can be output as the initial first touch point position on the first touch data frame.
[0031] In some embodiments, determining the first touch point position on the first touch data frame according to the capacitance signal of the first touch data frame includes:
[0032] When it is determined that the first touch data frame is a touch data frame affected by electrostatic interference, a first touch point position on the first touch data frame is determined according to a capacitance signal of the first touch data frame.
[0033] In this embodiment, under normal circumstances, when the user touches the touch screen, the touch screen can determine the user's touch position on the touch data frame based on the touch signal generated by the change in the capacitance signal. However, if static electricity accumulates on the touch device or the touch screen, static interference will introduce additional charges, which will cause abnormal changes in the capacitance signal on the touch screen, generating a large amount of noise signals in the touch data frame, and thus making it impossible for the touch screen to obtain an accurate touch position.
[0034] The first touch data frame is a touch data frame subject to electrostatic interference. For example, the touch screen is connected to a touch chip, and the touch chip can continuously monitor the capacitance change on the touch screen, and then calculate the capacitance difference between the capacitance value of the first touch data frame and the capacitance reference value. The capacitance signal may include the capacitance value, and the capacitance difference between the capacitance value and the capacitance reference value, and the capacitance difference may be used to determine the touch position of the user on the first touch data frame.
[0035] Therefore, only after determining that the touch data frame is the first touch data frame affected by electrostatic interference, the capacitance difference is used to determine the first touch point position on the first touch data frame.
[0036] In this way, the touch data frames affected by static electricity can be processed in a targeted manner, and other interferences such as wet or suspended states can be avoided from being mistakenly identified as static electricity interference. This effectively reduces misjudgments and improves the accuracy of targeted processing, thereby improving the stability and response accuracy of the touch screen in complex environments.
[0037] S102: Acquire a second touch point position on a touch data frame previous to the first touch data frame.
[0038] In the embodiment of the present application, after determining the first touch point position of the user touching the first touch data frame through the capacitance signal, the second touch point position of the user touching the previous touch data frame of the first touch data frame can also be obtained.
[0039] For example, the touch data of the previous touch data frame can be stored in the system cache as historical data. When executing the touch reporting method, the system can read the touch data of the previous frame from the cache and extract the corresponding second touch position therefrom.
[0040] S103: When the distance between the first touch point position and the second touch point position is greater than a first distance threshold, determine the third touch point position on the first touch data frame according to the touch point positions of N touch data frames before the first touch data frame, and report the third touch point position, where N is a positive integer.
[0041] In this embodiment, since the time interval between two consecutive touch data frames is very short, if the distance between the first touch point position and the second touch point position is greater than the first distance threshold, it can be considered that the user's movement from the second touch point position to the first touch point position in a very short time interval is not reasonable, so the first touch point position on the first touch data frame may be affected by static electricity and is inaccurate. For example, the distance threshold can be set to 30 mm, 50 mm or 1 cm.
[0042] Therefore, the first touch point position can be corrected by referring to the touch point positions in the N touch data frames before the first touch data frame, and a more accurate third touch point position can be recalculated, and then the third touch point position is reported.
[0043] Reporting the touch point position means that after the touch point position of the user is determined, the touch screen system transmits the coordinate information of the touch point to the operating system or upper-layer application of the device, so that the operating system or application can respond to the user's touch.
[0044] In the embodiment of the present application, by obtaining the first touch data frame subject to electrostatic interference and the capacitance signal on the first touch data frame; determining the initial first touch point position on the first touch data frame according to the capacitance signal; obtaining the second touch point position on the previous touch data frame of the first touch data frame; when the distance between the first touch point position and the second touch point position is greater than the first distance threshold, determining the actual third touch point position on the first touch data frame according to the touch point positions of the N touch data frames before the first touch data frame; and reporting the third touch point position. In other words, by comparing the touch point positions of the current frame and the previous frame, when it is found that the touch point position changes too much, the touch point position of the current frame is corrected with the help of the historical touch point positions of the N touch data frames before the current frame, and the corrected touch point position is reported. This method effectively reduces the influence of electrostatic interference on the judgment of the touch point position, ensures that the touch screen can still determine the user's touch point in an environment of electrostatic interference, and improves the accuracy of the reported touch point.
[0045] In some embodiments, reporting the third contact point position includes:
[0046] When the distance between the third touch point position and the first touch point position is greater than a second distance threshold, the third touch point position is reported.
[0047] In this embodiment, if the distance between the third touch point position calculated by fitting or correcting the first touch point position after analyzing N touch data frames and the first touch point position detected initially is greater than the preset second distance threshold, the first touch point position detected initially is considered inaccurate, and the corrected third touch point position should be reported. This approach can reduce touch errors caused by factors such as electrostatic interference, and ensure that the touch point position reported in the end is a more accurate position after correction.
[0048] If the distance between the third touch point position and the initially detected first touch point position is less than or equal to a preset second distance threshold, it is considered that the initially detected first touch point position is relatively accurate, and the first touch point position before correction can be reported.
[0049] In this way, by comparing the corrected third touch point position with the first touch point position before correction, when the distance between the two exceeds the set threshold, a more accurate third touch point position can be reported. This ensures that the touch point position can be corrected through historical data when interference occurs, avoiding false reports of initially detected erroneous positions, thereby improving the accuracy of touch response.
[0050] In some embodiments, after acquiring the second touch point position on the previous touch data frame of the first touch data frame, the method further includes:
[0051] When the distance between the first touch point position and the second touch point position is less than or equal to the first distance threshold, the first touch point position is reported.
[0052] In this embodiment, if the distance between the first contact position and the second contact position is less than or equal to the first distance threshold, it can be considered that the movement from the second contact position to the first contact position is within a reasonable range and is not significantly affected by electrostatic interference. In this case, there is no need to correct the first contact position, and the first contact position can be directly reported.
[0053] By adopting the above method, when the change of the contact point position is small in two adjacent touch data frames, the initial contact point position determined based on the capacitance signal can be directly determined as the final contact point position, thereby improving the accuracy of the touch response.
[0054] In some embodiments, determining the third touch point position on the first touch data frame according to the touch point positions of N touch data frames before the first touch data frame includes:
[0055] Obtaining the time interval between the acquisition of each two adjacent touch data frames in the N touch data frames;
[0056] Determine the moving speed of the touch point according to the touch point positions of the N touch data frames and the interval duration;
[0057] The third touch point position is obtained by performing data fitting according to the touch point positions on the first M touch data frames and the moving speed, wherein M is a positive integer less than N.
[0058] In this embodiment, the N touch data frames before the first touch data frame and the first touch data frame are collected and displayed in sequence on the touch screen of the electronic device at the same interval, and the interval is related to the frame rate of the touch screen. The interval between the collection of each two adjacent touch data frames can be directly obtained.
[0059] Then, the touch point positions of N touch data frames are obtained. Based on these touch point positions, the moving trajectory of the touch point can be inferred, the total length of the moving trajectory can be determined, and the total duration of the moving trajectory can be determined based on the interval duration. The moving speed of the touch point can be obtained by dividing the total length by the total duration.
[0060] For example, N can be 5, and the touch point position can be expressed in the form of two-dimensional coordinates in the touch data frame coordinate system, where the coordinates of the touch point position of the 5 touch data frames are (x1, y1), (x2, y2)...(x5, y5) in sequence, and the interval between the acquisition of each two adjacent touch data frames in the N touch data frames can be set to t; then the moving speed in the x-axis direction can be set to speedx, and the moving speed in the y-axis direction can be set to speedy. The calculation formulas of speedx and speedy are as follows:
[0061]
[0062] After calculating the moving speed in the x-axis direction and the moving speed in the y-axis direction, the contact point position on the first touch data frame can be fitted based on the moving speed and the contact point positions on the first M touch data frames of the first touch data frame to obtain a fitted third touch point position.
[0063] Taking M as 2 as an example, the third touch point position can be determined based only on the first touch data frame and the touch point position on a touch data frame before the first touch data frame. The coordinates of the third touch point position are (x f ,y f ). Among them, the fitting formula is:
[0064] x f =x1+(x1-x2)(0.5+speedx / 1000)
[0065] y f =y1+(y1-y2)(0.5+speedy / 1000)
[0066] Among them, x f is the horizontal coordinate of the third contact point, y f is the ordinate of the third touch point position, speedx is the moving speed of the touch point in the x-axis direction, speed y is the moving speed of the touch point in the y-axis direction, x1 is the horizontal coordinate of the touch point position on a touch data frame before the first touch data frame, y1 is the horizontal coordinate of the touch point position on a touch data frame before the first touch data frame, x2 is the horizontal coordinate of the touch point position on a touch data frame before the first touch data frame, and y2 is the horizontal coordinate of the touch point position on a touch data frame before the first touch data frame.
[0067] In this embodiment, the contact position obtained by fitting is combined with the contact position information on the previous touch data frames, and the movement law of the contact is calculated. The actual position of the contact on the first touch data frame is inferred according to the movement law, which can improve the accuracy and stability of contact detection.
[0068] In some embodiments, the method is applied to an electronic device, and a plurality of touch data frames are sequentially displayed on the electronic device, each of the touch data frames includes a sensing unit matrix, and the sensing unit matrix includes p×q sensing units, where p is the number of rows of the sensing unit matrix, and q is the number of columns of the sensing unit matrix, and both p and q are positive integers;
[0069] Before S101, the method further includes:
[0070] For any third touch data frame among the multiple touch data frames, obtaining a touch sensing frame in the third touch data frame, where the touch sensing frame is used to represent an area where a user touches the electronic device, and the touch sensing frame includes at least one first sensing unit whose capacitance difference is greater than a first difference threshold, where the capacitance difference is a difference between a capacitance value in a corresponding sensing unit and a capacitance reference value;
[0071] Determining at least one target row including at least a portion of the touch sensing frame in the p rows of the third touch data frame;
[0072] Whether the third touch data frame is the first touch data frame is determined according to the capacitance difference of the second sensing units in each of the target rows, wherein the second sensing units are sensing units outside the touch sensing frame in the target row.
[0073] In this embodiment, the sensing unit is generally formed by the intersection of horizontal and vertical electrode lines. Each intersection constitutes a sensing unit, and each unit can detect the capacitance change near the point. On the touch screen, the sensing units can be arranged in a matrix to form a sensing area covering the entire screen, so that each sensing unit can sense the capacitance change in an area of the touch data frame.
[0074] In this embodiment, each touch data frame is covered by a sensing unit matrix with p rows and q columns. For any third touch data frame, it can be determined whether the third touch data frame is the first touch data frame affected by static electricity based on the change of the capacitance signal in the sensing unit matrix.
[0075] For example, Figure 2 It can represent a part of the sensing unit matrix, such as Figure 2 As shown, the display area of the touch data frame is divided into small grid-shaped areas, and each small area is an independent sensing unit. Figure 2 The number in each small area represents the capacitance difference between the capacitance value in the sensing unit and the capacitance reference value.
[0076] Specifically, the capacitance difference corresponding to each sensing unit may be calculated, and then all adjacent first sensing units whose capacitance differences are greater than a preset first difference threshold may be enclosed by a minimum rectangular frame, and the rectangular frame may be a touch sensing frame.
[0077] After the touch sensing frame is determined, at least one row in the p rows where the touch sensing frame is located can be determined as a target row. Then, the capacitance difference of the second sensing unit in each target row is determined in turn, where the second sensing unit is a sensing unit in the target row that is not in the touch sensing frame. Based on the capacitance difference of the second sensing unit, it can be determined whether the third touch data frame is the first touch data frame that is interfered by static electricity.
[0078] Through the above method, whether the touch data frame may be interfered by electrostatics can be identified based on whether there is an abnormal change in the capacitance of the second sensing unit in the target row. This determination method can more accurately identify the touch data frame interfered by electrostatics.
[0079] In some embodiments, judging whether the third touch data frame is the first touch data frame according to the capacitance difference of the second sensing units in each of the target rows includes:
[0080] For each target row in the at least one target row, determining a first number of third sensing units and a second number of fourth sensing units in the target row, wherein the third sensing unit is a sensing unit whose absolute value of capacitance difference is greater than a second difference threshold and the capacitance difference is less than 0, and the fourth sensing unit is a sensing unit whose corresponding first difference is greater than a third difference threshold, and the first difference is a difference between the absolute value of capacitance difference in the third touch data frame and the absolute value of capacitance difference of sensing units at the same position in a touch data frame before the third touch data frame;
[0081] Whether the third touch data frame is the first touch data frame is determined according to the first number and the second number of each target row.
[0082] In this embodiment, in the process of determining whether the third touch data frame is the first touch data frame subject to electrostatic interference, each target row can be determined in turn. In the process of determination, for any target row, the capacitance difference of each sensing unit in the target row can be determined. Then, based on the capacitance difference of these sensing units, the first number of third sensing units in the target row and the second number of fourth sensing units are identified. Among them, the third sensing unit is a sensing unit whose capacitance difference is negative and whose absolute value is greater than the second difference threshold, and the fourth sensing unit is a sensing unit whose absolute value of the capacitance difference minus the absolute value of the capacitance difference of the sensing unit at the same position in the previous touch data frame is greater than the third difference threshold.
[0083] For example, Figure 2 is the third touch data frame, Figure 3 For the previous touch data frame of the third touch data frame, the second difference threshold can be set to 88, and the third difference threshold can also be set to 88. Then, from the position of the touch sensing frame, it can be known that rows 24, 25, and 26 are target rows. Taking row 24 as an example, the sensing units whose absolute values of capacitance differences in row 24 are greater than 88 and whose capacitance differences are less than 0 are determined as the third sensing units, and it can be known that the first number of the third sensing units in row 24 is 4; the sensing units whose difference of the absolute value of capacitance difference in row 24 minus the absolute value of capacitance difference of the sensing units at the same position in the previous touch data frame is greater than 88 are determined as the fourth sensing units, and it can be known that the second number of the fourth sensing units is 7.
[0084] Based on the first number of the third sensing units and the second number of the fourth sensing units of each target row, it can be determined whether the target row is interfered with by static electricity, and further determined whether the third touch data frame where the target row is located is the first touch data frame interfered with by static electricity.
[0085] In this way, the change of the capacitance of the sensing unit can be analyzed to obtain the number of abnormal data in each row, and then it can be accurately determined whether the touch data frame is interfered by static electricity.
[0086] In some embodiments, after determining whether the third touch data frame is the first touch data frame according to the first number and the second number of each target row, the method further includes:
[0087] When the third touch data frame does not satisfy the first condition and the second condition but satisfies the third condition, determining the third touch data frame as the first touch data frame;
[0088] The first condition is that: in the M consecutive touch data frames including the third touch data frame, there are first target rows in each touch data frame, the first quantity of which is greater than the second quantity;
[0089] The second condition is: in the third touch data frame, there is a second target row in which the ratio of the first number to the number of all sensing units in the target row is greater than the ratio threshold, and the first number is greater than the second number;
[0090] The third condition is that in the third touch data frame, there are third target rows whose first quantity is greater than the first quantity threshold and whose second quantity is greater than the second quantity threshold.
[0091] In this embodiment, electrostatic interference may cause the touch screen to incorrectly sense the position of the finger or touch device, resulting in the inability of the touch screen to accurately determine the touch point. Similarly, if there are water droplets, moisture or other liquids on the surface of the touch screen, these liquids will also interfere with the capacitive sensing of the screen, resulting in the inability to accurately determine the touch point. In addition, if the electronic device is placed on an insulating surface (such as a glass table, a wooden tabletop), or the electronic device uses a thicker non-conductive casing, it can be considered that the electronic device is poorly grounded and is in a suspended state. There is no good electrical connection between the electronic device in the suspended state and the ground, resulting in the capacitive sensing ability of the touch screen being affected, which also results in the inability to accurately determine the touch point.
[0092] In the present embodiment, only the contact point position in the first touch data frame affected by electrostatic interference can be corrected. Therefore, it is necessary to first determine whether the third touch data frame is affected by liquid interference or insulation interference based on the first quantity and the second quantity. If the third touch data frame is neither a touch data frame affected by liquid interference nor a touch data frame affected by insulation interference, it is further determined whether the third touch data frame is the first touch data frame affected by electrostatic interference.
[0093] In some embodiments, the method further comprises:
[0094] When the third touch data frame satisfies the first condition, the third touch data frame is determined as a touch data frame in which the touch screen of the electronic device is disturbed by liquid.
[0095] In this embodiment, whether the third touch data frame is a touch data frame disturbed by liquid can be determined by a first condition, wherein the first condition is that among the continuous M touch data frames including the third touch data frame, there are first target rows in each of which the first quantity is greater than the second quantity.
[0096] Specifically, the third sensing unit represents the sensing unit with negative values around the touch sensing frame, and the fourth sensing unit represents the sensing unit with a large difference in capacitance between two adjacent touch data frames. When the touch screen is disturbed by liquid, the liquid will interfere with the capacitive sensing, causing the capacitance value of some areas to become lower, thereby generating more sensing units with negative capacitance around the touch sensing frame. Therefore, if in the same target row, the first number in the M consecutive touch data frames is greater than the second number, it can be considered that the three touch data frames meet the first condition, and the third touch data frame is a touch data frame disturbed by liquid.
[0097] By comparing the first number of third sensing units with larger negative capacitance values and the second number of fourth sensing units with larger inter-frame capacitance differences in each target row, it is possible to accurately determine whether the touch screen is disturbed by liquids such as water droplets or moisture.
[0098] In some embodiments, the method further comprises:
[0099] When the third touch data frame satisfies the second condition, the third touch data frame is determined as a touch data frame in which the touch screen of the electronic device is subjected to insulation interference.
[0100] In this embodiment, whether the third touch data frame is a touch data frame subject to insulation interference can be determined by a second condition, wherein the second condition is that in the third touch data frame, there is a second target row in which the ratio of the first number to the number of all sensing units in the target row is greater than a ratio threshold, and the first number is greater than the second number.
[0101] Specifically, the third sensing unit represents the sensing unit with negative values around the touch sensing frame, and the fourth sensing unit represents the sensing unit with a large difference in capacitance value between two adjacent touch data frames. Since the electronic device is poorly grounded when the touch screen is subject to insulation interference, the number of sensing units with negative capacitance values will increase greatly in this state. Therefore, if the number of third sensing units with large negative capacitance values in the second target row exceeds a specific ratio threshold, and the first number is greater than the second number, it can be considered that the third touch data frame is subject to insulation interference and causes poor contact.
[0102] By comparing the first number of third sensing units with larger negative capacitance values and the second number of fourth sensing units with larger inter-frame capacitance differences in each target row, it is possible to accurately determine whether the touch screen is poorly grounded due to insulation interference.
[0103] In addition, if the third touch data frame satisfies neither the first condition nor the second condition, it can be considered that the third touch data frame is neither interfered by liquid nor by insulation. Therefore, it can be further determined through the third condition that the third touch data frame is interfered by static electricity.
[0104] The third condition is that in the third touch data frame, there is a third target row whose first number is greater than the first number threshold and whose second number is greater than the second number threshold. That is, when the number of the third sensing unit and the fourth sensing unit both reaches their respective set thresholds, it means that the number of sensing units with negative capacitance and sensing units with large capacitance changes between frames has reached a certain number, and the third target row may be interfered by electrostatics, and the third touch data frame may also be the first touch data frame interfered by electrostatics.
[0105] In this way, liquid interference and insulation interference can be excluded from the disturbed touch data frame, and the first touch data frame disturbed by static electricity can be accurately screened out, so that the system can correct the contact point position of the first touch data frame.
[0106] Figure 4 is a schematic diagram of the structure of a contact reporting device provided by another embodiment of the present application, such as Figure 4 As shown, the contact reporting device may include:
[0107] A determination module 401, configured to determine a first touch point position on a first touch data frame according to a capacitance signal of the first touch data frame;
[0108] An acquisition module 402 is used to acquire a second touch point position on a touch data frame previous to the first touch data frame;
[0109] The first reporting module 403 is used to determine the third touch point position on the first touch data frame according to the touch point positions of N touch data frames before the first touch data frame when the distance between the first touch point position and the second touch point position is greater than a first distance threshold, and report the third touch point position, where N is a positive integer.
[0110] In the present application, the first touch data frame subjected to electrostatic interference and the capacitance signal on the first touch data frame can be obtained; the initial first touch point position on the first touch data frame can be determined according to the capacitance signal; the second touch point position on the previous touch data frame of the first touch data frame can be obtained; when the distance between the first touch point position and the second touch point position is greater than the first distance threshold, the actual third touch point position on the first touch data frame can be determined according to the touch point positions of the N touch data frames before the first touch data frame; and the third touch point position can be reported. In other words, by comparing the touch point positions of the current frame and the previous frame, when it is found that the touch point position changes too much, the touch point position of the current frame is corrected with the help of the historical touch point positions of the N touch data frames before the current frame, and the corrected touch point position is reported. This method effectively reduces the influence of electrostatic interference on the judgment of the touch point position, ensures that the touch screen can still determine the user's touch point in an environment of electrostatic interference, and improves the accuracy of the reported touch point.
[0111] In another optional example, the first reporting module 403 includes:
[0112] A reporting unit is used to report the third touch point position when the distance between the third touch point position and the first touch point position is greater than a second distance threshold.
[0113] In another optional example, the first reporting module 403 includes:
[0114] A first acquisition unit, used for acquiring the interval time between the acquisition of each two adjacent touch data frames in the N touch data frames;
[0115] A first determining unit, configured to determine a moving speed of the touch point according to the touch point positions of the N touch data frames and the interval duration;
[0116] A fitting unit is used to perform data fitting according to the touch point positions on the first M touch data frames of the first touch data frame and the moving speed to obtain the third touch point position, wherein M is a positive integer less than N.
[0117] In another optional example, the contact reporting device includes:
[0118] The second reporting module is configured to report the first touch point position when the distance between the first touch point position and the second touch point position is less than or equal to the first distance threshold.
[0119] In another optional example, the determining module 401 includes:
[0120] The second determining unit is configured to determine a first touch point position on the first touch data frame according to a capacitance signal of the first touch data frame when it is determined that the first touch data frame is a touch data frame interfered by static electricity.
[0121] The contact reporting device in the embodiment of the present application can be an electronic device, or a component in the electronic device, such as an integrated circuit or a chip. The electronic device can be a terminal, or it can be other devices other than a terminal. Exemplarily, the electronic device can be a mobile phone, a tablet computer, a laptop computer, a PDA, a vehicle-mounted electronic device, a mobile Internet device (Mobile Internet Device, MID), an augmented reality (augmented reality, AR) / virtual reality (virtual reality, VR) device, a robot, a wearable device, an ultra-mobile personal computer (ultra-mobile personal computer, UMPC), a netbook or a personal digital assistant (personal digital assistant, PDA), etc., and can also be a server, a network attached storage (Network Attached Storage, NAS), a personal computer (personal computer, PC), a television (television, TV), a teller machine or a self-service machine, etc., and can also be a server, a network attached storage (Network Attached Storage, NAS), a personal computer (personal computer, PC), a television (television, TV), a teller machine or a self-service machine, etc., and the embodiment of the present application is not specifically limited.
[0122] The contact reporting device in the embodiment of the present application may be a device having an operating system. The operating system may be an Android operating system, an IOS operating system, or other possible operating systems, which are not specifically limited in the embodiment of the present application.
[0123] The contact reporting device provided in the embodiment of the present application can achieve Figure 1 To avoid repetition, the various processes implemented by the method embodiment are not described here.
[0124] Alternatively, if Figure 5 As shown, an embodiment of the present application also provides an electronic device 100, including a processor 110, a memory 119, and a program or instruction stored in the memory 119 and executable on the processor 110. When the program or instruction is executed by the processor 110, each process of the above-mentioned contact reporting method embodiment is implemented, and the same technical effect can be achieved. To avoid repetition, it will not be repeated here.
[0125] It should be noted that the electronic devices in the embodiments of the present application include the above-mentioned mobile electronic devices and non-mobile electronic devices.
[0126] Please refer to Figure 6 , Figure 6 The hardware structure diagram of an electronic device for implementing an embodiment of the present application is shown in FIG. The electronic device 100 includes, but is not limited to, a radio frequency unit 121, a network module 122, an audio output unit 123, an input unit 124, a sensor 125, a display unit 126, a user input unit 127, an interface unit 128, a memory 129, and a processor 120.
[0127] Those skilled in the art will appreciate that the electronic device 100 may also include a power source (such as a battery) for supplying power to various components, and the power source may be logically connected to the processor 120 through a power management system, thereby implementing functions such as managing charging, discharging, and power consumption management through the power management system. Figure 6 The electronic device structure shown in the figure 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 certain components, or arrange the components differently, which will not be described in detail here.
[0128] The processor 120 is configured to determine a first touch point position on the first touch data frame according to a capacitance signal of the first touch data frame;
[0129] The processor 120 is configured to obtain a second touch point position on a touch data frame previous to the first touch data frame;
[0130] Processor 120 is used to determine the third touch point position on the first touch data frame according to the touch point positions of N touch data frames before the first touch data frame when the distance between the first touch point position and the second touch point position is greater than a first distance threshold, and report the third touch point position, where N is a positive integer.
[0131] In the present application, the first touch data frame subjected to electrostatic interference and the capacitance signal on the first touch data frame can be obtained; the initial first touch point position on the first touch data frame can be determined according to the capacitance signal; the second touch point position on the previous touch data frame of the first touch data frame can be obtained; when the distance between the first touch point position and the second touch point position is greater than the first distance threshold, the actual third touch point position on the first touch data frame can be determined according to the touch point positions of the N touch data frames before the first touch data frame; and the third touch point position can be reported. In other words, by comparing the touch point positions of the current frame and the previous frame, when it is found that the touch point position changes too much, the touch point position of the current frame is corrected with the help of the historical touch point positions of the N touch data frames before the current frame, and the corrected touch point position is reported. This method effectively reduces the influence of electrostatic interference on the judgment of the touch point position, ensures that the touch screen can still determine the user's touch point in an environment of electrostatic interference, and improves the accuracy of the reported touch point.
[0132] In another optional example, the processor 120 is specifically configured to report the third touch point position when the distance between the third touch point position and the first touch point position is greater than a second distance threshold.
[0133] In another optional example, the processor 120 is specifically configured to:
[0134] Obtaining the time interval between the acquisition of each two adjacent touch data frames in the N touch data frames;
[0135] Determine the moving speed of the touch point according to the touch point positions of the N touch data frames and the interval duration;
[0136] The third touch point position is obtained by performing data fitting according to the touch point positions on the first M touch data frames and the moving speed, wherein M is a positive integer less than N.
[0137] In another optional example, the processor 120 is specifically configured to:
[0138] When the distance between the first touch point position and the second touch point position is less than or equal to the first distance threshold, the first touch point position is reported.
[0139] In another optional example, the processor 120 is specifically configured to:
[0140] When it is determined that the first touch data frame is a touch data frame affected by electrostatic interference, a first touch point position on the first touch data frame is determined according to a capacitance signal of the first touch data frame.
[0141] It should be understood that in the embodiment of the present application, the input unit 124 may include a graphics processor (Graphics Processing Unit, GPU) 1241 and a microphone 1242, and the graphics processor 1241 processes the image data of the static picture or video obtained by the image capture device (such as a camera) in the video capture mode or the image capture mode. The display unit 126 may include a display panel 1261, and the display panel 1261 may be configured in the form of a liquid crystal display, an organic light emitting diode, etc. The user input unit 127 includes a touch panel 1271 and at least one of other input devices 1272. The touch panel 1271 is also called a touch screen. The touch panel 1271 may include two parts: a touch detection device and a touch controller. Other input devices 1272 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 repeated here.
[0142] The memory 129 can be used to store software programs and various data. The memory 129 may mainly include a first storage area for storing programs or instructions and a second storage area for storing data, wherein the first storage area may store an operating system, an application program or instructions required for at least one function (such as a sound playback function, an image playback function, etc.), etc. In addition, the memory 129 may include a volatile memory or a non-volatile memory, or the memory 129 may include both volatile and non-volatile memories. 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 (DDRSDRAM), an enhanced synchronous dynamic random access memory (ESDRAM), a synchronous link dynamic random access memory (SLDRAM) and a direct memory bus random access memory (DRRAM). The memory 129 in the embodiment of the present application includes but is not limited to these and any other suitable types of memory.
[0143] The processor 120 may include one or more processing units; optionally, the processor 120 integrates an application processor and a modem processor, wherein the application processor mainly processes operations related to an operating system, a user interface, and application programs, and the modem processor mainly processes wireless communication signals, such as a baseband processor. It is understandable that the modem processor may not be integrated into the processor 120.
[0144] The embodiment of the present application also provides a readable storage medium, on which a program or instruction is stored. When the program or instruction is executed by a processor, each process of the above-mentioned contact reporting method embodiment is implemented, and the same technical effect can be achieved. To avoid repetition, it will not be repeated here.
[0145] The processor is the processor in the electronic device in the above embodiment. The readable storage medium includes a computer readable storage medium, such as a computer read-only memory ROM, a random access memory RAM, a magnetic disk or an optical disk.
[0146] An embodiment of the present application further provides a chip, which includes a processor and a communication interface, the communication interface and the processor are coupled, and the processor is used to run programs or instructions to implement the various processes of the above-mentioned contact reporting method embodiment, and can achieve the same technical effect. To avoid repetition, it will not be repeated here.
[0147] It should be understood that the chip mentioned in the embodiments of the present application can also be called a system-level chip, a system chip, a chip system or a system-on-chip chip, etc.
[0148] An 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 the various processes of the above-mentioned contact reporting method embodiment, and can achieve the same technical effect. To avoid repetition, it will not be repeated here.
[0149] It should be noted that, in this article, the terms "comprise", "include" or any other variant thereof are intended to cover non-exclusive inclusion, so that the process, method, article or device including a series of elements includes not only those elements, but also includes other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, the elements defined by the sentence "comprise one..." do not exclude the presence of other identical elements in the process, method, article or device including the element. In addition, it should be pointed out that the scope of the methods and devices in the embodiments of the present application is not limited to performing functions in the order shown or discussed, and may also include performing functions in a substantially simultaneous manner or in reverse order according to the functions involved, for example, the described method may be performed in an order different from that described, and various steps may also be added, omitted, or combined. In addition, the features described with reference to certain examples may be combined in other examples.
[0150] Through the description of the above implementation methods, those skilled in the art can clearly understand that the above-mentioned embodiment methods can be implemented by means of software plus a necessary general hardware platform, and of course 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, or the part that contributes to the prior art, can be embodied in the form of a computer software product, which is stored in a storage medium (such as ROM / RAM, a disk, or an optical disk), and includes a number of instructions for a terminal (which can be a mobile phone, a computer, a server, or a network device, etc.) to execute the methods described in each embodiment of the present application.
[0151] The embodiments of the present application are described above in conjunction with the accompanying drawings, but the present application is not limited to the above-mentioned specific implementation methods. The above-mentioned specific implementation methods are merely illustrative and not restrictive. Under the guidance of the present application, ordinary technicians in this field can also make many forms without departing from the purpose of the present application and the scope of protection of the claims, all of which are within the protection of the present application.
Claims
1. A contact reporting method, characterized in that: include: determining a first touch point position on the first touch data frame according to a capacitance signal of the first touch data frame; Acquire a second touch point position on a touch data frame previous to the first touch data frame; When the distance between the first touch point position and the second touch point position is greater than a first distance threshold, a third touch point position on the first touch data frame is determined according to the touch point positions of N touch data frames before the first touch data frame, and the third touch point position is reported, where N is a positive integer.
2. The method according to claim 1, characterized in that The reporting of the third contact position includes: When the distance between the third touch point position and the first touch point position is greater than a second distance threshold, the third touch point position is reported.
3. The method according to claim 1, characterized in that The determining the third touch point position on the first touch data frame according to the touch point positions of N touch data frames before the first touch data frame includes: Obtaining the time interval between the acquisition of each two adjacent touch data frames in the N touch data frames; Determine the moving speed of the touch point according to the touch point positions of the N touch data frames and the interval duration; The third touch point position is obtained by performing data fitting according to the touch point positions on the first M touch data frames and the moving speed, wherein M is a positive integer less than N.
4. The method according to claim 1, characterized in that: The method further comprises: When the distance between the first touch point position and the second touch point position is less than or equal to the first distance threshold, the first touch point position is reported.
5. The method according to claim 1, characterized in that The determining the first touch point position on the first touch data frame according to the capacitance signal of the first touch data frame includes: When it is determined that the first touch data frame is a touch data frame affected by electrostatic interference, a first touch point position on the first touch data frame is determined according to a capacitance signal of the first touch data frame.
6. A contact reporting device, characterized in that: include: a determination module, configured to determine a first touch point position on the first touch data frame according to a capacitance signal of the first touch data frame; an acquisition module, configured to acquire a second touch point position on a touch data frame previous to the first touch data frame; The first reporting module is used to determine the third touch point position on the first touch data frame according to the touch point positions of N touch data frames before the first touch data frame when the distance between the first touch point position and the second touch point position is greater than a first distance threshold, and report the third touch point position, where N is a positive integer.
7. The device according to claim 6, characterized in that The first reporting module includes: A reporting unit is used to report the third touch point position when the distance between the third touch point position and the first touch point position is greater than a second distance threshold.
8. The device according to claim 6, characterized in that The first reporting module includes: A first acquisition unit, used for acquiring the interval time between the acquisition of each two adjacent touch data frames in the N touch data frames; A first determining unit, configured to determine a moving speed of the touch point according to the touch point positions of the N touch data frames and the interval duration; A fitting unit is used to perform data fitting according to the touch point positions on the first M touch data frames of the first touch data frame and the moving speed to obtain the third touch point position, wherein M is a positive integer less than N.
9. The device according to claim 6, characterized in that The contact reporting device comprises: The second reporting module is configured to report the first touch point position when the distance between the first touch point position and the second touch point position is less than or equal to the first distance threshold.
10. The device according to claim 6, characterized in that The determination module comprises: The second determining unit is configured to determine a first touch point position on the first touch data frame according to a capacitance signal of the first touch data frame when it is determined that the first touch data frame is a touch data frame interfered by static electricity.
11. An electronic device, characterized in that: The method comprises 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 contact reporting method according to any one of claims 1 to 5 are implemented.