A kind of control method and device of capacitance touch screen terminal
Technical field
The present embodiments relate to terminal control technical field, more particularly to a kind of control method of capacitance touch screen terminal
And device.
Background technology
User can be contacted by intelligent terminal (such as typically smart mobile phone or panel computer) with relatives and friends, can
With the application software by installing various functions, such as Games Software, shopping software, video software etc. are entertained and are done shopping
Deng, it is seen then that the life of people has be unable to do without intelligent terminal.
Current intelligent terminal major part uses touch screen technology, is clicked on the touchscreen or is slided by the finger of user
Various triggering commands are generated etc. mode, to realize control function.
But, when environment temperature, environment of electric field change, can all cause the drift of touch-screen, cause touch location
Detection is inaccurate, or even causes the damage of touch-screen, causes user to use mobile phone.
The content of the invention
The embodiment of the present invention provides a kind of control method and device of capacitance touch screen terminal, to solve terminal touch screen drift
Move or terminal touch screen operation failure and cause the problem that terminal cannot use.
In a first aspect, the embodiment of the invention provides a kind of control method of capacitance touch screen terminal, the method includes:
The capacitance of acquisition terminal touch-screen;
If in continuous preset time period, the capacitance then switches to the terminal not in the range of predetermined capacitance
Button control model;
Handle icon is generated in terminal display interface;
When detecting the operation for triggering button, obtain and the corresponding key information of the operation, according to the key information
Control the action of the handle icon.
Further, the key information includes marking keys and pressing parameter;
The action according to the key information control handle icon includes:
According to the marking keys, the moving direction of the handle icon is controlled;
According to the pressing parameter, the displacement of the handle icon is controlled.
Further, the pressing parameter includes compressing time;
It is described according to the pressing parameter, controlling the displacement of the handle icon includes:
When being less than Preset Time between when pushed, the handle icon is controlled in the corresponding moving direction of the marking keys
Upper Moving Unit distance;
When being more than Preset Time between when pushed, in compressing time, the handle icon is controlled in the marking keys
Moved according to pre-set velocity on corresponding moving direction.
Further, if in the continuous preset time period, the capacitance not in the range of predetermined capacitance, then by institute
Stating terminal and switching to button control model includes:
If in continuous preset time period, the capacitance not in the range of predetermined capacitance, and the terminal temperature not
In preset temperature range, then the terminal is switched into button control model.
Further, if in the continuous preset time period, the capacitance not in the range of predetermined capacitance, then by institute
Stating terminal and switching to button control model includes:
If in continuous preset time period, the capacitance is not in the range of predetermined capacitance, and the terminal local environment
Magnetic field intensity reach default magnetic field intensity, then the terminal is switched into button control model.
Second aspect, the embodiment of the present invention additionally provides a kind of control device of capacitance touch screen terminal, and the device includes:
Acquisition module, for the capacitance of acquisition terminal touch-screen;
Mode switch module, if in continuous preset time period, the capacitance not in the range of predetermined capacitance, then
The terminal is switched into button control model;
Display module, for generating handle icon in terminal display interface;
Control module, when the operation of button is triggered for detecting, obtains and the corresponding key information of the operation, according to
The key information controls the action of the handle icon.
Further, the key information includes marking keys and pressing parameter;
The action according to the key information control handle icon includes:
According to the marking keys, the moving direction of the handle icon is controlled;
According to the pressing parameter, the displacement of the handle icon is controlled.
Further, the pressing parameter includes compressing time;It is described according to the pressing parameter, control the operation diagram
Target displacement includes:
When being less than Preset Time between when pushed, the handle icon is controlled in the corresponding moving direction of the marking keys
Upper Moving Unit distance;
When being more than Preset Time between when pushed, in compressing time, the handle icon is controlled in the marking keys
Moved according to pre-set velocity on corresponding moving direction.
Further, the mode switch module specifically for:
If in continuous preset time period, the capacitance not in the range of predetermined capacitance, and the terminal temperature not
In preset temperature range, then the terminal is switched into button control model.
Further, the mode switch module specifically for:
If in continuous preset time period, the capacitance is not in the range of predetermined capacitance, and the terminal local environment
Magnetic field intensity reach default magnetic field intensity, then the terminal is switched into button control model.
The technical scheme of the embodiment of the present invention, by the capacitance of acquisition terminal touch-screen;If in continuous preset time period,
Terminal is then switched to button control model by capacitance not in the range of predetermined capacitance;Generated in terminal display interface and operated
Icon;When detecting the operation for triggering button, obtain and the corresponding key information of operation, the operation is controlled according to key information
The action of icon, solves terminal touch screen drift or terminal touch screen operation failure and causes what terminal cannot use to ask
Topic so that in Emergency time, to cannot in time send the terminal repaiied temporarily to maintain to use.
Brief description of the drawings
Fig. 1 is a kind of flow chart of the control method of capacitance touch screen terminal of offer in the embodiment of the present invention one;
Fig. 2 is a kind of flow chart of the control method of capacitance touch screen terminal of offer in the embodiment of the present invention two;
Fig. 3 is a kind of flow chart of the control method of capacitance touch screen terminal of offer in the embodiment of the present invention three;
Fig. 4 is a kind of flow chart of the control method of capacitance touch screen terminal of offer in the embodiment of the present invention four;
Fig. 5 is a kind of structural representation of the control device of capacitance touch screen terminal of offer in the embodiment of the present invention five.
Specific embodiment
The present invention is described in further detail with reference to the accompanying drawings and examples.It is understood that this place is retouched
The specific embodiment stated is used only for explaining the present invention, rather than limitation of the invention.It also should be noted that, in order to just
Part rather than entire infrastructure related to the present invention is illustrate only in description, accompanying drawing.
Embodiment one
Fig. 1 is a kind of flow chart of the control method of capacitance touch screen terminal that the embodiment of the present invention one is provided, this implementation
Example is applicable to still realize the effective control to terminal in terminal touch screen drift or terminal touch screen operation failure
Situation, the method can perform by the control device of capacitance touch screen terminal, and the device can be by software and/or hardware
Mode realizes that the device can be integrated in any terminal device with capacitance touch screen, for example typically portable use
Family terminal device, for example, can be smart mobile phone or panel computer etc..The method specifically includes following steps:
The capacitance of step 110, acquisition terminal touch-screen.
Wherein, in touch-screen normal work, when the finger of user does not have the capacitance touch screen of touch terminal, collect
Terminal touch screen capacitance in-scope be the first predetermined capacitance scope.Due to the influence of temperature or magnetic field intensity etc.,
When making capacitance touch screen operation irregularity, when the finger of user does not have the capacitance touch screen of touch terminal, the terminal for collecting is touched
The capacitance in-scope for touching screen will be beyond the first predetermined capacitance scope.
If in step 120, continuous preset time period, the capacitance not in the range of predetermined capacitance, then by the end
End switches to button control model.
Wherein, predetermined capacitance may range from the first predetermined capacitance scope.If in continuous preset time period, collecting
Terminal touch screen capacitance not in the range of the first predetermined capacitance, illustrate capacitance touch screen operation irregularity, then by terminal
Switching to button control model, i.e. user can be input into triggering command by way of button to terminal, to realize various controls
Function.
In the prior art, when the capacitance touch screen of the finger touch terminal of user, due to human body electric field, user and touch
Screen surfaces form a coupled capacitor, so as to influence the capacitance at touch point.For example, the electricity certainly in projection-type capacitive touch screen
The touch-screen of appearance formula, wherein, self-capacitance is the direct-to-ground capacitance of electrode, when the capacitance touch screen of the finger touch terminal of user,
The electric capacity that finger is formed with touch screen surface is by the direct-to-ground capacitance of the electrode that is added to so that the electricity of the terminal touch screen for collecting
Capacitance increases;And the touch-screen of the mutual capacitance type in projection-type capacitive touch screen, wherein, mutual capacitance is the place of two electrode crossings
The coupled capacitor of formation, when the capacitance touch screen of the finger touch terminal of user, can influence two electrodes near touch point
Between coupled capacitor, reduce coupled capacitor, that is, cause that the capacitance of terminal touch screen for collecting reduces.In touch detection
When, capacitance touch screen can respectively detect laterally and longitudinally electrod-array successively, the change of capacitance before and after being touched according to finger,
To determine finger touch position.In touch-screen normal work, when the capacitance touch screen of the finger touch terminal of user, collection
The capacitance in-scope of the terminal touch screen for arriving is the second predetermined capacitance scope.Due to the shadow of temperature or magnetic field intensity etc.
Ring, the variable quantity of capacitance is relevant with angle value before temperature value and magnetic field, during capacitance touch screen operation irregularity, when the finger of user does not have
When having the capacitance touch screen of touch terminal, the capacitance in-scope of the terminal touch screen for collecting may be the second predetermined capacitive
Value scope, makes capacitance touch screen generate touching instruction, this creates the terminal the situation of disorderly point.
For situation of the prior art, pressure can be detected whether by the pressure sensor set in terminal,
To determine whether user touches capacitance touch screen.If in continuous first preset time period, pressure value is not detected by the touchscreen,
And capacitance is not in the range of the first predetermined capacitance, it is determined that user does not touch capacitance touch screen, illustrates there may be unrest
The capacitance touch screen abnormal conditions such as point, then switch to button control model by terminal, and the pressure value is by the setting in terminal
Pressure sensor is detected;If in continuous second preset time period, pressure value, and capacitance are detected on the touchscreen not
In the range of two predetermined capacitances, it is determined that user touches capacitance touch screen, but capacitance touch screen operation irregularity, then switch terminal
To button control model.
Step 130, terminal display interface generate handle icon.
Wherein, under button control model, terminal display interface can generate handle icon, and the handle icon can be arrow
The forms such as head, mouse, the position where for determining current operation.
Step 140, detect triggering button operation when, obtain and the corresponding key information of the operation, according to described
Key information controls the action of the handle icon.
Wherein, when user carries out pressing operation to the different button of terminal, terminal can detect triggering button
During operation, and acquisition and the corresponding key information of operation, according to the action of key information control operation icon.By key control mould
Under formula, also can be when the button operation for detecting meets programmable button information, by terminal from button control mode switch to touch
Operator scheme.
The technical scheme of the present embodiment, by the capacitance of acquisition terminal touch-screen;If in continuous preset time period, electric capacity
Terminal is then switched to button control model by value not in the range of predetermined capacitance;Handle icon is generated in terminal display interface;
When detecting the operation for triggering button, obtain and the corresponding key information of operation, the handle icon is controlled according to key information
Action, solve the problems, such as terminal touch screen drift or terminal touch screen operation failure and cause the terminal cannot to use, make
Obtain in Emergency time, to cannot in time send the terminal repaiied temporarily to maintain to use.
Embodiment two
Fig. 2 is a kind of flow chart of the control method of capacitance touch screen terminal that the embodiment of the present invention two is provided, this implementation
Example is optimized based on above-described embodiment, and specifically described key information includes marking keys and pressing parameter;It is described
The action for controlling the handle icon according to the key information includes:According to the marking keys, the handle icon is controlled
Moving direction;According to the pressing parameter, the displacement of the handle icon is controlled.Accordingly, the method for the present embodiment
Including:
The capacitance of step 210, acquisition terminal touch-screen.
If in step 220, continuous preset time period, the capacitance not in the range of predetermined capacitance, then by the end
End switches to button control model.
Step 230, terminal display interface generate handle icon.
Step 240, detect triggering button operation when, obtain and the corresponding marking keys of the operation and press join
Number.
Wherein, obtain and the corresponding marking keys of operation and pressing parameter, installation on different marking keys counterpart terminals
Different buttons, pressing parameter can be number of times and interval time of user's pressing keys etc..For smart mobile phone, the button
Mark can include key, volume lower key and power key in volume.
Step 250, according to the marking keys, control the moving direction of the handle icon, according to the pressing parameter,
Control the displacement of the handle icon.
Wherein, according to marking keys, the moving direction of control operation icon, so that handle icon points to other menus
.For example, user presses key in volume, then control operation icon is moved up;User presses volume lower key, then control operation figure
Mark is moved down;User presses key and power key in volume, then control operation icon is moved to the left;User press volume lower key and
Power key, then control operation icon move right.According to pressing parameter, the displacement of control operation icon, so that operation diagram
Mark can quickly point to target menu.
Preferably, the pressing parameter includes compressing time;It is described according to the pressing parameter, control the handle icon
Displacement include:When being less than Preset Time between when pushed, control the handle icon corresponding in the marking keys
Moving Unit distance on moving direction;When being more than Preset Time between when pushed, in compressing time, the handle icon is controlled
Moved according to pre-set velocity on the corresponding moving direction of the marking keys.
Pre-set velocity movement can be so set according to the speed of service of the surfing of user and terminal, so that operation
Icon rapidly points to other distant menu items etc., facilitates user's fast browsing to inquire about desired content.
The technical scheme of the present embodiment provides a kind of control method of capacitance touch screen terminal, and the embodiment is in above-mentioned reality
On the basis of applying example, by according to marking keys, the moving direction of control operation icon;According to pressing parameter, control operation figure
Target displacement, enriches the function of button so that user can realize more function by button a small amount of in terminal,
Solve the problems, such as terminal touch screen drift or terminal touch screen operation failure and cause the terminal cannot to use.
Embodiment three
Fig. 3 is a kind of flow chart of the control method of capacitance touch screen terminal that the embodiment of the present invention three is provided, this implementation
Example is optimized based on above-described embodiment, if in specifically described continuous preset time period, the capacitance is not pre-
If in capacitance value range, then the terminal is switched into button control model includes:If in continuous preset time period, the electric capacity
Value not in the range of predetermined capacitance, and the terminal temperature not in preset temperature range, then the terminal is switched to
Button control model.Accordingly, the method for the present embodiment includes:
The capacitance of step 310, acquisition terminal touch-screen.
If in step 320, continuous preset time period, the capacitance is not in the range of predetermined capacitance, and the terminal
Temperature not in preset temperature range, then the terminal is switched into button control model.
Wherein, if the temperature of capacitance touch screen exceedes normal working temperature scope, easily there is drift in capacitance touch screen, this
When be further continued for directly damaging touch-screen using touch-screen, it is therefore desirable to switch to button control model.By in terminal
Middle setting temperature sensor, to detect the temperature of capacitance touch screen, if in continuous preset time period, capacitance is not in predetermined capacitive
In the range of value, and terminal temperature not in preset temperature range, then terminal is switched into button control model;If the temperature of terminal
Terminal is then switched to button control model by degree more than the maximum temperature of preset temperature range, it is possible to point out user to close one
A little unnecessary application programs.Because the operation of button control model is simple compared with touch operation pattern so that terminal heating is less,
While protection terminal touch screen, can still maintain to use.Under button control model, if every default detection time section, inspection
The temperature of terminal is measured in preset temperature range, then by terminal from button control mode switch to touch operation pattern so that
Temperature is reached when can make capacitance touch screen normal work, and timely switching working mode is user-friendly to.
Step 330, terminal display interface generate handle icon.
Step 340, detect triggering button operation when, obtain and the corresponding key information of the operation, according to described
Key information controls the action of the handle icon.
The technical scheme of the present embodiment provides a kind of control method of capacitance touch screen terminal, and the embodiment is in above-mentioned reality
On the basis of applying example, if by continuous preset time period, capacitance not in the range of predetermined capacitance, and terminal temperature not
In preset temperature range, then terminal is switched into button control model, solve terminal touch screen drift or terminal is touched
Screen operation failure and cause the problem that terminal cannot use.
Example IV
Fig. 4 is a kind of flow chart of the control method of capacitance touch screen terminal that the embodiment of the present invention four is provided, this implementation
Example is optimized based on above-described embodiment, if in specifically described continuous preset time period, the capacitance is not pre-
If in capacitance value range, then the terminal is switched into button control model includes:If in continuous preset time period, the electric capacity
Value is not in the range of predetermined capacitance, and the magnetic field intensity of the terminal local environment reaches default magnetic field intensity, then will be described
Terminal switches to button control model.Accordingly, the method for the present embodiment includes:
The capacitance of step 410, acquisition terminal touch-screen.
If in step 420, continuous preset time period, the capacitance is not in the range of predetermined capacitance, and the terminal
The magnetic field intensity of local environment reaches default magnetic field intensity, then the terminal is switched into button control model.
Wherein, if the magnetic field intensity of terminal local environment is very strong, easily there is drift in capacitance touch screen, is now further continued for making
Touch-screen may be directly damaged with touch-screen, it is therefore desirable to switch to button control model.Earth magnetism can be set in the terminal
Sensor, to detect the magnetic field intensity of terminal local environment, if in continuous preset time period, capacitance is not in predetermined capacitance model
In enclosing, and the magnetic field intensity of terminal local environment reaches default magnetic field intensity, then terminal is switched into button control model, and can
To point out to have high-intensity magnetic field near user, safe place need to be placed on away from or by terminal.
Step 430, terminal display interface generate handle icon.
Step 440, detect triggering button operation when, obtain and the corresponding key information of the operation, according to described
Key information controls the action of the handle icon.
The technical scheme of the present embodiment provides a kind of control method of capacitance touch screen terminal, and the embodiment is in above-mentioned reality
On the basis of applying example, if in continuous preset time period, capacitance not in the range of predetermined capacitance, and terminal local environment magnetic
Field intensity reaches default magnetic field intensity, then terminal is switched into button control model, solves terminal touch screen drift or whole
The problem that end touch screen operation fails and causes terminal to use.
Embodiment five
Fig. 5 is a kind of structural representation of the control device of capacitance touch screen terminal that the embodiment of the present invention five is provided, should
Device is adapted for carrying out the control method of capacitance touch screen terminal provided in an embodiment of the present invention, and the device can be integrated in any
In terminal device with capacitance touch screen, such as typically portable user terminal equipment, for example, can be smart mobile phone
Or panel computer etc..As shown in figure 5, the device includes acquisition module 510, mode switch module 520, display module 530 and control
Molding block 540.
Wherein, acquisition module 510, for the capacitance of acquisition terminal touch-screen;Mode switch module 520, if for even
In continuous preset time period, the terminal is then switched to button control model by the capacitance not in the range of predetermined capacitance;
Display module 530, for generating handle icon in terminal display interface;Control module 540, the behaviour for detecting triggering button
When making, obtain and the corresponding key information of the operation, according to the action of the key information control handle icon.
The technical scheme of the present embodiment, by the capacitance of acquisition terminal touch-screen;If in continuous preset time period, electric capacity
Terminal is then switched to button control model by value not in the range of predetermined capacitance;Handle icon is generated in terminal display interface;
When detecting the operation for triggering button, obtain and the corresponding key information of operation, the handle icon is controlled according to key information
Action, solve the problems, such as terminal touch screen drift or terminal touch screen operation failure and cause the terminal cannot to use, make
User is obtained in Emergency time, to cannot in time send the terminal repaiied temporarily to maintain to use.
Preferably, the key information includes marking keys and pressing parameter;It is described that institute is controlled according to the key information
The action for stating handle icon includes:According to the marking keys, the moving direction of the handle icon is controlled;According to the pressing
Parameter, controls the displacement of the handle icon.
Preferably, the pressing parameter includes compressing time;It is described according to the pressing parameter, control the handle icon
Displacement include:When being less than Preset Time between when pushed, control the handle icon corresponding in the marking keys
Moving Unit distance on moving direction;When being more than Preset Time between when pushed, in compressing time, the handle icon is controlled
Moved according to pre-set velocity on the corresponding moving direction of the marking keys.
Preferably, the mode switch module 520 specifically for:If in continuous preset time period, the capacitance does not exist
In the range of predetermined capacitance, and the terminal temperature not in preset temperature range, then the terminal is switched to by keying
Molding formula.
Preferably, the mode switch module 520 specifically for:If in continuous preset time period, the capacitance does not exist
In the range of predetermined capacitance, and the magnetic field intensity of the terminal local environment reaches default magnetic field intensity, then cut the terminal
Shift to button control model.
The control device of above-mentioned capacitance touch screen terminal can perform the capacitance touch screen that any embodiment of the present invention is provided
The control method of terminal, possesses the corresponding functional module of execution method and beneficial effect.
Note, above are only presently preferred embodiments of the present invention and institute's application technology principle.It will be appreciated by those skilled in the art that
The invention is not restricted to specific embodiment described here, can carry out for a person skilled in the art various obvious changes,
Readjust and substitute without departing from protection scope of the present invention.Therefore, although the present invention is carried out by above example
It is described in further detail, but the present invention is not limited only to above example, without departing from the inventive concept, also
More other Equivalent embodiments can be included, and the scope of the present invention is determined by scope of the appended claims.