Specific implementation mode
Illustrate that embodiments of the present invention, those skilled in the art can be by this specification below by way of specific specific example
Disclosed content understands other advantages and effect of the present invention easily.The present invention can also pass through in addition different specific realities
The mode of applying is embodied or practiced, the various details in this specification can also be based on different viewpoints with application, without departing from
Various modifications or alterations are carried out under the spirit of the present invention.It should be noted that in the absence of conflict, following embodiment and implementation
Feature in example can be combined with each other.
It should be noted that the diagram provided in following embodiment only illustrates the basic structure of the present invention in a schematic way
Think, component count, shape and size when only display is with related component in the present invention rather than according to actual implementation in schema then
Draw, when actual implementation kenel, quantity and the ratio of each component can be a kind of random change, and its assembly layout kenel
It is likely more complexity.
The present invention provides the awakening method of a kind of electronic equipment, in the prior art can not compromise between security and side for solution
Just the problem of property, safety and the convenience of electronic equipment unlock are improved.A kind of electronics of the present invention described in detail below is set
The principle and embodiment of standby rhythm awakening method makes those skilled in the art not need creative work and is appreciated that this hair
The awakening method of bright a kind of electronic equipment.
With reference to embodiment and attached drawing, the present invention is described in detail.
The present embodiment provides the awakening methods of a kind of electronic equipment, and in specific embodiment, the electronic equipment is for example
For portable electronic devices such as smart mobile phone, tablet computers, in the present embodiment, temporarily by taking electronic equipment is smart mobile phone as an example into
Row explanation.The hardware that the smart mobile phone includes includes CPU (central processing unit), memory (being, for example, FLASH memory), weight
Power sensing device, acceleration sensor, microphone, loud speaker, touch display screen (also known as touch-sensitive display panel or touching display screen) are broadcast
Put device, voicefrequency circuit, wireless communication module, system bus and input/output port etc..Referring to Fig. 1, being shown as the present invention
A kind of embodiment flow chart of the awakening method of electronic equipment, as shown in Figure 1, the awakening method of the smart mobile phone include with
Lower step:
S11:In the state that electronic equipment is in suspend mode, gravity sensing event is detected;In the present embodiment, in intelligent hand
Machine is in the state of device sleeps, detects gravity sensing event;Wherein, for detecting the gravity sensing mould of gravity sensing event
Block can be gravity sensor G-sensor (Gravity-sensor), and G-sensor can perceive the variation of acceleration, add
Turn of speed is exactly for example to shake, fall, the various movements such as up and down when object acts on power on object in accelerator
Variation can be converted into electric signal by G-sensor, after then being analyzed by the calculating of microprocessor, it will be able to complete program and set
The function of having counted.The gravity sensing event includes the shaking of smart mobile phone, fall, instantaneously rise, it is instantaneous decline etc. it is various
Mobile variable condition.In actual implementation process, when mobile phone is in suspend mode and screen lock state, the biography of gravity sensing event is detected
Sensor is to open.
S12:When detecting that the gravity sensing event belongs to percussion event, the number of taps in the percussion event is recorded
And frequency, it forms one and wakes up coding;In the present embodiment, referring to Fig. 2, the formation wake-up coding step includes:
S121:It is initial time at the time of determining and tap input in the percussion event for the first time;In a particular embodiment,
The percussion input is judged by G-sensor.The acceleration transformation of the moment of finger tapping mobile phone, mobile phone are compared
Greatly, it is just easy to judge whether there is the generation of percussion by this feature.When being initial at the time of determining and tap input for the first time
It was 0 moment to carve, i.e., is carved at the beginning of timing.
S122:Subsequently tap the current time of input each time according to initial time record;Specifically, it is struck with 3 times
For hitting, first time is tapped and was denoted as 0 moment, records the current time tapped every time, for example is 0 millisecond, 500 milliseconds, 1000
Millisecond.
S123:The total number of taps occurred in percussion event is counted after tapping end of input, according to the percussion event
In total number of taps and each time tap input at the time of formed one wake up coding.Specifically, it unites after tapping end of input
Total number of taps for occurring is 3 times in meter percussion event, and the time at 3 percussion moment is respectively:0 millisecond, 500 milliseconds,
1000 milliseconds.According to above- mentioned information, moment value is put into according to the sequence of input in array, one is obtained and wakes up coding, i.e., [0,
500、1000]。
S13:Judge whether the wake-up coding matches with preset baseline encoded, if matching, proceeds to step S14;
If mismatching, step S15 is proceeded to.
S14:The electronic equipment is switched to wake-up states;
S15:Keep the electronic equipment in a dormant state.
In the present embodiment, referring to Fig. 3, the preset reference described in the step S13 includes the step of coding:
S21:In the state that electronic equipment is in user interface (gui interface) and wakes up setting, order is in electronic equipment
User interface wakes up setting interface, and electronic equipment detection wakes up percussion event;In the present embodiment, be in as Fig. 4 show by intelligence
Energy mobile phone enters rhythm institute interface, detects percussion event;Wherein, detection percussion event is realized by gravity sensing module,
Gravity sensing module can be gravity sensor G-sensor (Gravity-sensor).
S22:Determine that the at the time of of tapping input for the first time is initial time;In a particular embodiment, percussion input
Judged by G-sensor.The acceleration transformation of the moment of finger tapping mobile phone, mobile phone are bigger, pass through this feature
It is just easy to judge whether there is the generation of percussion.It is 0 moment, i.e. timing that determining first time, which is initial time at the time of tapping input,
At the beginning of carve.
S23:At the time of the input of percussion each time follow-up according to initial time record;Specifically, it is with 3 percussions
First time is tapped and was denoted as 0 moment, records the current time tapped every time, for example be 0 millisecond, 500 milliseconds, 1000 milliseconds by example.
S24:The total number of taps occurred in percussion event is counted after tapping end of input, and in total number of taps
When not less than a threshold value (threshold value being such as 2, i.e., at least taps and be likely to form the first coding twice), the encryption is struck
It is stored in an array at the time of the total number of taps hit in event and percussion input each time to form the first coding;Need spy
Do not mentionlet alone it is bright, in the provisioning process, the current time that electronic equipment detects be a period, that is, when electronic equipment examine
When the percussion moment for measuring 3 times is respectively 0 millisecond, 500 milliseconds, 1000 milliseconds, according to preset fuzzy algorithmic approach, due to for the first time
It it is 0 millisecond, then need not draw the line value, and the follow-up percussion moment each time is then according to its current time actually occurred
Benchmark delimit a value range (for example being ± 100 milliseconds), for example secondary percussion moment is 500 milliseconds, then secondary
It is 400 milliseconds to 600 milliseconds that current time, which then delimited, and the percussion moment of third time is 1000 milliseconds, then secondary current
It is 900 milliseconds to 1100 milliseconds that moment, which then delimited, subsequently can reach fuzzy matching with when waking up codes match in this way
Effect, and then improve matched success rate.That is, formed first is encoded to [0,500 ± 100,1000 ± 100].
S25:It repeats the above steps, generates the second coding again, and match in first and second coding formed twice
When, generate baseline encoded.For example, during repeating the above steps, actually detected 3 arrived time percussion moment is 0 millisecond,
456 milliseconds, 993 milliseconds, then second formed is encoded to [0,456,993].
S26:First and second coding formed twice is matched, judge first and second coding match whether at
Work(matches [0,456,993] and [0,500 ± 100,1000 ± 100].
S27:If the second coding [0,456,993] drops into the section of the first coding [0,500 ± 100,1000 ± 100]
In, then it is assumed that it is successful match.Namely setting encodes successfully.
S28:If it fails, setting coding failure is then prompted, for example, second of actually detected 3 arrived time taps the moment
It it is 0 millisecond, 390 milliseconds, 993 milliseconds, then second formed is encoded to [0,390,993], then by [0,390,993] and [0,500
± 100,1000 ± 100] it is matched.Second coding [0,390,993] is not fallen within to the first coding [0,500 ± 100,1000
± 100] in section, then it is assumed that be that it fails to match.
In a preferred embodiment, in above-mentioned percussion event, interval at the time of percussion twice in succession is not more than one
Preset time, such as first time tap the moment as 0 millisecond of initial time, if second of percussion moment is for 1000 milliseconds or more
For a long time, then it is assumed that delay is too long, then prompts setup failed.
The present invention also provides a kind of electronic equipment, and in this present embodiment, the electronic equipment is, for example, smart mobile phone, tablet
The portable electronic devices such as computer, the hardware that the electronic equipment includes include CPU (central processing unit), and memory (is, for example,
FLASH memory), gravity sensing device, acceleration sensor, microphone, loud speaker, touch display screen (also known as touch-sensitive display
Screen), player, voicefrequency circuit, wireless communication module, system bus and input/output port etc..Referring to Fig. 5, being shown as
The electronic equipment framework schematic diagram of the present invention, the electronic equipment 2 include:Memory module 21, gravity sensing module 22 encode mould
Block 23, wake-up module 24 and setup module 25.
The memory module 21 is stored with preset baseline encoded, and the baseline encoded is such as [0,500 ± 100,1000
±100]。
The setup module 25 is used in the state that electronic equipment is in user interface and wakes up setting, and detection taps thing
Part;Determine that the at the time of of tapping input for the first time is initial time;It is inputted according to follow-up tap each time of initial time record
At the time of;The total number of taps occurred in percussion event is counted after tapping end of input, and not small in total number of taps
When a threshold value, an array is stored at the time of by the total number of taps encrypted in percussion event and percussion input each time
In with formed first coding;It repeats the above process, generates the second coding again, and in first and second coding phase formed twice
When matching, baseline encoded is generated, and be stored in the memory module 21.
Specifically, in the present embodiment, the process that the preset reference coding is arranged in the setup module 25 includes:
In the state that electronic equipment is in user interface (gui interface) and wakes up setting, enables and be in user in electronic equipment
Interface wakes up setting interface, and electronic equipment detection wakes up percussion event;In the present embodiment, be in as Fig. 4 show by intelligent hand
Machine enters rhythm institute interface, detects percussion event;Wherein, detection percussion event is realized by gravity sensing module, gravity
Induction module can be gravity sensor G-sensor (Gravity-sensor).
Determine that the at the time of of tapping input for the first time is initial time;In a particular embodiment, percussion input is logical
G-sensor is crossed to judge.The acceleration transformation of the moment of finger tapping mobile phone, mobile phone are bigger, just very by this feature
Whether easily determine has the generation of percussion.At the time of determining and tap input be for the first time initial time it was 0 moment, i.e. timing is opened
Begin the moment.
At the time of the input of percussion each time follow-up according to initial time record;It specifically, will by taking 3 times tap as an example
It taps for the first time and was denoted as 0 moment, record the current time tapped every time, for example be 0 millisecond, 500 milliseconds, 1000 milliseconds.
The total number of taps occurred in percussion event is counted after tapping end of input, and not small in total number of taps
When a threshold value (threshold value is such as 2, i.e., at least taps and be likely to form the first coding twice), the encryption is tapped into thing
Total number of taps in part and tap input each time at the time of, are stored in an array to form the first coding;It needs especially to say
Bright, in the provisioning process, the current time that electronic equipment detects is a period, that is, when electronic equipment detects 3
When the secondary percussion moment is respectively 0 millisecond, 500 milliseconds, 1000 milliseconds, according to preset fuzzy algorithmic approach, since first time is 0 milli
Second, then need not draw the line value, and on the basis of the current time that subsequently percussion moment each time then actually occurs according to it
Delimit a value range (for example being ± 100 milliseconds), for example secondary percussion moment is 500 milliseconds, then it is secondary current
It is 400 milliseconds to 600 milliseconds that moment, which then delimited, and the percussion moment of third time is 1000 milliseconds, then secondary current time
It is 900 milliseconds to 1100 milliseconds then to be delimited, and subsequently can achieve the effect that fuzzy matching with when waking up codes match in this way,
And then improve matched success rate.That is, formed first is encoded to [0,500 ± 100,1000 ± 100].
It repeats the above steps, generates the second coding again, and when first and second coding formed twice matches, it is raw
At baseline encoded.For example, during repeating the above steps, actually detected 3 arrived time percussion moment is 0 millisecond, 456 millis
Second, 993 milliseconds, then second formed is encoded to [0,456,993].
First and second coding formed twice is matched, judges that first and second coding matches and whether succeeds, i.e.,
[0,456,993] and [0,500 ± 100,1000 ± 100] are matched.
If the second coding [0,456,993] drops into the section of the first coding [0,500 ± 100,1000 ± 100],
Then it is considered successful match.Namely setting encodes successfully.
If it fails, setting coding failure is then prompted, for example, it is 0 milli that second of actually detected 3 arrived time, which taps the moment,
Second, 390 milliseconds, 993 milliseconds, then second formed is encoded to [0,390,993], then by [0,390,993] and [0,500 ±
100, it 1000 ± 100] is matched.Second coding [0,390,993] do not fall within to first coding [0,500 ± 100,1000 ±
100] in section, then it is assumed that be that it fails to match.
In a preferred embodiment, in above-mentioned percussion event, interval at the time of percussion twice in succession is not more than one
Preset time, such as first time tap the moment as 0 millisecond of initial time, if second of percussion moment is for 1000 milliseconds or more
For a long time, then it is assumed that delay is too long, then prompts setup failed.
Gravity sensing module 22 is used in the state that electronic equipment be in suspend mode, detection gravity sensing event and by its turn
Turn to electric signal;In the present embodiment, the gravity sensing module for detecting gravity sensing event can be gravity sensor G-
Sensor (Gravity-sensor), G-sensor can perceive the variation of acceleration, and acceleration is exactly when object is accelerating
Act on the power on object in the process, for example, shake, fall, the various mobile variations such as up and down can be turned by G-sensor
Electric signal is turned to, after then being analyzed by the calculating of microprocessor, it will be able to complete the good function of programming.The gravity
Sense events include the shaking of smart mobile phone, fall, instantaneously rise, instantaneous the various mobile variable conditions such as decline.Actual
In implementation process, when mobile phone is in suspend mode and screen lock state, the sensor of detection gravity sensing event is to open.
Coding module 23 receives the electric signal that the gravity sensing module 22 exports, for judging the gravity sensing event
When belonging to percussion event, the number of taps and frequency in the percussion event are recorded, one is formed and wakes up coding, the coding module
23, which form wake-up cataloged procedure, includes:
It is initial time at the time of determining and tap input in the percussion event for the first time;In a particular embodiment, described
Percussion input judged by G-sensor.The acceleration transformation of the moment of finger tapping mobile phone, mobile phone are bigger, lead to
This feature is crossed just to be easy to judge whether there is the generation of percussion.It is 0 that determining first time, which is initial time at the time of tapping input,
Moment carves at the beginning of timing.
Subsequently tap the current time of input each time according to initial time record;Specifically, it is with 3 percussions
First time is tapped and was denoted as 0 moment, records the current time tapped every time, for example be 0 millisecond, 500 milliseconds, 1000 milliseconds by example.
The total number of taps occurred in percussion event is counted after tapping end of input, according to total in the percussion event
One, which is formed, at the time of number of taps and percussion input each time wakes up coding.Specifically, it counts and taps after tapping end of input
The total number of taps occurred in event is 3 times, and the time at 3 percussion moment is respectively:0 millisecond, 500 milliseconds, 1000 millis
Second.According to above- mentioned information, moment value is put into according to the sequence of input in array, one is obtained and wakes up coding, i.e., [0,500,
1000]。
Wake-up module 24 is for judging whether the wake-up coding matches with preset baseline encoded, will if matching
The electronic equipment is switched to wake-up states;If mismatching, the electronic equipment is kept in a dormant state.The wake-up mould
Block 24 controls the power module of a screen and relative program.
In conclusion the present invention wakes up mobile phone by tapping ScreenMode, on the one hand object can be used to avoid high-frequency
Button is managed, the wake-up trigger under non-subjective consciousness is on the other hand also efficiently avoided.The present invention effectively overcomes the prior art
In various shortcoming and have high industrial utilization.
The above-described embodiments merely illustrate the principles and effects of the present invention, and is not intended to limit the present invention.It is any ripe
The personage for knowing this technology can all carry out modifications and changes to above-described embodiment without violating the spirit and scope of the present invention.Cause
This, institute is complete without departing from the spirit and technical ideas disclosed in the present invention by those of ordinary skill in the art such as
At all equivalent modifications or change, should by the present invention claim be covered.