Mobile terminal unlocking method and device
Technical field
The present invention relates to field of communication technology more particularly to a kind of mobile terminal unlocking method and devices.
Background technique
For many years, to handheld terminal from function machine to intelligent machine, any mobile terminal lights screen for mobile terminal development, the
What is seen at a glance is exactly screen locking!As mobile terminal hardware advances are maked rapid progress, earth-shaking change also occurs for screen locking mode
Change.Unlocking manner also unlocks function machine epoch various unlock sides till now from the physical button in function machine epoch
Formula, such as slide unlocking screen, unlocked by various sensors.
Existing sliding unlocking screen mode is meeting water or TP(touch panel touch panel itself) precision it is not high
In the case where, unlock success rate will reduce, this is a great problem for perplexing user.And it can be in such a way that sensor unlocks
It is unlocked using shaking, for example, " mobile phone of the whipping unlock " (application number/patent No.: CN201020691409.X applicant: Shanghai
Hua Qin ANT Nachrichtentechnik GmbH), the gravity sensing module that transverse acceleration induction is unlocked by baseband chip built in mobile phone,
Realize the mode being unlocked with the LED that transverse shifting flashes in outside;In another example " a kind of hand-held with whipping unlocking function
Formula electronic device " (application number/patent No.: CN201020605371.X applicant: TCL Group Co., Ltd.), in
The all directions acceleration information that central processor processing electronics process acceleration induction device is passed back, which reaches, changes lock state
Unlock purpose.
And shake this mode of mobile phone unlock, then the maloperation of user, such as the adept machine of user can be caused to wave on hand
It sets about, then mobile phone just unlocks.
Summary of the invention
The present invention provides a kind of mobile terminal unlocking method and device, avoids maloperation, extends mobile terminal screen
Service life, improve user experience, and improve security of mobile terminal to a certain extent.
In order to achieve the above object, the present invention provides a kind of mobile terminal unlocking method, utilizes the shift value of mobile terminal
The unlock of mobile terminal is realized in matching;If length recognition processing module judges mobile terminal shift value s and preset movement eventually
The difference DELTA s of end movement standard value S is less than or equal to preset displacement data deviation limits value Δ S, and gyroscope judgement movement
Terminal is lifted after movement, then unlocked state is unlocked mobile terminal.
Length recognition processing module calculates the displacement of mobile terminal in the plane, obtains the mobile terminal shift value s:
;
Wherein, v0It is initial velocity, since mobile terminal is moved since static, so v0=0, acceleration a passes through acceleration
Degree sensor measurement obtains, traveling timetIt is obtained by timer measurement.
Before calculating mobile terminal shift value s, it is also necessary to carry out Initialize installation, setting to mobile terminal unlocking manner
Mobile terminal shift standards value S and displacement data deviation limits value Δ S.
Described comprises the steps of: the step of carrying out Initialize installation to mobile terminal unlocking manner
Step S1, mobile terminal is moved into any distance in the plane, acceleration is obtained by acceleration induction device measurement
A obtains traveling time by timer measurementt;
Step S2, mobile terminal shift value S is calculated in length recognition processing module, and the mobile terminal shift value is made
For mobile terminal shift standards value S;
,
Wherein, v0It is initial velocity, since mobile terminal is moved since static, so v0=0;
Step S3, displacement data deviation limits value Δ S is arranged in initialization module, by mobile terminal shift standards value S and position
Data deviation limits value Δ S is moved to be stored in data storage.
In the step S1, the settable any distance is equal to the width of user's palm, or described in setting
Any distance is equal to the length of user's root finger, or any distance described in setting is equal to 10cm.
Mobile terminal moves in the plane, and the plane is desktop or metope or palm surface.
If length recognition processing module judges mobile terminal shift value s's and preset mobile terminal shift standards value S
Difference DELTA s is greater than preset displacement data deviation limits value Δ S, then unlocks failure, needs to make mobile terminal again in the plane
It is mobile, and whether the difference DELTA s for rejudging mobile terminal shift value s and preset mobile terminal shift standards value S is less than
In preset displacement data deviation limits value Δ S.
Gyroscope passes through the angle change of identification mobile terminal, to judge whether mobile terminal is lifted, if gyroscope
It detects that the angle of mobile terminal changes, then judges that mobile terminal is lifted, if gyroscope detects mobile terminal
Angle does not change, then judges that mobile terminal is not lifted.
If gyroscope judges that mobile terminal is not lifted, failure is unlocked, needs to make mobile terminal again in the plane
It is mobile, and whether the difference DELTA s for rejudging mobile terminal shift value s and preset mobile terminal shift standards value S is less than
In preset displacement data deviation limits value Δ S, and rejudge whether mobile terminal is lifted.
The present invention also provides a kind of mobile terminal unlocking devices, which includes:
Acceleration transducer is used to measure the acceleration of mobile terminal;
Timer is used to measure the traveling time of mobile terminal;
Length recognition processing module, the connection acceleration transducer and timer, for calculating mobile terminal
Shift value;
Initialization module, the connection length recognition processing module, for displacement data deviation limits value to be arranged;
Data storage, the connection initialization module and length recognition processing module, is used for memory mobile terminal
Shift standards value and displacement data deviation limits value;
Gyroscope, for identification angle change of mobile terminal;
Unlocked state, connection the length recognition processing module and gyroscope, for unlocking mobile terminal.
The invention has the following advantages that
1, relative to sliding unlocking manner, the present invention improves user experience by more accurate and simple unlocking manner
Degree, not by environment or mobile terminal hardware impact;
2, due to using after mobile mobile terminal must also gyroscope determine that mobile terminal is picked up, so the present invention has
Standby anti-misoperation ability;
3, the number using touch screen is effectively reduced, physical damnification probability is reduced, the service life of touch screen can be extended.
Detailed description of the invention
Fig. 1 is the flow chart of a specific embodiment of the invention.
Specific embodiment
Presently preferred embodiments of the present invention is illustrated below according to Fig. 1.
As shown in Figure 1, the present invention provides a kind of mobile terminal unlocking method comprising the steps of:
Step 1 carries out Initialize installation to mobile terminal unlocking manner, and mobile terminal shift standards value S and displacement is arranged
Data deviation limits value Δ S;
The step 1 comprises the steps of:
Mobile terminal is moved any distance by step 1.1 in the plane, obtains acceleration by acceleration induction device measurement
A obtains traveling time by timer measurementt;
Any distance can be arbitrarily arranged, such as: the settable distance is equal to the width of user's palm, or setting
The distance is equal to the length of user's root finger, or the distance is arranged equal to 10cm, etc.;
The plane can be the arbitrary planes such as desktop or metope or palm surface;
Step 1.2, length recognition processing module are calculated mobile terminal shift value S, and by the mobile terminal shift value
As mobile terminal shift standards value S;
,
Wherein, v0It is initial velocity, since mobile terminal is moved since static, so v0=0;
Displacement data deviation limits value Δ S is arranged in step 1.3, initialization module, by mobile terminal shift standards value S and position
Data deviation limits value Δ S is moved to be stored in data storage;
The displacement data deviation limits value Δ S can need that arbitrary value is arranged according to user;
Mobile terminal is then moved a distance s, length identification by step 2, if necessary unlock mobile terminal in the plane
Mobile terminal shift value s is calculated in processing module;
The calculation method of mobile terminal shift value s is consistent with the calculation method of mobile terminal shift standards value S;
;
Wherein, v0It is initial velocity, since mobile terminal is moved since static, so v0=0, acceleration a passes through acceleration
Degree sensor measurement obtains, traveling timetIt is obtained by timer measurement;
The plane can be the arbitrary planes such as desktop or metope or palm surface;
Step 3, the shift value s for obtaining step 2 sentence compared with the mobile terminal shift standards value S in data storage
Whether disconnected difference DELTA s≤displacement data deviation limits value Δ S is true, if it is, step 4 is carried out, if it is not, then return step
2;
Whether step 4, the angle of gyroscope identification mobile terminal change, and judge whether mobile terminal is lifted, if top
Spiral shell instrument detects that the angle of mobile terminal changes, then judges that mobile terminal is lifted, then carries out step 5, if gyroscope
It detects that the angle of mobile terminal does not change, then judges that mobile terminal is not lifted, then return step 2;
Step 5, unlocked state unlock mobile terminal.
The present invention also provides a kind of mobile terminal unlocking devices for realizing mobile terminal unlocking method, include:
Acceleration transducer is used to measure the acceleration of mobile terminal;
Timer is used to measure the traveling time of mobile terminal;
Length recognition processing module, the connection acceleration transducer and timer, for calculating mobile terminal
Shift value;
Initialization module, the connection length recognition processing module, for displacement data deviation limits value to be arranged;
Data storage, the connection initialization module and length recognition processing module, is used for memory mobile terminal
Shift standards value and displacement data deviation limits value;
Gyroscope, for identification angle change of mobile terminal;
Unlocked state, connection the length recognition processing module and gyroscope, for unlocking mobile terminal.
Mobile terminal in the present invention is the handheld devices such as mobile phone, tablet computer.
The present invention utilizes mobile terminal length measurement technique, by the moving distance of measurement and mobile terminal initial setting up away from
From being matched, difference is larger such as at a distance from setting, then can not unlock, if precision is roughly the same, whether judge mobile terminal
It picks up, it is necessary to which picking up mobile terminal can just unlock, so will not maloperation, moreover it is possible to improve the certain safe energy of mobile terminal
Power, and because of the quality without being bound by mobile terminal screen, preferably improve user experience.
It is discussed in detail although the contents of the present invention have passed through above preferred embodiment, but it should be appreciated that above-mentioned
Description is not considered as limitation of the present invention.After those skilled in the art have read above content, for of the invention
A variety of modifications and substitutions all will be apparent.Therefore, protection scope of the present invention should be limited to the appended claims.