Content of the invention
In view of the foregoing it is necessary to provide a kind of unlocking system of portable electronic device, can
With the unlocking function by simply and easily controlling portable electron device manual dexterity, and
Screen will not be injured.
A kind of portable electron device unlocking method of offer is provided, can pass through simply square
Just manual dexterity ground controls the unlocking function of portable electron device, will not injure screen again.
A kind of unlocking system of portable electronic device, this portable electron device is equipped with electronics
Compass, this system includes:Setup module, the moving direction for default unblock operation and rotation
Turn mode, and a Preset Time;Acquisition module, is felt for obtaining from electronic compass
The moving direction of the portable electron device measuring and rotation mode, are stored in memory;Complete
Become judge module, for judging the moving direction being stored in memory and rotation mode pre-
If whether changing in the time, to judge that this is mobile and whether rotation process completes, if depositing
The moving direction being stored in reservoir or rotation mode also change, then in this Preset Time
Represent that this is mobile and rotation process is also underway, if the mobile side being stored in memory
To with rotation mode in Preset Time all unchanged then it represents that this mobile and rotation process
Complete;Unblock judge module, for when above-mentioned judged result by memory in the shifting that stored
When dynamic direction and rotation mode are all not changed in Preset Time, will store in this memory
Moving direction and rotation mode and memory in the moving direction of default unblock operation and rotation
The mode of turning is compared, if comparative result be the moving direction of this storage and rotation mode with pre-
If unblock operation moving direction consistent with rotation mode, then judge this mobile and rotation
Operation meets unlocking condition, if inconsistent, judges that this is mobile and rotation process does not meet
Unlocking condition;And unlocked state, for when this is mobile and rotation process meets unlocking condition
When, execution unblock operation.
A kind of portable electron device unlocking method, this portable electron device is equipped with electronics
Compass, the method comprises the following steps:Sensing step:Electronic compass persistently senses portable
The moving direction of electronic installation and rotation mode;Obtaining step:Obtain sensed this just
The moving direction of portable electronic apparatus and rotation mode, are stored in memory;Complete to judge step
Suddenly:Judge the moving direction being stored in memory and rotation mode in Preset Time whether
Change, to judge that this is mobile and whether rotation process completes, if being stored in memory
Moving direction or rotation mode also change in this Preset Time then it represents that this movement
Also underway with rotation process, return sensing step, if the movement being stored in memory
Direction and rotation mode in Preset Time all unchanged then it represents that this mobile and rotation behaviour
Complete, enter unblock and judge step;Unblock judges step:By the shifting storing in memory
Dynamic direction and the rotation mode moving direction that default unblock operates with memory and rotation side
Formula is compared, if comparative result be the moving direction of this storage and rotation mode with default
The moving direction of unblock operation and rotation mode are inconsistent, then judge this mobile and rotation behaviour
Do not meet unlocking condition, flow process terminates, if comparative result be this storage moving direction and
Rotation mode is consistent with the moving direction of default unblock operation and rotation mode, then judge this
Secondary movement and rotation process meet unlocking condition, enter unlocked step;And unlocked step:Right
Portable electron device execution unblock operation.
Compared to prior art, described unlocking system of portable electronic device and method, pass through
Electronic compass senses the moving direction of portable electron device and rotation mode to realize to portable
The unblock operation of formula electronic installation, the method can delicately control portable electron device
Unlocking function, will not injure screen again.
Specific embodiment
Refering to shown in Fig. 1, being unlocking system of portable electronic device preferred embodiment of the present invention
Running environment figure.
In the present embodiment, this portable electron device 1 includes system for unlocking 10, electronics sieve
Disk 11 (E-compass), processor 12, memory 13 and display screen 14.Described unblock system
System 10 pre-sets moving direction and the rotation mode of unblock operation, is stored in memory 13.
This rotation mode includes direction of rotation and angle.
Described electronic compass 11 can sense the south poles in magnetic field of the earth, and by built-in
Microprocessor calculates the angle of itself and the magnetic field of the earth arctic.When mobile or rotation portable electric
During sub-device 1, electronic compass 11 can persistently sense the folder of itself and the magnetic field of the earth arctic
Angle changes, such that it is able to record moving direction and the rotation of appended carrier portable formula electronic installation 1
Turn mode.
Described system for unlocking 10 can from electronic compass 11 obtain the moving direction that this senses and
Rotation mode, and this moving direction and rotation mode are shown in display screen by control process device 12
On 14, it is easy to the moving direction that user understands portable electron device 1 from display screen 14
And rotation mode, and this moving direction according to display and rotation mode are to portable electronic dress
Put 1 movement and rotation process is adjusted further, to meet unlocking condition, this unblock
Condition refers to moving direction and rotation mode and the solution pre-setting of portable electron device 1
The moving direction of lock operation is consistent with rotation mode.For example, unblock operation moving direction and
Rotation mode is:Portable electronic is made to fill while portable electron device 1 northwards moves
Put 1 and turn clockwise 45 degree in the plane that its display screen 14 is located.And actual conditions are,
During user makes portable electron device 1 mobile and rotates, display screen 14 shows
Current portable electronic device 1 northwards moves, but in display screen 14 institute in the plane only
30 degree are turned clockwise, user can fill making portable electronic according to this display data
Put 1 northwards move during so as to continue dextrorotation in the plane in display screen 14
Turning, until showing on this display screen 14 portable electron device 1 having been turned clockwise with 45
Degree.
Described system for unlocking 10 is additionally operable to control this processor 12 to portable electron device 1
It is unlocked operation.Wherein, the unblock in the present embodiment includes untiing screen lock, keypad lock
Or encryption file.
Refering to the functional block diagram shown in Fig. 2, being system for unlocking 10 in Fig. 1.This unblock system
System 10 includes setup module 101, acquisition module 102, sending module 103, completes to judge
Module 104, unblock judge module 105 and unlocked state 106.
Setup module 101 is used for moving direction and the rotation mode of default unblock operation, portable
The moving direction of formula electronic installation 1 and rotation mode and this default moving direction unlocking operation
As unlocking condition consistent with rotation mode.This default method is construed as, user
So that portable electron device 1 is moved to certain direction, revolved in some way simultaneously
Turn, electronic compass 11 persistently senses moving direction and the rotation side of portable electron device 1
Formula.This is moved moving direction and the rotation with rotation process each moment by setup module 101
The mode of turning is stored in memory 13, as the default moving direction unlocking operation and rotation side
Formula.In this preferred embodiment, moving direction and rotation mode that default unblock operates
Can be as shown in figure 4, portable electron device 1 northwards moves, simultaneously in its display screen 14
Turn clockwise 45 degree in the plane.In other embodiments, user can also be according to certainly
The moving direction of oneself hobby or custom default unblock operation and rotation mode.
Described setup module 101 is additionally operable to arrange a Preset Time, and this Preset Time can be made
Judge, during for actual movement with rotation process, the foundation whether this operation completes.For example, this is pre-
If the time is 0.5 second.
When user needs portable electron device 1 is unlocked, move and rotate simultaneously
This portable electron device 1, electronic compass 11 persistently senses this portable electron device 1
Moving direction and rotation mode, acquisition module 102 is sensed from electronic compass 11 acquisition
The moving direction of this portable electron device 1 and rotation mode, are stored in memory 13.
Sending module 103 is used for sending display life according to the moving direction obtaining and rotation mode
Make to processor 12, processor 12 shows this shifting according to this display command control display screen 14
Dynamic direction and rotation mode.
Complete judge module 104 for judging the moving direction and the rotation that are stored in memory 13
Whether the mode that turns changes in Preset Time, whether to judge this mobile and rotation process
Complete.In this preferred embodiment, if the moving direction being stored in memory 13 and rotation
Mode in described Preset Time all unchanged then it represents that this is mobile and rotation process completes,
If the moving direction being stored in memory 13 or rotation mode also have in this Preset Time
Change is then it represents that this is mobile and rotation process is also underway.Wherein, described Preset Time
Inside refer to that current time pushes away forward the time period that a Preset Time is formed.
For example, set Preset Time is 0.5 second, completes judge module 104 and judges this
Secondary movement and rotation process push away forward in the time period of 0.5 second whether there is change in current time
Change, such as current time be 9 points 40 minutes 40 seconds, then judge whether the time period changing (i.e.
In described Preset Time) refer to 9 points between 40 minutes 39.5 seconds to 9: 40: 40 when
Between.
In other embodiments, complete judge module 104 to sentence by other methods
Breaking, this is mobile and whether rotation process completes.
Whether unblock judge module 105 is used for judging this mobile and rotation process completed
Meet unlocking condition.Specifically, due to acquisition module 102 can persistently by this mobile and
In rotation process, the moving direction that electronic compass 11 is sensed and rotation mode are stored in storage
In device 13, be equivalent to during having this movement and rotation process in memory 13, just
The movement locus of portable electronic apparatus 1.Therefore, unblock judge module 105 passes through to store
The moving direction of storage and rotation mode default unblock operation with memory 13 in device 13
Moving direction and rotation mode be compared, whether to judge this mobile and rotation process
Meet unlocking condition.
As this mobile moving direction with rotation process and rotation mode and default unblock behaviour
When the moving direction of work is consistent with rotation mode, unblock judge module 105 judges this movement
Meet unlocking condition with rotation process and trigger unlocked state 106 to processor 12 transmission unblock
Order, processor 12 is unlocked to portable electron device 1 according to this unlocking command.
Refering to shown in Fig. 3, being portable electron device unlocking method preferred embodiment of the present invention
Flow chart.When the keyboard of portable electron device 1, screen or encryption file are in locking
During state, electronic compass 11 senses moving direction and the rotation of this portable electron device 1
Mode is to determine whether to unlock.Described in concrete grammar following steps.
Step S100, electronic compass 11 persistently senses the mobile side of portable electron device 1
To and rotation mode.
Step S102, acquisition module 102 from electronic compass 11 obtain sensed this just
The moving direction of portable electronic apparatus 1 and rotation mode, are stored in memory 13.
Step S104, sending module 103 is according to the movement of the portable electron device 1 obtaining
Direction and rotation mode send display command to processor 12, and processor 12 is according to this display
Order control display screen 14 shows moving direction and the rotation mode of portable electron device 1.
Step S106, completes the movement that judge module 104 judges to be stored in memory 13
Whether direction and rotation mode change in Preset Time, to judge that this is mobile and rotates
Whether operation completes.In this preferred embodiment, if the mobile side being stored in memory 13
To with rotation mode in described Preset Time all unchanged then it represents that this is mobile and rotate
Operation completes, and flow process enters step S108, if the mobile side being stored in memory 13
To or rotation mode also changes in this Preset Time then it represents that this movement and rotation process
Also underway, flow process return to step S100.
Step S108, unblock judge module 105 judges that this is mobile and whether rotation process accords with
Close unlocking condition.Specifically, the shifting that unblock judge module 105 will store in memory 13
Dynamic direction and the rotation mode moving direction of default unblock operation and rotation with memory 13
The mode of turning is compared, if comparative result be the moving direction of this storage and rotation mode with pre-
If unblock operation moving direction and rotation mode inconsistent, then unlock judge module 105
Judge that this is mobile and rotation process does not meet unlocking condition, flow process terminates, if comparative result
Moving direction for this storage and rotation mode and the default moving direction unlocking operation and rotation
The mode that turns is consistent, then unblock judge module 105 judges that this is mobile and rotation process meets solution
Bolt part, flow process enters step S110.
Step S110, unlocked state 106 sends unlocking command, processor to processor 12
12 are unlocked to portable electron device 1 according to this unlocking command.
Above example only in order to technical scheme to be described and unrestricted, although reference
Preferred embodiment has been described in detail to the present invention, and those of ordinary skill in the art should
Understand, technical scheme can be modified or equivalent, without deviating from this
The spirit and scope of inventive technique scheme.