Touch screen scanning method, device and touch-screen based on display content
Technical field
The present invention relates to touch-screen scanning technique field, more particularly to a kind of touch-screen scanning based on screen display content
Method, scanning means and touch-screen.
Background technology
The application of touch-screen is increasingly popularized, mobile phone, tablet personal computer(PAD), laptop computer, desktop computer display screen and
Vehicle-carrying display screen etc. largely uses touch-screen.In touch-screen applications head is identified by what touch point position and touch point were counted
Several lattice member is first screened into, then to each lattice member in sequence or mode is scanned, identifies each lattice
Whether the position where member is touched, and finally counts the total process completion of the lattice member touched.Possessive case member is swept
Retouch one time and be called one frame of scanning.Existing touch-screen control integrated circuit often scans a frame, and scanning one time is intended to possessive case member.
Therefore, with the raising of screen resolution, the increase of screen size and the quickening for touching reaction speed requirement, it is desirable to the unit interval
The points and scanning amount of calculation of interior scanning are greatly increased, which not only improves the complexity of chip and cost, while also consuming more
Many power.For example, if screen resolution brings up to original x% PPI (Points Per Inch, x>100), shield
Curtain size increases to original y% (y>100), reaction speed is accelerated to arrive original z% (z>100), then the unit interval sweeps
The amount of retouching will be added to original (x%)2*(y%)2* (z%), amount of calculation substantially increases.
And in fact, be not on screen the possessive case member can to touch have response, for a certain display picture, only shield
Curtain the top and the row lattice of bottom two member(Button and its option can be but not limited to, such as " File ", " file ", " help ",
" help " etc., is shown in figure bend shade lattice member)And middle " link(URL)" label or other possible touch areas etc.(Fig. 1
Middle vertical line shadow region)It is to have response to touch, other blank cells are non-event lattice member, even if touch also without event(Ring
Should)Occur.Therefore, the scanning to these blank cells is invalid, causes the waste of power and the reduction of efficiency, serious shadow
Ring and touch body-sensing.
The content of the invention
In view of the above-mentioned problems, the characteristics of event lattice member that the present invention is included using a frame picture is sparse, proposes a kind of
Touch screen scanning method based on display content, periodically carries out full frame scanning and the partial sweep for event lattice member, effectively
Improve the efficiency of scanning.
Touch screen scanning method of the present invention based on display content, comprises the following steps:
(1)As the content shown by touch-screen driver obtains current screen, the institute corresponding to the display content is read
Have event lattice first and each lattice member touch probability, and under reach touch-screen control integrated circuit;
(2)Touch-screen controls integrated circuit general according to the touch probability of the lattice member recorded in real time and the event lattice member downloaded to
Rate obtains newest event lattice member probability, then carries out full frame scanning to screen possessive case member;
(3)Probability identical event lattice member will be touched and be classified as a subset, K subset is divided into, and the subset will be scanned
Scanning sequence be referred to as subsequence corresponding with the subset;
(4)The subsequence of each subset positional number shared in whole scanning sequence position is calculated, formula is:Ci=
α*(Pi*Li)* N*M, wherein, α is the scanning factor, PiFor the touch probability of the subset, LiThe event lattice member included for the subset
Number, i=1,2 ..., K, N*M is screen lattice member sum;
(5)Using the subsequence of each subset as entirety, the D of a scan period is evenly distributed oniOn individual position, Di=α*
(Pi*Li)*N*M/LiSo that the subsequence of K subset takes at least one position within a scan period;
(6)Repeat step(1)-(5)Periodic scan.
The present invention is in scanning process, the touch of each lattice member of touch-screen control integrated circuit dynamic statistics screen display content
Probability and event lattice member, and touch-screen driver is uploaded at any time, the advance statistical analysis of touch-screen driver is each shown
The event lattice member of picture and its probability touched.In touch-screen control integrated circuit storage event lattice are first and nearest one hour
Touch probability.Often carrying out W wheel scans, (W is positive integer, such as, but not limited to W=1, W=10, W=100, W=1000, W=10000
Deng), analysis in real time is recorded according to display content and past browse by touch-screen driver, current event lattice member is obtained general
Rate and under reach touch-screen control integrated circuit.The touch probability of each lattice member of touch-screen control integrated circuit dynamic statistics, with
The event lattice member probability transmitted, which is added, obtains newest event lattice member probability, and by step(3)-(5)Produce scanning sequence.
Step(6)In when often carrying out next round intermittent scanning, judge whether to change scanning factor-alpha, value model as needed
Enclose for 0≤α≤1.The scanning factor is used to change the scan period, determines scan frequency, and the scanning factor is smaller, and scan frequency is got over
It is low, more power saving, but can cause to touch reaction reduction, the scanning factor is bigger, touches reaction faster.When α takes 0, with traditional scanning side
Method is similar, scanning all scanning full frame lattice members, but scanning frame frequency only has the half of convention scanning scheme every time;When α takes 1, scanning
Lattice member quantity is identical with convention scanning scheme, i.e., same power is consumed with convention scanning scheme, but event lattice member is by greatest extent
Scanning, there is most fast reaction speed.The scanning factor can first take 0.5 for all applications, then, frequently occur if touching, can carry
Between up to 0.5-1.0, accordingly, different application or moment can use the different scanning factor.
A kind of touch-screen scanning means, using above-mentioned scan method touch screen scanning.
A kind of touch-screen, provided with above-mentioned touch-screen scanning means.
Scanning sequence is scanned as the cycle with two adjacent full frames, by changing the scanning factor, variable period;Each scanning
Cycle includes full frame scanning subsequence and several subsequences with event lattice member probability correlation, and event lattice member probability is greatly
Subsequence can have multiple within a scan period, and probability is bigger, and corresponding subsequence is more, and is evenly distributed on a cycle
It is interior;Each event lattice member subsequence at least occurs once within a scan period.I.e. after scanning possessive case member every time, repeatedly
Scanning those has the lattice member of response to touch(Event lattice member), rather than scanning possessive case member again, touch the bigger thing of probability
Part lattice member, the number of times scanned is more, so as to improve the specific aim and efficiency of scanning.In being shown due to the overwhelming majority, event lattice
First number is well below total lattice member number, and in body-sensing under the same conditions, the lattice member scan method of the invention based on display content can
To reduce scanning amount more than 40%, or in the case of scanning amount, screen resolution and size identical, reaction speed can be accelerated
More than 5 times of degree.If full frame has N number of lattice member(N is positive integer), in display at a time, event lattice member is 10%N,
Under body-sensing same case, the ratio between scanning amount of the invention and other method scanning amount are 1.1N/2N, i.e. other scanning amounts
55%, reduce 45%;Or on the premise of scanning amount is 2N, the present invention can scan full frame once, then scan event lattice
Member 10 times, greatly promotes touch body-sensing.
The present invention is carried out by changing screen scanning method after full frame scanning just for the lattice member for having response to touch
Scanning, reduces total scanning amount, saves scan power, and the scanning times of event lattice member are greatly increased, hence it is evident that improve
Touch body-sensing.
Brief description of the drawings
Fig. 1 is certain display picture lattice member schematic diagram;
Fig. 2 is the flow chart of the present invention.
Embodiment
As shown in figure 1, by taking a display picture as an example, illustrating the scanning process and effect of the present invention, touch-screen being divided into
N*M lattice member(N, M are positive integer), specific scanning step is as follows:
(1)As the content shown by touch-screen driver obtains current screen, the institute corresponding to the display content is read
There are event lattice first and the first touch probability of each lattice, and be downloaded in touch-screen control integrated circuit;
(2)The touch probability of each lattice member of touch-screen control integrated circuit dynamic statistics, with the event lattice member probability downloaded to
Addition obtains newest event lattice member probability, and full frame scanning, scanning N*M possessive case members are then carried out to touch-screen;
(3)All event lattice member is divided into K subset by probability is touched, it is a subset, i-th to touch probability identical
L is included in subsetiIndividual touch probability is Pi(I=1,2 ..., K)Event lattice member;Scan the subset scanning sequence be referred to as with
Corresponding subsequence { the Q of the subseti}。
(4)The subsequence of I subsets positional number shared in N*M scanning sequence position is calculated, formula is:Ci=
α*(Pi*Li)* N*M, wherein, α is the scanning factor, and span is 0≤α≤1, PiFor the touch probability of the subset, LiFor this
The event lattice member number that subset is included;
(5)By the subsequence { Q of I subsetsiAs overall, it is evenly distributed on the D of a scan periodiOn individual position, Di
=α*(Pi*Li)*N*M/Li;
(6)Repeat step(5), the subsequence of K subset is distributed to the relevant position of scan period so that K son
The subsequence of collection takes at least one position within a scan period;This process is completed for event lattice member region
Multiple-Scan.
(7)Judge whether that the scanning factor need to be changed, such as need to change, then return to step after changing(1), such as vary without, then
Direct return to step(1), repeat step(1)-(6)Periodic scan is carried out, screen displayed content, root are reacquired every time
Corresponding event lattice member is read out according to display content and its probability is touched, and resettled after full frame scanning for event lattice member
Scanning sequence.
Each the corresponding event lattice of display content are first and touch probability is according to touch-screen control by touch-screen driver
Each lattice member that integrated circuit is recorded and uploaded in real time touches what probability came out in advance, while touch-screen control integrated circuit is deposited
The lattice member stored up in nearest one hour touches probability.When being scanned, then by touch-screen driver according to the picture shown
Face and browse in the past record in real time analysis, obtain current event lattice member probability, under reach touch-screen control integrated circuit in, supply
It sets up scanning sequence use.
As an example, N=20, M=10, α=0.5, P is taken1=20/200,L1=5,P2=10/200,L2=5,P3=5/200,
L3=10,
The scanning sequence then obtained is as follows:
{{F}{P1}{P1}{P2}{P1}{P1}{P2}{P1}{P1}{P2}{P3}{P1}{P1}{P2}{P1}{P1}{P2}{P3}
{F}..., wherein, { F } represents full frame scanning;{P1Represent scanning probability for P1Subset, obtained in a cycle ten groups position
Put, include 50 event lattice members;{P2Represent scanning probability for P2Subset, five groups of positions are obtained in a cycle, 25 are included
Individual event lattice member;{P3Represent scanning probability for P3Subset, two groups of positions are obtained in a cycle, 20 event lattice are included
Member.
In upper example, other scan methods often scan each lattice member scanning of 400 lattice members twice;The present invention is often scanned
380 lattice members, P1Probability lattice member scanning 11 times, P2Probability lattice member scanning 6 times, P3Probability lattice member scanning 3 times.Not only reduce total
Scanning amount, saves scan power, and the scanning times of event lattice member are greatly increased, hence it is evident that improve touch body-sensing.