Touch screen scanning method, device and touch-screen based on displaying contents
Technical field
The present invention relates to touch-screen scanning technique field, relate in particular to a kind of touch screen scanning method, scanister and touch-screen based on screen display content.
Background technology
The application of touch-screen is more and more universal, a large amount of touch-screens that adopt such as mobile phone, panel computer (PAD), laptop computer, desktop computer display screen and vehicle-carrying display screen.The identification of in touch-screen applications, being counted with touch point in position, touch point is by first screen divider being become to several lattice units, again to each lattice unit in sequence or mode scan, whether the position of identifying each lattice unit place is touched, and finally counts that the total process of the lattice unit being touched completes.The scanning of possessive case unit is called to scanning one frame for one time.Every scanning one frame of existing touch-screen control integration circuit, all will scan one time possessive case unit.Therefore, along with the raising of screen resolution, the increase of screen size and the quickening that touch reaction velocity requires, counting and scanning calculated amount of requirement unit interval interscan increases greatly, and this has not only improved complexity and the cost of chip, also consumes more power simultaneously.For example, if screen resolution is brought up to original x% PPI (Points Per Inch, x > 100), screen size increases to original y% (y > 100), reaction velocity adds near original z% (z > 100), and unit interval scanning amount will be increased to original (x%)
2* (y%)
2* (z%), calculated amount obviously increases.
And in fact, be not that on screen, all can there be response in possessive case unit to touching, for a certain display frame, only have screen the top and below two row lattice units (can be but be not limited to button and option thereof, as " File ", " file ", " help ", " help " etc., see figure bend shade lattice unit) and middle " link (URL) " label or other may touch area etc. (vertical line shadow region in Fig. 1) have response to touching, other blank cells are non-event lattice units, also there is no event (response) generation even if touch.Therefore, be invalid to the scanning of these blank cells, cause the waste of power and the reduction of efficiency, have a strong impact on and touch body sense.
Summary of the invention
For the problems referred to above, it is sparse feature that the present invention utilizes the event lattice unit that a frame picture comprises, propose a kind of touch screen scanning method based on displaying contents, periodically carry out full frame scanning and the partial sweep for event lattice unit, effectively improved the efficiency of scanning.
Touch screen scanning method based on displaying contents of the present invention, comprises the steps:
(1) obtain the shown content of current screen by touch-screen driver, read the touch probability of this displaying contents corresponding all event lattice unit and each lattice unit, and under reach touch-screen control integration circuit;
(2) touch-screen control integration circuit obtains up-to-date event lattice unit probability according to the touch probability of the lattice unit of real time record and the event lattice unit probability downloading to, and then screen possessive case unit is carried out to full frame scanning;
(3) be classified as a subset by touching the identical event lattice unit of probability, be divided into into K subset, and the scanning sequence of this subset of scanning is called to the subsequence corresponding with this subset;
(4) calculate subsequence shared positional number in whole scanning sequence position of each subset, formula is: C
i=α * (P
i* L
i) * N*M, wherein, α is the scanning factor, P
ifor the touch probability of this subset, L
ifor the event lattice unit number that this subset comprises, i=1,2 ..., K, N*M is screen lattice unit sum;
(5) by the subsequence of each subset as a whole, be evenly distributed on the D of a scan period
ion individual position, D
i=α * (P
i* L
i) * N*M/L
i, make the subsequence of K subset all take at least one position within a scan period;
(6) repeating step (1)-(5) periodic scan.
The present invention is in scanning process, touch probability and the event lattice unit of the each lattice of touch-screen control integration circuit dynamic statistics screen display content unit, and be uploaded at any time touch-screen driver, the event lattice unit of the touch-screen driver each display frame of statistical study in advance and the probability being touched thereof.Touch probability in touch-screen control integration circuitry stores event lattice units and nearest one hour.(W is positive integer often to carry out W wheel scan, such as but not limited to W=1, W=10, W=100, W=1000, W=10000 etc.), record real-time analysis by touch-screen driver according to displaying contents and browsing in the past, obtain current event lattice unit's probability and under reach touch-screen control integration circuit.The touch probability of the each lattice of touch-screen control integration circuit dynamic statistics unit, with under the event lattice units probability that transmits be added and obtain up-to-date event lattice unit probability, and produce scanning sequence by step (3)-(5).
While often carrying out next round intermittent scanning in step (6), judge whether as required to change scanning factor-alpha, span is 0≤α≤1.The scanning factor is used for changing the scan period, has determined sweep frequency, and the scanning factor is less, and sweep frequency is lower, and more power saving reduces but can cause touching reaction, and the scanning factor is larger, touches reaction faster.α gets 0 o'clock, similar with traditional scan method, and each scanning all scans full frame lattice unit, but scanning frame frequency only has the half of traditional scan method; α gets 1 o'clock, and the lattice of scanning unit quantity is identical with traditional scan method, and with the same power of traditional scan method consumption, but event lattice unit scanned to greatest extent, has the fastest reaction velocity.The scanning factor can first get 0.5 for all application, then, if touch frequent generation, can be increased between 0.5-1.0, and accordingly, different application or moment can adopt the different scanning factor.
A kind of touch-screen scanister, adopts above-mentioned scan method touch screen scanning.
A kind of touch-screen, is provided with above-mentioned touch-screen scanister.
Scanning sequence scans as the cycle taking two adjacent full frames, scans the factor, variable period by change; The subsequence that each scan period comprises full frame scanning subsequence and several and the first probability correlation of event lattice, the large subsequence of event lattice unit's probability can have multiple within a scan period, probability is larger, and corresponding subsequence is more, and is evenly distributed in one-period; First subsequence at least occurs once each event lattice within a scan period.Scan after possessive case unit each, those have the lattice unit (event lattice unit) of response to touching Multiple-Scan, instead of again scan possessive case unit, touch the larger event lattice unit of probability, and the number of times scanning is more, thereby improve specific aim and the efficiency of scanning.In overwhelming majority's demonstration, event lattice unit number is well below total lattice unit number, under the identical condition of body sense, the lattice unit scan method that the present invention is based on displaying contents can reduce scanning amount more than 40%, or at scanning amount, screen resolution with measure-alike in the situation that, can fast reaction speed more than 5 times.If full frame has N lattice unit (N is positive integer), in demonstration at a time, event lattice unit is 10%N, and under body sense same case, scanning amount of the present invention is 1.1N/2N with the ratio of additive method scanning amount, that is, 55% of other scanning amounts, have reduced 45%; Or be at scanning amount under the prerequisite of 2N, the present invention can scan full frame once, then scan event lattice unit 10 times, greatly promote and touch body sense.
The present invention, by changing screen scanning method, only for having the lattice unit of response to scan to touch, has reduced total scanning amount after full frame scanning, has saved scan power, and the scanning times of event lattice unit increases greatly, has obviously promoted the sense of touch body.
Brief description of the drawings
Fig. 1 is certain display frame lattice unit schematic diagram;
Fig. 2 is process flow diagram of the present invention.
Embodiment
As shown in Figure 1, taking a display frame as example, scanning process of the present invention and effect are described, touch-screen is divided into N*M lattice unit (N, M are positive integer), concrete scanning step is as follows:
(1) obtain the shown content of current screen by touch-screen driver, read the touch probability of this displaying contents corresponding all event lattice unit and each lattice unit, and be downloaded in touch-screen control integration circuit;
(2) the touch probability of the each lattice of touch-screen control integration circuit dynamic statistics unit, is added and obtains up-to-date event lattice unit probability with the event lattice unit probability downloading to, and then touch-screen is carried out to full frame scanning, scan N * M possessive case unit;
(3) all event lattice unit is divided into K subset by touching probability, touch probability identical be a subset, I the sub concentrated L that comprises
iindividual touch probability is P
i(i=1,2 ..., K) event lattice unit; The scanning sequence that scans this subset is called the subsequence { Q corresponding with this subset
i.
(4) subsequence shared positional number in N*M scanning sequence position of calculating I subset, formula is: C
i=α * (P
i* L
i) * N*M, wherein, α is the scanning factor, span is 0≤α≤1, P
ifor the touch probability of this subset, L
ithe event lattice unit number comprising for this subset;
(5) by the subsequence { Q of I subset
ias a whole, be evenly distributed on the D of a scan period
ion individual position, D
i=α * (P
i* L
i) * N*M/L
i;
(6) repeating step (5), is all distributed to the subsequence of K subset the relevant position of scan period, makes the subsequence of K subset all take at least one position within a scan period; This process has completed the Multiple-Scan for event lattice unit region.
(7) judge whether to need to change the scanning factor, change as needed, after changing, return to step (1), if do not needed to change, directly return to step (1), periodic scan is carried out in repeating step (1)-(6), all again obtains screen displayed content at every turn, read out corresponding event lattice unit and touch probability according to displaying contents, carry out setting up again the scanning sequence for event lattice unit after full frame scanning.
Event lattice corresponding to each displaying contents unit and to touch probability be to touch probability by touch-screen driver according to touch-screen control integration circuit real time record the each lattice unit that uploads to come out in advance, the lattice unit in nearest one hour of touch-screen control integration circuitry stores touches probability simultaneously.In the time scanning, then by touch-screen driver according to the picture that showing with browse in the past and record real-time analysis, obtain the first probability of current event lattice, under reach in touch-screen control integration circuit, set up scanning sequence for it.
As an example, get N=20, M=10, α=0.5, P
1=20/200, L
1=5, P
2=10/200, L
2=5, P
3=5/200, L
3=10,
The scanning sequence obtaining is as follows:
{{F}{P
1}{P
1}{P
2}{P
1}{P
1}{P
2}{P
1}{P
1}{P
2}{P
3}{P
1}{P
1}{P
2}{P
1}{P
1}{P
2}{P
3}{F}。。。, wherein, { F} represents full frame scanning; { P
1represent that scanning probability is P
1subset, in one-period, obtain ten groups of positions, comprise 50 event lattice units; { P
2represent that scanning probability is P
2subset, in one-period, obtain five groups of positions, comprise 25 event lattice units; { P
3represent that scanning probability is P
3subset, in one-period, obtain two groups of positions, comprise 20 event lattice units.
In upper example, twice of 400 each lattice units of lattice unit of the every scanning of other scan method scanning; 380 lattice units of the every scanning of the present invention, P
1probability lattice unit scanning 11 times, P
2probability lattice unit scanning 6 times, P
3probability lattice unit scanning 3 times.Not only reduced total scanning amount, saved scan power, and the scanning times of event lattice unit increases greatly, obviously promoted the sense of touch body.