Summary of the invention
The object of the present invention is to provide a kind of method of fast detecting touch screen performance, and make the accuracy of testing result be able to promote.
For solving the problems of the technologies described above, the present invention adopts following technical scheme to be achieved:
A kind of detection method of touch screen, when touch-screen was detected, the diagonal point touched slip in the touch-screen upper edge, and received the coordinate figure of touch-screen feedback, if detected whole X axles and Y axis values, judged that then touch-screen is normal.
Wherein, to dissimilar touch-screens, can adopt different modes to form described diagonal line sliding trace, promptly
If described touch-screen is resistive touch screen or self-capacitance formula touch-screen, then can begin to slide into relative angle from an angle of touch-screen and finish along diagonal, can guarantee that so just all X axial coordinates and Y axial coordinate are all traversed.
If described touch-screen is the mutual capacitance type touch-screen; Then can begin along the diagonal slide in opposition from two relative angles of touch-screen; Finish up to contact, can guarantee that all X axial coordinates and Y axial coordinate are all traversed equally like this, and efficient is higher.
Certainly, for the mutual capacitance type touch-screen, also can adopt to begin from an angle of touch-screen to slide into all induction points that mode that relative angle finishes travels through X axle and Y axle along diagonal.
Further, after arriving the detection time of setting,, then judge the touch-screen fault if do not receive whole X axles and Y axis values yet.
Preferably, be preferably set to for 10 seconds said detection time.
Further again, when getting into the touch-screen detecting pattern and detecting first touch point, system picks up counting; In case detect whole X axles and Y axis values, then withdraw from the touch-screen detecting pattern immediately, and show testing result; Detection of end process as early as possible improves detection efficiency thus.
Further again, before touch-screen is detected, at first touch-screen and display screen are assembled on the electronic product; Start electronic product start operation then; Utilize the CPU in the electronic product to receive the coordinate figure of touch-screen output, and then generate testing result, export display screen to and show.Adopt this electronic product self that utilizes to carry out the design that touch-screen detects, after no matter before electronic product dispatches from the factory, still dispatching from the factory, can both carry out performance test to touch-screen easily.
Further, in said electronic product, factory mode is set, and sets the key that gets into factory mode; After selecting factory mode and importing correct key, show the option that gets into the touch-screen detecting pattern, and after choosing this option, get into the touch-screen testing process.Adopt this design can reach the purpose of design that only allows the tradesman that touch-screen is carried out performance test, promptly this function shields domestic consumer.
Based on above-mentioned detection method of touch screen, the present invention also provides a kind of electronic product that adopts this detection method design, comprises touch-screen, display screen and CPU; Behind electronic product entering touch-screen detecting pattern, what CPU startup touch-screen and wait reception touch-screen fed back touches all coordinate figures that sliding process generates along the diagonal point; If CPU has detected the numerical value of all X axles and Y axle in the coordinate figure that receives, then drive the normal testing result of display screen output touch-screen; If CPU does not receive whole X axles and Y axis values yet after arriving the detection time of setting, then drive the testing result of display screen output touch-screen fault, and withdraw from the touch-screen detecting pattern.
Compared with prior art, advantage of the present invention and good effect are: the present invention adopts the operation of simple diagonal line wiping, and through detecting the method that whether has traveled through the numerical value of all X axles and Y axle on the touch-screen, judges whether each induction zone of touch-screen is normal.It is simple to operate that this detection method of touch screen is compared traditional scheme, and test speed is fast, and the accuracy rate of testing result is high.This method need to be applied on each electronic product of assembling touch-screen, can when significantly promoting the production test efficient of electronic product, to reduce the failure rate of the product that dispatches from the factory.
After reading the detailed description of embodiment of the present invention in conjunction with the accompanying drawings, other characteristics of the present invention and advantage will become clearer.
Embodiment
Describe in detail below in conjunction with the accompanying drawing specific embodiments of the invention.
Along with the development of touch technology, at present on the market touch-screen generally is divided into two kinds of resistive touch screen and capacitive touch screens.Wherein, resistive touch screen is divided into four-wire type and two kinds of forms of five-line again; Capacitive touch screen is divided into two types of self-capacitance formula touch-screen and mutual capacitance type touch-screens again.
Be example at first below, the principle of work of resistive touch screen is briefly introduced with the four-wire type resistive touch screen.
Touching display screen is with the surface of touch-screen attached to display screen, is used with display screen.After being converted into digital signal through the analog electrical signal that touch to produce, calculate the coordinate of touch point, thereby obtain operator's intention and respond by processor.At present, the four-wire type resistive touch screen uses more in practical application, and this touch-screen is made up of 4 layers of hyaline layer: the bottom is a basic unit, is processed by glass or organic glass usually; Be plastic layer topmost, through cure process, smooth scratch resistant; Between up and down two-layer is two metal conducting layers, and referring to shown in Figure 1, these two metal conducting layers are insulated by tiny transparent isolating points.When the finger touch screen, two conductive layers are in the contact of place, touch point.
Two metal conducting layers of touch-screen are used for the coordinate of measured X axle and Y direction respectively, and wherein one deck (X layer) respectively is laid with a vertical busses in the left and right edges of screen, is designated as X+, X-, is used for the measurement of X axial coordinate, and is as shown in Figure 1; One deck (Y layer) lower limb on screen respectively is laid with a horizontal bus in addition, is designated as Y+, Y-, is used for the measurement of Y axial coordinate, and this has just constituted four lead-in wires of four-wire type resistive touch screen.When on pair of lead wires, applying voltage, on this conductive layer, will form evenly continuous voltage and distribute.If need on X-direction, measure, then can left side bus X-be biased to 0V, right side bus X+ is biased to reference voltage VREF, and between Y+, two buses of Y-, does not apply voltage.Thus one, in the parallel voltage field of X, the magnitude of voltage at touch point P place can read out from Y+ or Y-lead-in wire, and is as shown in Figure 2.In like manner, if need on Y direction, measure, then can top bus Y-be biased to 0V, below bus Y+ is biased to reference voltage VREF, and between X+, two buses of X-, does not apply voltage.Thus, in the parallel voltage field of Y, the magnitude of voltage at touch point P place just can read out from X+ or X-lead-in wire, and is as shown in Figure 3.Through reading two above-mentioned magnitudes of voltage, and carry out the ADC conversion, can obtain the coordinate figure of X-direction and the Y direction of touch point P.
Self-capacitance formula touch-screen is a kind of capacitive touch screen of not supporting multi-point touch; Its principle of work is: be made into laterally and electrod-array longitudinally with a kind of transparent conductive material ITO at glass surface; These laterally constitute electric capacity with ground respectively with electrode longitudinally; This electric capacity is exactly usually said self-capacitance, just electrode electric capacity over the ground.When finger touch arrived capacitance plate, the electric capacity of finger can be added to and shield on the electric capacity of body, and the electric capacity of screen body is increased.When touch detecting, the self-capacitance screen detects respectively laterally and electrod-array longitudinally successively, based on the capacitance variations before and after touching, determines lateral coordinates and along slope coordinate respectively, is combined into the touch coordinate on plane then.The scan mode of self-capacitance is equivalent to project to X axle and Y direction to the touch point on the touch-screen respectively, calculates coordinate at X axle and Y direction respectively then, is combined into the coordinate of touch point at last.If single-point touches, then the projection in X axle and Y direction all is unique, and the coordinate that is combined into also is unique; If on touch-screen, have 2 touch and these 2 then two projections are arranged respectively not in same directions X or same Y direction at X axle and Y direction, capable of being combinedly go out 4 coordinates.Obviously, it is real having only two coordinates, and two other coordinate is false, promptly is commonly called as to be " terrible point ".Therefore, self-capacitance formula touch-screen can't be realized real multiple point touching.The mutual capacitance type touch-screen then is a kind of capacitive touch screen that can support multi-point touch; Its principle of work also is to use ITO to be made into transverse electrode and longitudinal electrode at glass surface; It is with the difference of self-capacitance formula touch-screen: the place that two arrays of electrodes intersects promptly forms electric capacity, that is to say that this two arrays of electrodes has constituted the two poles of the earth of electric capacity respectively.When finger touches on capacitance plate, will have influence on the coupling between near two electrodes in touch point, thereby change the electric capacity between these two electrodes.
When detecting the mutual capacitance size, horizontal electrode sends pumping signal successively, and all electrodes receive signal simultaneously longitudinally, can obtain the capacitance size of all horizontal and vertical electrode joints like this, i.e. the capacitance size of the two dimensional surface of whole touch screen.According to touch screen two-dimensional capacitance change data, can calculate the coordinate of each touch point.Therefore,, also can calculate the true coordinate of each touch point, realize support multi-point touch even a plurality of touch points are arranged on the capacitance plate.
The present invention combines the operating characteristic of all kinds touch-screen, has proposed a kind of design proposal that goes for all kinds touch-screen is carried out Performance Detection, when guaranteeing the testing result accuracy, has significantly promoted testing efficiency.
Be example with the mobile phone products that touch-screen and display screen are installed below, be discussed in more detail the specific design process of said detection method of touch screen by a concrete embodiment.
Embodiment one; The detection method of touch screen of present embodiment does not detect and causes the inaccurate problem of testing result for fear of some induction region owing to touch-screen occurring; Be employed on the touch-screen and draw cornerwise mode and make thus obtained induction point coordinate can travel through all numerical value of X axle and Y axle; And then can realize complete detection with the Y axial coordinate to whole induction regions on the touch-screen through detecting the X axle; And obtain testing result accurately, have significant advantages such as simple to operate, testing efficiency height.
Below in conjunction with process flow diagram shown in Figure 4, the concrete design cycle of the detection method of touch screen that present embodiment proposed is carried out detailed elaboration.
S401, entering touch-screen detecting pattern.
For the detection of touch-screen can be before mobile phone dispatches from the factory through mobile phone is installed on the test fixture, and then utilization and the external computing machine of test fixture are accomplished the collection of touch track coordinate and are generated the task of testing result.Certainly, can both detect its touch-screen easily before dispatching from the factory He after dispatching from the factory in order to realize mobile phone, present embodiment preferably utilizes mobile phone self to accomplish the detection task of touch-screen.That is, before touch-screen is detected, at first touch-screen and display screen are assembled on the mobile phone main body, utilize the CPU on the cell phone mainboard to receive touch-screen feedback touch point coordinate then, and after generating testing result, drive display screen and show testing result.
When adopting a kind of design proposal in back, for this function is shielded domestic consumer, promptly do not allow domestic consumer to use this function, the option that present embodiment preferably will " get into the touch-screen detecting pattern " is arranged in the factory mode.When mobile phone is detected, select to get into factory mode, system ejects the dialog box that requires the input key, and and if only if after the technician inputed correct password, and system gets into factory mode, shows the option of " getting into the touch-screen detecting pattern ".Select this option, get into the touch-screen detecting pattern.
S402, judge whether touch point input is arranged on the touch-screen,, then carry out subsequent step if having; Otherwise the touch-screen input that repeats this step detects step, waits for technician's input operation.
In the present embodiment, can design system receive first touch point coordinate time that touch-screen feeds back, control system gets into interrupts, and carries out follow-up touch screen performance testing process.
S403, the timing of startup timer.
In the present embodiment, said timer can adopt since 0 forward timing, till timing arrive to be set detection time T; Perhaps adopt from T detection time that sets to begin countdown, realize that up to being reduced to zero dual mode design present embodiment does not specifically limit this.
Whole coordinate figures of S404, the output of reception touch-screen, and judge whether received coordinate figure has traveled through whole X axles and Y axis values; If X axle and Y axial coordinate all travel through, judge that then touch-screen is normal, jump to step S407, otherwise execution in step S405.
In this step, need the technician to accomplish the operation of touching the slip touch-screen in the T along the diagonal point in the detection time of setting, promptly form the sliding trace shown in solid line among Fig. 5 or dotted line.For dissimilar touch-screens, the technician can adopt the different operation mode on touch-screen, to form described sliding trace.Illustrate as follows:
If what assemble on the mobile phone is resistive touch screen, then the technician can use writing pencil or point from an angle A of touch-screen and begin to slide into its relative angle B along diagonal, forms the diagonal line track.
If what assemble on the mobile phone is self-capacitance formula touch-screen, then the technician can use finger to begin to slide into its relative angle B along diagonal from an angle A of touch-screen, forms desired diagonal line track.
If what assemble on the mobile phone is the mutual capacitance type touch-screen, then the technician can adopt dual mode to form described diagonal line sliding trace: a kind of finger that is to use begins to slide into another one angle B (being the relative angle of angle A) along diagonal from an angle A of touch-screen; A kind of in addition mode be to use two fingers respectively since two relative angle A, B along the diagonal slide in opposition; Contact up to two fingers; This method not only can form needed diagonal line sliding trace, and it is higher to compare first kind of mode of operation efficient.
Through the diagonal click slip in the touch-screen upper edge, formed like this touch point coordinate can travel through whole X axial coordinates and Y axial coordinate.Through the touch screen controller detected touch point position in the touch-screen, and generate corresponding touch point coordinate and export the CPU on the cell phone mainboard to.CPU then finishes current touch-screen testing process automatically if read the whole X axles and the numerical value of Y axle, and drives the testing result of display screen LCD output " touch-screen is normal ".
S405, judge whether the timer timing arrives; If arrive, then carry out subsequent step, otherwise, return step S404.
In the present embodiment; Need be according to technician's slide time set rational detection time of T; Present embodiment preferably with detection time T be set at for 10 seconds; Can guarantee that the technician has time enough on touch-screen, to accomplish cornerwise slide on the one hand, can shorten the time that whole touch screen detects on the other hand as far as possible, improve detection efficiency.
S406, judgement touch-screen fault.
If behind timing time arrive to be set detection time T; CPU on the cell phone mainboard does not still detect the whole X axles and the numerical value of Y axle; Then represent to exist in the touch-screen out of order induction zone, at this moment, CPU drives the testing result of display screen LCD output " touch-screen fault ".
S407, withdraw from the touch-screen testing process.
After touch-screen detected end, system can only withdraw from the touch-screen detecting pattern, waited for that the technician selects other function choosing-items under the factory mode to continue to accomplish associative operations.Certainly, also can directly withdraw from factory mode, require the technician to re-enter other function choosing-items that get under factory's module behind the password and continue to carry out other operations.
The detection method of touch screen of present embodiment adopts simple diagonal line to draw and touches method of operating, and whether the X axle and the Y axial coordinate that shield through senses touch travel through, and judge whether touch screen functionality is normal.This detection method is compared classic method, and not only test speed is fast, efficient is high, and detects fully, and accuracy rate is high, helps to promote the complete machine performance of mobile phone products.
Certainly, realize X axle and Y axial coordinate all the methods of traversal have a variety ofly, diagonal process is just wherein a kind of, adopts S shape, L shaped or O shape scribble method can satisfy the detection requirement equally, present embodiment is not limited in above giving an example.In addition, the detection method of touch screen that present embodiment proposed is not only applicable to mobile phone products, same being suitable for for other are equipped with the electronic product of touch-screen and display screen, and present embodiment does not specifically limit this.
Should be noted that; The above only is a kind of preferred implementation of the present invention, for those skilled in the art, under the prerequisite that does not break away from the principle of the invention; Can also make some improvement and retouching, these improvement and retouching also should be regarded as protection scope of the present invention.