Mobile terminal unlock method and device
Technical field
The present invention relates to communication technical field, relate in particular to a kind of mobile terminal unlock method and device.
Background technology
Mobile terminal develops for many years, and from function machine to intelligent machine, to handheld terminal, any mobile terminal, lights screen, and what First view was seen is exactly screen locking! Along with mobile terminal hardware advances is maked rapid progress, also there is earth-shaking variation in screen locking mode.Unlocking manner also develops into various unlocking manners of present function machine epoch from the physical button release in function machine epoch, as slip unlocking screen, by various transducer releases etc.
Existing slip unlocking screen mode, in the case of meeting water or TP(touch panel contact panel own) precision not high, release success rate will reduce, this is puzzlement user's a great problem.Rock release and can utilize by the mode of transducer release, for example, " mobile phone of whipping release " (application number/patent No.: CN201020691409.X applicant: Shanghai Huaqin Communication Technology Co., Ltd.), gravity sensing module by embedded in mobile phone baseband chip to transverse acceleration induction release, the outside mode of carrying out release with the LED of transverse shifting flicker that realizes; Again for example, " a kind of portable electric device with whipping unlocking function " (application number/patent No.: CN201020605371.X applicant: TCL Group Co., Ltd.), processes by central processing unit all directions acceleration information that electronics process acceleration induction device passes back and reaches the release object that changes lock-out state.
And rock this mode of mobile phone release, and can cause user's misoperation, the adept machine of for example user, on hand, has been waved assistant, and mobile phone is with regard to release.
Summary of the invention
The invention provides a kind of mobile terminal unlock method and device, avoided misoperation, extended the useful life of mobile terminal screen, improved user experience, and improved security of mobile terminal to a certain extent.
In order to achieve the above object, the invention provides a kind of mobile terminal unlock method, utilize the shift value coupling of mobile terminal to realize the release of mobile terminal; If length recognition processing module judges the difference DELTA s of mobile terminal shift value s and default mobile terminal displacement standard value S and is less than or equal to default displacement data deviation limits value Δ S, and gyroscope judges that mobile terminal is picked up after mobile end, separates lock module mobile terminal is carried out to release.
Length recognition processing module calculates mobile terminal displacement in the plane, obtains described mobile terminal shift value s:
;
Wherein, v
0initial velocity, because mobile terminal is to move from static beginning, so v
0=0, acceleration a measures by acceleration induction device, and traveling time t obtains by timer measuring.
Before calculating mobile terminal shift value s, also need mobile terminal unlocking manner to carry out initialization setting, mobile terminal displacement standard value S and displacement data deviation limits value Δ S are set.
The described step that mobile terminal unlocking manner is carried out to initialization setting comprises following steps:
Step S1, by mobile in the plane mobile terminal any distance, measure acceleration a by acceleration induction device, obtain traveling time t by timer measuring;
Step S2, length recognition processing module calculate mobile terminal shift value S, and using this mobile terminal shift value as mobile terminal displacement standard value S;
, wherein, V
0initial velocity, because mobile terminal is to move from static beginning, so V
0=0;
Step S3, initialization module arrange displacement data deviation limits value Δ S, and mobile terminal displacement standard value S and displacement data deviation limits value Δ S are kept in data storage.
In described step S1, described any distance can be set and equal the width of user's palm, or described any distance is set equals the length of user's root finger, or described any distance is set equals 10cm.
Mobile terminal moves in the plane, and described plane is desktop or metope or palm surface.
If length recognition processing module judges the difference DELTA s of mobile terminal shift value s and default mobile terminal displacement standard value S and is greater than default displacement data deviation limits value Δ S, release failure, need to make mobile terminal again move in the plane, and whether the difference DELTA s that rejudges mobile terminal shift value s and default mobile terminal displacement standard value S is less than or equal to default displacement data deviation limits value Δ S.
Gyroscope changes by the angle of identification mobile terminal, judge whether mobile terminal is picked up, if gyroscope detects the angle of mobile terminal and changes, judge that mobile terminal is picked up, if gyroscope detects the angle of mobile terminal and do not change, judge that mobile terminal is not picked up.
If gyroscope judges mobile terminal and is not picked up, release failure, need to make mobile terminal again move in the plane, and whether the difference DELTA s that rejudges mobile terminal shift value s and default mobile terminal displacement standard value S be less than or equal to default displacement data deviation limits value Δ S, and rejudge mobile terminal and whether picked up.
The present invention also provides a kind of mobile terminal unlocking device, and this mobile terminal unlocking device comprises:
Acceleration transducer, it is for measuring the acceleration of mobile terminal;
Timer, it is for measuring the traveling time of mobile terminal;
Length recognition processing module, it connects described acceleration transducer and timer, for calculating the shift value of mobile terminal;
Initialization module, it connects described length recognition processing module, for displacement data deviation limits value is set;
Data storage, it connects described initialization module and length recognition processing module, for memory mobile terminal displacement standard value and displacement data deviation limits value;
Gyroscope, it changes for the angle of identifying mobile terminal;
Separate lock module, it connects described length recognition processing module and gyroscope, for unlocking mobile terminal.
The present invention has the following advantages:
1, with respect to slip unlocking manner, the present invention by simpler unlocking manner improved user experience, not affected by environment or mobile terminal hardware;
2, be also must gyroscope after mobile mobile terminal to judge that mobile terminal picks up due to what adopt, so the present invention possesses anti-misoperation ability;
3, effectively reduce the number of times that uses touch-screen, reduce physical damnification probability, can extend the useful life of touch-screen.
Brief description of the drawings
Fig. 1 is the flow chart of the specific embodiment of the present invention.
Embodiment
Illustrate preferred embodiment of the present invention according to Fig. 1 below.
As shown in Figure 1, the invention provides a kind of mobile terminal unlock method, comprise following steps:
Step 1, mobile terminal unlocking manner is carried out to initialization setting, mobile terminal displacement standard value S and displacement data deviation limits value Δ S are set;
Described step 1 comprises following steps:
Step 1.1, by mobile in the plane mobile terminal any distance, measure acceleration a by acceleration induction device, obtain traveling time t by timer measuring;
Described any distance can arbitrarily arrange, for example: and this distance can be set and equal the width of user's palm, or this distance is set equals the length of user's root finger, or this distance is set equals 10cm, etc.;
Described plane can be the arbitrary plane such as desktop or metope or palm surface;
Step 1.2, length recognition processing module calculate mobile terminal shift value S, and using this mobile terminal shift value as mobile terminal displacement standard value S;
, wherein, V
0initial velocity, because mobile terminal is to move from static beginning, so V
0=0;
Step 1.3, initialization module arrange displacement data deviation limits value Δ S, and mobile terminal displacement standard value S and displacement data deviation limits value Δ S are kept in data storage;
Described displacement data deviation limits value Δ S can need to arrange arbitrary value according to user;
If step 2 needs unlocking mobile terminal,, by a mobile in the plane mobile terminal segment distance s, length recognition processing module calculates mobile terminal shift value s;
The computational methods of mobile terminal shift value s are consistent with the computational methods of mobile terminal displacement standard value S;
;
Wherein, v
0initial velocity, because mobile terminal is to move from static beginning, so v
0=0, acceleration a measures by acceleration induction device, and traveling time t obtains by timer measuring;
Described plane can be the arbitrary plane such as desktop or metope or palm surface;
Mobile terminal displacement standard value S comparison in step 3, the shift value s that step 2 is obtained and data storage, judges whether difference DELTA s≤displacement data deviation limits value Δ S sets up, and if so, carry out step 4, if not, returns to step 2;
Whether the angle of step 4, gyroscope identification mobile terminal changes, judge whether mobile terminal is picked up, if gyroscope detects the angle of mobile terminal and changes, judge that mobile terminal is picked up, carry out step 5, if gyroscope detects the angle of mobile terminal and does not change, judge that mobile terminal is not picked up, return to step 2;
Step 5, solution lock module are by mobile terminal release.
The present invention also provides a kind of mobile terminal unlocking device of realizing mobile terminal unlock method, comprises:
Acceleration transducer, it is for measuring the acceleration of mobile terminal;
Timer, it is for measuring the traveling time of mobile terminal;
Length recognition processing module, it connects described acceleration transducer and timer, for calculating the shift value of mobile terminal;
Initialization module, it connects described length recognition processing module, for displacement data deviation limits value is set;
Data storage, it connects described initialization module and length recognition processing module, for memory mobile terminal displacement standard value and displacement data deviation limits value;
Gyroscope, it changes for the angle of identifying mobile terminal;
Separate lock module, it connects described length recognition processing module and gyroscope, for unlocking mobile terminal.
Mobile terminal in the present invention is the portable equipments such as mobile phone, panel computer.
The present invention utilizes mobile terminal length measurement technique, the displacement of measurement is mated with the distance of mobile terminal initial setting up, as differed larger with the distance arranging, cannot release, as roughly the samely in precision judge whether mobile terminal is picked up, must pick up mobile terminal just can release, so can misoperation, can also improve the certain security capabilities of mobile terminal, because be not limited by the quality of mobile terminal screen, improve preferably user experience again.
Although content of the present invention has been done detailed introduction by above preferred embodiment, will be appreciated that above-mentioned description should not be considered to limitation of the present invention.Read after foregoing those skilled in the art, for multiple amendment of the present invention and substitute will be all apparent.Therefore, protection scope of the present invention should be limited to the appended claims.