Summary of the invention
The object of the present invention is to provide and a kind ofly shake the method for unlocking mobile terminal and can shake the mobile terminal of release, be intended to solve the technical problem of existing mobile terminal unlocking manner inconvenience.
The present invention is achieved in that a kind of method of shaking unlocking mobile terminal, comprising: detect the state that shakes of mobile terminal, generate the step of the information of shaking; Whether the value of shaking information described in judgement is more than or equal to default step of shaking the value of information; If described in shake information value be more than or equal to described default value of shaking information, generate the step of unlock command; According to described unlock command, described mobile terminal is carried out to release, and produce the step of release information; And according to described release information, the released state of described mobile terminal is fed back, export the step of successful release information.
Preferably, also comprise: if described in shake information value be less than described default value of shaking information, the step of release failure.
Preferably, described in, the information of shaking is described mobile terminal shakes acceleration.
Preferably, described in the information of shaking comprise described mobile terminal the amplitude of shaking, shake frequency, shake acceleration.
Preferably, described successful release information is successfully release prompt tone, successful release picture or successful release animation.
Another object of the present invention is to provide a kind of mobile terminal that shakes release, comprise: shake induction module, be connected in and shake judge module, detect the state that shakes of described mobile terminal, information is shaken in generation, and will described in the information of shaking shake judge module described in sending to; The described judge module that shakes, be connected in separate lock module and described in shake induction module, shake information described in reception, whether the value of shaking information described in judgement is more than or equal to default value of shaking information, if so, generate unlock command, and send described unlock command to described solution lock module; Described solution lock module, be connected in information feedback module and described in shake judge module, receive described unlock command, according to described unlock command, described mobile terminal is carried out to release, and release information is sent to described information feedback module; And described information feedback module, being connected in described solution lock module, release information described in reception, feeds back the released state of described mobile terminal according to described release information, exports successful release information.
Preferably, described in, shaking induction module is gyroscope.
Preferably, the described information of shaking is to shake acceleration, described shaking shaken acceleration described in judge module judgement and whether is more than or equal to the default acceleration that shakes, if described in shake acceleration and be more than or equal to the described default acceleration that shakes, shake judge module described in to send described unlock command to described solution lock module.
Preferably, described information feedback module comprises loudspeaker and display screen, and described loudspeaker is play successful release prompt tone, and described display screen shows successful release picture or successful release animation.
Preferably, described mobile terminal is mobile phone, personal digital assistant, panel computer, game machine or portable player.
Provided by the inventionly shake the method for unlocking mobile terminal and can shake the mobile terminal of release, can carry out unlocking mobile terminal by the mode of shaking, user is easy to use, has improved user's experience.
Embodiment
In order to make object of the present invention, technical scheme and advantage clearer, below in conjunction with drawings and Examples, the present invention is further elaborated.Should be appreciated that specific embodiment described herein, only in order to explain the present invention, is not intended to limit the present invention.
Refer to Fig. 1, Fig. 1 is the method flow diagram that shakes unlocking mobile terminal that one embodiment of the invention provides.The method 100 of as shown in Figure 1, shaking unlocking mobile terminal comprises:
Step S101: detect the state that shakes of mobile terminal, generate the information of shaking.Specifically, when user shakes mobile terminal, detect the state that shakes of mobile terminal, generate the information of shaking.
In preferred embodiment, the information of shaking comprises the acceleration that shakes of mobile terminal.In another preferred embodiment, the information of shaking comprise mobile terminal the amplitude of shaking, shake frequency and shake acceleration.Wherein, mobile terminal comprises mobile phone, personal digital assistant, panel computer, game machine and portable player etc.
Step S103: whether the value that information is shaken in judgement is more than or equal to default value of shaking information, if so,, the value of shaking information is more than or equal to default value of shaking information, performs step S105; If not, that is, the value of shaking information is less than default value of shaking information, release failure.
In preferred embodiment, step S103 judgement is shaken acceleration and whether is more than or equal to the default acceleration that shakes.Wherein, default value of shaking information can be that the end user by mobile terminal sets according to actual needs, also can be set by the supplier of mobile terminal a default value.
Step S105: generate unlock command.
Step S107: according to unlock command, mobile terminal is carried out to release, and produce release information.
Step S107: according to release information, the released state of mobile terminal is fed back, export successful release information, to point out end user's release success.Wherein, successful release information comprises successfully release prompt tone, successful release picture or successful release animation.
The method of shaking unlocking mobile terminal 100 shown in Fig. 1, provides a kind of new unlock method, by detecting the state that shakes of mobile terminal, carrys out unlocking mobile terminal, allows user and mobile terminal interdynamic, and user is easy to use, to user, brings brand-new user to experience.
Refer to Fig. 2, Fig. 2 is the structural representation of the mobile terminal of the shaken release that provides of one embodiment of the invention.The mobile terminal 200 that as shown in Figure 2, can shake release comprises: shake induction module 210, shake judge module 220, separate lock module 230 and information feedback module 240.
Shake induction module 210, be connected in and shake judge module 220, detect the state that shakes of mobile terminal 200, generate the information of shaking, and will the information of shaking send to and shake judge module.Wherein, mobile terminal 200 comprises mobile phone, personal digital assistant, panel computer, game machine and portable player etc.In preferred embodiment, shaking induction module 210 is angular-rate sensors, for example gyroscope.The information of shaking comprises the acceleration that shakes of mobile terminal 200.In another preferred embodiment, the information of shaking comprise mobile terminal 200 the amplitude of shaking, shake frequency and shake acceleration.
Shake judge module 220, be connected in and shake induction module 210 and separate lock module 230, the information of shaking that induction module 210 sends is shaken in reception, whether the value that information is shaken in judgement is more than or equal to default value of shaking information, the value of if so,, shaking information is more than or equal to default value of shaking information, shake judge module 220 and generate unlock command, and send unlock command to separating lock module; If not, that is, the value of shaking information is less than default value of shaking information, release failure.
In preferred embodiment, shake judge module 220 judgement and shake acceleration and whether be more than or equal to and defaultly shake acceleration, if shake acceleration, be more than or equal to and defaultly shake acceleration, shake judge module 220 and send unlock commands to separating lock module.Wherein, default value of shaking information can be that the end user by mobile terminal 200 sets according to actual needs, also can according to frequently-used data, set a default value by the supplier of mobile terminal 200.
Separate lock module 230, be connected in and shake judge module 220 and information feedback module 240, receive and shake the unlock command that judge module sends, according to unlock command, mobile terminal 200 is carried out to release, and release information is sent to information feedback module 240.
Information feedback module 240, is connected in and separates lock module 230, receives and separates the release information that lock module 230 sends, and the released state of mobile terminal 200 is fed back, and exports successful release information; Wherein, information feedback module 240 comprises loudspeaker and display screen, and loudspeaker is play successful release prompt tone, and display screen shows successful release picture or successful release animation, to point out end user's release success.
In different embodiment, can the one in loudspeaker and display screen export successful release information, that is, after release success, only have loudspeaker to play successful release prompt tone, display screen does not show successful release picture or successful release animation; Or only have display screen to show successful release picture or successful release animation, loudspeaker is not play successful release prompt tone.
The mobile terminal 200 of the shaken release shown in Fig. 2, the state that shakes that detects mobile terminals by shaking induction module 210 carrys out unlocking mobile terminal 200, allows user and mobile terminal 200 interactions, and user is easy to use, to user, brings brand-new user to experience.
Provided by the inventionly shake the method for unlocking mobile terminal and can shake the mobile terminal of release, a kind of new unlocking manner is provided, can have carried out unlocking mobile terminal by the mode of shaking, allowed user and mobile terminal interdynamic, user is easy to use, to user, brings brand-new user to experience.
The foregoing is only preferred embodiment of the present invention, not in order to limit the present invention, all any modifications of doing within the spirit and principles in the present invention, be equal to and replace and improvement etc., within all should being included in protection scope of the present invention.