Summary of the invention
In view of above content, be necessary to provide a kind of portable electron device system for unlocking, can not injure screen again through the unlocking function of the portable electron device of manual dexterity ground control simply and easily.
Also be necessary to provide a kind of portable electron device unlock method, can not injure screen again through the unlocking function of the portable electron device of manual dexterity ground control simply and easily.
A kind of portable electron device system for unlocking, this portable electron device is equipped with electronic compass, and this system comprises: module is set, is used for the moving direction and the rotation mode of preset unlocking operation, and a Preset Time; Acquisition module is used for obtaining from electronic compass the moving direction and the rotation mode of the portable electron device that is sensed, and deposits in the storer; Accomplish judge module; Be used for judging whether moving direction and rotation mode that storer is stored change in Preset Time; Whether accomplish to judge that this moves with rotary manipulation, if moving direction or the rotation mode stored in the storer also change in this Preset Time, it is also underway to represent that then this moves with rotary manipulation; If moving direction of being stored in the storer and rotation mode no change all in Preset Time, represent then that this moves with rotary manipulation to accomplish; The release judge module; Be used for when above-mentioned judged result be that the moving direction stored of storer and rotation mode be not when all changing in Preset Time; The moving direction and the rotation mode of unlocking operation preset in the moving direction of storing in this storer and rotation mode and the storer are compared; If comparative result is that the moving direction of this storage is consistent with the moving direction and the rotation mode of the unlocking operation of presetting with rotation mode; Judging then that this moves with rotary manipulation meets unlocking condition, if inconsistent, judges then that this moves with rotary manipulation not meet unlocking condition; And separate lock module, and be used for moving when meeting unlocking condition with rotary manipulation when this, carry out unlocking operation.
A kind of portable electron device unlock method, this portable electron device is equipped with electronic compass, and this method may further comprise the steps: the sensing step: electronic compass continues the moving direction and the rotation mode of sensing portable electron device; Obtaining step: obtain the moving direction and the rotation mode of this portable electron device that is sensed, deposit in the storer; Accomplish determining step: whether moving direction and the rotation mode judging in the storer to be stored change in Preset Time; Whether accomplish to judge that this moves with rotary manipulation; If moving direction or the rotation mode stored in the storer also change in this Preset Time; It is also underway to represent that then this moves with rotary manipulation, returns the sensing step, if the moving direction stored and rotation mode no change all in Preset Time in the storer; Represent that then this moves and the rotary manipulation completion, gets into the release determining step; Release determining step: the moving direction and the rotation mode of unlocking operation preset in the moving direction of storing in the storer and rotation mode and the storer are compared; If comparative result be that the moving direction and the rotation mode of moving direction and the rotation mode of this storage and the unlocking operation preset is inconsistent; Judging then that this moves with rotary manipulation does not meet unlocking condition; Flow process finishes; If comparative result be that moving direction and the rotation mode of this storage is consistent with the moving direction and the rotation mode of the unlocking operation of presetting, judge then that this moves with rotary manipulation and meet unlocking condition, entering release step; And release step: portable electron device is carried out unlocking operation.
Compared to prior art; Said portable electron device system for unlocking and method; Moving direction and rotation mode through electronic compass sensing portable electron device are realized the unlocking operation to portable electron device; This method can be controlled the unlocking function of portable electron device delicately, can not injure screen again.
Embodiment
Consulting shown in Figure 1ly, is the running environment figure of portable electron device system for unlocking of the present invention preferred embodiment.
In the present embodiment, this portable electron device 1 comprises system for unlocking 10, electronic compass 11 (E-compass), processor 12, storer 13 and display screen 14.Said system for unlocking 10 is provided with the moving direction and the rotation mode of unlocking operation in advance, deposits in the storer 13.This rotation mode comprises sense of rotation and angle.
Said electronic compass 11 can sense the south poles in magnetic field of the earth, and passes through the angle of the built-in microprocessor calculating self and the arctic, magnetic field of the earth.When moving or during rotation portable electron device 1, electronic compass 11 can continue to sense the variable angle of self and the arctic, magnetic field of the earth, thereby can record the moving direction and the rotation mode of appended carrier portable electron device 1.
Said system for unlocking 10 can obtain this moving direction that senses and rotation mode from electronic compass 11; And processor controls 12 is presented at this moving direction and rotation mode on the display screen 14; Be convenient to the user understands portable electron device 1 from display screen 14 moving direction and rotation mode; And according to this moving direction that shows and rotation mode to portable electron device 1 move and rotary manipulation is further regulated; To meet unlocking condition, this unlocking condition is meant that the moving direction of portable electron device 1 is consistent with the moving direction and the rotation mode of the unlocking operation that is provided with in advance with rotation mode.For example, the moving direction of unlocking operation and rotation mode are: when portable electron device 1 moves, make portable electron device 1 45 degree that on the plane at its display screen 14 places, turn clockwise northwards.And actual conditions are; The user portable electron device 1 is moved and the process of rotating in, show on the display screen 14 that current portable electron device 1 moves northwards, but 30 degree that on plane, display screen 14 place, only turned clockwise; The user can be according to this video data; In the process that portable electron device 1 is northwards moved, make it on plane, display screen 14 place, continue to turn clockwise, on this display screen 14, show portable electron device 1 45 degree that turned clockwise.
Said system for unlocking 10 also is used to control 12 pairs of portable electron devices of this processor 1 and carries out unlocking operation.Wherein, the release in the present embodiment comprises and unties screen lock, keypad lock or encrypt file.
Consulting shown in Figure 2ly, is the functional block diagram of system for unlocking 10 among Fig. 1.This system for unlocking 10 comprises and module 101, acquisition module 102, sending module 103 is set, accomplishes judge module 104, release judge module 105 and separates lock module 106.
Moving direction and rotation mode that module 101 is used for preset unlocking operation are set, the moving direction of portable electron device 1 and rotation mode and moving direction and the consistent unlocking condition that is of rotation mode that should preset unlocking operation.Should preset method can be understood that the user made portable electron device 1 move to certain direction, be rotated in some way simultaneously that electronic compass 11 continued to sense the moving direction and the rotation mode of portable electron device 1.Module 101 is set this is moved with each moving direction and rotation mode constantly of rotary manipulation deposits in the storer 13, as the moving direction and the rotation mode of the unlocking operation of presetting.In this preferred embodiment, the moving direction of default unlocking operation and rotation mode can be as shown in Figure 4, and portable electron device 1 northwards moves, and 45 degree turn clockwise on its plane, display screen 14 place simultaneously.In other embodiments, the user can also be according to the hobby of oneself or the moving direction and the rotation mode of the preset unlocking operation of custom.
The said module 101 that is provided with also is used to be provided with a Preset Time, and this Preset Time can be used as judges the foundation whether this operation is accomplished when reality moves with rotary manipulation.For example, this Preset Time is 0.5 second.
When the user need carry out release to portable electron device 1; Move and also rotate this portable electron device 1 simultaneously; Electronic compass 11 continues the moving direction and the rotation mode of this portable electron device 1 of sensing; Acquisition module 102 obtains the moving direction and the rotation mode of this portable electron device 1 that is sensed from electronic compass 11, deposits in the storer 13.
Sending module 103 is used for sending display command to processor 12 according to moving direction that obtains and rotation mode, and processor 12 shows this moving direction and rotation mode according to this display command control display screen 14.
Accomplish judge module 104 and be used for judging whether moving direction and rotation mode that storer 13 is stored change in Preset Time, whether accomplish to judge that this moves with rotary manipulation.In this preferred embodiment; If moving direction of being stored in the storer 13 and rotation mode no change all in said Preset Time; Represent then that this moves with rotary manipulation and accomplish; If moving direction or the rotation mode stored in the storer 13 also change in this Preset Time, then expression should be moved with rotary manipulation also underway.Wherein, be meant in the said Preset Time that the current time pushes away a formed time period of Preset Time forward.
For example; Set Preset Time is 0.5 second; Whether accomplish judge module 104 judges that this moves with rotary manipulation and in the current time pushes away time period of 0.5 second forward, changes; As the current time be 9: 40: 40, the time period that then judges whether to change (being in the said Preset Time) is meant the time between 9: 40: 39.5 to 9: 40: 40.
Whether in other embodiments, accomplish judge module 104 also can judge that this moves with rotary manipulation through other method and accomplish.
Release judge module 105 is used to judge completed this moves with rotary manipulation whether meet unlocking condition.Particularly; Since acquisition module 102 can continue with this move with rotary manipulation in electronic compass 11 moving direction and the rotation mode that are sensed deposit in the storer 13; Be equivalent to have in the storer 13 this move with the rotary manipulation process in, the movement locus of portable electron device 1.Therefore, release judge module 105 compares through moving direction and the rotation mode with unlocking operation preset in the moving direction of storing in the storer 13 and rotation mode and the storer 13, judges this moves with rotary manipulation whether meet unlocking condition.
When this moves when consistent with the moving direction of the moving direction of rotary manipulation and rotation mode and preset unlocking operation and rotation mode; Release judge module 105 judges that this moves to meet unlocking condition with rotary manipulation and trigger and separates lock module 106 and send unlock command to processor 12 that processor 12 carries out release according to this unlock command to portable electron device 1.
Consulting shown in Figure 3ly, is the process flow diagram of portable electron device unlock method of the present invention preferred embodiment.When keyboard, screen or the encrypt file of portable electron device 1 were in the lock state, electronic compass 11 was that moving direction and the rotation mode of this portable electron device 1 of sensing is to judge whether to want release.The concrete grammar following steps are said.
Step S100, electronic compass 11 continues the moving direction and the rotation mode of sensing portable electron device 1.
Step S102, acquisition module 102 obtains the moving direction and the rotation mode of this portable electron device 1 that is sensed from electronic compass 11, deposits in the storer 13.
Step S104; Sending module 103 sends display command to processor 12 according to the moving direction and the rotation mode of the portable electron device 1 that obtains, and processor 12 shows the moving direction and the rotation mode of portable electron device 1 according to this display command control display screen 14.
Whether step S106 accomplishes judge module 104 and judge whether moving direction and the rotation mode stored in the storer 13 change in Preset Time, accomplish to judge that this moves with rotary manipulation.In this preferred embodiment; If moving direction of being stored in the storer 13 and rotation mode no change all in said Preset Time; Represent that then this moves and the rotary manipulation completion, flow process gets into step S108, if moving direction of being stored in the storer 13 or rotation mode also change in this Preset Time; Then expression should be mobile also underway with rotary manipulation, and flow process is returned step S100.
Step S108, release judge module 105 judge this moves with rotary manipulation whether meet unlocking condition.Particularly; Release judge module 105 compares the moving direction and the rotation mode of unlocking operation preset in the moving direction of storing in the storer 13 and rotation mode and the storer 13; If comparative result be that the moving direction and the rotation mode of moving direction and the rotation mode of this storage and the unlocking operation preset is inconsistent; Then release judge module 105 is judged that this moves with rotary manipulation and is not met unlocking condition; Flow process finishes; If comparative result be that moving direction and the rotation mode of this storage is consistent with the moving direction and the rotation mode of the unlocking operation of presetting, then 105 judgements of release judge module this move with rotary manipulation and meet unlocking condition, flow process entering step S110.
Step S110 separates lock module 106 and sends unlock command to processor 12, and processor 12 carries out release according to this unlock command to portable electron device 1.
Above embodiment is only unrestricted in order to technical scheme of the present invention to be described; Although the present invention is specified with reference to preferred embodiment; Those of ordinary skill in the art is to be understood that; Can make amendment or be equal to replacement technical scheme of the present invention, and not break away from the spirit and the scope of technical scheme of the present invention.