A kind of touch screen unlocking method and system based on mobile terminal
Technical field
The present invention relates to technical field of mobile terminals, more particularly to a kind of touch screen unlocking method based on mobile terminal and
System.
Background technology
With the development of mobile communication and people's living standards continue to improve, the use of various mobile terminals such as mobile phone is got over
More to popularize, mobile phone has become indispensable Communication instrument in people's life.
Mobile terminal especially intelligent mobile terminal generally uses the unlocking technology based on touch-screen at present, but existing
Unlocking technology scheme is excessively simple, usually 9 numerals, is unlocked by drawing unblock track, but the unlocking manner is because of solution
Lock track relatively to fix, be easier to be cracked by others, so that anyone can unlock mobile terminal easily, reduce mobile terminal
The privacy of security, easily exposure user.
Therefore, prior art has yet to be improved and developed.
The content of the invention
The technical problem to be solved in the present invention is that the drawbacks described above for prior art is whole based on movement there is provided one kind
The touch screen unlocking method and system at end, it is intended to which the touch-screen unlocking manner for solving mobile terminal in the prior art is more single, hold
The defect easily cracked by other people.
The technical proposal for solving the technical problem of the invention is as follows:
A kind of touch screen unlocking method based on mobile terminal, wherein, methods described includes step:
A, mobile terminal set the touch point of N number of order for having priority, adjacent touch in touch-screen unlock interface in advance
The time range T of slip between pointiAnd store, wherein, described N, i are the natural number more than 1, and i≤N;
B, the unlock instruction for detecting user, obtain user and touch the touch point coordinates of touch-screen and touch adjacent touch point
Time difference, judge whether to meet pre-set touch point coordinates order and touch slip between adjacent touch point when
Between scope;Success is unlocked if above-mentioned condition is met, otherwise prompting unblock failure.
The described touch screen unlocking method based on mobile terminal, wherein, the step B is specifically included:
B1, the unlock instruction for detecting user, obtain the touch point coordinates (x, y) that user touches touch-screen, obtain current
The contact P that time and next needs are touchedi, calculate current time and touch a upper touch point Pi-1Time difference t,
Calculate(x,y)With touch point PiThe distance between d;
B2, judgement(x,y)Whether it is P1、P2、P3、……、PNIn some touch point, if perform step B3, such as
Otherwise fruit performs step B5;
B3, judgement(x,y)Whether it is touch point Pi, if it is judge whether time difference t meets Timin ≤ t≤
TiMax, fails if otherwise unblock, wherein Timin 、TiMax is respectively to prestore from touch point Pi-1To sliding into
Touch point PiSliding time scope TiMinimum value and maximum;
B4, judge i whether be equal to N, if it is unlock successfully, if otherwise i=i+1, performs B1 afterwards;
B5, according to t and d to touch point PiMove, step B1 is performed afterwards.
The described touch screen unlocking method based on mobile terminal, wherein, the step A also includes:
Mobile terminal pre-sets each touch point PiThe first touch area ENMin and the second touch area ENMax is simultaneously deposited
Storage.
The described touch screen unlocking method based on mobile terminal, wherein, the touch point PiThe first touch area
ENMin is with touch point PiFor the center of circle, Dmin is the border circular areas of radius, the second touch area ENMax is with touch point PiFor circle
The heart, Dmax is the border circular areas of radius.
The described touch screen unlocking method based on mobile terminal, wherein, the specific processing method in the step B5 is:
If B51, t<TiThreshold and d<Dmin, wherein TiThreshold is less than TiA min time threshold values,
Then touch point PiStart movement, touch point PiIn PiThe point touched on the touchscreen with active user(X, y)It is remote on line(X,
y)Move in direction;Touch point PiDisplacement is;
If B52, t>TiMin and d >=Dmax, then touch point PiStart movement, touch point PiWith active user on the touchscreen
The point of touch(X, y)Line is close(X, y)Move in direction;Touch point PiDisplacement is。
A kind of touch-screen system for unlocking based on mobile terminal, wherein, the system includes:
Pre-set and memory module, in advance being set for mobile terminal in touch-screen unlock interface N number of has priority
The time range T of slip between the touch point of order, adjacent touch pointiAnd store, wherein, described N, i are oneself more than 1
So number, and i≤N;
Obtain and judge module, the unlock instruction for detecting user, obtain the touch point seat that user touches touch-screen
Mark and the time difference for touching adjacent touch point, judge whether to meet the touch point coordinates order pre-set and touch adjacent touch
The time range of slip between touching a little;Success is unlocked if above-mentioned condition is met, otherwise prompting unblock failure.
The described touch-screen system for unlocking based on mobile terminal, wherein, the acquisition is specifically included with judge module:
Detection and acquiring unit, the unlock instruction for detecting user obtain the touch point seat that user touches touch-screen
Mark (x, y), obtain the contact P that current time and next needs are touchedi, calculate current time and touch a upper touch point
Pi-1Time difference t, calculate(x,y)With touch point PiThe distance between d;
First judging unit, for judging(x,y)Whether it is P1、P2、P3、……、PNIn some touch point;
Second judging unit, for judging(x,y)Whether it is touch point Pi, if it is judge whether time difference t is full
Sufficient Timin ≤ t≤ TiMax, fails if otherwise unblock, wherein Timin 、TiMax is respectively to prestore from touch
Point Pi-1To sliding into touch point PiSliding time scope TiMinimum value and maximum;
3rd judging unit, for judging whether i is equal to N;
Control unit, for according to t and d to touch point PiMove.
The described touch-screen system for unlocking based on mobile terminal, wherein, described pre-set is additionally operable to memory module
Mobile terminal pre-sets each touch point PiThe first touch area ENMin and the second touch area ENMax is simultaneously stored.
The described touch-screen system for unlocking based on mobile terminal, wherein, the touch point PiThe first touch area
ENMin is with touch point PiFor the center of circle, Dmin is the border circular areas of radius, the second touch area ENMax is with touch point PiFor circle
The heart, Dmax is the border circular areas of radius.
The described touch-screen system for unlocking based on mobile terminal, wherein, described control unit is specifically included:
First judges and mobile unit, if for t<TiThreshold and d<Dmin, wherein TiThreshold be less than
TiA min time threshold values, then touch point PiStart movement, touch point PiIn PiTouched on the touchscreen with active user
Point(X, y)It is remote on line(X, y)Move in direction;Touch point PiDisplacement is;
Second judges and mobile unit, if t>TiMin and d >=Dmax, then touch point PiStart movement, touch point PiWith working as
The point that preceding user touches on the touchscreen(X, y)Line is close(X, y)Move in direction;Touch point PiDisplacement is。
The invention provides a kind of touch screen unlocking method based on mobile terminal and system, methods described includes:It is mobile
Terminal sets the slip between the touch point of N number of order for having priority, adjacent touch point in touch-screen unlock interface in advance
Time range Ti is simultaneously stored, wherein, described N, i are the natural number more than 1, and i≤N;The unlock instruction of user is detected, is obtained
Take family and touch touching point coordinates and touching the time difference of adjacent touch point for touch-screen, judge whether to meet touching of pre-setting
Touch point coordinates order and touch the time range of the slip between adjacent touch point;Success is unlocked if above-mentioned condition is met,
Otherwise prompting unblock failure.The present invention can by judge touch point sequencing and adjacent touch point the touch time difference with
Whether preset value is consistent, so as to be unlocked to mobile terminal touch screen, touch point can also according to circumstances be moved, and be improved
Security is unlocked, is provided users with the convenient.
Brief description of the drawings
Fig. 1 is a kind of flow chart of the preferred embodiment of touch screen unlocking method based on mobile terminal of the present invention.
Fig. 2 is a kind of touch screen unlocking method based on mobile terminal of the present invention when the one kind for having 4 touch points is real
Apply the schematic diagram of example.
A kind of touch screen unlocking method based on mobile terminal that Fig. 3 is the present invention when there is 4 touch points unlocks rail
A kind of schematic diagram of embodiment of mark.
A kind of touch screen unlocking method based on mobile terminal that Fig. 4 is the present invention when there is 4 touch points unlocks rail
A kind of schematic diagram of embodiment of the touch time range of adjacent touch point is pre-set in mark.
Fig. 5 is a kind of a kind of flow of Application Example of touch screen unlocking method based on mobile terminal of the present invention
Figure.
Fig. 6 is a kind of principle of work and power frame of the preferred embodiment of touch-screen system for unlocking based on mobile terminal of the present invention
Figure.
Embodiment
To make the objects, technical solutions and advantages of the present invention clearer, clear and definite, develop simultaneously embodiment pair referring to the drawings
The present invention is further described.It should be appreciated that the specific embodiments described herein are merely illustrative of the present invention, and without
It is of the invention in limiting.
A kind of touch screen unlocking method based on mobile terminal described in first embodiment of the invention, as shown in figure 1, bag
Include:
Step S100, mobile terminal set the touch point of N number of order for having priority, phase in touch-screen unlock interface in advance
The time range Ti of slip between adjacent touch point is simultaneously stored, wherein, described N, i are the natural number more than 1, and i≤N.
When it is implemented, setting two or more touches for having a sequencing in mobile terminal touch screen unlock interface
Point, P1、P2、P3、……、PNTo there is the touch point on touch-screen, and its order is P1、P2、P3、……、PN, the present invention and 4
Illustrated exemplified by touch point, as shown in Fig. 2 schematic diagram when being illustrated in figure 2 N=4, certain P1、P2、P3、P4Four touches
The position of point can be any.
When user unlocks, it is necessary to make to slide touch successively by the sequencing of these touch points, user must be according to P1、P2、
P3、……、PNOrder, successively by P1Slide into P2, by P2Slide into P3... ..., by PN-1Slide into PN;It is illustrated in figure 3
Sliding trace between the tactile lock path schematic diagram of touch point position shown in Fig. 2, two of which touch point can be it is arbitrary, such as
By P shown in Fig. 21Slide into P2Sliding trace be a curve, and P2Slide into P3, P3Slide into P4Track be straight line.
In unblock, certain requirement must is fulfilled for from the used time of a touch point to next touch point;Tool
Body is to slide into P by arbitrfary point1Time be T1, by P1Slide into P2Time be T2, by P2Slide into P3Time be T3, by
P3Slide into P4Time be T4... ..., by PN-1Slide into PNTime be TN;Wherein, T1、T2、T3、……、TN-1、TNIt is
One time range;Shown in Fig. 4, T2 need to be met from the P1 times for sliding into P2 in releasing process, from P2 slide into P3 when
Between need to meet T3, need to meet T4 from the P3 times for sliding into P4.
Step S200, the unlock instruction for detecting user, obtain user and touch the touch point coordinates of touch-screen and touch phase
The time difference of adjacent touch point, judge whether between meeting the touch point coordinates order pre-set and touching adjacent touch point
The time range of slip;Success is unlocked if above-mentioned condition is met, otherwise prompting unblock failure.
When it is implemented, the step S200 is specifically included:
S201, the unlock instruction for detecting user, obtain the touch point coordinates (x, y) that user touches touch-screen, obtain and work as
The contact P that preceding time and next needs are touchedi, calculate current time and touch a upper touch point Pi-1Time difference
T, is calculated(x,y)With touch point PiThe distance between d;
S202, judgement(x,y)Whether it is P1、P2、P3、……、PNIn some touch point, if perform step
S203, if otherwise performing step S205;
S203, judgement(x,y)Whether it is touch point Pi, if it is judge whether time difference t meets Timin ≤ t≤
TiMax, fails if otherwise unblock, wherein Timin 、TiMax is respectively to prestore from touch point Pi-1To sliding into
Touch point PiSliding time scope TiMinimum value and maximum;
S204, judge whether i is equal to N, if it is unlock successfully, if otherwise i=i+1, execution step S201 afterwards;
S205, according to t and d to touch point PiMove, step S201 is performed afterwards.
When it is implemented, the step S100 also includes:
Mobile terminal pre-sets each touch point PiThe first touch area ENMin and the second touch area ENMax is simultaneously deposited
Storage.Wherein, the touch point PiThe first touch area ENMin is with touch point PiFor the center of circle, Dmin is the circle of radius
Domain, the second touch area ENMax is with touch point PNFor the center of circle, Dmax is the border circular areas of radius.
Specific processing method in the step S205 is:When user is by PN-1To PNDuring slip, when sliding into touch area
ENWhen in min, if time t meets t<T NthresholdThen touch point PiStart movement;As time t>TNDuring min, user does not slide yet
To touch area ENIn max, then touch point PiStart movement.More specifically step S205 includes step:
If S251, t<TiThreshold and d<Dmin, wherein TiThreshold is less than TiA min time threshold values,
Then touch point PiStart movement, touch point PiIn PiThe point touched on the touchscreen with active user(X, y)It is remote on line(X,
y)Move in direction;Touch point PiDisplacement is;
If S252, t>TiMin and d >=Dmax, then touch point PiStart movement, touch point PiWith active user on the touchscreen
The point of touch(X, y)Line is close(X, y)Move in direction;Touch point PiDisplacement is。
Wherein, the step D, touch area ENMin method to set up:The region is one with touch point PiFor the center of circle,
Dmin is the border circular areas of radius, a main points(X, y)MeetThen think a little
(X, y)In touch area ENIn min, otherwise it is assumed that point(X, y)In touch area ENOutside min;
Wherein, the step D, touch area ENMax method to set up:The region is one with touch point PiFor the center of circle,
Dmax is the border circular areas in the center of circle, a main points(X, y)MeetThen think a little(X, y)
In touch area ENIn max, otherwise it is assumed that point(X, y)In touch area ENOutside max.
Present invention also offers a kind of Application Example of the touch screen unlocking method based on mobile terminal, as shown in figure 5,
Methods described includes step:
Step S1, when user lights screen and touches touch-screen, a time-out time is opened in triggering is 100 milliseconds of timing
Device TIMER, sets variable i and zero setting, and step S2 is performed afterwards;
Step S2, i=i+1, performs step S3 afterwards;
Step S3, judge whether timer TIMER is overtime, if yes then enter step S4, otherwise perform step S3;
Step S4, judge whether to discharge touch-screen, if it is perform step S11, otherwise perform step S5;
Step S5, the coordinate for obtaining user's touch touch-screen(x,y), current time is obtained, next needs is obtained and is touched
The touch point P touchedi, calculate current time and touch a upper touch point Pi-1Time difference t, calculate(x,y)With touch point Pi
The distance between d, step S6 is performed afterwards;
Step S6, judgement(x,y)Whether it is P1、P2、P3、……、PNIn some touch point, if it is perform step
Rapid S7, otherwise performs step S10;
Step S7, judgement(x,y)Whether it is touch point Pi, step S8 is if it is performed, step S11 is otherwise performed;
Step S8, judge whether t meets Timin ≤ t≤ TiMax, if it is performs step S9, otherwise performs step
S11;
Step S9, judge whether i is equal to N, if it is perform step S12, otherwise perform step S2;
Step S10, according to t and d to touch point PiHandled, step S3 is performed afterwards;
Step S11, unblock failure;
Step S12, unlock successfully.
Wherein, need to be set by the user unblock setting by setup module 110 before the step S1, it includes setting unblock
When touch track and the corresponding time, two or more touch points for having a sequencing, P are specially set1、P2、P3、……、
PNTo there is the touch point on touch-screen 200, and its order is P1、P2、P3、……、PN;Adjacent touch point P is set respectivelyk-1 、Pk
Between sliding time scope T k ;Wherein, described N, K are the natural number more than 1, and K≤N;
Wherein, the step S5, if i is equal to 1, Pi-1Refer to the point that first is touched on touch-screen, i.e. P0For
The point that first is touched on touch-screen;
Wherein, the step S10, according to t and d to touch point PiHandled, specific processing method is as follows:
If t<TiThreshold and d<Dmin, then touch point PiStart movement,
Touch point PiMotion track:PiThe point touched on the touchscreen with active user(X, y)Line;
Touch point PiMoving direction:It is remote(X, y)Direction;
Touch point PiDisplacement:;
If t>TiMin and d >=Dmax, then touch point PiStart movement,
Touch point PiMotion track:PiThe point touched on the touchscreen with active user(X, y)Line;
Touch point PiMoving direction:It is close(X, y)Direction;
Touch point PiDisplacement:;
Other situations, touch point point PiDo not move.
From above-described embodiment, the invention provides a kind of touch screen unlocking method based on mobile terminal, the present invention
In only when user according to pre-set unblock touch-screen touch dot sequency and adjacent touch point between time range solved
During lock, touch-screen can be just unlocked, the position of touch point is moved according to actual conditions, the security for touching screen unlocks is improved,
Userspersonal information can be effectively protected, is provided users with the convenient.
Based on above-described embodiment, the present invention also provides a kind of touch-screen system for unlocking based on mobile terminal, such as Fig. 6 institutes
Show, system includes:
A kind of touch-screen system for unlocking based on mobile terminal, wherein, the system includes:
Pre-set and memory module 510, for mobile terminal set in advance in touch-screen unlock interface it is N number of have successively
The touch point of order, the time range T of slip between adjacent touch pointiAnd store, wherein, described N, i are more than 1
Natural number, and i≤N;As detailed above.
Obtain with judge module 520, the unlock instruction for detecting user, obtain the touch point that user touches touch-screen
Coordinate and the time difference for touching adjacent touch point, judge whether to meet the touch point coordinates order pre-set and touch adjacent
The time range of slip between touch point;Success is unlocked if above-mentioned condition is met, otherwise prompting unblock failure;Specifically as above
It is described.
The described touch-screen system for unlocking based on mobile terminal, wherein, the acquisition is specifically wrapped with judge module 520
Include:
Detection and acquiring unit, the unlock instruction for detecting user obtain the touch point seat that user touches touch-screen
Mark (x, y), obtain the contact P that current time and next needs are touchedi, calculate current time and touch a upper touch point
Pi-1Time difference t, calculate(x,y)With touch point PiThe distance between d;As detailed above.
First judging unit, for judging(x,y)Whether it is P1、P2、P3、……、PNIn some touch point;Specifically
As described above.
Second judging unit, for judging(x,y)Whether it is touch point Pi, if it is judge whether time difference t is full
Sufficient Timin ≤ t≤ TiMax, fails if otherwise unblock, wherein Timin 、TiMax is respectively to prestore from touch
Point Pi-1To sliding into touch point PiSliding time scope TiMinimum value and maximum;As detailed above.
3rd judging unit, for judging whether i is equal to N;As detailed above.
Control unit, for according to t and d to touch point PiMove;As detailed above.
The described touch-screen system for unlocking based on mobile terminal, wherein, described pre-set also is used with memory module 510
Each touch point P is pre-set in mobile terminaliThe first touch area ENMin and the second touch area ENMax is simultaneously stored;Tool
Body is as described above.
The described touch-screen system for unlocking based on mobile terminal, wherein, the touch point PiThe first touch area
ENMin is with touch point PiFor the center of circle, Dmin is the border circular areas of radius, the second touch area ENMax is with touch point PiFor circle
The heart, Dmax is the border circular areas of radius;As detailed above.
The described touch-screen system for unlocking based on mobile terminal, wherein, described control unit is specifically included:
First judges and mobile unit, if for t<TiThreshold and d<Dmin, wherein TiThreshold be less than
TiA min time threshold values, then touch point PiStart movement, touch point PiIn PiTouched on the touchscreen with active user
Point(X, y)It is remote on line(X, y)Move in direction;Touch point PiDisplacement is;
As detailed above.
Second judges and mobile unit, if t>TiMin and d >=Dmax, then touch point PiStart movement, touch point PiWith working as
The point that preceding user touches on the touchscreen(X, y)Line is close(X, y)Move in direction;Touch point PiDisplacement is;As detailed above.
In summary, the invention provides a kind of touch screen unlocking method based on mobile terminal and system, methods described
Including:Mobile terminal is set in touch-screen unlock interface between the touch point of N number of order for having priority, adjacent touch point in advance
Slip time range Ti and store, wherein, described N, i are the natural number more than 1, and i≤N;Detect the solution of user
Lock instruction, obtains user and touches the touch point coordinates of touch-screen and touch the time difference of adjacent touch point, judge whether to meet pre-
What is first set touches the time range of the slip between point coordinates order and touch adjacent touch point;If above-mentioned condition is met
Unlock successfully, otherwise prompting unblock failure.The present invention can be by judging the sequencing of touch point and touching for adjacent touch point
Touch whether the time difference is consistent with preset value, so as to be unlocked to mobile terminal touch screen, touch point can also according to circumstances be carried out
It is mobile, unblock security is improved, is provided users with the convenient.
It should be appreciated that the application of the present invention is not limited to above-mentioned citing, for those of ordinary skills, can
To be improved or converted according to the above description, all these modifications and variations should all belong to the guarantor of appended claims of the present invention
Protect scope.