Specific embodiment
The removing method to touch-screen button failure of the invention and system carry out detailed with reference to the accompanying drawings and examples
Description.
On the corresponding terminal device of scheme of the embodiment of the present invention, terminal device here can be smart mobile phone, tablet
The arbitrary terminal devices such as computer, PDA (Personal Digital Assistant, personal digital assistant).Program application
Password input mode includes numeral input mode, pattern input mode or other input modes.
The terminal can include can perceiving the touch-screen of touch operation, which has and can carry out touch operation
Virtual key.
Refering to what is shown in Fig. 1, the removing method flow chart that the touch-screen button that Fig. 1 is one embodiment fails, including as follows
Step:
S10 monitors the touch operation on touch-screen;
In this step, monitor the upper touch operation carried out in intelligent LCD area, mainly judge whether a little by by
Under;Refering to what is shown in Fig. 2, Fig. 2 is an exemplary intelligent terminal touch screen schematic diagram, upper part position LCD area is shown in figure, it is empty
It is three virtual keys in line.
S20, obtain generated in the touch operation press interruption and it is described press interruption generate when it is described virtually by
The corresponding capacitance of key;
In this step, it is when there is touch operation on touch-screen, what is generated in acquisition touch operation presses interruption, generally
In the case of, touch-screen monitors just continuously to gather the information of depressed position after pressing, and such as current smart mobile phone is universal
It is that 10ms is gathered once, the presence of interruption is pressed by detection, it may be determined that the finger of user is in touch touch-screen at present
State;
While interrupting generation with pressing, the corresponding capacitance of virtual key is obtained, virtual key is generally by finger
Pressing generates capacitance variation and is operated, for as caused by the reasons such as electrostatic interference keys deactivation, with user it is normal when
The effect of long-press virtual key is the same, generates capacitance variation.
If the capacitance reaches given threshold, recovery calibration is carried out to the virtual key by S30;
In this step, be by capacitance come capacitance whether reach given threshold be used as judge button be in failure shape
State and the foundation of non-artificial long-press operation, since user will not be same to the virtual key and touch-screen (LCD area) of intelligent terminal
Therefore Shi Jinhang touch operations, if capacitance reaches given threshold, illustrate that virtual key may be subject to the interference such as electrostatic to lose
Effect, causes capacitance variation, at this time by carrying out recovery calibration to virtual key, recovers virtual key function.
The removing method of above-mentioned touch-screen button failure, take full advantage of user will not simultaneously to intelligent terminal it is virtual by
The characteristics of key and touch-screen carry out touch operation, by monitoring the touch operation on touch-screen, if it is determined that into touch operation
While pressing interruption of generation, the corresponding capacitance of virtual key reaches certain threshold value, illustrates user not to virtual key
Carry out long-press operation, therefore judge virtual key fail, then by virtual key carry out recover calibrate recover virtually by
Key function, the program are easily achieved, and reduce the cost of elimination, and need not change hardware design, are reduced to terminal inner knot
Structure influences.
In order to become apparent from technical scheme, several embodiments of the present invention are further elucidated below.
For step S20, following process can be included:
It obtains the n times continuously generated in the touch operation and presses interruption, n >=2;It reads and presses interruption generation when institute every time
State the corresponding capacitance of virtual key.
For step S30, following process can be included:
Record the number m that the capacitance reaches given threshold;If m=n, virtual key failure is judged, to described virtual
Button carries out recovery calibration.
Further, the removing method of above-mentioned touch-screen button failure, can also include the following steps:
Interruption logging touch-screen is pressed using the n times continuously generated in the first counter acquisition touch operation to be pressed
The number of interruption and the number pressed using the second counter records virtual key;
Wherein, when interruption is bounced in generation in the touch operation, the record of the first counter and the second counter is removed
Data.
As one embodiment, can specifically include for step S30 as follows:
Judge whether the corresponding capacitance of the virtual key reaches given threshold, if so, triggering touch screen calibration flow,
The capacitance of respective virtual button is calibrated to 0.
As a kind of embodiment, for the value of given threshold, the electricity that virtual key is effectively pressed generally may be employed
Capacitance, naturally it is also possible to be arranged to other values, be mainly used for detecting the state that virtual key is long pressed.
Herein it is to be appreciated that above-mentioned several embodiments provide the specific embodiment for realizing correlated process of the present invention, separately
Outside, the touch operation on touch-screen and the capacitance of virtual key can also be monitored simultaneously, then carry out digital independent and threshold value
Judge, then recovery calibration is carried out to virtual key according to judging result;Details are not described herein for specific implementation process.
Above-described embodiment is directed to, an algorithm examples are described below.
Refering to what is shown in Fig. 3, Fig. 3 is an algorithm examples flow chart of the removing method of touch-screen button failure, including such as
Lower step:
Step s301:Initialization counter lcd_down_num=0 represents that LCD area is pressed 0 time;key_down_
Num=0 represents that virtual key is pressed 0 time;
Step s302:Generation is interrupted in the touch for monitoring LCD area;
Step s303:Judge to touch interrupt type, if it is to press interruption to touch interruption, go to step s304, if touched
Interruption is to bounce interruption, goes to step s310;
Step s304:Counter lcd_down_num adds 1, goes to step s305;
Go to step s305:The capacitance of virtual key is read, judges whether the capacitance of button is more than given threshold (such as
70pF), if so, going to step s306, s307 is otherwise gone to step;
Step s306:Counter key_down_num adds 1, goes to step s307;
Step s307:Judge that whether lcd_down_num and key_down_num records number for n (such as 10 times), if
It is to go to step s308, otherwise goes to step s310;
Step s308:Virtual key is judged by electrostatic interference, and triggering touch screen calibration recovers virtual key function;
Step s309:The record of counter is removed, makes lcd_down_num=0, key_down_num=0;
Step s310:Terminate flow, return to step s301.
The embodiment of the elimination system of touch-screen button failure is described below.
Refering to what is shown in Fig. 4, the elimination system structure diagram that the touch-screen button that Fig. 4 is one embodiment fails, including:
Monitoring modular 10, for monitoring the touch operation on touch-screen;
For monitoring modular 10, for monitoring the upper touch operation carried out in intelligent LCD area, mainly determine whether
Point is pressed;Refering to what is shown in Fig. 2, Fig. 2 is an exemplary intelligent terminal touch screen schematic diagram, upper part position LCD is shown in figure
Region, interior dotted line is three virtual keys.
Acquisition module 20, for obtain generated in the touch operation press interruption and it is described press interruption generate when
The corresponding capacitance of the virtual key;
It is when there is touch operation on touch-screen for acquisition module 20, what is generated in acquisition touch operation presses interruption,
Under normal circumstances, touch-screen monitors just continuously to gather the information of depressed position, such as current smart mobile phone after pressing
Generally 10ms is gathered once, and the presence of interruption is pressed by detection, it may be determined that the finger of user is tactile in touching at present
Touch the state of screen;
While interrupting generation with pressing, the corresponding capacitance of virtual key is obtained, virtual key is generally by finger
Pressing generates capacitance variation and is operated, for as caused by the reasons such as electrostatic interference keys deactivation, with user it is normal when
The effect of long-press virtual key is the same, generates capacitance variation.
If reaching given threshold for the capacitance, recovery calibration is carried out to the virtual key for calibration module 30.
It is whether to reach given threshold come capacitance by capacitance and be used as to judge that button is in and lose for calibration module 30
Effect state and non-artificial long-press operation foundation, since user will not be to virtual key and touch-screen (the LCD areas of intelligent terminal
Domain) touch operation is carried out at the same time, therefore, if capacitance reaches given threshold, illustrate that virtual key may be subject to electrostatic etc. dry
Failure is disturbed, causes capacitance variation, at this time by carrying out recovery calibration to virtual key, recovers virtual key function.
The elimination system of above-mentioned touch-screen button failure, take full advantage of user will not simultaneously to intelligent terminal it is virtual by
The characteristics of key and touch-screen carry out touch operation monitors the touch operation on touch-screen, acquisition module 20 by monitoring modular 10
Virtual key corresponding capacitance while pressing interruption generated in touch operation is obtained, if calibration module 30 determines void
Intend the corresponding capacitance of button and reach certain threshold value, illustrate that user does not carry out virtual key long-press operation, therefore judge empty
Intend keys deactivation, then recover virtual key function by carrying out recovering calibration to virtual key, the program is easily achieved, drop
The cost of low elimination, and hardware design need not be changed, reducing influences terminal inner structure.
In order to become apparent from technical scheme, several embodiments of the present invention are further elucidated below.
For the acquisition module 20, it can be further used for obtaining the n times continuously generated in the touch operation and press
It interrupts, n >=2;It reads and presses the virtual key corresponding capacitance when interruption generates every time;
The calibration module 30 can be further used for recording the number m that the capacitance reaches given threshold;If m=
N judges virtual key failure, recovery calibration is carried out to the virtual key.
Further, the acquisition module can be also used for obtaining using the first counter continuous in the touch operation
The n times of generation press interruption logging touch-screen be pressed interruption number and pressed using the second counter records virtual key
Under number;
Wherein, when interruption is bounced in generation in the touch operation, the record of the first counter and the second counter is removed
Data.
As one embodiment, the calibration module 30 can be further used for judging the corresponding electricity of the virtual key
Whether capacitance reaches given threshold, if so, triggering touch screen calibration flow, 0 is calibrated to by the capacitance of respective virtual button.
As a kind of embodiment, for the value of given threshold, the electricity that virtual key is effectively pressed generally may be employed
Capacitance, naturally it is also possible to be arranged to other values, be mainly used for detecting the state that virtual key is long pressed.
Each technical characteristic of embodiment described above can be combined arbitrarily, to make description succinct, not to above-mentioned reality
It applies all possible combination of each technical characteristic in example to be all described, as long as however, the combination of these technical characteristics is not deposited
In contradiction, the scope that this specification is recorded all is considered to be.
Embodiment described above only expresses the several embodiments of the present invention, and description is more specific and detailed, but simultaneously
It cannot therefore be construed as limiting the scope of the patent.It should be pointed out that come for those of ordinary skill in the art
It says, without departing from the inventive concept of the premise, various modifications and improvements can be made, these belong to the protection of the present invention
Scope.Therefore, the protection domain of patent of the present invention should be determined by the appended claims.