Detailed Description
Reference will now be made in detail to embodiments of the present invention, examples of which are illustrated in the accompanying drawings, wherein like or similar reference numerals refer to the same or similar elements or elements having the same or similar function throughout. The embodiments described below with reference to the drawings are illustrative only and should not be construed as limiting the invention.
The following disclosure provides many different embodiments, or examples, for implementing different features of the invention. To simplify the disclosure of the present invention, the components and arrangements of specific examples are described below. Of course, they are merely examples and are not intended to limit the present invention. Furthermore, the present invention may repeat reference numerals and/or letters in the various examples. This repetition is for the purpose of simplicity and clarity and does not in itself dictate a relationship between the various embodiments and/or configurations discussed. In addition, the present invention provides examples of various specific processes and materials, but one of ordinary skill in the art may recognize the applicability of other processes and/or the use of other materials. In addition, the structure of a first feature described below as "on" a second feature may include embodiments in which the first and second features are formed in direct contact, and may also include embodiments in which additional features are formed between the first and second features, such that the first and second features may not be in direct contact.
In the description of the present invention, it should be noted that, unless otherwise specified and limited, the terms "mounted," "connected," and "connected" are to be construed broadly, and may be, for example, mechanically or electrically connected, or interconnected between two elements, directly or indirectly through an intermediate medium, and the specific meanings of the terms as described above will be understood by those skilled in the art according to the specific situation.
These and other aspects of embodiments of the invention will be apparent with reference to the following description and attached drawings. In the description and drawings, particular embodiments of the invention have been disclosed in detail as being indicative of some of the ways in which the principles of the embodiments of the invention may be practiced, but it is understood that the scope of the embodiments of the invention is not limited correspondingly. On the contrary, the embodiments of the invention include all changes, modifications and equivalents coming within the spirit and terms of the claims appended hereto.
A touch point positioning method for a touch screen according to an embodiment of the first aspect of the present invention is described below with reference to fig. 1 to 3.
Referring to fig. 1 and 2, a structure of a touch screen and a capacitance detected in a touch point positioning method for a touch screen according to an embodiment of the present invention are briefly described, and referring to fig. 1, the touch screen according to the embodiment of the present invention is composed of row sensors X1 to Xn and column sensors Y1 to Yn. FIG. 2 shows a capacitor structure formed by a row sensor X1 and a column sensor Y1, wherein C1 is the self-capacitance of the row sensor sensing channel and C2 is the self-capacitance of the column sensor sensing channel. C3 is the mutual capacitance formed by the row sensor X1 and the column sensor Y1, i.e. the capacitance formed by the self-capacitance sensor and the sensor perpendicular thereto. The row sensor and the column sensor are connected with the capacitance detection module 101, and data are transmitted to the upper computer 102 through the capacitance detection module 101 for positioning processing. The touch point positioning method of the embodiment of the invention detects the changes of the self-capacitances C1 and C2 and the mutual capacitance C3 to perform corresponding judgment, and obtains the position of the touch point.
As shown in fig. 3, the method for positioning a touch point of a touch screen according to an embodiment of the present invention includes the following steps:
and S1, performing self-capacitance detection and mutual capacitance detection on the sensors in the touch screen at the same time to obtain corresponding self-capacitance positioning results and mutual capacitance detection results, wherein the sensors comprise row sensors and column sensors.
In an embodiment of the present invention, self-capacitance detection and mutual capacitance detection are performed on a touch screen at the same time, and in the self-capacitance detection, when a sensing channel formed by a sensor is detected, charging and discharging are required.
In an embodiment of the present invention, the self-capacitance detection of the sensor in the touch screen specifically includes: and when excitation is applied to each line sensor in the touch screen, detecting the sensing value of the line sensor, and if the sensing value of the line sensor is greater than a preset value, the line sensor correspondingly acts as a self-capacitance positioning line. Then, when excitation is applied to each column sensor in the touch screen, the sensing value of the column sensor is detected, and if the sensing value of the column sensor is larger than a preset value, the column corresponding to the column sensor is a self-capacitance positioning column. The positioning result of the self-capacitance is obtained by the positioning row and the positioning column of the self-capacitance. For example, when the touch screen is excited by each row sensor X1-Xn, the induction values of the row sensors X1-Xn are detected, and if the induction values of the row sensors X5, X6 and X9 are larger than a preset value, the rows are positioned by the self-capacitance of the rows corresponding to the row sensors X5, X6 and X9. When excitation is applied to each column sensor Y1-Yn in the touch screen, sensing values of the column sensors Y1-Yn are detected, if the sensing values of the column sensors Y4, Y7 and Y9 are larger than a preset value, columns corresponding to the column sensors Y4, Y7 and Y9 are self-capacitance positioning columns, and coordinates of 9 points where rows of the row sensors X5, X6 and X9 intersect columns of the column sensors Y4, Y7 and Y9 are self-capacitance positioning results.
In the embodiment of the present invention, the square wave used in the charging and discharging process of the self-capacitance detection provides an excitation for the mutual capacitance detection, that is, the mutual capacitance detection is performed on the inductor in the touch screen while the self-capacitance detection is performed on the inductor in the touch screen, and the mutual capacitance detection specifically includes: when excitation is applied to each row sensor in the touch screen, the sensing values of all the column sensors are detected, and if the sensing value of each column sensor is larger than a preset value, the intersection point of each column sensor and the corresponding row sensor applying the excitation is a capacitance positioning point. Or when excitation is applied to each column sensor in the touch screen, the sensing values of all the row sensors are detected, and if the sensing value of the row sensor is greater than a preset value, the intersection point of the row sensor and the corresponding column sensor applying the excitation is a mutual capacitance positioning point. For example, when excitation is applied to a row sensor X1 in the touch screen, sensing values of column sensors Y1-Yn are detected, if the sensing values of sensors Y1, Y3, Y5 and Y8 are greater than a preset value, intersection points of the row sensor X1 and the column sensors Y1, Y3, Y5 and Y8 are mutual capacitance positioning points, and when excitation is sequentially applied to the row sensors X2-Xn in the touch screen, the sensing values of the column sensors Y1-Yn are detected, and intersection points of the column sensors in which the sensing values are greater than the preset value and the corresponding excitation-applied row sensors are determined as capacitance positioning points. Or when excitation is applied to the column sensor Y1 in the touch screen, detecting the induction values of all the row sensors X1-Xn, if the induction values of the row sensors X3, X5, X6 and X8 are greater than a preset value, detecting the induction values of the row sensors X3, X5, X6 and X8 and the corresponding column sensor Y1 applied with the excitation as mutual capacitance positioning points, and sequentially, when the excitation is respectively applied to the column sensors Y2-Yn in the touch screen, detecting the induction values of the row sensors X1-Xn and determining the intersection points of the row sensors with the induction values greater than the preset value and the corresponding column sensors applied with the excitation as the mutual capacitance positioning points. In this embodiment, the mutual capacitance detection data may be presented in a matrix form, and the obtained multiple mutual capacitance positioning points are detection results of the mutual capacitance detection, that is, the mutual capacitance detection results are matrix data.
And S2, obtaining a mutual capacitance positioning result according to the mutual capacitance detection result.
And calculating to obtain the positioning coordinates of the mutual capacitance according to the mutual capacitance positioning point obtained in the step S1. Specifically, in an embodiment of the present invention, the mutual capacitance detection result data obtained in step S1 is matrix data, the matrix data is subtracted by the baseline of the corresponding touch screen, that is, the capacitance value of the sensor when no finger touches the corresponding position is subtracted, and the obtained difference table is shown in table 1:
TABLE 1
| |
Y1 |
Y2 |
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 |
0 |
0 |
0 |
0 |
0 |
0 |
0 |
If the data in the difference exceeds the threshold, it is determined that the finger touches, for example, if the threshold is 500, and the difference at the intersection of the row sensors X11 and X12 and the column sensor Y7 in table 1 is "1464" or "1120", it is the finger touch point. And obtaining corresponding coordinates of each finger by adopting a matrix coordinate algorithm, namely calculating to obtain a mutual capacitance positioning result. Wherein the matrix coordinate algorithm is not described in detail for the known technology.
And S3, determining the position of the touch point according to the self-capacitance positioning result and the mutual-capacitance positioning result.
The row value or the column value of the positioning coordinate of the mutual capacitance obtained in step S2 is compared with the self-capacitance positioning row or the self-capacitance positioning column obtained in step S1, and if the same, but it should be noted that because of a detection error or a calculated error, if the row value or the column value of the positioning coordinate of the mutual capacitance is substantially the same as the self-capacitance positioning row or the self-capacitance positioning column, the positioning coordinate of the mutual capacitance is the position of the touch point.
According to the touch point positioning method for the touch screen, provided by the embodiment of the invention, the self-capacitance detection and the mutual capacitance detection are simultaneously carried out on the touch screen, so that the interference of water and a charger can be avoided, and the waterproof effect of the mutual capacitance screen is obviously improved. In addition, the positioning coordinate for determining the mutual capacitance is the position of the touch point, and multi-point coordinates can be supported. In addition, in production, the frequency of the charger does not need to be adjusted, the production efficiency is obviously improved, the application range is expanded, and the production cost is correspondingly reduced.
A touch point positioning device for a touch screen according to an embodiment of the second aspect of the present invention is described below with reference to the accompanying drawings.
As shown in fig. 4, the touch point positioning apparatus for a touch screen according to an embodiment of the present invention includes: a first detection module 401, a second detection module 402, a calculation module 403, and a location module 404. The first detection module 401 and the second detection module 402 detect at the same time, and the first detection module 401 is configured to perform self-capacitance detection on an inductor in the touch screen to obtain a self-capacitance positioning result. The second detecting module 402 is configured to perform mutual capacitance detection on sensors in the touch screen to obtain a mutual capacitance detection result, where the sensors include row sensors and column sensors. As shown in fig. 4, one end of each of the first detection module 401 and the second detection module 402 is connected to the circuit model of the capacitive screen. The calculating module 403 is configured to obtain a mutual capacitance positioning result according to the mutual capacitance detection result. The positioning module 404 is configured to determine a position of the touch point according to the self-capacitance positioning result and the mutual-capacitance positioning result. It should be noted that the first detection module 401 and the second detection module 402 correspond to the aforementioned capacitance detection module 101, that is, the capacitance detection module 101 may include the first detection module 401 and the second detection module 402. In addition, the aforementioned upper computer 102 may be a computing module 403 and a positioning module 404.
Further, as shown in fig. 5, the first detection module 401 includes: a first excitation unit 501, a row detection unit 502 and a column detection unit 503. The first excitation unit 501 is configured to apply excitation to all row sensors or column sensors in the touch screen, respectively. The row detection unit 502 is configured to detect a sensing value of a row sensor when the first stimulation unit 501 applies a stimulation to each row sensor in the touch screen, and when the sensing value of the row sensor is greater than a preset value, a row is located by a row self-capacitance corresponding to the row sensor. The column detection unit 503 is configured to detect a sensing value of each column sensor when the first excitation unit 501 applies an excitation to the column sensor in the touch screen, and when the sensing value of the column sensor is greater than a preset value, a column corresponding to the column sensor is a self-capacitance positioning column.
In an embodiment of the present invention, the first detection module 401 performs self-capacitance detection on a sensor in the touch screen and obtains a self-capacitance positioning result, and the first excitation unit 501 provides excitation for the second detection module 402 during mutual capacitance detection. Specifically, when the first excitation unit 501 applies an excitation to each line sensor in the touch screen, the line detection unit 502 detects the sensing value of the line sensor, and if the sensing value of the line sensor is greater than a preset value, the line sensor corresponding to the line sensor locates a line by self capacitance. Then, when the first excitation unit 501 applies an excitation to each column sensor in the touch screen, the column detection unit 503 detects a sensing value of the column sensor, and if the sensing value of the column sensor is greater than a preset value, a column corresponding to the column sensor is a self-capacitance positioning column. The first detection module 401 obtains the positioning result of the self capacitance from the positioning row and the positioning column of the self capacitance. For example, when the first excitation unit 501 applies an excitation to each of the row sensors X1-Xn in the touch screen, the row detection unit 502 detects the sensing values of the row sensors X1-Xn, and if the sensing values of the row sensors X5, X6, X9 are greater than a preset value, the row sensors X5, X6, X9 are self-capacitance positioning rows. When the first excitation unit 501 applies excitation to each column sensor Y1-Yn in the touch screen, the column detection unit 503 detects the sensing values of the column sensors Y1-Yn, and if the sensing values of the column sensors Y4, Y7 and Y9 are greater than a preset value and the columns corresponding to the column sensors Y4, Y7 and Y9 are self-capacitance positioning columns, the first detection module 401 detects the coordinates of 9 points where the rows of the row sensors X5, X6 and X9 and the columns of the column sensors Y4, Y7 and Y9 intersect as the positioning result of self-capacitance.
In another embodiment of the present invention, the first detection module 401 and the second detection module 402 perform detection simultaneously, and the second detection module 402 is further configured to detect sensing values of all column sensors when the first excitation unit 501 applies an excitation to each row sensor in the touch screen, and when the sensing value of a column sensor is greater than a preset value, an intersection point of the column sensor and the corresponding row sensor applying the excitation is a mutual capacitance positioning point. Or, when the first excitation unit 501 applies excitation to each column sensor in the touch screen, the induction values of all the row sensors are detected, and when the induction value of a row sensor is greater than a preset value, the intersection point of the row sensor and the corresponding column sensor applying excitation is a mutual capacitance positioning point. For example, when the first excitation unit 501 applies excitation to the row sensor X1 in the touch screen, the second detection module 402 detects the sensing values of the column sensors Y1-Yn, if the sensing values of the sensors Y1, Y3, Y5 and Y8 are greater than a preset value, the intersection points of the row sensor X1 and the column sensors Y1, Y3, Y5 and Y8 are mutual capacitance anchor points, and when the first excitation unit 501 applies excitation to the row sensors X2-Xn in the touch screen, the second detection module 402 detects the sensing values of the column sensors Y1-Yn and determines the intersection points of the column sensors with sensing values greater than the preset value and the corresponding row sensors applying excitation as mutual capacitance anchor points. Or, when the first excitation unit 501 applies excitation to the column sensors Y1 in the touch screen, the second detection module 402 detects the sensing values of all the row sensors X1-Xn, if the sensing values of the row sensors X3, X5, X6 and X8 are greater than a preset value, the intersections of the row sensors X3, X5, X6 and X8 and the corresponding column sensors Y1 applying excitation are mutual capacitance anchor points, and sequentially, when the first excitation unit 501 applies excitation to the column sensors Y2-Yn in the touch screen respectively, the second detection module 402 detects the sensing values of the row sensors X1-Xn, and determines the intersections of the row sensors having sensing values greater than the preset value and the corresponding column sensors applying excitation as mutual capacitance anchor points.
In an embodiment of the present invention, after the second detecting module 402 detects and obtains a mutual capacitance detection result of the touch screen, that is, determines a plurality of mutual capacitance positioning points, the calculating module 403 calculates and obtains a positioning coordinate of the mutual capacitance according to the mutual capacitance positioning points, that is, obtains a positioning result of the mutual capacitance.
In an embodiment of the invention, after the first detecting module 401 obtains the self-capacitance positioning result and the calculating module 403 calculates the obtained mutual capacitance positioning result, the positioning module 404 compares the row value or the column value of the positioning coordinate of the mutual capacitance with the self-capacitance positioning row or the self-capacitance positioning column, and when the values are the same, it should be noted that, because there is a detection error or a calculated error, if the row value or the column value of the positioning coordinate of the mutual capacitance is substantially the same as the self-capacitance positioning row or the self-capacitance positioning column, the positioning coordinate of the mutual capacitance is determined as the position of the touch point.
In summary, according to the touch point positioning device for the touch screen in the embodiment of the invention, the first detection module and the second detection module simultaneously detect the self-capacitance and the mutual capacitance of the sensor, and obtain the self-capacitance positioning result and the mutual capacitance positioning result, so that the interference of water and the charger can be avoided, and the waterproof effect of the mutual capacitance screen can be remarkably improved. The positioning module can accurately determine the position of the touch point according to the self-capacitance positioning result and the mutual-capacitance positioning result and support multi-point coordinates. In addition, the production cost is reduced, and the production efficiency is improved.
Any process or method descriptions in flow charts or otherwise described herein may be understood as representing modules, segments, or portions of code which include one or more executable instructions for implementing specific logical functions or steps of the process, and alternate implementations are included within the scope of the preferred embodiment of the present invention in which functions may be executed out of order from that shown or discussed, including substantially concurrently or in reverse order, depending on the functionality involved, as would be understood by those reasonably skilled in the art of the present invention.
The logic and/or steps represented in the flowcharts or otherwise described herein, e.g., an ordered listing of executable instructions that can be considered to implement logical functions, can be embodied in any computer-readable medium for use by or in connection with an instruction execution system, apparatus, or device, such as a computer-based system, processor-containing system, or other system that can fetch the instructions from the instruction execution system, apparatus, or device and execute the instructions. For the purposes of this description, a "computer-readable medium" can be any means that can contain, store, communicate, propagate, or transport the program for use by or in connection with the instruction execution system, apparatus, or device. More specific examples (a non-exhaustive list) of the computer-readable medium would include the following: an electrical connection (electronic device) having one or more wires, a portable computer diskette (magnetic device), a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber device, and a portable compact disc read-only memory (CDROM). Additionally, the computer-readable medium could even be paper or another suitable medium upon which the program is printed, as the program can be electronically captured, via for instance optical scanning of the paper or other medium, then compiled, interpreted or otherwise processed in a suitable manner if necessary, and then stored in a computer memory.
It should be understood that portions of the present invention may be implemented in hardware, software, firmware, or a combination thereof. In the above embodiments, the various steps or methods may be implemented in software or firmware stored in memory and executed by a suitable instruction execution system. For example, if implemented in hardware, as in another embodiment, any one or combination of the following techniques, which are known in the art, may be used: a discrete logic circuit having a logic gate circuit for implementing a logic function on a data signal, an application specific integrated circuit having an appropriate combinational logic gate circuit, a Programmable Gate Array (PGA), a Field Programmable Gate Array (FPGA), or the like.
It will be understood by those skilled in the art that all or part of the steps carried by the method for implementing the above embodiments may be implemented by hardware related to instructions of a program, which may be stored in a computer readable storage medium, and when the program is executed, the program includes one or a combination of the steps of the method embodiments.
In addition, functional units in the embodiments of the present invention may be integrated into one processing module, or each unit may exist alone physically, or two or more units are integrated into one module. The integrated module can be realized in a hardware mode, and can also be realized in a software functional module mode. The integrated module, if implemented in the form of a software functional module and sold or used as a stand-alone product, may also be stored in a computer readable storage medium.
The storage medium mentioned above may be a read-only memory, a magnetic or optical disk, etc.
In the description herein, references to the description of the term "one embodiment," "some embodiments," "an example," "a specific example," or "some examples," etc., mean that a particular feature, structure, material, or characteristic described in connection with the embodiment or example is included in at least one embodiment or example of the invention. In this specification, the schematic representations of the terms used above do not necessarily refer to the same embodiment or example. Furthermore, the particular features, structures, materials, or characteristics described may be combined in any suitable manner in any one or more embodiments or examples.
Although embodiments of the present invention have been shown and described, it will be appreciated by those skilled in the art that changes, modifications, substitutions and alterations can be made in these embodiments without departing from the principles and spirit of the invention, the scope of which is defined in the appended claims and their equivalents.