CN113434055A - Touch calibration method and device, storage medium and electronic equipment - Google Patents

Touch calibration method and device, storage medium and electronic equipment Download PDF

Info

Publication number
CN113434055A
CN113434055A CN202110763589.0A CN202110763589A CN113434055A CN 113434055 A CN113434055 A CN 113434055A CN 202110763589 A CN202110763589 A CN 202110763589A CN 113434055 A CN113434055 A CN 113434055A
Authority
CN
China
Prior art keywords
touch
value
area
node
nodes
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202110763589.0A
Other languages
Chinese (zh)
Inventor
郭恒军
赵允国
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Huizhou TCL Mobile Communication Co Ltd
Original Assignee
Huizhou TCL Mobile Communication Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Huizhou TCL Mobile Communication Co Ltd filed Critical Huizhou TCL Mobile Communication Co Ltd
Priority to CN202110763589.0A priority Critical patent/CN113434055A/en
Publication of CN113434055A publication Critical patent/CN113434055A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/03Arrangements for converting the position or the displacement of a member into a coded form
    • G06F3/041Digitisers, e.g. for touch screens or touch pads, characterised by the transducing means
    • G06F3/0416Control or interface arrangements specially adapted for digitisers
    • G06F3/0418Control or interface arrangements specially adapted for digitisers for error correction or compensation, e.g. based on parallax, calibration or alignment
    • G06F3/04186Touch location disambiguation

Abstract

The embodiment of the application provides a touch calibration method, a touch calibration device, a storage medium and electronic equipment, wherein the touch calibration method comprises the following steps: when the sensing value of the touch node in the touch area is detected to be abnormal, judging whether touch operation exists in the touch area; if not, calibrating the touch reference value of the touch node in the touch area when the touch area meets the first preset condition; and if so, calibrating the induction value of the touch node in the touch area. When the touch screen is detected to be abnormal, the corresponding touch calibration mechanism is started according to different touch states to calibrate the screen, so that the problem of screen mistaken touch caused by automatic triggering of the calibration mechanism is avoided, and the touch accuracy is improved.

Description

Touch calibration method and device, storage medium and electronic equipment
Technical Field
The present disclosure relates to the field of touch technologies, and in particular, to a touch calibration method and apparatus, a storage medium, and an electronic device.
Background
With the continuous development of touch technology, the touch technology is widely applied, and many electronic devices equipped with touch screens appear in the market, so that a user can control the electronic devices by performing touch operation on the touch screens.
In the normal touch process, the sensing value of the finger pressing area is a positive value, when the finger presses the touch screen hard, the touch screen deforms, so that the touch capacitance value changes, the phenomenon that the sensing value is abnormal (the sensing value of the touch node in the large area becomes a negative value) occurs around the finger pressing part, and after the finger is lifted, the phenomenon that the sensing value is abnormal still exists in the period of time because the deformation generated in the touch screen can be recovered to the normal state within a certain time. And no matter whether touch operation exists, once more touch nodes with negative induction values in the touch area are detected, a touch reference value calibration mechanism is automatically triggered to change the touch reference value of each touch node, so that the induction value of each touch node approaches to 0, because the positive and negative difference values of adjacent areas (a finger pressing area and a surrounding area) are large, deviation is easy to occur in the calibration process, the induction value of the touch node of the finger pressing area is changed from a positive value to a negative value (namely, an interruption touch phenomenon), the induction value of the touch node of the surrounding area of the finger pressing area is changed from a negative value to a positive value, and because the number of the touch nodes with positive induction values exceeds a touch threshold, a touch screen judges the area where the positive touch node is located as a finger operation area by mistake, and the occurrence of a false touch phenomenon is caused.
Disclosure of Invention
The embodiment of the application provides a touch calibration method and device, a storage medium and an electronic device, which can avoid the problem of screen mis-touch and improve the touch accuracy.
The embodiment of the application provides a touch calibration method, which is applied to electronic equipment, wherein the electronic equipment comprises a touch area, the touch area comprises a plurality of touch nodes distributed in multiple rows and multiple columns, and the method comprises the following steps:
when the sensing value of the touch node in the touch area is detected to be abnormal, judging whether the touch area has touch operation;
if not, calibrating the touch reference value of the touch node in the touch area when the touch area meets a first preset condition;
and if so, calibrating the induction value of the touch node in the touch area.
When the sensing value of the touch node in the touch area is detected to be abnormal, determining whether the touch area has touch operation or not includes:
acquiring the induction value of each touch node in the touch area;
detecting whether the number of the touch control nodes with the induction values in a preset abnormal range is larger than a first threshold value or not;
if so, determining that the induction value of the touch node in the touch area is abnormal, and judging whether the touch area has touch operation.
When the touch area meets a first preset condition, calibrating a touch reference value of the touch node in the touch area, including:
continuously scanning the touch nodes in the touch area for multiple times;
judging whether the touch nodes in the touch area meet a second preset condition or not every time of scanning, and if so, determining that the scanning is abnormal;
if the continuous preset times of scanning are abnormal, determining that the touch area meets a first preset condition, and calibrating a touch reference value of the touch node in the touch area.
Wherein the second preset condition comprises:
the absolute average value of the induction values of the negative touch nodes in the touch area is greater than a second threshold, the number of positive touch nodes in the edge area of the touch area is greater than a third threshold, and the average value of the induction values corresponding to the positive touch nodes is greater than a fourth threshold; the negative touch node is the touch node with the sensing value being a negative value, and the positive touch node is the touch node with the sensing value being a positive value.
Wherein the calibrating the touch reference value of the touch node in the touch area includes:
determining abnormal touch nodes in the touch area;
and adjusting a touch reference value corresponding to the abnormal touch node so that the induction value of the abnormal touch node is equal to zero.
Wherein the calibrating the sensing value of the touch node in the touch area comprises:
respectively taking each row of touch nodes as target row touch nodes, and determining the touch nodes of which the absolute values of the induction values in the target row touch nodes are not more than a preset absolute value;
calculating the mean value of the determined sensing values of the touch nodes;
and updating the value obtained by subtracting the average value from the induction value of each touch node in the target row of touch nodes to be the induction value of the corresponding touch node.
The embodiment of the present application further provides a touch calibration device, which is applied to an electronic device, the electronic device includes a touch area, the touch area includes a plurality of touch nodes distributed in multiple rows and multiple columns, the device includes:
the judging module is used for judging whether the touch control operation exists in the touch control area or not when the sensing value of the touch control node in the touch control area is detected to be abnormal;
the touch reference value calibration module is used for calibrating the touch reference value of the touch node in the touch area if the touch area does not meet a first preset condition;
and the induction value calibration module is used for calibrating the induction value of the touch node in the touch area if the induction value is correct.
Wherein, the judging module is specifically configured to:
acquiring the induction value of each touch node in the touch area;
detecting whether the number of the touch control nodes with the induction values in a preset abnormal range is larger than a first threshold value or not;
if so, determining that the induction value of the touch node in the touch area is abnormal, and judging whether the touch area has touch operation.
The embodiment of the application also provides a computer-readable storage medium, wherein a plurality of instructions are stored in the storage medium, and the instructions are suitable for being loaded by a processor to execute any one of the touch calibration methods.
The embodiment of the application further provides an electronic device, which comprises a processor and a memory, wherein the processor is electrically connected with the memory, the memory is used for storing instructions and data, and the processor is used for executing the steps in any one of the touch calibration methods.
The embodiment of the application provides a touch calibration method, a touch calibration device, a storage medium and electronic equipment, wherein when the abnormal induction value of a touch node in a touch area is detected, whether touch operation exists in the touch area is judged; if not, calibrating the touch reference value of the touch node in the touch area when the touch area meets the first preset condition; and if so, calibrating the induction value of the touch node in the touch area. When the touch screen is detected to be abnormal, the corresponding touch calibration mechanism is started according to different touch states to calibrate the screen, so that the problem of screen mistaken touch caused by automatic triggering of the calibration mechanism is avoided, and the touch accuracy is improved.
Drawings
The technical solution and other advantages of the present application will become apparent from the detailed description of the embodiments of the present application with reference to the accompanying drawings.
Fig. 1 is a flowchart illustrating a touch calibration method according to an embodiment of the present disclosure.
Fig. 2a is a schematic diagram of a touch reference value before being calibrated according to an embodiment of the present disclosure.
Fig. 2b is a schematic diagram after a touch reference value is calibrated according to an embodiment of the present disclosure.
Fig. 3a is a schematic diagram of the sensing value before being calibrated according to the embodiment of the present application.
Fig. 3b is a schematic diagram after calibration of the sensing value according to the embodiment of the present application.
Fig. 4 is another flowchart illustrating a touch calibration method according to an embodiment of the present disclosure.
Fig. 5 is a schematic structural diagram of a touch calibration device according to an embodiment of the present disclosure.
Fig. 6 is a schematic structural diagram of an electronic device according to an embodiment of the present application.
Fig. 7 is another schematic structural diagram of an electronic device according to an embodiment of the present application.
Detailed Description
The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are only a part of the embodiments of the present application, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
The embodiment of the application provides a touch calibration method, a touch calibration device, a storage medium and electronic equipment.
As shown in fig. 1, fig. 1 is a schematic flow chart of a touch calibration method provided in an embodiment of the present application, where the touch calibration method is applied to an electronic device, and the electronic device may be a smart phone, an iPad, and other devices with a touch function, and a specific flow may be as follows:
s101, when the abnormal induction value of the touch node in the touch area is detected, judging whether touch operation exists in the touch area.
The touch area is an area (e.g., a touch screen) used for sensing touch operation in the electronic device, the touch area includes a plurality of touch nodes distributed in multiple rows and multiple columns, and the sensing value is a value obtained by subtracting a touch reference value from a touch capacitance value. Specifically, a touch sensor is arranged inside the touch screen, a coupling capacitor Cb (the Cb value is positively correlated with the screen pressing deformation degree) exists between the touch sensor and a metal frame in the electronic device, a coupling capacitor Cs exists between the touch sensor and a grounding conductor inside the touch screen, the touch capacitance value is the sum of Cb and Cs, and the touch reference value is the touch capacitance value when no touch operation is detected.
In the normal touch process, the sensing value of the finger pressing area is a positive value, and when the finger presses the touch screen hard, the sensing value of the finger pressing area is a larger positive value, because the touch screen deforms, the touch capacitance value changes, the phenomenon that the sensing value is abnormal (the sensing value of the touch node in the large area becomes a negative value) appears around the finger pressing part, and after the finger lifts up, because the deformation generated in the touch screen needs a certain time to recover to a normal state, the phenomenon that the sensing value is abnormal still exists in the time.
In the prior art, no matter which touch state (touch operation or no touch operation) the current touch screen is in, once the sensing value of more touch nodes in the touch area is detected to be a negative value, a touch reference value calibration mechanism is automatically triggered to try to make the sensing value of each touch node approach to 0 by changing the touch reference value of each touch node, and in the calibration process of the touch reference value, because the sensing value of the touch node in the finger pressing area is a positive value and the sensing value of the touch node in the adjacent area in the finger pressing area is a negative value, deviation is easy to occur in the calibration process, the sensing value of the touch node in the finger pressing area is changed from the positive value to the negative value (namely, touch interruption phenomenon), the sensing value of the touch node in the area around the finger pressing area is changed from the negative value to the positive value, and because the number of the touch nodes with the positive value exceeds the touch threshold, the touch screen can mistakenly determine the area where the positive touch node is located as the finger operation area, so that the phenomenon of mistaken touch is caused.
In the embodiment of the application, when the sensing value of the touch node in the touch area is detected to be abnormal, the touch state (touch operation or no touch operation) of the current touch screen is determined, and different screen calibration modes are adopted for different touch states to perform calibration so as to avoid the phenomenon of false touch caused by triggering a touch reference value calibration mechanism.
Further, the step S101 specifically includes:
acquiring an induction value of each touch node in a touch area;
detecting whether the number of the touch nodes with the induction values in the preset abnormal range is larger than a first threshold value or not;
if so, determining that the induction value of the touch node in the touch area is abnormal, and judging whether the touch area has touch operation.
The touch control nodes in the preset abnormal range are touch control nodes with induction values of negative values in the touch control area, if the number of the touch control nodes with the induction values of the negative values is detected to be larger than a first threshold value, the induction values of the touch control nodes in the touch control area are determined to be abnormal, whether the corresponding maximum induction value in the touch control nodes with the induction values of positive values in the touch control area is larger than a preset value is detected, if so, the current touch control operation is determined, and otherwise, the current no touch control operation is determined.
For example, the first threshold is 100, the preset value is 200, when it is detected that the number of touch nodes with a negative sensing value in the touch area is 150, it may be determined that the sensing value of the touch node at this time is abnormal, and it is determined that the current touch operation exists when the maximum sensing value corresponding to the touch node with the positive sensing value in the current touch area is 260; if the maximum induction value corresponding to the touch node with the positive induction value in the current touch area is 120, it can be judged that no touch operation is performed currently.
And S102, if not, calibrating the touch reference value of the touch node in the touch area when the touch area meets the first preset condition.
When no touch operation is detected, whether the touch nodes in the current touch area meet a first preset condition or not can be judged first to judge whether the touch reference value calibration mechanism needs to be started to calibrate the touch reference value or not, and because the number of the touch nodes with positive values in the touch area is small when no touch operation is detected, the probability of deviation occurring in the touch reference value calibration process is small, the induction value of each touch node can be effectively calibrated to be close to 0, and the induction value of each touch node is enabled to be normal.
Further, the step S102 specifically includes:
continuously scanning touch nodes in the touch area for multiple times;
judging whether the touch nodes in the touch area meet a second preset condition or not every time of scanning, and if so, determining that the scanning is abnormal;
if the continuous preset times of scanning are abnormal, determining that the touch area meets a first preset condition, and calibrating a touch reference value of a touch node in the touch area.
The touch screen generally performs screen scanning according to a preset frequency to detect a sensing value of each touch node in the touch screen. The induction value is changed due to the deformation of the screen, the screen deformation recovery process needs a certain time, and if the screen deformation recovery process is normal, the scanning result obtained in a certain scanning within a certain time is normal; if the scanning results obtained by multiple scanning are all abnormal, which indicates that the screen deformation is recovered to be abnormal (for example, the screen cannot be recovered to the original state due to the damage of the screen), it indicates that the screen needs to be calibrated at this time.
Specifically, the second preset condition includes: the absolute average value of the sensing values of the negative touch nodes in the touch area is greater than a second threshold, the number of positive touch nodes in the edge area of the touch area is greater than a third threshold, and the average value of the sensing values corresponding to the positive touch nodes is greater than a fourth threshold, wherein the negative touch nodes are touch nodes with negative sensing values, and the positive touch nodes are touch nodes with positive sensing values. Optionally, the edge area includes an outermost edge area (a first row, a last row, a first column, and a last column) in the touch area.
Preferably, the second threshold is 50, the third threshold is 15, the fourth threshold is 20, and the preset number is 5. For example, in the first scanning process, it is detected that the absolute average value of the sensing values of the negative touch nodes in the touch area is 70, the number of positive touch nodes in the outermost edge area of the touch area is 26, and the average value of the sensing values of the positive touch nodes is 33, that is, it is determined that the first scanning is abnormal; in the second scanning process, the absolute average value of the sensing values of the negative touch nodes in the touch area is detected to be 60, the number of the positive touch nodes in the outermost edge area of the touch area is 19, and the average value of the sensing values of the positive touch nodes is 26, namely that the second scanning is abnormal; in the third scanning process, the absolute average value of the sensing values of the negative touch nodes in the touch area is detected to be 58, the number of positive touch nodes in the outermost edge area of the touch area is 32, and the average value of the sensing values of the positive touch nodes is 22, namely, the third scanning abnormality is determined; detecting that the absolute average value of the sensing values of the negative touch nodes in the touch area is 66, the number of positive touch nodes in the outermost edge area of the touch area is 22, and the average value of the sensing values of the positive touch nodes is 30 in the fourth scanning process, namely determining that the fourth scanning is abnormal; in the fifth scanning process, an absolute average value of the sensing values of the negative touch nodes in the touch area is detected to be 55, the number of positive touch nodes in the outermost edge area of the touch area is 27, and an average value of the sensing values of the positive touch nodes is 25, that is, it is determined that the fifth scanning is abnormal, and since the results of 5 consecutive scanning are abnormal, it is determined that the touch area satisfies the first preset condition, and a touch reference value calibration mechanism is triggered to calibrate the touch reference value of the touch nodes so that the sensing value of each touch node approaches 0, so as to reduce the number of touch nodes with a negative sensing value in the touch area, for example, as shown in fig. 2a, fig. 2a is a schematic diagram before touch reference value calibration is performed on a touch node in a certain row of the touch area, and the sensing values of the touch nodes in the row are-100, respectively from left to right, 150, -50, -123, -140, and 147, after calibrating the touch reference value for each touch node, as shown in fig. 2b, the sensing value of the row of touch nodes becomes 10, -13, 21, -9, -10, and-12.
And S103, if so, calibrating the induction value of the touch node in the touch area.
When the touch operation is detected in the current touch area, the filtering calibration mechanism can be started to calibrate the induction value of the touch node in the touch area, so that the phenomena of touch interruption and touch error in the calibration process are avoided.
Further, the specific step of starting a filtering calibration mechanism to calibrate the sensing values of the touch nodes in the touch area includes:
respectively taking each row of touch nodes as target row touch nodes, and determining the touch nodes with the absolute values of induction values in the target row touch nodes not larger than preset absolute values;
calculating the mean value of the determined induction values of the touch nodes;
and updating the value obtained by subtracting the mean value from the induction value of each touch node in the target row of touch nodes into the induction value of the corresponding touch node.
Wherein the preset absolute value is an absolute value of the preset value. In order to calibrate the sensing values of the touch nodes in the touch area so that the sensing values of the touch nodes in the touch area approach to 0, the absolute value of the sensing value of each row of touch nodes in the touch area can be calculated to be not more than the average value of the sensing values of the touch nodes with a preset absolute value, and the value obtained by subtracting the average value of the row from each touch node is updated to be the sensing value of the corresponding touch node, so that the updated sensing value of the touch nodes in the touch area approaches to 0, and the abnormality in the touch area is eliminated.
For example, the preset value is-100, as shown in fig. 3a, the sensing values of a certain row of touch nodes in the touch area are-35, -20, -16, -14, -55, -105, respectively, and-35, -20, -16, -14, and-55 are determined as touch nodes whose sensing values are not greater than the preset absolute value, the mean value of the sensing values of the touch nodes determined by the row is calculated as-23, and the mean value is subtracted from each touch node in the row, as shown in fig. 3b, to obtain-12, 3, 7, 9, -32, and-82, and these values are updated to the sensing values of the corresponding touch nodes.
Optionally, since the touch reference value calibration mechanism or the filter calibration mechanism may change the sensing values of some touch nodes from negative values to positive values in the calibration process, and if the number of touch nodes with positive sensing values exceeds the touch threshold, a touch operation may be triggered, resulting in a false touch phenomenon, in order to better avoid the false touch phenomenon, the touch threshold may be increased, for example, the original touch threshold is 40 (the touch operation may be triggered when the number of touch nodes with positive sensing values is at least 40), and the touch threshold is now increased to 100, that is, the touch operation may be triggered only when the number of touch nodes with positive sensing values is greater than or equal to 100, so as to effectively reduce the probability of the false touch phenomenon.
As shown in fig. 4, fig. 4 is another schematic flow chart of the touch calibration method provided in the embodiment of the present application, and the specific flow chart may be as follows:
s201, detecting whether the number of the touch control nodes with the induction values in the preset abnormal range is larger than a first threshold value or not; if yes, determining that the induction value of the touch node in the touch area is abnormal, and executing step S202; if not, step S201 is executed.
For example, the first threshold is 100, and if it is detected that the number of touch nodes in the touch area with a negative sensing value is 150, it may be determined that the sensing value of the touch node is abnormal.
If the maximum induction value corresponding to the touch node with the positive induction value in the current touch area is detected to be 260, judging that touch operation exists currently; if the maximum induction value corresponding to the touch node with the positive induction value in the current touch area is 120, it can be judged that no touch operation is performed currently.
S202, detecting whether the maximum induction value corresponding to the touch node with the positive induction value in the touch area is larger than a preset value, if not, determining that no touch operation exists currently, and executing the step S206; if yes, it is determined that the touch operation is currently performed, and step S203 is executed.
For example, if the preset value is 200, and the maximum sensing value corresponding to the touch node with the positive sensing value in the touch area is 120, it is determined that there is no touch operation currently, and step S206 is executed; if it is detected that the maximum sensing value corresponding to the touch node with the positive sensing value in the touch area is 240, it is determined that there is a touch operation currently, and step S203 is executed.
S206, continuously and repeatedly scanning the touch nodes in the touch area, and judging whether the touch area meets the following requirements or not when scanning is performed once: if the absolute average value of the sensing values of the negative touch nodes is greater than the second threshold, the number of positive touch nodes in the edge area of the touch area is greater than the third threshold, and the average value of the sensing values corresponding to the positive touch nodes is greater than the fourth threshold, the negative touch nodes are touch nodes with negative sensing values, and the positive touch nodes are touch nodes with positive sensing values, the scanning is determined to be abnormal, and step S207 is executed; if not, go to step S206.
For example, the second threshold is 50, the third threshold is 15, the fourth threshold is 20, the preset number of times is 5, the absolute average of the sensing values of the negative touch nodes in the touch area detected in the first scanning process is 70, the number of positive touch nodes in the outermost edge area of the touch area is 26, and the average of the sensing values of the positive touch nodes is 33, that is, it is determined that the first scanning is abnormal, and step S207 is executed; if the absolute average of the sensing values of the negative touch nodes in the touch area is 20, the number of positive touch nodes in the outermost edge area of the touch area is 12, and the average of the sensing values of the positive touch nodes is 10, it is determined that the first scanning is normal, and step S206 is continuously performed.
S203, each row of touch nodes is taken as a target row of touch nodes, and the touch nodes with the induction values in the target row of touch nodes not larger than a preset absolute value are determined.
For example, as shown in fig. 3a and 3b, the preset value is-100, the sensing values of the target touch nodes in the first row are-35, -20, -16, -14, -55, -105 (in left-to-right order), and since the absolute values (35, 20, 16, 14, and 55) of-35, -20, -16, -14, and-55 are not greater than the preset absolute value (100), the absolute values of the sensing values in the target touch nodes in the target row are not greater than the preset absolute value, -35, -20, -16, -14, and-55.
And S204, calculating the mean value of the determined induction values of the touch nodes.
For example, the sensing values of the touch nodes determined by the row are-35, -20, -16, -14 and-55, and the average value is-23.
S205, updating the value obtained by subtracting the mean value from the induction value of each touch node in the target row of touch nodes to the induction value of the corresponding touch node.
For example, minus 23 is subtracted from-35, -20, -16, -14, -55 and-105 to obtain-12, 3, 7, 9, -32 and-82, and-12, 3, 7, 9, -32 and-82 are updated to the sensing values of the corresponding touch nodes (in order from left to right).
S207, judging whether the scanning is abnormal continuously for a preset number of times, if so, executing a step S208; if not, go to step S207.
For example, if the preset number of times is 3, if it is detected in the second scanning process that the absolute average value of the sensing values of the negative touch nodes in the touch area is 60, the number of positive touch nodes in the outermost edge area of the touch area is 19, and the average value of the sensing values of the positive touch nodes is 26, it is determined that the second scanning is abnormal; in the third scanning process, it is detected that the absolute average value of the sensing values of the negative touch nodes in the touch area is 58, the number of positive touch nodes in the outermost edge area of the touch area is 32, and the average value of the sensing values of the positive touch nodes is 22, that is, it is determined that the third scanning is abnormal, and since the scanning is abnormal for 3 consecutive times, step S208 is executed;
if the absolute average value of the sensing values of the negative touch nodes in the touch area is detected to be 30 in the second scanning process, the number of the positive touch nodes in the outermost edge area of the touch area is 19, and the average value of the sensing values of the positive touch nodes is 26, the absolute average value of the sensing values of the negative touch nodes is less than 50 (a second threshold), so that the second scanning is determined to be normal; in the third scanning process, it is detected that the absolute average value of the sensing values of the negative touch nodes in the touch area is 60, the number of positive touch nodes in the outermost edge area of the touch area is 10, and the average value of the sensing values of the positive touch nodes is 12, since the number of positive touch nodes in the edge area is less than 15 (the third threshold) and the average value of the sensing values corresponding to the positive touch nodes is less than 20 (the fourth threshold), it is determined that the third scanning is normal, and since only the number of times of continuous scanning abnormality is less than 3, the step S207 is continuously performed.
And S208, changing a touch reference value corresponding to each abnormal touch node in the touch area so as to enable the induction value of each abnormal touch node to approach zero.
For example, as shown in fig. 2a and 2b, the sensing values of a row of touch nodes in the touch area are-100, -150, -50, -123, -140, and-147 from left to right, and after the touch reference value of each touch node is changed, the sensing values of the row of touch nodes are changed to 10, -13, 21, -9, -10, and-12.
In view of the above, the touch calibration method provided by the present application is applied to an electronic device, and when detecting that an induction value of a touch node in a touch area is abnormal, determines whether a touch operation is performed in the touch area; if not, calibrating the touch reference value of the touch node in the touch area when the touch area meets the first preset condition; and if so, calibrating the induction value of the touch node in the touch area. When the touch screen is detected to be abnormal, the corresponding touch calibration mechanism is started according to different touch states to calibrate the screen, so that the problem of screen mistaken touch caused by automatic triggering of the calibration mechanism is avoided, and the touch accuracy is improved.
According to the method described in the foregoing embodiment, the embodiment will be further described from the perspective of a touch calibration device, which may be specifically implemented as an independent entity or integrated in an electronic device, where the electronic device may be a smart phone, an iPad, or other device with a touch function.
Referring to fig. 5, fig. 5 specifically describes a touch calibration device provided in the present embodiment, which is applied to an electronic device, and the touch calibration device may include: the device comprises a judgment module 10, a touch reference value calibration module 20 and an induction value calibration module 30, wherein:
(1) judging module 10
The determining module 10 is configured to determine whether a touch operation is performed in the touch area when the sensing value of the touch node in the touch area is detected to be abnormal.
The determining module 10 is further configured to:
acquiring an induction value of each touch node in a touch area;
detecting whether the number of the touch nodes with the induction values in the preset abnormal range is larger than a first threshold value or not;
if so, determining that the induction value of the touch node in the touch area is abnormal, and judging whether the touch area has touch operation.
(2) Touch reference value calibration module 20
And a touch reference value calibration module 20, configured to calibrate a touch reference value of a touch node in the touch area if the touch area does not meet the first preset condition.
The touch reference value calibration module 20 is further configured to:
continuously scanning touch nodes in the touch area for multiple times;
judging whether the touch nodes in the touch area meet a second preset condition or not every time of scanning, and if so, determining that the scanning is abnormal;
if the continuous preset times of scanning are abnormal, determining that the touch area meets a first preset condition, and calibrating a touch reference value of a touch node in the touch area.
Wherein the second preset condition comprises:
the absolute average value of the induction values of the negative touch nodes in the touch area is greater than a second threshold, the number of positive touch nodes in the edge area of the touch area is greater than a third threshold, and the average value of the induction values corresponding to the positive touch nodes is greater than a fourth threshold; the negative touch control node is a touch control node with a negative sensing value, and the positive touch control node is a touch control node with a positive sensing value.
The touch reference value calibration module 20 is further configured to:
determining abnormal touch nodes in a touch area;
and adjusting a touch reference value corresponding to the abnormal touch node so as to enable the induction value of the abnormal touch node to be equal to zero.
(3) Sensing value calibration module 30
The sensing value calibration module 30 is configured to calibrate the sensing value of the touch node in the touch area if the sensing value is the same as the sensing value of the touch node in the touch area.
The sensing value calibration module 30 is specifically configured to:
respectively taking each row of touch nodes as target row touch nodes, and determining the touch nodes with the absolute values of induction values in the target row touch nodes not larger than preset absolute values;
calculating the mean value of the determined induction values of the touch nodes;
and updating the value obtained by subtracting the mean value from the induction value of each touch node in the target row of touch nodes into the induction value of the corresponding touch node.
As can be seen from the above, the touch calibration device provided in the present application is applied to an electronic device, and when the determining module 10 detects that the sensing value of the touch node in the touch area is abnormal, determines whether there is a touch operation in the touch area; if not, the touch reference value calibration module 20 calibrates the touch reference value of the touch node in the touch area when the touch area meets the first preset condition; if yes, the sensing value calibration module 30 calibrates the sensing value of the touch node in the touch area. When the touch screen is detected to be abnormal, the corresponding touch calibration mechanism is started according to different touch states to calibrate the screen, so that the problem of screen mistaken touch caused by automatic triggering of the calibration mechanism is avoided, and the touch accuracy is improved.
Correspondingly, the embodiment of the invention also provides a touch calibration system, which comprises any one of the touch calibration devices provided by the embodiment of the invention, and the touch calibration device can be integrated in electronic equipment.
When the abnormal induction value of the touch node in the touch area is detected, judging whether touch operation exists in the touch area; if not, calibrating the touch reference value of the touch node in the touch area when the touch area meets the first preset condition; and if so, calibrating the induction value of the touch node in the touch area.
The specific implementation of each device can be referred to the previous embodiment, and is not described herein again.
Since the touch calibration system may include any one of the touch calibration devices provided in the embodiments of the present invention, the beneficial effects that can be achieved by any one of the touch calibration devices provided in the embodiments of the present invention can be achieved, which are detailed in the foregoing embodiments and will not be described herein again.
In addition, the embodiment of the application also provides an electronic device, and the electronic device can be a smart phone, an iPad and other devices with a touch function. As shown in fig. 6, the electronic device 200 includes a processor 201, a memory 202. The processor 201 is electrically connected to the memory 202.
The processor 201 is a control center of the electronic device 200, connects various parts of the whole electronic device by using various interfaces and lines, and performs various functions of the electronic device and processes data by running or loading an application program stored in the memory 202 and calling the data stored in the memory 202, thereby performing overall monitoring of the electronic device.
In this embodiment, the processor 201 in the electronic device 200 loads instructions corresponding to processes of one or more application programs into the memory 202, and the processor 201 runs the application programs stored in the memory 202, so as to implement various functions as follows:
when the sensing value of the touch node in the touch area is detected to be abnormal, judging whether touch operation exists in the touch area;
if not, calibrating the touch reference value of the touch node in the touch area when the touch area meets the first preset condition;
and if so, calibrating the induction value of the touch node in the touch area.
Fig. 7 is a block diagram showing a specific structure of an electronic device according to an embodiment of the present invention, where the electronic device may be used to implement the touch calibration method provided in the foregoing embodiment. The electronic device 300 may be a smart phone, an iPad, or other device with a touch function.
The RF circuit 310 is used for receiving and transmitting electromagnetic waves, and performing interconversion between the electromagnetic waves and electrical signals, thereby communicating with a communication network or other devices. RF circuitry 310 may include various existing circuit elements for performing these functions, such as an antenna, a radio frequency transceiver, a digital signal processor, an encryption/decryption chip, a Subscriber Identity Module (SIM) card, memory, and so forth. RF circuit 310 may communicate with various networks such as the internet, an intranet, a wireless network, or with other devices over a wireless network. The wireless network may comprise a cellular telephone network, a wireless local area network, or a metropolitan area network. The Wireless network may use various Communication standards, protocols, and technologies, including, but not limited to, Global System for Mobile Communication (GSM), Enhanced Data GSM Environment (EDGE), Wideband Code Division Multiple Access (WCDMA), Code Division Multiple Access (CDMA), Time Division Multiple Access (TDMA), Wireless Fidelity (Wi-Fi) (e.g., Institute of Electrical and Electronics Engineers (IEEE) standard IEEE802.11 a, IEEE802.11 b, IEEE802.11g, and/or IEEE802.11 n), Voice over Internet Protocol (VoIP), world wide mail Access (Microwave Access for micro), wimax-1, other suitable short message protocols, and any other suitable Protocol for instant messaging, and may even include those protocols that have not yet been developed.
The memory 320 may be used to store software programs and modules, such as program instructions/modules for converting the detection signal into the target character in the above-mentioned embodiment, and the processor 380 executes various functional applications and data processing, i.e., functions for storing 5G capability information, by running the software programs and modules stored in the memory 320. The memory 320 may include high speed random access memory and may also include non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. In some examples, memory 320 may further include memory located remotely from processor 380, which may be connected to electronic device 300 via a network. Examples of such networks include, but are not limited to, the internet, intranets, local area networks, mobile communication networks, and combinations thereof.
The input unit 330 may be used to receive input numeric or character information and generate keyboard, mouse, joystick, optical or trackball signal inputs related to user settings and function control. In particular, the input unit 330 may include a touch-sensitive surface 331 as well as other input devices 332. The touch-sensitive surface 331, also referred to as a touch screen or touch pad, may collect touch operations by a user on or near the touch-sensitive surface 331 (e.g., operations by a user on or near the touch-sensitive surface 331 using a finger, a stylus, or any other suitable object or attachment), and drive the corresponding connection device according to a predetermined program. Alternatively, the touch sensitive surface 331 may comprise two parts, a touch detection means and a touch controller. The touch detection device detects the touch direction of a user, detects a signal brought by touch operation and transmits the signal to the touch controller; the touch controller receives touch information from the touch sensing device, converts the touch information into touch point coordinates, sends the touch point coordinates to the processor 380, and can receive and execute commands sent by the processor 380. In addition, the touch-sensitive surface 331 may be implemented using various types of resistive, capacitive, infrared, and surface acoustic waves. The input unit 330 may comprise other input devices 332 in addition to the touch sensitive surface 331. In particular, other input devices 332 may include, but are not limited to, one or more of a physical keyboard, function keys (such as volume control keys, switch keys, etc.), a trackball, a mouse, a joystick, and the like.
The display unit 340 may be used to display information input by or provided to the user and various graphical user interfaces of the electronic device 300, which may be made up of graphics, text, icons, video, and any combination thereof. The Display unit 340 may include a Display panel 341, and optionally, the Display panel 341 may be configured in the form of an LCD (Liquid Crystal Display), an OLED (Organic Light-Emitting Diode), or the like. Further, touch-sensitive surface 331 may overlay display panel 341, and when touch-sensitive surface 331 detects a touch operation thereon or thereabout, communicate to processor 380 to determine the type of touch event, and processor 380 then provides a corresponding visual output on display panel 341 in accordance with the type of touch event. Although in FIG. 7, touch-sensitive surface 331 and display panel 341 are implemented as two separate components for input and output functions, in some embodiments, touch-sensitive surface 331 and display panel 341 may be integrated for input and output functions.
The electronic device 300 may also include at least one sensor 350, such as light sensors, motion sensors, and other sensors. Specifically, the light sensor may include an ambient light sensor that may adjust the brightness of the display panel 341 according to the brightness of ambient light, and a proximity sensor that may turn off the display panel 341 and/or the backlight when the electronic device 300 is moved to the ear. As one of the motion sensors, the gravity acceleration sensor can detect the magnitude of acceleration in each direction (generally, three axes), can detect the magnitude and direction of gravity when the mobile phone is stationary, and can be used for applications of recognizing the posture of the mobile phone (such as horizontal and vertical screen switching, related games, magnetometer posture calibration), vibration recognition related functions (such as pedometer and tapping), and the like; as for other sensors such as a gyroscope, a barometer, a hygrometer, a thermometer, and an infrared sensor, which can be configured in the electronic device 300, detailed descriptions thereof are omitted.
Audio circuitry 360, speaker 361, microphone 362 may provide an audio interface between a user and electronic device 300. The audio circuit 360 may transmit the electrical signal converted from the received audio data to the speaker 361, and the audio signal is converted by the speaker 361 and output; on the other hand, the microphone 362 converts the collected sound signal into an electrical signal, which is received by the audio circuit 360 and converted into audio data, which is then processed by the audio data output processor 380 and then transmitted to, for example, another terminal via the RF circuit 310, or the audio data is output to the memory 320 for further processing. The audio circuit 360 may also include an earbud jack to provide communication of a peripheral headset with the electronic device 300.
The electronic device 300, via the transport module 370 (e.g., a Wi-Fi module), may assist the user in emailing, browsing web pages, accessing streaming media, etc., which provides the user with wireless broadband internet access. Although fig. 7 shows the transmission module 370, it is understood that it does not belong to the essential constitution of the electronic device 300, and may be omitted entirely as needed within the scope not changing the essence of the invention.
The processor 380 is a control center of the electronic device 300, connects various parts of the entire cellular phone using various interfaces and lines, and performs various functions of the electronic device 300 and processes data by operating or executing software programs and/or modules stored in the memory 320 and calling data stored in the memory 320. Optionally, processor 380 may include one or more processing cores; in some embodiments, processor 380 may integrate an application processor, which primarily handles operating systems, user interfaces, applications, etc., and a modem processor, which primarily handles wireless communications. It will be appreciated that the modem processor described above may not be integrated into processor 380.
The electronic device 300 also includes a power supply 390 (e.g., a battery) that provides power to the various components and, in some embodiments, may be logically coupled to the processor 380 via a power management system to manage charging, discharging, and power consumption management functions via the power management system. The power supply 390 may also include any component including one or more of a dc or ac power source, a recharging system, a power failure detection circuit, a power converter or inverter, a power status indicator, and the like.
Although not shown, the electronic device 300 may further include a camera (e.g., a front camera, a rear camera), a bluetooth module, and the like, which are not described in detail herein. Specifically, in this embodiment, the display unit of the electronic device is a touch screen display, the electronic device further includes a memory, and one or more programs, where the one or more programs are stored in the memory and configured to be executed by the one or more processors, and the one or more programs include instructions for:
when the sensing value of the touch node in the touch area is detected to be abnormal, judging whether touch operation exists in the touch area;
if not, calibrating the touch reference value of the touch node in the touch area when the touch area meets the first preset condition;
and if so, calibrating the induction value of the touch node in the touch area.
In specific implementation, the above modules may be implemented as independent entities, or may be combined arbitrarily to be implemented as the same or several entities, and specific implementation of the above modules may refer to the foregoing method embodiments, which are not described herein again.
It will be understood by those skilled in the art that all or part of the steps of the methods of the above embodiments may be performed by instructions or by associated hardware controlled by the instructions, which may be stored in a computer readable storage medium and loaded and executed by a processor. To this end, the present invention provides a storage medium, in which a plurality of instructions are stored, and the instructions can be loaded by a processor to execute the steps in any one of the touch calibration methods provided by the embodiments of the present invention.
Wherein the storage medium may include: read Only Memory (ROM), Random Access Memory (RAM), magnetic or optical disks, and the like.
Since the instructions stored in the storage medium can execute the steps in any of the touch calibration methods provided in the embodiments of the present invention, the beneficial effects that can be achieved by any of the touch calibration methods provided in the embodiments of the present invention can be achieved, which are detailed in the foregoing embodiments and will not be described herein again.
The above operations can be implemented in the foregoing embodiments, and are not described in detail herein.
In summary, although the present application has been described with reference to the preferred embodiments, the above-described preferred embodiments are not intended to limit the present application, and those skilled in the art can make various changes and modifications without departing from the spirit and scope of the present application, so that the scope of the present application shall be determined by the appended claims.

Claims (10)

1. A touch calibration method is applied to an electronic device, the electronic device comprises a touch area, the touch area comprises a plurality of touch nodes distributed in multiple rows and multiple columns, and the method comprises the following steps:
when the sensing value of the touch node in the touch area is detected to be abnormal, judging whether the touch area has touch operation;
if not, calibrating the touch reference value of the touch node in the touch area when the touch area meets a first preset condition;
and if so, calibrating the induction value of the touch node in the touch area.
2. The touch calibration method according to claim 1, wherein the determining whether the touch area has a touch operation when the sensing value of the touch node in the touch area is detected to be abnormal comprises:
acquiring the induction value of each touch node in the touch area;
detecting whether the number of the touch control nodes with the induction values in a preset abnormal range is larger than a first threshold value or not;
if so, determining that the induction value of the touch node in the touch area is abnormal, and judging whether the touch area has touch operation.
3. The touch calibration method according to claim 1, wherein the calibrating the touch reference value of the touch node in the touch area when the touch area satisfies a first preset condition comprises:
continuously scanning the touch nodes in the touch area for multiple times;
judging whether the touch nodes in the touch area meet a second preset condition or not every time of scanning, and if so, determining that the scanning is abnormal;
if the continuous preset times of scanning are abnormal, determining that the touch area meets a first preset condition, and calibrating a touch reference value of the touch node in the touch area.
4. The touch calibration method according to claim 3, wherein the second preset condition comprises:
the absolute average value of the induction values of the negative touch nodes in the touch area is greater than a second threshold, the number of positive touch nodes in the edge area of the touch area is greater than a third threshold, and the average value of the induction values corresponding to the positive touch nodes is greater than a fourth threshold; the negative touch node is the touch node with the sensing value being a negative value, and the positive touch node is the touch node with the sensing value being a positive value.
5. The touch calibration method according to claim 1, wherein the calibrating the touch reference value of the touch node in the touch area comprises:
determining abnormal touch nodes in the touch area;
and adjusting a touch reference value corresponding to the abnormal touch node so that the induction value of the abnormal touch node is equal to zero.
6. The touch calibration method according to claim 1, wherein the calibrating the sensing values of the touch nodes in the touch area comprises:
respectively taking each row of touch nodes as target row touch nodes, and determining the touch nodes of which the absolute values of the induction values in the target row touch nodes are not more than a preset absolute value;
calculating the mean value of the determined sensing values of the touch nodes;
and updating the value obtained by subtracting the average value from the induction value of each touch node in the target row of touch nodes to be the induction value of the corresponding touch node.
7. A touch calibration device applied to an electronic device, the electronic device comprising a touch area, the touch area comprising a plurality of touch nodes distributed in rows and columns, the device comprising:
the judging module is used for judging whether the touch control operation exists in the touch control area or not when the sensing value of the touch control node in the touch control area is detected to be abnormal;
the touch reference value calibration module is used for calibrating the touch reference value of the touch node in the touch area if the touch area does not meet a first preset condition;
and the induction value calibration module is used for calibrating the induction value of the touch node in the touch area if the induction value is correct.
8. The touch calibration device of claim 1, wherein the determining module is specifically configured to:
acquiring the induction value of each touch node in the touch area;
detecting whether the number of the touch control nodes with the induction values in a preset abnormal range is larger than a first threshold value or not;
if so, determining that the induction value of the touch node in the touch area is abnormal, and judging whether the touch area has touch operation.
9. A computer-readable storage medium having stored thereon a plurality of instructions adapted to be loaded by a processor to perform the touch calibration method of any of claims 1 to 6.
10. An electronic device comprising a processor and a memory, wherein the processor is electrically connected to the memory, the memory is used for storing instructions and data, and the processor is used for executing the steps of the touch calibration method according to any one of claims 1 to 6.
CN202110763589.0A 2021-07-06 2021-07-06 Touch calibration method and device, storage medium and electronic equipment Pending CN113434055A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110763589.0A CN113434055A (en) 2021-07-06 2021-07-06 Touch calibration method and device, storage medium and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110763589.0A CN113434055A (en) 2021-07-06 2021-07-06 Touch calibration method and device, storage medium and electronic equipment

Publications (1)

Publication Number Publication Date
CN113434055A true CN113434055A (en) 2021-09-24

Family

ID=77759150

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110763589.0A Pending CN113434055A (en) 2021-07-06 2021-07-06 Touch calibration method and device, storage medium and electronic equipment

Country Status (1)

Country Link
CN (1) CN113434055A (en)

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105807998A (en) * 2016-03-09 2016-07-27 周奇 Correction method and device of capacitive touch screen
US20170228061A1 (en) * 2016-02-10 2017-08-10 Microsoft Technology Licensing, Llc Piecewise estimation for display noise compensation
CN111831144A (en) * 2019-04-23 2020-10-27 北京小米移动软件有限公司 Touch abnormity adjusting method and device

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20170228061A1 (en) * 2016-02-10 2017-08-10 Microsoft Technology Licensing, Llc Piecewise estimation for display noise compensation
CN105807998A (en) * 2016-03-09 2016-07-27 周奇 Correction method and device of capacitive touch screen
CN111831144A (en) * 2019-04-23 2020-10-27 北京小米移动软件有限公司 Touch abnormity adjusting method and device

Similar Documents

Publication Publication Date Title
CN108572767B (en) Method for determining external object position and mobile terminal
CN112308806A (en) Image processing method, image processing device, electronic equipment and readable storage medium
CN109714476B (en) Data processing method and device, mobile terminal and storage medium
CN110730017A (en) Radio frequency device, control method thereof and terminal equipment
CN112532958A (en) Image processing method, image processing device, electronic equipment and readable storage medium
CN108388400B (en) Operation processing method and mobile terminal
CN110601715A (en) Radio frequency circuit, terminal equipment and circuit control method
CN111596793B (en) Anti-misoperation method and system, storage medium and terminal equipment
CN107025438B (en) Method and terminal for improving fingerprint identification rate
CN111064847B (en) False touch prevention method and device, storage medium and electronic equipment
CN110851014B (en) Touch recognition method and device, storage medium and terminal equipment
CN112199005A (en) Content display method, content display device, storage medium and mobile terminal
CN110958345B (en) Method and device for detecting rear cover of mobile terminal and computer readable storage medium
CN111026457B (en) Hardware configuration method and device, storage medium and terminal equipment
US20220263589A1 (en) Digital pre-distortion processing method and electronic device
CN112486350B (en) Detection method and device for touch screen of mobile terminal, storage medium and mobile terminal
CN113434055A (en) Touch calibration method and device, storage medium and electronic equipment
CN111343335B (en) Image display processing method, system, storage medium and mobile terminal
CN111083288B (en) Screen control method and device, terminal equipment and storage medium
CN109831771B (en) Bluetooth searching method and device, mobile terminal and storage medium
CN112367428A (en) Electric quantity display method and system, storage medium and mobile terminal
CN111654577A (en) Emergency call method, device, storage medium and mobile terminal
CN113407016A (en) Temperature control method and device, mobile terminal and storage medium
CN111131614A (en) Method and system for preventing mistaken call answering of terminal equipment, storage medium and terminal equipment
CN109995441B (en) Communication information processing method, device and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20210924