CN107330308A - Terminal locking/unlocking method, device, terminal and computer-readable recording medium - Google Patents
Terminal locking/unlocking method, device, terminal and computer-readable recording medium Download PDFInfo
- Publication number
- CN107330308A CN107330308A CN201710380590.9A CN201710380590A CN107330308A CN 107330308 A CN107330308 A CN 107330308A CN 201710380590 A CN201710380590 A CN 201710380590A CN 107330308 A CN107330308 A CN 107330308A
- Authority
- CN
- China
- Prior art keywords
- button
- triggered
- key assignments
- terminal
- sequence
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Granted
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F21/00—Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
- G06F21/30—Authentication, i.e. establishing the identity or authorisation of security principals
- G06F21/31—User authentication
Landscapes
- Engineering & Computer Science (AREA)
- Computer Security & Cryptography (AREA)
- Theoretical Computer Science (AREA)
- Computer Hardware Design (AREA)
- Software Systems (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Telephone Function (AREA)
Abstract
The invention discloses a kind of terminal locking/unlocking method, device, electronic equipment and computer-readable storage medium, wherein, terminal locking/unlocking method includes:When detecting button and being triggered, judge whether interlude is less than the scheduled time between the button and the previous button being triggered that are currently triggered;When less than the scheduled time, the key assignments of the button that journal is triggered is to form key assignments sequence;Judge whether the key assignments sequence is consistent with predetermined sequence;When consistent, locking is performed according to the terminal current state or unblock is handled.The processing mode solved by the present invention in the prior art for child's lock is easily caused the problem of child locks anti-unblock, so as to improve the reliable degree of terminal device, improves Consumer's Experience.
Description
Technical field
The present invention relates to electronic equipment process field, and in particular to a kind of terminal locking/unlocking method, device, terminal and
Computer-readable recording medium.
Background technology
With the continuous improvement of people's living standards, the quantity of all kinds of household electrical appliance used in family is also being on the increase,
On the one hand increasing for household electrical appliance facilitate our daily life, improves quality of life, has on the other hand also buried many
Hidden danger.
In recent years, the incident of injury caused by children's maloperation household electrical appliance occurs repeatedly, but current either Household Electric Appliance Plant
Use of the family to the setting or Parents of child's lock to child's lock is all paid little attention to.The virgin of electrical equipment locks locking/solution on the market at present
Lock form is almost using one of following two modes:1. long-press singly-bound, 2. presses double bond simultaneously.Due to above two mode of operation
It is relatively simple, it is easy to operate out when children play noisy and virgin lock unlocking manner identical is operated, causes virgin lock to open by mistake.
The content of the invention
In view of this, can the embodiments of the invention provide a kind of terminal locking/unlocking method, device, terminal and computer
Storage medium is read, the problem of virgin lock is anti-to be unlocked is easily caused with the processing mode solved in the prior art for virgin lock.
Therefore, the embodiments of the invention provide following technical scheme:
First aspect present invention is there is provided a kind of terminal locking/unlocking method, and the terminal has multiple buttons, including:
When detecting button and being triggered, judge between the button and the previous button being triggered that are currently triggered whether is interlude
Less than the scheduled time;When less than the scheduled time, the key assignments of the button that journal is triggered is to form key assignments sequence;Sentence
Whether the key assignments sequence of breaking is consistent with predetermined sequence;When consistent, performed according to the terminal current state and lock or solve
Lock processing.
Alternatively, when detecting button and being triggered, judge the button and the previous button being triggered that are currently triggered it
Between interlude whether be less than the scheduled time after, in addition to:When more than or equal to the scheduled time, judge previous
Whether the button being triggered is the button being triggered first;When judging the previous button being triggered for the button being triggered first,
Whether determine whether the terminal current state is released state;When judging the terminal current state for released state,
The key assignments sequence is removed, the function for the button being triggered first is performed.
Alternatively, when more than or equal to the scheduled time, judge the previous button being triggered whether be first by
After the button of triggering, in addition to:When the button for judging previous triggering is not the button being triggered first, the key assignments is removed
Sequence.
Alternatively, the key assignments sequence is stored in First Input First Output.
Alternatively, before judging whether the key assignments sequence is consistent with predetermined sequence, in addition to:Determine the FIFO
Queue has been filled with.
Alternatively, performing locking or unblock processing according to the terminal current state includes:Judge that the terminal is current
Whether state is lock-out state, when it is determined that the terminal current state is lock-out state, is unlocked processing;It is determined that described
When terminal current state is non-locking state, locking processing is carried out.
Second aspect of the present invention, additionally provides a kind of terminal locking/tripper, and the terminal has multiple buttons, bag
Include:First judge module, for when detecting button and being triggered, judge the button being currently triggered with it is previous be triggered by
Whether interlude is less than the scheduled time between key;Logging modle, for when less than the scheduled time, journal quilt
The key assignments of the button of triggering is to form key assignments sequence;Second judge module, for judge the key assignments sequence whether with default sequence
Row are consistent;First processing module, for when consistent, performing locking according to the terminal current state or unblock being handled.
Alternatively, described device also includes:3rd judge module, for when detecting button and being triggered, judging current
Whether interlude is less than after the scheduled time between the button and the previous button being triggered that are triggered, when being more than or wait
Whether when the scheduled time, it is the button being triggered first to judge the previous button being triggered;4th judge module, is used for
Whether when judging the previous button being triggered for the button being triggered first, it is unblock to determine whether the terminal current state
State;Second processing module, for when judging the terminal current state for released state, removing the key assignments sequence, holding
The function for the button that row is triggered first.
Alternatively, described device also includes:3rd processing module, for when more than or equal to the scheduled time,
After judging whether the previous button being triggered is the button being triggered first, when the button for judging previous triggering be not first by
During the button of triggering, the key assignments sequence is removed.
Alternatively, the key assignments sequence is stored in First Input First Output.
Alternatively, described device also includes:Determining module, for judging whether the key assignments sequence is consistent with predetermined sequence
Before, determine that the First Input First Output has been filled with.
Alternatively, the first processing module is additionally operable to judge whether the terminal current state is lock-out state, true
When the fixed terminal current state is lock-out state, processing is unlocked;It is determined that the terminal current state is non-locking shape
During state, locking processing is carried out.
Third aspect present invention, additionally provides a kind of terminal, including:At least one processor;And with described at least one
The memory of individual processor communication connection;Wherein, have can be by the instruction of one computing device, institute for the memory storage
Instruction is stated by least one described computing device, so that the step of at least one described computing device above method.
Fourth aspect present invention, additionally provides a kind of computer-readable recording medium, is stored thereon with computer instruction, should
The step of instruction realizes the above method when being executed by processor.
Technical scheme of the embodiment of the present invention, has the following advantages that:
It is situated between the embodiments of the invention provide the storage of a kind of terminal locking/unlocking method, device, electronic equipment and computer
Matter, wherein, terminal locking/unlocking method includes:When detecting button and being triggered, judge the button that is currently triggered with it is previous
Whether interlude is less than the scheduled time between the button being triggered, and when less than the scheduled time, journal is triggered
Button key assignments to form key assignments sequence, the interlude between the button and the previous button being triggered currently being triggered
During less than the scheduled time, judge whether the key assignments sequence is consistent with predetermined sequence, when consistent, performed according to terminal current state
Locking or unblock processing, the present embodiment, in the multiple buttons of time internal trigger of setting, judge the plurality of button by terminal
Whether keystroke sequence meets predetermined condition, when meeting predetermined condition, performs the unlock/lock processing of terminal child's lock, compared to
The unlock/lock that double bond carries out virgin lock is pressed by long-press singly-bound or simultaneously in the prior art, child's lock is easily unlocked by counter, this
The processing mode that embodiment solves in the prior art for child's lock is easily caused the problem of child locks anti-unblock, so as to improve end
The reliable degree of end equipment, improves Consumer's Experience.
Brief description of the drawings
, below will be to specific in order to illustrate more clearly of the specific embodiment of the invention or technical scheme of the prior art
The accompanying drawing used required in embodiment or description of the prior art is briefly described, it should be apparent that, in describing below
Accompanying drawing is some embodiments of the present invention, for those of ordinary skill in the art, before creative work is not paid
Put, other accompanying drawings can also be obtained according to these accompanying drawings.
Fig. 1 is the flow chart of terminal locking/unlocking method according to embodiments of the present invention;
Fig. 2 is the flow chart that linear slideable manner according to embodiments of the present invention locks locking/unlocking;
Fig. 3 is the structured flowchart of terminal locking/tripper according to embodiments of the present invention;
Fig. 4 is the structural representation of terminal according to embodiments of the present invention.
Embodiment
To make the purpose, technical scheme and advantage of the embodiment of the present invention clearer, below in conjunction with the embodiment of the present invention
In accompanying drawing, the technical scheme in the embodiment of the present invention is clearly and completely described, it is clear that described embodiment is
A part of embodiment of the present invention, rather than whole embodiments.Based on the embodiment in the present invention, those skilled in the art are not having
There is the every other embodiment made and obtained under the premise of creative work, belong to the scope of protection of the invention.
A kind of terminal locking/unlocking method is provided in the present embodiment, is protected and is carried available for virgin lock of setting is needed
On the domestic electric appliances such as pipeline machine, electric oven, air-conditioning, the washing machine of touch key-press, Fig. 1 is end according to embodiments of the present invention
The flow chart of locking/unlocking method is held, as shown in figure 1, the flow comprises the following steps:
Step S101, when detecting button and being triggered, judges the button and the previous button being triggered currently being triggered
Between interlude whether be less than the scheduled time.The scheduled time can flexibly be configured according to actual conditions, Ke Yigen
It is adjusted flexibly according to the spacing distance between terminal panel button, for example, can is 200ms.
Step S102, when less than the scheduled time, the key assignments of the button that journal is triggered is to form key assignments sequence.
Due to terminal, each button all corresponds to corresponding function, in order to avoid being disagreed with generally operation, only in two button triggerings
Time interval it is short enough in the case of, the key assignments of the button that ability journal is triggered is to form key assignments sequence.Pressed when two
Whether when the time interval of key triggering is more than or equal to the above-mentioned scheduled time, it is to be touched first to judge the previous button being triggered
The button of hair, when judging whether the previous button being triggered, for the button being triggered first, determines whether terminal current state
For released state, when judging terminal current state for released state, the key assignments sequence is removed, the button being triggered first is performed
Function.When the button for judging previous triggering is not the button being triggered first, the key assignments sequence is removed.
Step S103, judges whether the key assignments sequence is consistent with predetermined sequence.The predetermined sequence can be user set or
Predetermined sequence or terminal push panel the putting in order for button of person's terminal Default Value.
Step S104, when consistent, perform locking according to the terminal current state or unblock is handled.Specifically, judge
Whether terminal current state is lock-out state, it is determined that terminal current state be lock-out state when, be unlocked processing, it is determined that
When the terminal current state is non-locking state, locking processing is carried out.
By above-mentioned steps, by terminal in the multiple buttons of time internal trigger of setting, the button of the plurality of button is judged
Whether sequence meets predetermined condition, when meeting predetermined condition, the unlock/lock processing of terminal child's lock is performed, for child's lock
Processing procedure is complex, accurate, is difficult to realize the anti-unblock of virgin lock, compared to passing through long-press singly-bound in the prior art or same
When press the unlock/lock that double bond carries out virgin lock, child's lock is easily unlocked by counter, and the present embodiment is solved in the prior art for child
The processing mode of lock is easily caused the problem of virgin lock is anti-to be unlocked, so as to improve the reliable degree of terminal device, improves
Consumer's Experience.
In one alternate embodiment, above-mentioned key assignments sequence can be stored in First Input First Output (FIFO), in judgement
State key assignments sequence it is whether consistent with predetermined sequence before, determine that the First Input First Output has been filled with.Specific First Input First Output
Capacity determine that the size of fifo queue is at least 3, if terminal push is more, it is possible to increase FIFO according to the quantity of terminal push
The size of queue, to ensure fault-tolerance, lifts resolution to improve the precision of identification, and the size of fifo queue is more preferably less than most
Big key quantity.
Below with the key interface of 6 keys, the effective gesture slided from left to right as virgin lock operation is illustrated.Button
Interface is as follows:
Button 1 | Button 2 | Button 3 | Button 4 | Button 5 | Button 6 |
The capacity of FIFO (FIFO) storage queue is set in program as 5.
Case1, when Programmable detection is to there is button to press, recognize its key value, if one of button 3-6, then immediately
The corresponding function pushed button is responded, if button 1, button 2, then user is probably to carry out the slide of virgin lock, journey
Sequence is first not responding to button corresponding function, but key value is stored in fifo queue, waits next button to press.Explanation:Herein
Key range 1, button 2 are edge key, because only that the two buttons, which are pressed just meet, deposits 5 keys from left to right
Value.If streaking button from left to right from button 3, most ideally detect 3,4,5,6, FIFO capacity be not fully filled, certainly
It is invalid.So need not further have detected.
If thering is new button to press and meet in case2-1,200ms newly to push button on the right side of a upper button,
New key assignments deposit fifo queue (2 button Value Datas are stored in i.e. now FIFO).Explanation:If first press by
Key is button 1, then button 2-6 meets above-mentioned situation, if first button pressed is button 2, then button 3-6 is met
Above-mentioned situation.The selection that the 200ms times judge is adjusted according to the size of distance between panel button.
Case2-2, if not having new button in 200ms or not being if button on the right side of current button is pressed, then in order
The function of button is responded, FIFO is reset.Explanation:If first button is button 2, second button pressed is button 1, then
For above-mentioned condition, program resets fifo queue, and program responds the function of button 2, the function of button 1 successively, returns to starting point.Again open
Begin from case1 detections.
Pressed if case3, second button are effective button and being detected after second button is pressed in 200ms
3rd button, is judged also according to above-mentioned standard, if being unsatisfactory for condition, and FIFO is reset, without this three buttons
Functional response, if meeting condition, continues to be stored in key value into fifo queue, writes until detecting fifo queue and full (has deposited 5
Button), enter case4.Explanation:Here it is the fifo queue that a capacity is 5, the capacity of queue is chosen and can touched according to button
Touch keystroke sensitivity to be adjusted and (be at least 3), the selection of capacity also needs to need the figure drawn to carry out according to actual virgin lock
Assess.
Whether the order of button is once to press from left to right in case4, again a time FIFO of detection, if so, then starting
Functions of child lock, otherwise resets.Return to starting point.
Specifically:
According to above-mentioned background environment.
Button 1 | Button 2 | Button 3 | Button 4 | Button 5 | Button 6 |
Button 1 is pressed, and now queue is [1,0,0,0,0]
Button 1 | Button 2 | Button 3 | Button 4 | Button 5 | Button 6 |
A upper button is pressed in 200ms, and button 2 is pressed, and now queue is [2,1,0,0,0]
Button 1 | Button 2 | Button 3 | Button 4 | Button 5 | Button 6 |
A upper button is pressed in 200ms, and button 3 is pressed, and now queue is [3,2,1,0,0]
Button 1 | Button 2 | Button 3 | Button 4 | Button 5 | Button 6 |
A upper button is pressed in 200ms, because button 4 responds insensitive, is not detected by, button 5 is pressed, now queue
For [5,3,2,1,0]
Button 1 | Button 2 | Button 3 | Button 4 | Button 5 | Button 6 |
A upper button is pressed in 200ms, and button 6 is pressed, and now queue is [6,5,3,2,1]
Now, queue is filled up, and is veritified, and finds queue in sequence, and it is suitable from left to right with panel that satisfaction presses order
Sequence is identical, judges virgin lock gesture effectively, child's lock starts.
In a practical situation, the sensitivity (particularly touch key-press) of each button has small difference, in order to compensate
This species diversity, in the case where ensureing that figure can be identified, general fifo queue Capacity Ratio actual key is a little less, does fault-tolerant
Operate (button 4 is insensitive in example).
To be illustrated with linear slide further below, the button of left side edge press or right side edge button by
Under, just start detection state, can so improve the precision of identification, reduce false triggering.Certainly the present invention, which is not limited, only passes through
Linear slideable manner carries out the sliding type such as terminal locking/unblock or circle, rectangle and carries out terminal locking/unblock, only
Realize that the technical scheme of terminal locking/unblock belongs to the present invention if being compared by terminal push key assignments sequence with predetermined sequence
Protection domain within.
As shown in Fig. 2 the flow for locking locking/unlocking by linear slideable manner comprises the following steps:
Step S201, is pressed if detecting edge key.
Step S202, detection state is locked into child.
Step S203, judged whether in setting virgin lock detection state effective time, in the case where judged result is no,
Step S204 and step S205 is performed, in the case where judged result is no, step S206 is performed.The effective time of detection state
It can be adjusted according to number of keys, key scan cycle, practical operation situation.
Step S206, within child's lock detection effective time, detects current button value.
Step S207, judges whether current button value is same as the key assignments of last button, the feelings for being yes in judged result
Under condition, step S208 is performed.
Step S208, fifo queue is stored in by key assignments.If beyond effective time, exiting detection state.
Step S209, judges whether fifo queue is filled, if filling, into step S2010, otherwise return to step S203.
Step S2010, judges whether key assignments order is consistent with key panel actual positional relationship in fifo queue.If FIFO
Key position corresponding to each member's key assignments in queue is respectively positioned on the key position corresponding to its all member's key assignments previous
Distally, then virgin lock operation is determined with, into step S2011, FIFO is otherwise emptied, virgin lock detection state is exited.
Step S2011, child's lock activation, performs unblock or lock operation.
Additionally provide a kind of terminal locking/tripper in the present embodiment, the device be used to realizing above-described embodiment and
Preferred embodiment, had carried out repeating no more for explanation.As used below, term " module " can realize predetermined work(
The combination of the software and/or hardware of energy.Although the device described by following examples is preferably realized with software, firmly
Part, or the realization of the combination of software and hardware is also that may and be contemplated.
Fig. 3 is the structured flowchart of terminal locking/tripper according to embodiments of the present invention, as described in Figure 3, the device bag
Include:First judge module 31, for when detecting button and being triggered, judging that the button being currently triggered is triggered with previous
Whether interlude is less than the scheduled time between button;Logging modle 32, for when less than the scheduled time, journal
The key assignments for the button being triggered is to form key assignments sequence;Second judge module 33, for judging the key assignments sequence whether with presetting
Sequence is consistent;First processing module 34, for when consistent, performing locking according to the terminal current state or unblock being handled.
Alternatively, the device also includes:3rd judge module, for when detecting button and being triggered, judging currently quilt
Between the button of triggering and the previous button being triggered interlude whether be less than the scheduled time after, when more than or equal to
Whether during the scheduled time, it is the button being triggered first to judge the previous button being triggered;4th judge module, sentences for working as
The previous button being triggered that breaks is the button being triggered first, and whether determine whether the terminal current state is released state;
Second processing module, for when judging the terminal current state for released state, removing the key assignments sequence, execution is touched first
The function of the button of hair.
Alternatively, the device also includes:3rd processing module, for when more than or equal to the scheduled time, judging
After whether the previous button being triggered is the button being triggered first, when the button for judging previous triggering is not to be triggered first
Button when, remove the key assignments sequence.
Alternatively, the key assignments sequence is stored in First Input First Output.
Alternatively, the device also includes:Determining module, for judge the key assignments sequence it is whether consistent with predetermined sequence it
Before, determine that the First Input First Output has been filled with.
Alternatively, the first processing module is additionally operable to judge whether the terminal current state is lock-out state, it is determined that should
When terminal current state is lock-out state, processing is unlocked;When it is determined that the terminal current state is non-locking state, carry out
Locking processing.
Terminal locking/tripper in the present embodiment is presented in the form of functional unit, and unit here refers to
ASIC circuit, performs one or more softwares or the processor and memory of fixed routine, and/or other can provide above-mentioned work(
The device of energy.
The further function description of above-mentioned modules is identical with above-mentioned correspondence embodiment, will not be repeated here.
Referring to Fig. 4, Fig. 4 is the structural representation of terminal according to embodiments of the present invention, as shown in figure 4, the terminal can
With including:At least one processor 401, such as CPU (Central Processing Unit, central processing unit), at least one
Communication interface 403, memory 404, at least one communication bus 402.Wherein, communication bus 402 be used for realize these components it
Between connection communication.Wherein, communication interface 403 can include display screen (Display), keyboard (Keyboard), optional communication
Interface 403 can also include wireline interface, the wave point of standard.Memory 404 can be high-speed RAM memory (Ramdom
Access Memory, effumability random access memory) or non-labile memory (non-volatile
Memory), for example, at least one magnetic disk storage.Memory 404 optionally can also be that at least one is located remotely from foregoing place
Manage the storage device of device 401.Wherein processor 401 can store one group of journey with device described in conjunction with Figure 3 in memory 404
Sequence code, and processor 401 calls the program code stored in memory 404, for performing a kind of terminal locking/unblock side
Method, i.e., for performing following operation:
When detecting button and being triggered, judge what is be spaced between the button and the previous button being triggered that are currently triggered
Whether the time is less than the scheduled time;
When less than the scheduled time, the key assignments of the button that journal is triggered is to form key assignments sequence;
Judge whether the key assignments sequence is consistent with predetermined sequence;
When consistent, locking is performed according to the terminal current state or unblock is handled.
In the embodiment of the present invention, processor 401 calls the program code in memory 404, is additionally operable to perform following operation:
When more than or equal to the scheduled time, judge the previous button being triggered whether be triggered first by
Key;
When judging the previous button being triggered for the button being triggered first, determine whether that the terminal current state is
No is released state;
When judging the terminal current state for released state, the key assignments sequence is removed, performs what is be triggered first
The function of button.
In the embodiment of the present invention, processor 401 calls the program code in memory 404, is additionally operable to perform following operation:
When the button for judging previous triggering is not the button being triggered first, the key assignments sequence is removed.
In the embodiment of the present invention, processor 401 calls the program code in memory 404, is additionally operable to perform following operation:
Before judging whether the key assignments sequence is consistent with predetermined sequence, determine that the First Input First Output has been filled with.
In the embodiment of the present invention, processor 401 calls the program code in memory 404, can also carry out following operation:
Whether be lock-out state, it is determined that the terminal current state is lock-out state if judging the terminal current state
When, it is unlocked processing;When it is determined that the terminal current state is non-locking state, locking processing is carried out.
Wherein, communication bus 402 can be Peripheral Component Interconnect standard (peripheral component
Interconnect, abbreviation PCI) bus or EISA (extended industry standard
Architecture, abbreviation EISA) bus etc..Communication bus 402 can be divided into address bus, data/address bus, controlling bus etc..
For ease of representing, only represented in Fig. 4 with a thick line, it is not intended that only one bus or a type of bus.
Wherein, memory 404 can include volatile memory (English:Volatile memory), such as arbitrary access
Memory (English:Random-access memory, abbreviation:RAM);Memory can also include nonvolatile memory (English
Text:Non-volatile memory), such as flash memory (English:Flash memory), hard disk (English:hard disk
Drive, abbreviation:HDD) or solid state hard disc (English:Solid-state drive, abbreviation:SSD);Memory 404 can also be wrapped
Include the combination of the memory of mentioned kind.
Wherein, processor 401 can be central processing unit (English:Central processing unit, abbreviation:
CPU), network processing unit (English:Network processor, abbreviation:NP) or CPU and NP combination.
Wherein, processor 401 can further include hardware chip.Above-mentioned hardware chip can be application specific integrated circuit
(English:Application-specific integrated circuit, abbreviation:ASIC), PLD (English:
Programmable logic device, abbreviation:PLD) or its combination.Above-mentioned PLD can be CPLD
(English:Complex programmable logic device, abbreviation:CPLD), field programmable gate array (English:
Field-programmable gate array, abbreviation:FPGA), GAL (English:generic array
Logic, abbreviation:GAL) or its any combination.
Alternatively, memory 404 is additionally operable to storage program instruction.Processor 401 can be instructed with caller, be realized such as this
Apply for terminal locking/unlocking method shown in Fig. 1 and 2 embodiments.
The embodiment of the present invention additionally provides a kind of non-transient computer storage medium, and the computer-readable storage medium is stored with
Computer executable instructions, the computer executable instructions can perform terminal locking/unblock in above-mentioned any means embodiment
The processing method of method.Wherein, the storage medium can be magnetic disc, CD, read-only memory (Read-Only
Memory, ROM), random access memory (Random Access Memory, RAM), flash memory (Flash
Memory), hard disk (Hard Disk Drive, abbreviation:) or solid state hard disc (Solid-State Drive, SSD) etc. HDD;Institute
The combination of memory of mentioned kind can also be included by stating storage medium.
It is to lead to it will be understood by those skilled in the art that realizing all or part of flow in above-described embodiment method
Cross computer program to instruct the hardware of correlation to complete, described program can be stored in a computer read/write memory medium
In, the program is upon execution, it may include such as the flow of the embodiment of above-mentioned each method.Wherein, described storage medium can be magnetic
Dish, CD, read-only memory (ROM) or random access memory (RAM) etc..
Although being described in conjunction with the accompanying embodiments of the invention, those skilled in the art can not depart from the present invention
Spirit and scope in the case of various modification can be adapted and modification, such modifications and variations are each fallen within by appended claims institute
Within the scope of restriction.
Claims (14)
1. a kind of terminal locking/unlocking method, the terminal has multiple buttons, it is characterised in that including:
When detecting button and being triggered, interlude between the button and the previous button being triggered that are currently triggered is judged
Whether the scheduled time is less than;
When less than the scheduled time, the key assignments of the button that journal is triggered is to form key assignments sequence;
Judge whether the key assignments sequence is consistent with predetermined sequence;
When consistent, locking is performed according to the terminal current state or unblock is handled.
2. according to the method described in claim 1, it is characterised in that when detecting button and being triggered, judgement is currently triggered
Button and the previous button being triggered between interlude whether be less than the scheduled time after, in addition to:
Whether when more than or equal to the scheduled time, it is the button being triggered first to judge the previous button being triggered;
When judging the previous button being triggered for the button being triggered first, determine whether the terminal current state whether be
Released state;
When judging the terminal current state for released state, the key assignments sequence is removed, the button being triggered first is performed
Function.
3. method according to claim 2, it is characterised in that when more than or equal to the scheduled time, before judgement
After whether one button being triggered is the button being triggered first, in addition to:
When the button for judging previous triggering is not the button being triggered first, the key assignments sequence is removed.
4. according to the method described in claim 1, it is characterised in that the key assignments sequence is stored in First Input First Output.
5. method according to claim 4, it is characterised in that judge the key assignments sequence it is whether consistent with predetermined sequence it
Before, in addition to:
Determine that the First Input First Output has been filled with.
6. according to any described method in claim 1 to 5, it is characterised in that perform lock according to the terminal current state
Fixed or unblock processing includes:
Whether be lock-out state, when it is determined that the terminal current state is lock-out state, enter if judging the terminal current state
Row unblock is handled;When it is determined that the terminal current state is non-locking state, locking processing is carried out.
7. a kind of terminal locking/tripper, the terminal has multiple buttons, it is characterised in that including:
First judge module, for when detecting button and being triggered, judging that the button being currently triggered is triggered with previous
Whether interlude is less than the scheduled time between button;
Logging modle, for when less than the scheduled time, the key assignments of the button that journal is triggered is to form key assignments sequence
Row;
Second judge module, for judging whether the key assignments sequence is consistent with predetermined sequence;
First processing module, for when consistent, performing locking according to the terminal current state or unblock being handled.
8. device according to claim 7, it is characterised in that described device also includes:
3rd judge module, for when detecting button and being triggered, judging that the button being currently triggered is triggered with previous
Whether interlude is less than after the scheduled time between button, when more than or equal to the scheduled time, judges previous
Whether the button being triggered is the button being triggered first;
4th judge module, for the button being triggered first when judging the previous button being triggered, is determined whether described
Whether terminal current state is released state;
Second processing module, for when judging the terminal current state for released state, removing the key assignments sequence, is performed
The function for the button being triggered first.
9. device according to claim 8, it is characterised in that described device also includes:
3rd processing module, for when more than or equal to the scheduled time, judge the previous button being triggered whether be
After the button being triggered first, when the button for judging previous triggering is not the button being triggered first, the key assignments is removed
Sequence.
10. device according to claim 7, it is characterised in that the key assignments sequence is stored in First Input First Output.
11. device according to claim 10, it is characterised in that described device also includes:
Determining module, for before judging whether the key assignments sequence is consistent with predetermined sequence, determining the First Input First Output
Have been filled with.
12. according to any described device in claim 7 to 11, it is characterised in that the first processing module is additionally operable to sentence
Whether the terminal current state of breaking is lock-out state, when it is determined that the terminal current state is lock-out state, is unlocked
Processing;When it is determined that the terminal current state is non-locking state, locking processing is carried out.
13. a kind of terminal, it is characterised in that including:At least one processor;And connect with least one described processor communication
The memory connect;Wherein, the memory storage have can by the instruction of one computing device, the instruction by it is described extremely
A few computing device, so that at least one computing device claim 1-6 the step of any methods described.
14. a kind of computer-readable recording medium, is stored thereon with computer instruction, it is characterised in that the instruction is by processor
The step of any methods described in claim 1-6 is realized during execution.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710380590.9A CN107330308B (en) | 2017-05-25 | 2017-05-25 | Terminal locking/unlocking method, device, terminal and computer readable storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710380590.9A CN107330308B (en) | 2017-05-25 | 2017-05-25 | Terminal locking/unlocking method, device, terminal and computer readable storage medium |
Publications (2)
Publication Number | Publication Date |
---|---|
CN107330308A true CN107330308A (en) | 2017-11-07 |
CN107330308B CN107330308B (en) | 2020-09-22 |
Family
ID=60192890
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201710380590.9A Active CN107330308B (en) | 2017-05-25 | 2017-05-25 | Terminal locking/unlocking method, device, terminal and computer readable storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN107330308B (en) |
Cited By (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN108765637A (en) * | 2018-03-29 | 2018-11-06 | 杭州美登科技股份有限公司 | Smart machine child lock and its control method, control system |
CN109271774A (en) * | 2018-08-23 | 2019-01-25 | 上海绿联软件股份有限公司 | Virgin locking device and unlocking method |
CN109549731A (en) * | 2018-10-18 | 2019-04-02 | 爱几度(深圳)科技有限公司 | A kind of electric toothbrush and its method of controlling security |
WO2020192594A1 (en) * | 2019-03-27 | 2020-10-01 | 李桂玉 | Gas stove locking method and control system |
CN112150675A (en) * | 2020-09-28 | 2020-12-29 | 公牛集团股份有限公司 | Control method and device of coded lock and computer readable storage medium |
CN112177435A (en) * | 2020-09-28 | 2021-01-05 | 公牛集团股份有限公司 | Control method and device of coded lock and computer readable storage medium |
CN116243824A (en) * | 2023-03-16 | 2023-06-09 | 松下万宝美健生活电器(广州)有限公司 | Touch control method of handheld appliance, handheld appliance and computer readable storage medium |
Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101753880A (en) * | 2008-12-08 | 2010-06-23 | 深圳创维数字技术股份有限公司 | Digital TV terminal and button locking/unlocking method and system thereof |
CN104021327A (en) * | 2014-06-19 | 2014-09-03 | 中科创达软件股份有限公司 | Method and device for unlocking intelligent device |
CN104424427A (en) * | 2013-08-28 | 2015-03-18 | 联发科技(新加坡)私人有限公司 | Password authentication method and device |
CN105809018A (en) * | 2016-03-11 | 2016-07-27 | 深圳市金立通信设备有限公司 | Sliding track verification method and terminal |
US20170060780A1 (en) * | 2015-09-01 | 2017-03-02 | International Business Machines Corporation | Nonvolatile memory data security |
CN106572396A (en) * | 2016-11-03 | 2017-04-19 | 成都视达科信息技术有限公司 | Set top box front panel fault locking and unlocking method and device |
-
2017
- 2017-05-25 CN CN201710380590.9A patent/CN107330308B/en active Active
Patent Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101753880A (en) * | 2008-12-08 | 2010-06-23 | 深圳创维数字技术股份有限公司 | Digital TV terminal and button locking/unlocking method and system thereof |
CN104424427A (en) * | 2013-08-28 | 2015-03-18 | 联发科技(新加坡)私人有限公司 | Password authentication method and device |
CN104021327A (en) * | 2014-06-19 | 2014-09-03 | 中科创达软件股份有限公司 | Method and device for unlocking intelligent device |
US20170060780A1 (en) * | 2015-09-01 | 2017-03-02 | International Business Machines Corporation | Nonvolatile memory data security |
CN105809018A (en) * | 2016-03-11 | 2016-07-27 | 深圳市金立通信设备有限公司 | Sliding track verification method and terminal |
CN106572396A (en) * | 2016-11-03 | 2017-04-19 | 成都视达科信息技术有限公司 | Set top box front panel fault locking and unlocking method and device |
Cited By (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN108765637A (en) * | 2018-03-29 | 2018-11-06 | 杭州美登科技股份有限公司 | Smart machine child lock and its control method, control system |
CN109271774A (en) * | 2018-08-23 | 2019-01-25 | 上海绿联软件股份有限公司 | Virgin locking device and unlocking method |
CN109549731A (en) * | 2018-10-18 | 2019-04-02 | 爱几度(深圳)科技有限公司 | A kind of electric toothbrush and its method of controlling security |
WO2020192594A1 (en) * | 2019-03-27 | 2020-10-01 | 李桂玉 | Gas stove locking method and control system |
CN112150675A (en) * | 2020-09-28 | 2020-12-29 | 公牛集团股份有限公司 | Control method and device of coded lock and computer readable storage medium |
CN112177435A (en) * | 2020-09-28 | 2021-01-05 | 公牛集团股份有限公司 | Control method and device of coded lock and computer readable storage medium |
CN112150675B (en) * | 2020-09-28 | 2022-04-12 | 公牛集团股份有限公司 | Control method and device of coded lock and computer readable storage medium |
CN116243824A (en) * | 2023-03-16 | 2023-06-09 | 松下万宝美健生活电器(广州)有限公司 | Touch control method of handheld appliance, handheld appliance and computer readable storage medium |
CN116243824B (en) * | 2023-03-16 | 2024-05-31 | 松下万宝美健生活电器(广州)有限公司 | Touch control method of handheld appliance, handheld appliance and computer readable storage medium |
Also Published As
Publication number | Publication date |
---|---|
CN107330308B (en) | 2020-09-22 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN107330308A (en) | Terminal locking/unlocking method, device, terminal and computer-readable recording medium | |
CN105045454B (en) | A kind of terminal false-touch prevention method and terminal | |
CN104571693B (en) | Information processing method and electronic equipment | |
US8102286B2 (en) | Capacitive keyboard with non—locking reduced keying ambiguity | |
CN104077518A (en) | Device and method for unlocking and executing application | |
CN105404423B (en) | Touch control display device and its pressure sensitive touch control method | |
CN105893130B (en) | A kind of processing method and mobile terminal of application program for mobile terminal | |
CN106843664A (en) | Display methods, display device and terminal | |
WO2017185466A1 (en) | Intelligent terminal operating method and system | |
CN108491115A (en) | Household appliance control method and household electrical appliance | |
JP2015176367A5 (en) | ||
CN105824465A (en) | Touch determination method and device, and display device | |
CN105138272A (en) | Key touch control device and method of touch screen | |
CN104407793B (en) | Touch signal processing method and equipment | |
CN103838486B (en) | The operating method and terminal of a kind of terminal display page | |
CN105183302A (en) | Method and terminal for controlling application | |
CN105607844A (en) | Touch screen control method, touch screen control device and terminal | |
WO2016145873A1 (en) | Accidental operation identification method and device | |
CN104035695B (en) | A kind of method and electronic equipment of information processing | |
CN104077050A (en) | Terminal operating method | |
CN105468243A (en) | Page returning method and page returning device | |
CN110231911A (en) | False-touch prevention method, apparatus and household appliance | |
CN104463039A (en) | Unlocking method and device of intelligent device | |
CN107807779A (en) | A kind of touch operation method and device | |
CN110633023B (en) | False touch prevention method and device, terminal and computer readable storage medium |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |