Embodiment
Below in conjunction with drawings and Examples, the removing method of touch-screen keys deactivation of the present invention and system are described in detail.
On the corresponding terminal device of scheme of the embodiment of the present invention, terminal device here can be the terminal device arbitrarily such as smart mobile phone, panel computer, PDA (PersonalDigitalAssistant, personal digital assistant).The password input mode of program application comprises digital input mode, pattern input mode, or other input modes.
Described terminal can comprise can the touch-screen of perception touch operation, and this touch-screen has the virtual key that can carry out touch operation.
Shown in figure 1, Fig. 1 is the removing method process flow diagram of the touch-screen keys deactivation of an embodiment, comprises the steps:
S10, the touch operation on monitoring touch-screen;
In this step, the touch operation carried out in monitoring intelligent LCD region, mainly judges whether to be pressed a little; Shown in figure 2, Fig. 2 is the intelligent terminal touch screen schematic diagram of an example, shows LCD region, upper part position in figure, is three virtual keys in dotted line.
S20, obtain pressing of producing in described touch operation interrupt and described in press capacitance corresponding to described virtual key when interrupting producing;
In this step, when touch-screen there being touch operation, what produce in acquisition touch operation presses interruption, generally, information depressed position is just gathered continuously after touch-screen monitors and presses, if current smart mobile phone is generally that 10ms gathers once, by detecting the existence of pressing interruption, can determine that the finger of current user is in the state touching touch-screen;
While pressing and interrupting producing, obtain the capacitance that virtual key is corresponding, virtual key is generally produce capacitance variation by finger presses to operate, for the keys deactivation that the such as reason such as electrostatic interference causes, the same with the effect that user's ordinary duration presses virtual key, produce capacitance variation.
S30, if described capacitance reaches setting threshold value, carries out recovery calibration to described virtual key;
In this step, carry out capacitance by capacitance whether to reach setting threshold value as judging that button is in failure state and non-artificial length by the foundation operated, because user can not carry out touch operation to the virtual key of intelligent terminal and touch-screen (LCD region) simultaneously, therefore, if capacitance reaches setting threshold value, illustrate that virtual key may be subject to the interference such as electrostatic and lose efficacy, cause capacitance variation, now by carrying out recovery calibration to virtual key, recover virtual key function.
The removing method of above-mentioned touch-screen keys deactivation, take full advantage of user can not carry out touch operation simultaneously feature to the virtual key of intelligent terminal and touch-screen, by the touch operation on monitoring touch-screen, if determine produce in touch operation press interruption while, the capacitance that virtual key is corresponding reaches certain threshold value, illustrate that user does not grow by operation to virtual key, therefore judge that virtual key lost efficacy, then virtual key function is recovered by carrying out recovery calibration to virtual key, the program is easy to realize, reduce the cost eliminated, and without the need to changing hardware design, decrease terminal inner structure influence.
In order to more clear technical scheme of the present invention, below further set forth some embodiments of the present invention.
For step S20, following process can be comprised:
To obtain in described touch operation produce continuously press interruption n time, n >=2; Read and press the capacitance that when interrupting producing, described virtual key is corresponding at every turn.
For step S30, following process can be comprised:
Record the number of times m that described capacitance reaches setting threshold value; If m=n, judge that virtual key lost efficacy, recovery calibration is carried out to described virtual key.
Further, the removing method of above-mentioned touch-screen keys deactivation, can also comprise the steps:
The interruption logging touch-screen of pressing for n time utilizing the first counter to obtain in described touch operation to produce continuously is pressed the number of times of interruption and the number of times utilizing the second counter records virtual key to press;
Wherein, when interruption is upspring in generation in described touch operation, the record data of the first counter and the second counter are removed.
As an embodiment, specifically can comprise as follows for step S30:
Judge whether the capacitance that described virtual key is corresponding reaches setting threshold value, if so, sensing touch screen calibration flow process, is calibrated to 0 by the capacitance of respective virtual button.
As a kind of embodiment, for the value of setting threshold value, the capacitance that virtual key generally can be adopted effectively to press, can certainly be set to other value, and it is mainly used for the state detecting that virtual key is long pressed.
Explanation is needed at this, above-mentioned some embodiments provide the specific embodiment realizing correlated process of the present invention, in addition, also can monitor the capacitance of touch operation on touch-screen and virtual key simultaneously, then carry out digital independent and threshold decision, then according to judged result, recovery calibration is carried out to virtual key; Specific implementation process does not repeat them here.
Be directed to above-described embodiment, set forth an algorithm examples below.
Shown in figure 3, Fig. 3 is an algorithm examples process flow diagram of the removing method of touch-screen keys deactivation, comprises the steps:
Step s301: initialization counter lcd_down_num=0, represent that LCD region presses 0 time; Key_down_num=0, represents that virtual key presses 0 time;
Step s302: the touch in monitoring LCD region is interrupted producing;
Step s303: judge to touch interrupt type, if touching interruption is press interruption, go to step s304, if touching interruption is interruption of upspringing, go to step s310;
Step s304: counter lcd_down_num adds 1, goes to step s305;
Go to step s305: the capacitance reading virtual key, judge whether the capacitance of button is greater than setting threshold value (as 70pF), if so, goes to step s306, otherwise goes to step s307;
Step s306: counter key_down_num adds 1, goes to step s307;
Step s307: judge that lcd_down_num and key_down_num records whether number of times is all n (as 10 times), if so, goes to step s308, otherwise goes to step s310;
Step s308: judge that virtual key is by electrostatic interference, sensing touch screen is calibrated, and recovers virtual key function;
Step s309: the record removing counter, makes lcd_down_num=0, key_down_num=0;
Step s310: process ends, returns step s301.
Set forth the embodiment of the elimination system of touch-screen keys deactivation below.
Shown in figure 4, Fig. 4 is the elimination system architecture schematic diagram of the touch-screen keys deactivation of an embodiment, comprising:
Monitoring modular 10, for monitoring the touch operation on touch-screen;
For monitoring modular 10, for the touch operation carried out in monitoring intelligent LCD region, mainly judge whether to be pressed a little; Shown in figure 2, Fig. 2 is the intelligent terminal touch screen schematic diagram of an example, shows LCD region, upper part position in figure, is three virtual keys in dotted line.
Acquisition module 20, for obtain pressing of producing in described touch operation interrupt and described in press interrupt producing time capacitance corresponding to described virtual key;
For acquisition module 20, when touch-screen there being touch operation, what produce in acquisition touch operation presses interruption, generally, information depressed position is just gathered continuously after touch-screen monitors and presses, if current smart mobile phone is generally that 10ms gathers once, by detecting the existence of pressing interruption, can determine that the finger of current user is in the state touching touch-screen;
While pressing and interrupting producing, obtain the capacitance that virtual key is corresponding, virtual key is generally produce capacitance variation by finger presses to operate, for the keys deactivation that the such as reason such as electrostatic interference causes, the same with the effect that user's ordinary duration presses virtual key, produce capacitance variation.
Calibration module 30, if reach setting threshold value for described capacitance, carries out recovery calibration to described virtual key.
For calibration module 30, carry out capacitance by capacitance whether to reach setting threshold value as judging that button is in failure state and non-artificial length by the foundation operated, because user can not carry out touch operation to the virtual key of intelligent terminal and touch-screen (LCD region) simultaneously, therefore, if capacitance reaches setting threshold value, illustrate that virtual key may be subject to the interference such as electrostatic and lose efficacy, cause capacitance variation, now by carrying out recovery calibration to virtual key, recover virtual key function.
The elimination system of above-mentioned touch-screen keys deactivation, take full advantage of user can not carry out touch operation simultaneously feature to the virtual key of intelligent terminal and touch-screen, the touch operation on touch-screen is monitored by monitoring modular 10, acquisition module 20 obtain produce in touch operation press interruption while capacitance corresponding to virtual key, if calibration module 30 determines virtual key, corresponding capacitance reaches certain threshold value, illustrate that user does not grow by operation to virtual key, therefore judge that virtual key lost efficacy, then virtual key function is recovered by carrying out recovery calibration to virtual key, the program is easy to realize, reduce the cost eliminated, and without the need to changing hardware design, decrease terminal inner structure influence.
In order to more clear technical scheme of the present invention, below further set forth some embodiments of the present invention.
For described acquisition module 20, can be further used for obtaining in described touch operation produce continuously press interruption n time, n >=2; Read and press the capacitance that when interrupting producing, described virtual key is corresponding at every turn;
Described calibration module 30, can be further used for recording the number of times m that described capacitance reaches setting threshold value; If m=n, judge that virtual key lost efficacy, recovery calibration is carried out to described virtual key.
Further, described acquisition module, the interruption logging touch-screen of pressing for n time that can also be used for utilizing the first counter to obtain producing continuously in described touch operation is pressed the number of times of interruption and the number of times utilizing the second counter records virtual key to press;
Wherein, when interruption is upspring in generation in described touch operation, the record data of the first counter and the second counter are removed.
As an embodiment, described calibration module 30, can be further used for judging whether the capacitance that described virtual key is corresponding reaches setting threshold value, and if so, sensing touch screen calibration flow process, is calibrated to 0 by the capacitance of respective virtual button.
As a kind of embodiment, for the value of setting threshold value, the capacitance that virtual key generally can be adopted effectively to press, can certainly be set to other value, and it is mainly used for the state detecting that virtual key is long pressed.
Each technical characteristic of the above embodiment can combine arbitrarily, for making description succinct, the all possible combination of each technical characteristic in above-described embodiment is not all described, but, as long as the combination of these technical characteristics does not exist contradiction, be all considered to be the scope that this instructions is recorded.
The above embodiment only have expressed several embodiment of the present invention, and it describes comparatively concrete and detailed, but can not therefore be construed as limiting the scope of the patent.It should be pointed out that for the person of ordinary skill of the art, without departing from the inventive concept of the premise, can also make some distortion and improvement, these all belong to protection scope of the present invention.Therefore, the protection domain of patent of the present invention should be as the criterion with claims.