1. Field of the Invention
The present invention relates to a method of detecting floating mode of a touch panel and more particularly to a method of detecting floating mode of sensing clusters of a capacitive touch panel generated under the floating mode.
2. Description of the Related Art
The touch concept of a capacitive touch panel is an approach detecting positions touched by users according to capacitance variations changed by static electricity on human body. To effectively respond to the signal of static electricity on human body, a metal housing generally used by a capacitive touch panel is connected to a grounding signal of the capacitive touch panel to constitute an electric ground structure so that users' hands are definitely in contact with the capacitive touch panel.
The widespread tablet personal computers (PC) and smart phones with large screens allow users to touch the touch panels of the electronic equipment with fingers or palms only. However, because of the ungrounded nature, irregular capacitance variations of the touch panels arise from the operation of the ungrounded touch panels or a floating mode of the touch panels.
With reference to
With reference to
Hence, the error rate of identifying touch objects increases if capacitive touch panels are operated under the floating mode.
An objective of the present invention is to provide a method of detecting floating mode of a touch panel capable of correctly determining a sensing cluster generated under the floating mode for the purpose of subsequent compensation and avoiding erroneous determination of the coordinates of a touch object detected under the floating mode.
To achieve the foregoing objective, the method of detecting floating mode of a touch panel has steps of:
reading a sensing cluster and presetting a detection window;
taking each sensing point of the sensing cluster as a center point of the detection window to perform scanning;
after determining that the center point has a negative sensing value qualifying to be generated under a floating mode, further determining a count of the sensing points other than the center point having the sensing values generated under a grounding mode and incrementing an accumulative number by one if the count exceeds a first critical value;
keeping incrementing the accumulative number until each sensing point in the sensing cluster has been taken as the center point of the detection window for scanning; and
determining if the accumulative number exceeds a second critical value, and if positive, further determining that the current sensing cluster is generated under the floating mode.
The present invention employs the detection window to scan a sensing cluster. As the central sensing points of the sensing cluster in the detection window have a negative peak value and other sensing points in the detection window have a normal distribution of the sensing values, the sensing cluster can satisfy the foregoing steps and can be correctly considered as one sensing value generated under the floating mode.
Other objectives, advantages and novel features of the invention will become more apparent from the following detailed description when taken in conjunction with the accompanying drawings.
With reference to
Step S10: Read a sensing cluster 11 having multiple sensing points 111 and preset a detection window. In the present embodiment, the sensing cluster is obtained from a scanned sensing frame. The size of the detection window preferably corresponds to that of a matrix containing corresponding number of capacitance sensing unit and matching the size of a finger. Given a touch panel with capacitance sensing units spaced apart by a gap in a range of 5.3 mm˜4.5 mm as an example, the detection window matches a 3×3 matrix in size.
Step S11: Take each sensing point 111 of the sensing cluster 11 as a center point of the detection window to perform scanning. With reference to
Step 12: After determining that the center point has a negative sensing value qualifying to be generated under the floating mode, further determine a count of other sensing points in the detection window having the sensing values generated under the grounding mode and increment an accumulative number by one if the count exceeds a first critical value. In the present embodiment, the first critical value is not less than 2. The sensing value of any sensing point having no sensing value in the detection window is replaced by a zero.
Step 13: Keep incrementing the accumulative number until all the sensing points in the sensing cluster have been taken as the center point of the detection window for scanning.
Step 14: Determine if the accumulative number is greater than a second critical value, and if positive, further determine that the current sensing cluster is generated under the floating mode. In the present embodiment, the second critical value is not less than 2.
For a sensing cluster 11 generated under the floating mode, only the central sensing points 111 at the center of the sensing cluster 11 have negative sensing values. With reference to
The foregoing detection only focuses on if a single sensing cluster is generated under the floating mode. With reference to
S20: Read a sensing frame having multiple sensing points and preset a detection window. In the present embodiment, the size of the detection window preferably corresponds to that of a matrix containing corresponding number of capacitance sensing unit and matching the size of a finger. Given a touch panel with capacitance sensing units spaced apart by a gap in a range of 5.3 mm˜4.5 mm as an example, the detection window matches a 3×3 matrix in size.
Step S21: Take each sensing point of the sensing frame as a center point of the detection window to perform scanning. With reference to
Step 22: After determining that the center point has a negative sensing value qualifying to be generated under the floating mode, further determine a count of other sensing points in the detection window having the sensing values generated under the grounding mode and increment an accumulative number by one if the count exceeds a first critical value. In the present embodiment, the first critical value is not less than two. The sensing value of any sensing point having no sensing value in the detection window is replaced by a zero.
Step 23: Keep incrementing the accumulative number until all the sensing points in the sensing frame have been taken as the center point of the detection window for scanning.
Step 24: Determine if the accumulative number is greater than a second critical value, and if positive, further determine that the current sensing frame is generated under the floating mode. In the present embodiment, the second critical value is not less than two.
With reference to
In step 12, a first floating margin can be set up for determining if a sensing value is less than the first floating margin. If positive, the sensing value is considered as one sensing value generated under the floating mode. Besides, a second floating margin is set up to be less than the first floating margin for determining if a sensing value falls within the second floating margin and the first floating margin. If positive, the sensing value is considered as one sensing value generated under the floating mode. Similarly, a first grounding margin is set up for determining if a sensing value is greater than the first grounding margin. If positive, the sensing value is considered as one sensing value generated under the grounding mode. Besides, a second grounding margin is set up for determining if a sensing value falls within the first grounding margin and the second grounding margin. If positive, the sensing value is considered as one sensing value generated under the grounding mode. By setting up the first floating margin to be less than a negative noise threshold and the first grounding margin to be greater than a positive noise threshold, erroneous determination result arising from noise interference can be ruled out.
In sum, the present invention can correctly determine if the current sensing cluster or the sensing frame is generated under the floating mode. Subsequent compensation can be performed based on the determination result and helps identify the coordinates of a touch object detected under the floating mode.
Even though numerous characteristics and advantages of the present invention have been set forth in the foregoing description, together with details of the structure and function of the invention, the disclosure is illustrative only. Changes may be made in detail, especially in matters of shape, size, and arrangement of parts within the principles of the invention to the full extent indicated by the broad general meaning of the terms in which the appended claims are expressed.
Number | Date | Country | Kind |
---|---|---|---|
101100581 | Jan 2012 | TW | national |