CN104951678B - Unlocking method and a device - Google Patents
Unlocking method and a device Download PDFInfo
- Publication number
- CN104951678B CN104951678B CN201510308959.6A CN201510308959A CN104951678B CN 104951678 B CN104951678 B CN 104951678B CN 201510308959 A CN201510308959 A CN 201510308959A CN 104951678 B CN104951678 B CN 104951678B
- Authority
- CN
- China
- Prior art keywords
- graphic code
- numerical ciphers
- smart lock
- server
- user identifier
- 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.)
- Active
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
-
- 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
- G06F21/36—User authentication by graphic or iconic representation
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)
- Lock And Its Accessories (AREA)
Abstract
The disclosure is directed to a kind of unlocking method and a devices, belong to network technique field.The described method includes:, according to preset algorithm, the graphic code is converted to numerical ciphers when being locked according to graphic code;The numerical ciphers are stored, the numerical ciphers are for being unlocked smart lock;According to the corresponding user identifier of smart lock, the graphic code is sent to server;The graphic code according to the preset algorithm, is converted to the numerical ciphers, is sent to the terminal for being logged in the server using the user identifier by the server for storing the graphic code.In such a way that smart lock provides numerical ciphers unlock, ensure that can be unlocked the disclosure when that can not be unlocked according to graphic code according to numerical ciphers, improve the reliability of smart lock.
Description
Technical field
The disclosure is directed to network technique fields, specifically about unlocking method and a device.
Background technique
With the intelligent development of electronic equipment, current smart lock can carry out locking and unlocking, tool by two dimensional code
Have the advantages that security performance is high, easy to operate without user's memory cipher, unlock, has been increasingly becoming in user's daily life and has commonly used
Electronic equipment.
Smart lock may be configured to the scanner scanned the two-dimensional code, and the smart lock can also be provided for user and be preset
Two dimensional code, which can be printed on card or be stored in the terminal of user.Smart lock can be according to the two dimension
Code locking, at this point, the scanner can be used if user will be unlocked the smart lock, on card two dimensional code or
Two dimensional code in person's terminal is scanned, which can obtain the two dimensional code of scanning by the scanner, judges scanning
Whether two dimensional code matches with the pre-set two dimensional code of the smart lock, when the two dimensional code and pre-set two dimensional code for determining scanning
When matching, smart lock unlock.
Summary of the invention
In order to solve the problems, such as present in the relevant technologies, present disclose provides a kind of unlocking method and a devices.The technology
Scheme is as follows:
According to the first aspect of the embodiments of the present disclosure, a kind of unlocking method is provided, the method is applied to smart lock, institute
The method of stating includes:
When being locked according to graphic code, according to preset algorithm, the graphic code is converted into numerical ciphers;
The numerical ciphers are stored, the numerical ciphers are for being unlocked the smart lock;
According to the corresponding user identifier of the smart lock, the graphic code is sent to server;
The server, according to the preset algorithm, the graphic code is converted to described for storing the graphic code
Numerical ciphers are sent to the terminal that the server is logged in using the user identifier.
In another embodiment, it is described according to graphic code carry out locking include:
By the scanner configured, the graphic code is scanned;
According to the graphic code, the smart lock is locked.
In another embodiment, described according to the corresponding user identifier of the smart lock, the figure is sent to server
After code, the method also includes:
By the numeric keypad configured, the unlock digital information of input is obtained;
When determining that the unlock digital information is matched with the numerical ciphers, the smart lock is unlocked.
In another embodiment, the numeric keypad by configuring obtains the unlock digital information of input, comprising:
Under the premise of current unlocking manner is numerical ciphers unlocking manner, by the numeric keypad, input is obtained
Unlock digital information.
In another embodiment, described under the premise of current unlocking manner is numerical ciphers unlocking manner, pass through institute
Numeric keypad is stated, before the unlock digital information for obtaining input, the method also includes:
According to the user identifier, the number unlock setting instruction that the server is sent is received, the number unlock is set
It sets instruction and is used to indicate the smart lock and set numerical ciphers unlocking manner for unlocking manner;
Numerical ciphers unlocking manner is set by unlocking manner.
In another embodiment, the method also includes:
Under the premise of current unlocking manner is graphic code unlocking manner, by the scanner configured, to assignment graph
Code is scanned;
When the assignment graph code is matched with the graphic code, the smart lock is unlocked.
According to the second aspect of an embodiment of the present disclosure, a kind of unlocking method is provided, the method is applied to terminal, described
Method includes:
According to user identifier, the numerical ciphers that server is sent are received, the numerical ciphers are by the server according to pre-
Imputation method, the graphic code sent to smart lock are converted to, and the smart lock according to the graphic code for being locked
Periodically, according to the user identifier, the graphic code is sent to the server, and according to the preset algorithm, by the figure
Shape code is converted to the numerical ciphers;
Show the numerical ciphers, the numerical ciphers are for being unlocked the smart lock.
In another embodiment, described according to user identifier, before receiving the numerical ciphers that server is sent, the method
Further include:
Receive the numerical ciphers unlock instruction to the smart lock;
According to the user identifier, numerical ciphers acquisition request is sent to the server, the numerical ciphers acquisition is asked
It asks for requesting the server according to the preset algorithm, the graphic code is converted into the numerical ciphers.
In another embodiment, the method also includes:
According to the user identifier, number unlock setting instruction is sent to the server, the number unlock setting refers to
Order is used to indicate the server and sets numerical ciphers unlocking manner for the unlocking manner of the smart lock.
According to the third aspect of an embodiment of the present disclosure, a kind of unlocking method is provided, the method is applied to server, institute
The method of stating includes:
When receiving the graphic code that smart lock is sent according to user identifier, the graphic code is stored;
According to preset algorithm, the graphic code is converted into numerical ciphers;
It is close to the terminal transmission number for using the user identifier to log in the server according to the user identifier
Code, the terminal is for showing the numerical ciphers, and the numerical ciphers are for being unlocked the smart lock.
In another embodiment, described according to preset algorithm, the graphic code is converted into numerical ciphers, comprising:
When receiving the numerical ciphers acquisition request that the terminal is sent, according to the preset algorithm, by the figure
Code is converted to numerical ciphers.
In another embodiment, the method also includes:
According to the user identifier, number unlock setting instruction is sent to the smart lock, so that the smart lock will solve
Lock mode is set as numerical ciphers unlocking manner.
According to a fourth aspect of embodiments of the present disclosure, a kind of tripper is provided, described device is applied to smart lock, institute
Stating device includes:
Conversion module, for according to preset algorithm, the graphic code to be converted to number when being locked according to graphic code
Word password;
Memory module, for storing the numerical ciphers, the numerical ciphers are for being unlocked the smart lock;
Sending module, for sending the graphic code to server according to the corresponding user identifier of the smart lock;
The server, according to the preset algorithm, the graphic code is converted to described for storing the graphic code
Numerical ciphers are sent to the terminal that the server is logged in using the user identifier.
In another embodiment, described device further include:
Scan module is scanned the graphic code for the scanner by configuring;
Processing module, for being locked to the smart lock according to the graphic code.
In another embodiment, described device further include:
Module is obtained, for the numeric keypad by configuring, obtains the unlock digital information of input;
Processing module, for when determining that the unlock digital information is matched with the numerical ciphers, to the smart lock
It is unlocked.
In another embodiment, the module that obtains is also used in current unlocking manner be numerical ciphers unlocking manner
Under the premise of, by the numeric keypad, obtain the unlock digital information of input.
In another embodiment, described device further include:
Receiving module, for receiving the number unlock setting instruction that the server is sent, institute according to the user identifier
Number unlock setting instruction is stated to be used to indicate the smart lock and set numerical ciphers unlocking manner for unlocking manner;
Setup module, for setting numerical ciphers unlocking manner for unlocking manner.
In another embodiment, described device further include:
Scan module, for passing through the scanning configured under the premise of current unlocking manner is graphic code unlocking manner
Device is scanned assignment graph code;
Processing module, for being unlocked to the smart lock when the assignment graph code is matched with the graphic code.
According to a fifth aspect of the embodiments of the present disclosure, a kind of tripper is provided, described device is applied to terminal, described
Device includes:
Receiving module, for receiving the numerical ciphers that server is sent, the numerical ciphers are by described according to user identifier
Server is according to preset algorithm, and the graphic code sent to smart lock is converted to, and the smart lock is used for according to
When graphic code is locked, according to the user identifier, the graphic code is sent to the server, and according to the pre- imputation
The graphic code is converted to the numerical ciphers by method;
Display module, for showing the numerical ciphers, the numerical ciphers are for being unlocked the smart lock.
In another embodiment, described device further include:
The receiving module is also used to receive the numerical ciphers unlock instruction to the smart lock;
Sending module, for sending numerical ciphers acquisition request, the number to the server according to the user identifier
For word password acquisition request for requesting the server according to the preset algorithm, it is close that the graphic code is converted to the number
Code.
In another embodiment, described device further include:
Sending module, for sending number unlock setting instruction, the number to the server according to the user identifier
Word unlock setting instruction is used to indicate the server and sets numerical ciphers unlocking manner for the unlocking manner of the smart lock.
According to a sixth aspect of an embodiment of the present disclosure, a kind of tripper is provided, described device is applied to server, institute
Stating device includes:
Memory module, for storing the graphic code when receiving the graphic code that smart lock is sent according to user identifier;
Conversion module, for according to preset algorithm, the graphic code to be converted to numerical ciphers;
Sending module is used for according to the user identifier, to the terminal for using the user identifier to log in the server
The numerical ciphers are sent, the terminal is for showing the numerical ciphers, and the numerical ciphers are for being locked into the intelligence
Row unlock.
In another embodiment, the conversion module is also used to ask when the numerical ciphers acquisition for receiving the terminal transmission
When asking, according to the preset algorithm, the graphic code is converted into numerical ciphers.
In another embodiment, the sending module is also used to according to the user identifier, sends number to the smart lock
Word unlock setting instruction, so that unlocking manner is set numerical ciphers unlocking manner by the smart lock.
According to the 7th of the embodiment of the present disclosure the aspect, a kind of tripper is provided, described device includes:
Processor;
Memory for storage processor executable instruction;
Wherein, the processor is configured to:
When being locked according to graphic code, according to preset algorithm, the graphic code is converted into numerical ciphers;
The numerical ciphers are stored, the numerical ciphers are for being unlocked smart lock;
According to the corresponding user identifier of the smart lock, the graphic code is sent to server;
The server, according to the preset algorithm, the graphic code is converted to described for storing the graphic code
Numerical ciphers are sent to the terminal that the server is logged in using the user identifier.
According to the eighth aspect of the embodiment of the present disclosure, a kind of tripper is provided, described device includes:
Processor;
Memory for storage processor executable instruction;
Wherein, the processor is configured to:
According to user identifier, the numerical ciphers that server is sent are received, the numerical ciphers are by the server according to pre-
Imputation method, the graphic code sent to smart lock are converted to, and the smart lock according to the graphic code for being locked
Periodically, according to the user identifier, the graphic code is sent to the server, and according to the preset algorithm, by the figure
Shape code is converted to the numerical ciphers;
Show the numerical ciphers, the numerical ciphers are for being unlocked the smart lock.
According to the 9th of the embodiment of the present disclosure the aspect, a kind of tripper is provided, described device includes:
Processor;
Memory for storage processor executable instruction;
Wherein, the processor is configured to:
When receiving the graphic code that smart lock is sent according to user identifier, the graphic code is stored;
According to preset algorithm, the graphic code is converted into numerical ciphers;
It is close to the terminal transmission number for using the user identifier to log in the server according to the user identifier
Code, the terminal is for showing the numerical ciphers, and the numerical ciphers are for being unlocked the smart lock.
The technical scheme provided by this disclosed embodiment can include the following benefits:
Method and apparatus provided in this embodiment, in such a way that smart lock provides numerical ciphers unlock, according to figure
When shape code is locked, according to preset algorithm, which is converted into numerical ciphers, and according to the corresponding user of the smart lock
Mark, sends the graphic code to server, then the graphic code is converted to the numerical ciphers according to the preset algorithm by server,
It is sent to and logs in the terminal of the server using the user identifier, user is you can learn that the numerical ciphers, according to the numerical ciphers
Smart lock is unlocked, ensure that can be unlocked when that can not be unlocked according to graphic code according to numerical ciphers, improve
The reliability of smart lock.
It should be understood that the above general description and the following detailed description are merely exemplary, this can not be limited
It is open.
Detailed description of the invention
The drawings herein are incorporated into the specification and forms part of this specification, and shows the implementation for meeting the disclosure
Example, and together with specification for explaining the principles of this disclosure.
Fig. 1 is a kind of block diagram of system for unlocking shown according to an exemplary embodiment;
Fig. 2 is a kind of flow chart of unlocking method shown according to an exemplary embodiment;
Fig. 3 is a kind of flow chart of unlocking method shown according to an exemplary embodiment;
Fig. 4 is a kind of flow chart of unlocking method shown according to an exemplary embodiment;
Fig. 5 is a kind of flow chart of unlocking method shown according to an exemplary embodiment;
Fig. 6 is a kind of block diagram of tripper shown according to an exemplary embodiment;
Fig. 7 is a kind of block diagram of tripper shown according to an exemplary embodiment;
Fig. 8 is a kind of block diagram of tripper shown according to an exemplary embodiment;
Fig. 9 is a kind of block diagram of means for unlocking shown according to an exemplary embodiment;
Figure 10 is a kind of block diagram of means for unlocking shown according to an exemplary embodiment.
Specific embodiment
It is right below with reference to embodiment and attached drawing for the purposes, technical schemes and advantages of the disclosure are more clearly understood
The disclosure is described in further details.Here, the exemplary embodiment and its explanation of the disclosure be for explaining the disclosure, but simultaneously
Not as the restriction to the disclosure.
The embodiment of the present disclosure provides a kind of unlocking method and a device, and the disclosure is described in detail below in conjunction with attached drawing.
Fig. 1 is a kind of block diagram of system for unlocking shown according to an exemplary embodiment, as shown in Figure 1, the system for unlocking
It include: that smart lock 101, terminal 102 and server 103 should by network connection between the smart lock 101 and the server 103
Pass through network connection between terminal 102 and the server 103.Wherein, which logs in the service according to user identifier
Device 103, the terminal 102 log in the server 103 also according to the user identifier.
In the present embodiment, which provides two kinds of unlocking manners: graphic code unlocking manner and numerical ciphers solution
Lock mode.
Smart lock 101 is configured with scanner, can be scanned to graphic code, by the scanner according to what is scanned
Graphic code is locked.In subsequent process, which can also be scanned the graphic code by the scanner, then
It is unlocked according to the graphic code scanned.
In addition, the graphic code of smart lock 101 can be printed on card or be stored in the terminal 102 of user, when with
When the card or the terminal 102 of printed pattern code are lost in family, it is impossible to obtain the graphic code, be will be unable at this time according to the figure
Code, is unlocked smart lock 101.
In order to solve the problems, such as can not to unlock, which additionally provides the mode of numerical ciphers unlock, and the intelligence
Lock 101 is also configured with numeric keypad, and the numeric keypad is for inputting unlock digital information.When the smart lock 101 is arrived according to scanning
Graphic code when being locked, which can be converted to, and it is close to store the number by numerical ciphers according to preset algorithm
Code, and according to the user identifier of login, the graphic code is sent to server 103, then the server 103 stores the graphic code.It should
Numerical ciphers and the graphic code correspond, for being unlocked to the smart lock 101.
So, when user is due to losing the card of printed pattern code or storing the terminal etc. of graphic code, and can not
When being unlocked according to graphic code, terminal 102 used by a user can log in the server 103 according to the user identifier, should
The graphic code that the smart lock 101 is sent can be converted to the numerical ciphers, to the end according to the preset algorithm by server 103
End 102 sends the numerical ciphers, then the terminal 102 shows the numerical ciphers, and user is you can learn that the numerical ciphers, and in the intelligence
It can lock and input the numerical ciphers on 101 numeric keypad, to be unlocked to the smart lock 101.
In system provided in this embodiment, smart lock provides the mode of numerical ciphers unlock, carries out according to graphic code
When locking, according to preset algorithm, which is converted into numerical ciphers, and according to the corresponding user identifier of smart lock, to clothes
Business device sends the graphic code, then the graphic code can be converted to the numerical ciphers, be sent to by server according to the preset algorithm
The terminal of the server is logged in using the user identifier, terminal shows the numerical ciphers, and user is you can learn that the numerical ciphers, root
Smart lock is unlocked according to the numerical ciphers, ensure that when that can not be unlocked according to graphic code can according to numerical ciphers into
Row unlock, improves the reliability of smart lock.
Fig. 2 is a kind of flow chart of unlocking method shown according to an exemplary embodiment, as shown in Fig. 2, unlocking method
For in smart lock, comprising the following steps:
In step 201, when being locked according to graphic code, according to preset algorithm, which is converted into number
Password.
In step 202, the numerical ciphers are stored, the numerical ciphers are for being unlocked the smart lock.
In step 203, according to the corresponding user identifier of the smart lock, the graphic code is sent to server.
Wherein, which, according to the preset algorithm, it is close to be converted to the number for the graphic code for storing the graphic code
Code, is sent to the terminal that the server is logged in using the user identifier.
Method provided in this embodiment, smart lock provide numerical ciphers unlock by way of, according to graphic code into
When row locking, according to preset algorithm, which is converted into numerical ciphers, and according to the corresponding user identifier of smart lock, to
Server sends the graphic code, then the graphic code is converted to the numerical ciphers, being sent to makes according to the preset algorithm by server
The terminal of the server is logged in the user identifier, user is you can learn that the numerical ciphers, according to the numerical ciphers to smart lock
It is unlocked, ensure that can be unlocked when that can not be unlocked according to graphic code according to numerical ciphers, improve smart lock
Reliability.
In another embodiment, this, which lock according to graphic code, includes:
By the scanner configured, which is scanned;
According to the graphic code, which is locked.
In another embodiment, this is according to the corresponding user identifier of the smart lock, after sending the graphic code to server,
This method further include:
By the numeric keypad configured, the unlock digital information of input is obtained;
When determining that the unlock digital information is matched with the numerical ciphers, which is unlocked.
In another embodiment, the unlock digital information of input should be obtained by the numeric keypad configured, comprising:
Under the premise of current unlocking manner is numerical ciphers unlocking manner, by the numeric keypad, input is obtained
Unlock digital information.
In another embodiment, the number should be passed through under the premise of current unlocking manner is numerical ciphers unlocking manner
Word keyboard, before the unlock digital information for obtaining input, this method further include:
According to the user identifier, the number unlock setting instruction of server transmission, number unlock setting instruction are received
It is used to indicate the smart lock and sets numerical ciphers unlocking manner for unlocking manner;
Numerical ciphers unlocking manner is set by unlocking manner.
In another embodiment, this method further include:
Under the premise of current unlocking manner is graphic code unlocking manner, by the scanner configured, to assignment graph
Code is scanned;
When the assignment graph code is matched with the graphic code, which is unlocked.
All the above alternatives can form the alternative embodiment of the disclosure, herein no longer using any combination
It repeats one by one.
Fig. 3 is a kind of flow chart of unlocking method shown according to an exemplary embodiment, as shown in figure 3, the unlock side
Method is in terminal, comprising the following steps:
In step 301, according to user identifier, the numerical ciphers that server is sent are received, the numerical ciphers are by the service
According to preset algorithm, the graphic code sent to smart lock is converted to device, the smart lock be used for according to the graphic code into
When row locking, according to the user identifier, the graphic code is sent to the server, and according to the preset algorithm, which is turned
It is changed to the numerical ciphers.
In step 302, the numerical ciphers are shown, the numerical ciphers are for being unlocked the smart lock.
Method provided in this embodiment, smart lock provide numerical ciphers unlock by way of, according to graphic code into
When row locking, according to preset algorithm, which is converted into numerical ciphers, and according to the corresponding user identifier of the smart lock,
The graphic code is sent to server, then the graphic code can be converted to the numerical ciphers according to the preset algorithm by server, hair
The terminal that the server is logged in using the user identifier is given, terminal receives the numerical ciphers, and shows the numerical ciphers, user
You can learn that the numerical ciphers, are unlocked smart lock according to the numerical ciphers, ensure that can not carry out according to graphic code
It can be unlocked according to numerical ciphers when unlock, improve the reliability of smart lock.
In another embodiment, this is according to user identifier, and before receiving the numerical ciphers that server is sent, this method is also wrapped
It includes:
Receive the numerical ciphers unlock instruction to the smart lock;
According to the user identifier, numerical ciphers acquisition request is sent to the server, which is used for
It requests the server according to the preset algorithm, which is converted into the numerical ciphers.
In another embodiment, this method further include:
According to the user identifier, number unlock setting instruction is sent to the server, number unlock setting instruction is used for
Indicate that the unlocking manner of the smart lock is set numerical ciphers unlocking manner by the server.
Fig. 4 is a kind of flow chart of unlocking method shown according to an exemplary embodiment, as shown in figure 4, the unlock side
Method is in server, comprising the following steps:
In step 401, when receiving the graphic code that smart lock is sent according to user identifier, the graphic code is stored.
In step 402, according to preset algorithm, which is converted into numerical ciphers.
In step 403, according to the user identifier, the number is sent to the terminal for using the user identifier to log in the server
Word password, the terminal is for showing the numerical ciphers, and the numerical ciphers are for being unlocked the smart lock.
Method provided in this embodiment, smart lock provide numerical ciphers unlock by way of, according to graphic code into
When row locking, according to preset algorithm, which is converted into numerical ciphers, and according to the corresponding user identifier of the smart lock,
The graphic code is sent to server, then the graphic code can be converted to numerical ciphers according to the preset algorithm by server, be sent
To the terminal for logging in the server using the user identifier, terminal receives the numerical ciphers, and shows the numerical ciphers, and user is
It would know that the numerical ciphers, smart lock be unlocked according to the numerical ciphers, ensure that can not solved according to graphic code
It can be unlocked according to numerical ciphers when lock, improve the reliability of smart lock.
In another embodiment, which is converted to numerical ciphers according to preset algorithm by this, comprising:
When receiving the numerical ciphers acquisition request of terminal transmission, according to the preset algorithm, which is converted
For numerical ciphers.
In another embodiment, this method further include:
According to the user identifier, number unlock setting instruction is sent to the smart lock, so that the smart lock is by unlocking manner
It is set as numerical ciphers unlocking manner.
Fig. 5 is a kind of flow chart of unlocking method shown according to an exemplary embodiment, as shown in figure 5, the unlock side
The interaction agent of method is smart lock, terminal and server, comprising the following steps:
In step 501, smart lock passes through the scanner configured, is scanned to graphic code, according to the graphic code, to this
Smart lock is locked.
Wherein, which can be two dimensional code, bar code etc., and the graphic code can be generated or be printed on by terminal
On card, the present embodiment is not limited this.The scanner can be only fitted to the smart lock for being scanned to graphic code
On, can also be independently of the smart lock except.When except the scanner is independently of the smart lock, which can pass through number
It according to line, is connect with the smart lock, to send the graphic code scanned, configuration of the present embodiment to the scanner to the smart lock
Mode is without limitation.The smart lock can be bicycle lock, door-control lock, suitcase lock etc., and the present embodiment answers the smart lock
Without limitation with scene.
The smart lock may be at two states: unlocked state and lock state.If the smart lock is in the unlocked state,
Then when the smart lock is by scanner, when being scanned to graphic code, locked according to the graphic code, at this time at the smart lock
In lock state, later, when the smart lock is again by the scanner, when being scanned to the graphic code, which is determined
The graphic code scanned is matched with graphic code when locking, then is unlocked to the smart lock.
When practical application, which can preset graphic code, then when the smart lock is in the unlocked state every time, when
The smart lock when being scanned to graphic code, judges that the graphic code scanned is with pre-set graphic code by scanner
No matching, if it is, being locked according to the graphic code, if it is not, then will not be locked according to the graphic code.And at this
When smart lock is in the lock state, when the smart lock is by the scanner, when being scanned to graphic code, the figure scanned is judged
Whether shape code matches with pre-set graphic code, if it is, being unlocked according to the graphic code, if it is not, then will not root
It is unlocked according to the graphic code.
For example, it is graphic code A that the smart lock, which presets the graphic code for carrying out locking and unlocking to the smart lock, then
When the smart lock only has scanning to arrive graphic code A, it just will do it and lock or unlock.When the number of Current Scan graphic code A is odd number,
The smart lock is locked, when the number of Current Scan graphic code A is even number, which is unlocked.When the intelligence
When other graphic codes in addition to graphic code A are arrived in lock scanning, it not will do it and lock or unlock.
The smart lock can not also preset graphic code, then the smart lock can be locked according to any graphic code,
And graphic code when according to locking is unlocked.It that is to say, when the smart lock is in the unlocked state, which passes through scanning
Device when being scanned to graphic code, is locked according to the graphic code, later, in the state of smart lock locking, when the intelligence
Can lock by the scanner, when being scanned to graphic code, judge graphic code when the graphic code scanned and locking whether
Match, if it is, being unlocked according to the graphic code.
For example, the smart lock, when in the unlocked state, scanning figure shape code A is locked, Zhi Houzai according to graphic code A
Secondary scanning figure shape code A, is unlocked according to graphic code A, at this point, the smart lock is in the unlocked state, which can also be swept
Trace designs shape code B, is locked according to graphic code B, later scanning figure shape code B again, is unlocked according to graphic code B.
In step 502, which is converted to numerical ciphers for the graphic code, stores the number according to preset algorithm
Password.
Wherein, which converts this information into unique corresponding for calculating any type of information
Digital information, the preset algorithm can be MD5 (Message Digest Algorithm MD5, Message Digest Algorithm 5)
Deng the present embodiment does not limit this.By applying the preset algorithm, the information such as text, number, figure can be converted to only
One corresponding digital information.So, for any graphic code, when being converted according to the preset algorithm to the graphic code,
Available unique number password corresponding with the graphic code.
In the present embodiment, which can be determined by the smart lock with the server through consultation in advance, and be made
With in the process, which can also be updated the preset algorithm with the smart lock, to prevent preset algorithm from revealing, improve
Safety.In addition, the preset algorithm between the server and different smart locks may be the same or different, the present embodiment
Without limitation to this.
In the present embodiment, which can be solved when being locked according to the graphic code according to the graphic code
Lock.But it in practical application, is likely to lose the card of printed pattern code due to user or loses storage graphic code
The reasons such as terminal, and can not be unlocked according to graphic code.Then in order to which guarantee can when that can not be unlocked according to graphic code
It is unlocked according to numerical ciphers, when the smart lock is locked according to graphic code, according to the preset algorithm, by the graphic code
Numerical ciphers are converted to, and store the numerical ciphers, which can be used for being unlocked the smart lock.Wherein, exist
When being converted, which can first be identified the graphic code, obtain the characteristic information for including in the graphic code, application
The preset algorithm calculates this feature information, so that this feature information is converted to unique corresponding numerical ciphers.
In step 503, which sends the graphic code to server according to corresponding user identifier.
In the present embodiment, which logs in the server according to the user identifier, which can be user's account
Number, user's pet name, Customs Assigned Number etc., the present embodiment does not limit this.
When practical application, which can configure display screen, show login interface on the display screen, and user can be with
User identifier is inputted on the login interface and user password corresponding with the user identifier, the smart lock obtain the user identifier
The server is logged according to the user identifier and the user password with the user password.
Alternatively, the smart lock can also establish data connection with terminal, which can be bluetooth, WiFi
Data connections such as (Wireless-Fidelity, Wireless Fidelitys), user can input the user identifier and the user at the terminal
Password, the terminal send the user identifier and the user password to the smart lock, which receives by the data connection
When the user identifier and the user password, according to the user identifier and the user password, the server is logged in, and store the user
Mark and the user password.In subsequent process, which can keep logging in the state of the server, can also be only in basis
When graphic code is locked, according to the user identifier and user password of storage, the server is logged in, the present embodiment is to the smart lock
Login opportunity without limitation.In addition, the smart lock can keep the data connection between the terminal, alternatively, in order to prevent
When user loses the terminal, other users are managed operation to the smart lock using the terminal, which can also disconnect
With the data connection between the terminal, the present embodiment is not limited this.
It should be noted that should with following obtain in the process to the terminal that the smart lock sends user identifier and user password
The terminal of smart lock numerical ciphers can be same terminal, or different terminals, the present embodiment do not limit this.
In step 504, when which receives the graphic code, the graphic code is stored.
When in order to guarantee that user can not obtain graphic code, the corresponding numerical ciphers of the graphic code, the smart lock can be obtained
When being locked according to the graphic code, also the graphic code is sent to the server according to the corresponding user identifier of the smart lock,
When the server receives the graphic code, the graphic code is stored, the graphic code can be obtained according to the graphic code so as to subsequent
Corresponding numerical ciphers, return to user.
In order to distinguish to the graphic code that different intelligent is locked, which receives the graphic code of smart lock transmission
When, the user identifier and the graphic code for storing the smart lock can also be corresponded to.In subsequent process, which can be by the figure
The corresponding numerical ciphers of code are sent to the terminal that the server is logged in using the user identifier.
In step 505, terminal receives the numerical ciphers unlock instruction to the smart lock, according to the user identifier, to this
Server sends numerical ciphers acquisition request.
In order to be managed to the smart lock, the terminal and the smart lock can log in the clothes according to same user identifier
Business device.The terminal can also show the administration interface of the smart lock according to the user identifier, which is used for the intelligence
Lock is managed.The administration interface includes at least numerical ciphers and unlocks option, which can be by counting this
Word password unlocks the clicking operation triggering of option.
The numerical ciphers unlock instruction, which is used to indicate, is unlocked the smart lock according to numerical ciphers, when the terminal receives
When to numerical ciphers unlock instruction to the smart lock, numerical ciphers can be sent to the server and be obtained according to the user identifier
Take request.
The terminal can also install specified management application, which is associated with the server, for intelligence
Lock is managed.Then the terminal can show the administration interface by the specified management application, on the administration interface, according to
The management operation detected, is managed the smart lock, and by the specified management application, sends and the pipe to the server
Reason operates corresponding management request, such as numerical ciphers acquisition request or other kinds of management request.
In step 506, it when which receives the numerical ciphers acquisition request, according to the preset algorithm, will store
Graphic code be converted to numerical ciphers.
In step 507, which sends the numerical ciphers to the terminal.
When the server receives the numerical ciphers acquisition request of terminal transmission, storage corresponding with the user identifier is obtained
Graphic code, graphic code used when as the smart lock locks, then the server turns the graphic code according to the preset algorithm
Numerical ciphers are changed to, according to the user identifier, send the numerical ciphers to the terminal.
It should be noted that above-mentioned steps 504-507 is optional step, which receives the figure of smart lock transmission
It, can also be in the case where not receiving the numerical ciphers acquisition request of the terminal, according to the preset algorithm, by the figure when shape code
Shape code is converted to numerical ciphers, and sends the numerical ciphers to the terminal for using the user identifier to log in the server, then terminal
When logging in the server, the numerical ciphers that the server ready to receive is sent, and show the numerical ciphers.Alternatively, the server
After the graphic code is converted to the numerical ciphers, the numerical ciphers can be first stored, when receiving the numerical ciphers acquisition request
When, then the numerical ciphers are sent to the terminal, the present embodiment is close to the opportunity of server conversion numerical ciphers and transmission number
The opportunity of code is without limitation.
In step 508, when the terminal receives the numerical ciphers, the numerical ciphers are shown.
At this point, user can check the numerical ciphers on the terminal.
In step 509, which passes through the numeric keypad configured, obtains the unlock digital information of input, works as determination
When the unlock digital information is matched with the numerical ciphers of storage, which is unlocked.
After user checks the numerical ciphers at the terminal, it is close can to input the number on the numeric keypad of the smart lock
Code, is unlocked the smart lock.And for the smart lock, which obtains user's input by the numeric keypad
Unlock digital information stored numerical ciphers since the smart lock according to graphic code when being locked, then the intelligence
Lock obtains the numerical ciphers of storage, judges whether the unlock digital information of user's input matches with the numerical ciphers of storage, if
The unlock digital information is matched with the numerical ciphers of storage, then is unlocked to the smart lock.
It should be noted that the present embodiment is only illustrated so that the smart lock is unlocked according to numerical ciphers as an example, it is real
On border, which is in the lock state after executing step 501-504, at this point, the smart lock can be according to numerical ciphers
Be unlocked, can also be unlocked according to the graphic code, the present embodiment to the step of being unlocked according to the graphic code no longer
It repeats.
By taking the smart lock is bicycle lock as an example, the application process of the smart lock be can be such that
(1) when user needs car locking, graphic code is generated using mobile phone, smart lock is by scanner, the figure generated to mobile phone
Shape code is scanned, and is locked according to the graphic code scanned.
At this point, the graphic code can be converted to numerical ciphers according to preset algorithm by smart lock, the numerical ciphers are stored, and
The smart lock can also send the graphic code to server, so that server is according to preset algorithm, which is converted to number
Password.
User can execute following step (2) in subsequent process or (3) are unlocked smart lock.
(2) when user needs to unlock, mobile phone shows the graphic code, and smart lock is by scanner, the figure shown to mobile phone
Code is scanned, and is unlocked according to the graphic code scanned.
(3) mobile phone of user is lost, and can not be unlocked according to the graphic code, when user needs to unlock, use is another
Mobile phone login service device sends numerical ciphers acquisition request to server, the numerical ciphers of server return is obtained, in intelligence
The numerical ciphers are inputted on the numeric keypad of lock, then the smart lock is unlocked according to the numerical ciphers.
In the present embodiment, which provides two kinds of unlocking manners: graphic code unlocking manner and numerical ciphers solution simultaneously
Lock mode, the smart lock can be both unlocked according to graphic code, can also be carried out according to the corresponding numerical ciphers of the graphic code
Unlock.And in practical applications, numerical ciphers are easy to be seen by other users, and security performance is poor, therefore, in order to improve intelligence
The security performance that can be locked, the smart lock can just allow basis only when current unlocking manner is numerical ciphers unlocking manner
The corresponding numerical ciphers of the graphic code are unlocked, and when current unlocking manner is graphic code unlocking manner, it only being capable of root
It is unlocked according to graphic code.
It that is to say, for the smart lock under the premise of current unlocking manner is numerical ciphers unlocking manner, could pass through should
Numeric keypad obtains the unlock digital information of user's input, when determining that the unlock digital information matches with the numerical ciphers of storage
When, which is unlocked.And the smart lock is under the premise of current unlocking manner is graphic code unlocking manner, it can be with
By the scanner, assignment graph code is scanned, when the assignment graph code is matched with graphic code when locking, to the intelligence
It can lock and be unlocked.
So, in order to guarantee to be unlocked smart lock according to numerical ciphers, which will not only obtain the number
Password will also send number unlock setting instruction to the server, to indicate the server by the intelligence according to the user identifier
The unlocking manner of lock is set as numerical ciphers unlocking manner.When the server receives number unlock setting instruction, according to
The user identifier sends number unlock setting instruction to the smart lock, refers to when the smart lock receives number unlock setting
When enabling, numerical ciphers unlocking manner is set by unlocking manner.Wherein, number unlock setting instruction can sent out by the terminal
Transmission while giving the numerical ciphers acquisition request, or sent after sending numerical ciphers acquisition request, alternatively, receiving
After the numerical ciphers unlock instruction of the smart lock, sent before sending the numerical ciphers acquisition request, alternatively, receiving
Send after the numerical ciphers, the present embodiment to this without limitation.
Wherein, administration interface shown by the terminal can also include unlock setting options, and the unlock setting options are at least
Two sub- options are unlocked including graphic code unlock and numerical ciphers, user can click the numerical ciphers and unlock sub- option, triggering
Number unlock setting instruction, the present embodiment do not limit this.
After being unlocked according to numerical ciphers to the smart lock, which can default current unlocking manner
It is reduced to graphic code unlock, alternatively, the smart lock keeps the numerical ciphers unlocking manner of current setting, later, user can be
It in terminal, clicks graphic code in the administration interface and unlocks sub- option, triggering graphic code unlock setting instruction, the terminal is according to being somebody's turn to do
User identifier sends graphic code unlock setting instruction to the server, refers to when the server receives graphic code unlock setting
When enabling, according to the user identifier, graphic code unlock setting instruction is sent to the smart lock, which receives the graphic code
When unlock setting instruction, then graphic code unlocking manner is set by unlocking manner, the present embodiment is to the smart lock by numerical ciphers
Unlocking manner is switched to the process of graphic code unlocking manner without limitation.
Method provided in this embodiment, smart lock provide numerical ciphers unlock by way of, according to graphic code into
When row locking, according to preset algorithm, which is converted into numerical ciphers, and according to the corresponding user identifier of the smart lock,
The graphic code is sent to server, then the graphic code is converted to the numerical ciphers, be sent to by server according to the preset algorithm
The terminal of the server is logged in using the user identifier, user is you can learn that the numerical ciphers, according to the numerical ciphers to intelligence
Lock is unlocked, and ensure that can be unlocked when that can not be unlocked according to graphic code according to numerical ciphers, improves intelligence
The reliability of lock.And terminal to server sends number unlock setting instruction, sets number for the unlocking manner of smart lock
Password unlocking manner, smart lock only current unlocking manner be numerical ciphers unlocking manner under the premise of, just can be according to number
Password is unlocked, and improves security performance.
Fig. 6 is a kind of block diagram of tripper shown according to an exemplary embodiment.Referring to Fig. 6, which is applied to
Smart lock, the device include conversion module 601, memory module 602 and sending module 603.
Conversion module 601 is configured in when being locked according to graphic code, according to preset algorithm, by the graphic code
Be converted to numerical ciphers;
Memory module 602 is configurable for storing the numerical ciphers, and the numerical ciphers are for being unlocked smart lock;
Sending module 603 is configurable for the user identifier corresponding according to the smart lock, sends the figure to server
Shape code;
The graphic code according to the preset algorithm, is converted to the numerical ciphers, sent out by the server for storing the graphic code
Give the terminal that the server is logged in using the user identifier.
Device provided in this embodiment, in such a way that numerical ciphers unlock is provided, when being locked according to graphic code,
According to preset algorithm, which is converted into numerical ciphers, and according to the corresponding user identifier of the smart lock, send out to server
The graphic code is given, then the graphic code is converted to the numerical ciphers, is sent to and uses the user by server according to the preset algorithm
Mark logs in the terminal of the server, and user is unlocked smart lock according to the numerical ciphers you can learn that the numerical ciphers,
Ensure that can be unlocked when that can not be unlocked according to graphic code according to numerical ciphers, improve the reliability of smart lock.
In another embodiment, the device further include:
Scan module is configurable for the scanner by configuring, and is scanned to the graphic code;
Processing module is configurable for locking the smart lock according to the graphic code.
In another embodiment, the device further include:
It obtains module and is configurable for the numeric keypad by configuring, obtain the unlock digital information of input;
Processing module is configurable for when determining that the unlock digital information is matched with the numerical ciphers, to the smart lock
It is unlocked.
In another embodiment, which is additionally configured to for being numerical ciphers unlock in current unlocking manner
Under the premise of mode, by the numeric keypad, the unlock digital information of input is obtained.
In another embodiment, the device further include:
The number unlock setting that receiving module is configurable for receiving server transmission according to the user identifier refers to
It enables, number unlock setting instruction is used to indicate the smart lock and sets numerical ciphers unlocking manner for unlocking manner;
Setup module is configurable for setting unlocking manner to numerical ciphers unlocking manner.
In another embodiment, the device further include:
Under the premise of scan module is configured in current unlocking manner as graphic code unlocking manner, passes through and configure
Scanner, assignment graph code is scanned;
Processing module is configurable for solving the smart lock when the assignment graph code is matched with the graphic code
Lock.
Fig. 7 is a kind of block diagram of tripper shown according to an exemplary embodiment.Referring to Fig. 7, which is applied to
Terminal, the device include receiving module 701 and display module 702.
Receiving module 701 is configurable for receiving the numerical ciphers that server is sent according to user identifier, and the number is close
Code is by the server according to preset algorithm, and the graphic code sent to smart lock is converted to, which is used in basis
When the graphic code is locked, according to the user identifier, the graphic code is sent to the server, and according to the preset algorithm, it will
The graphic code is converted to the numerical ciphers;
Display module 702 is configurable for showing the numerical ciphers, and the numerical ciphers are for solving the smart lock
Lock.
Device provided in this embodiment, smart lock provide numerical ciphers unlock by way of, according to graphic code into
When row locking, according to preset algorithm, which is converted into numerical ciphers, and according to the corresponding user identifier of the smart lock,
The graphic code is sent to server, then the graphic code can be converted to the numerical ciphers according to the preset algorithm by server, hair
The device that the server is logged in using the user identifier is given, which receives the numerical ciphers, and shows the numerical ciphers, uses
Family is unlocked smart lock according to the numerical ciphers you can learn that the numerical ciphers, ensure that can not according to graphic code into
It can be unlocked according to numerical ciphers when row unlock, improve the reliability of smart lock.
In another embodiment, the device further include:
The receiving module 701 is additionally configured to for receiving the numerical ciphers unlock instruction to the smart lock;
Sending module is configurable for according to the user identifier, sends numerical ciphers acquisition request to the server, should
The graphic code is converted to the numerical ciphers for requesting the server according to the preset algorithm by numerical ciphers acquisition request.
In another embodiment, the device further include:
Sending module is configurable for according to the user identifier, sends number unlock setting instruction to the server, should
Number unlock setting instruction is used to indicate the server and sets numerical ciphers unlocking manner for the unlocking manner of the smart lock.
Fig. 8 is a kind of block diagram of tripper shown according to an exemplary embodiment.Referring to Fig. 8, which is applied to
Server, the device include memory module 801, conversion module 802 and sending module 803.
Memory module 801 is configurable for when receiving the graphic code that smart lock is sent according to user identifier, storage
The graphic code;
Conversion module 802 is configurable for according to preset algorithm, which is converted to numerical ciphers;
Sending module 803 is configurable for according to the user identifier, to using the user identifier to log in the server
Terminal sends the numerical ciphers, and the terminal is for showing the numerical ciphers, and the numerical ciphers are for being unlocked the smart lock.
Device provided in this embodiment, smart lock provide numerical ciphers unlock by way of, according to graphic code into
When row locking, according to preset algorithm, which is converted into numerical ciphers, and according to the corresponding user identifier of the smart lock,
The graphic code is sent to the device, then the graphic code can be converted to numerical ciphers according to the preset algorithm by the device, be sent
To the terminal for logging in the server using the user identifier, terminal receives the numerical ciphers, and shows the numerical ciphers, and user is
It would know that the numerical ciphers, smart lock be unlocked according to the numerical ciphers, ensure that can not solved according to graphic code
It can be unlocked according to numerical ciphers when lock, improve the reliability of smart lock.
In another embodiment, which is additionally configured to for when the number for receiving terminal transmission is close
When code acquisition request, according to the preset algorithm, which is converted into numerical ciphers.
In another embodiment, which is additionally configured to for being sent out to the smart lock according to the user identifier
Number unlock setting instruction is sent, so that unlocking manner is set numerical ciphers unlocking manner by the smart lock.
About the device in above-described embodiment, wherein modules execute the concrete mode of operation in related this method
Embodiment in be described in detail, no detailed explanation will be given here.
It should be understood that tripper provided by the above embodiment unlock when, only with above-mentioned each functional module draw
Divide and be illustrated, in practical application, can according to need and be completed by different functional modules above-mentioned function distribution, i.e.,
The internal structure of smart lock, terminal and server is divided into different functional modules, with complete it is described above whole or
Partial function.In addition, tripper provided by the above embodiment and unlocking method embodiment belong to same design, implement
Process is detailed in embodiment of the method, and which is not described herein again.
Fig. 9 is a kind of block diagram of means for unlocking 900 shown according to an exemplary embodiment.For example, device 900
It can be mobile phone, computer, digital broadcasting terminal, messaging device, game console, tablet device, Medical Devices,
Body-building equipment, personal digital assistant etc..
Referring to Fig. 9, device 900 may include following one or more components: processing component 902, memory 904, power supply
Component 906, multimedia component 908, audio component 910, the interface 912 of input/output (I/O), sensor module 914, and
Communication component 916.
The integrated operation of the usual control device 900 of processing component 902, such as with display, telephone call, data communication, phase
Machine operation and record operate associated operation.Processing component 902 may include that one or more processors 920 refer to execute
It enables, to perform all or part of the steps of the methods described above.In addition, processing component 902 may include one or more modules, just
Interaction between processing component 902 and other assemblies.For example, processing component 902 may include multi-media module, it is more to facilitate
Interaction between media component 908 and processing component 902.
Memory 904 is configured as storing various types of data to support the operation in device 900.These data are shown
Example includes the instruction of any application or method for operating on device 900, contact data, and telephone book data disappears
Breath, picture, video etc..Memory 904 can be by any kind of volatibility or non-volatile memory device or their group
It closes and realizes, such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM) is erasable to compile
Journey read-only memory (EPROM), programmable read only memory (PROM), read-only memory (ROM), magnetic memory, flash
Device, disk or CD.
Power supply module 906 provides electric power for the various assemblies of device 900.Power supply module 906 may include power management system
System, one or more power supplys and other with for device 900 generate, manage, and distribute the associated component of electric power.
Multimedia component 908 includes the screen of one output interface of offer between described device 900 and user.One
In a little embodiments, screen may include liquid crystal display (LCD) and touch panel (TP).If screen includes touch panel, screen
Curtain may be implemented as touch screen, to receive input signal from the user.Touch panel includes one or more touch sensings
Device is to sense the gesture on touch, slide, and touch panel.The touch sensor can not only sense touch or sliding action
Boundary, but also detect duration and pressure associated with the touch or slide operation.In some embodiments, more matchmakers
Body component 908 includes a front camera and/or rear camera.When device 900 is in operation mode, such as screening-mode or
When video mode, front camera and/or rear camera can receive external multi-medium data.Each front camera and
Rear camera can be a fixed optical lens system or have focusing and optical zoom capabilities.
Audio component 910 is configured as output and/or input audio signal.For example, audio component 910 includes a Mike
Wind (MIC), when device 900 is in operation mode, when such as call mode, recording mode, and voice recognition mode, microphone is matched
It is set to reception external audio signal.The received audio signal can be further stored in memory 904 or via communication set
Part 916 is sent.In some embodiments, audio component 910 further includes a loudspeaker, is used for output audio signal.
I/O interface 912 provides interface between processing component 902 and peripheral interface module, and above-mentioned peripheral interface module can
To be keyboard, click wheel, button etc..These buttons may include, but are not limited to: home button, volume button, start button and lock
Determine button.
Sensor module 914 includes one or more sensors, and the state for providing various aspects for device 900 is commented
Estimate.For example, sensor module 914 can detecte the state that opens/closes of device 900, and the relative positioning of component, for example, it is described
Component is the display and keypad of device 900, and sensor module 914 can be with 900 1 components of detection device 900 or device
Position change, the existence or non-existence that user contacts with device 900,900 orientation of device or acceleration/deceleration and device 900
Temperature change.Sensor module 914 may include proximity sensor, be configured to detect without any physical contact
Presence of nearby objects.Sensor module 914 can also include optical sensor, such as CMOS or ccd image sensor, at
As being used in application.In some embodiments, which can also include acceleration transducer, gyro sensors
Device, Magnetic Sensor, pressure sensor or temperature sensor.
Communication component 916 is configured to facilitate the communication of wired or wireless way between device 900 and other equipment.Device
900 can access the wireless network based on communication standard, such as WiFi, 2G or 3G or their combination.In an exemplary implementation
In example, communication component 916 receives broadcast singal or broadcast related information from external broadcasting management system via broadcast channel.
In one exemplary embodiment, the communication component 916 further includes near-field communication (NFC) module, to promote short range communication.Example
Such as, NFC module can be based on radio frequency identification (RFID) technology, Infrared Data Association (IrDA) technology, ultra wide band (UWB) technology,
Bluetooth (BT) technology and other technologies are realized.
In the exemplary embodiment, device 900 can be believed by one or more application specific integrated circuit (ASIC), number
Number processor (DSP), digital signal processing appts (DSPD), programmable logic device (PLD), field programmable gate array
(FPGA), controller, microcontroller, microprocessor or other electronic components are realized, for executing above-mentioned unlocking method.
In the exemplary embodiment, a kind of non-transitorycomputer readable storage medium including instruction, example are additionally provided
It such as include the memory 904 of instruction, above-metioned instruction can be executed by the processor 920 of device 900 to complete the above method.For example,
The non-transitorycomputer readable storage medium can be ROM, random access memory (RAM), CD-ROM, tape, floppy disk
With optical data storage devices etc..
A kind of non-transitorycomputer readable storage medium, when the instruction in the storage medium is held by the processor of terminal
When row, enable the terminal to execute a kind of unlocking method, which comprises
According to user identifier, the numerical ciphers that server is sent are received, the numerical ciphers are by the server according to pre-
Imputation method, the graphic code sent to smart lock are converted to, and the smart lock according to the graphic code for being locked
Periodically, according to the user identifier, the graphic code is sent to the server, and according to the preset algorithm, by the figure
Shape code is converted to the numerical ciphers;
Show the numerical ciphers, the numerical ciphers are for being unlocked the smart lock.
In another embodiment, described according to user identifier, before receiving the numerical ciphers that server is sent, the method
Further include:
Receive the numerical ciphers unlock instruction to the smart lock;
According to the user identifier, numerical ciphers acquisition request is sent to the server, the numerical ciphers acquisition is asked
It asks for requesting the server according to the preset algorithm, the graphic code is converted into the numerical ciphers.
In another embodiment, the method also includes:
According to the user identifier, number unlock setting instruction is sent to the server, the number unlock setting refers to
Order is used to indicate the server and sets numerical ciphers unlocking manner for the unlocking manner of the smart lock.
Figure 10 is a kind of block diagram of means for unlocking 1000 shown according to an exemplary embodiment.For example, device
1000 may be provided as a server.Referring to Fig.1 0, device 1000 includes processing component 1022, further comprise one or
Multiple processors, and the memory resource as representated by memory 1032, can be by the execution of processing component 1022 for storing
Instruction, such as application program.The application program stored in memory 1032 may include it is one or more each
Module corresponding to one group of instruction.In addition, processing component 1022 is configured as executing instruction, to execute above-mentioned unlocking method.
Device 1000 can also include that a power supply module 1026 be configured as the power management of executive device 1000, and one
Wired or wireless network interface 1050 is configured as device 1000 being connected to network and input and output (I/O) interface
1058.Device 1000 can be operated according to the operating system for being stored in memory 1032, such as Windows ServerTM, Mac
OS XTM, UnixTM, LinuxTM, FreeBSDTMOr it is similar.
Those skilled in the art after considering the specification and implementing the invention disclosed here, will readily occur to its of the disclosure
Its embodiment.This application is intended to cover any variations, uses, or adaptations of the disclosure, these modifications, purposes or
Person's adaptive change follows the general principles of this disclosure and including the undocumented common knowledge in the art of the disclosure
Or conventional techniques.The description and examples are only to be considered as illustrative, and the true scope and spirit of the disclosure are by following
Claim is pointed out.
It should be understood that the present disclosure is not limited to the precise structures that have been described above and shown in the drawings, and
And various modifications and changes may be made without departing from the scope thereof.The scope of the present disclosure is only limited by the accompanying claims.
Claims (25)
1. a kind of unlocking method, the method is applied to smart lock, which is characterized in that the described method includes:
By the scanner configured, graphic code is scanned;According to the graphic code, the smart lock is locked;
According to preset algorithm, the graphic code is converted into unique number password corresponding with the graphic code;
The numerical ciphers are stored, the numerical ciphers are for being unlocked the smart lock;
According to the corresponding user identifier of the smart lock, the graphic code is sent to server;The server is for storing institute
Graphic code is stated, according to the preset algorithm, the graphic code is converted into the numerical ciphers, is sent to and is marked using the user
Know the terminal for logging in the server;
According to preset algorithm, the graphic code is converted into unique number password corresponding with the graphic code, comprising:
The graphic code is identified, the characteristic information for including in the graphic code is obtained, according to the preset algorithm, to institute
It states characteristic information to be calculated, the characteristic information is converted into the numerical ciphers.
2. the method according to claim 1, wherein described according to the corresponding user identifier of the smart lock, to
After server sends the graphic code, the method also includes:
By the numeric keypad configured, the unlock digital information of input is obtained;
When determining that the unlock digital information is matched with the numerical ciphers, the smart lock is unlocked.
3. according to the method described in claim 2, it is characterized in that, the numeric keypad by configuring, obtains the solution of input
Lock digital information, comprising:
Under the premise of current unlocking manner is numerical ciphers unlocking manner, by the numeric keypad, the solution of input is obtained
Lock digital information.
4. according to the method described in claim 3, it is characterized in that, it is described current unlocking manner be numerical ciphers unlock side
Under the premise of formula, by the numeric keypad, before the unlock digital information for obtaining input, the method also includes:
According to the user identifier, the number unlock setting instruction that the server is sent is received, the number unlock setting refers to
Order is used to indicate the smart lock and sets numerical ciphers unlocking manner for unlocking manner;
Numerical ciphers unlocking manner is set by unlocking manner.
5. the method according to claim 1, wherein the method also includes:
Under the premise of current unlocking manner is graphic code unlocking manner, by the scanner configured, to assignment graph code into
Row scanning;
When the assignment graph code is matched with the graphic code, the smart lock is unlocked.
6. a kind of unlocking method, the method is applied to terminal, which is characterized in that the described method includes:
According to user identifier, the unique number password corresponding with graphic code that server is sent is received, the server is for depositing
The graphic code that smart lock is sent is stored up, the graphic code is identified, the characteristic information for including in the graphic code is obtained,
The characteristic information is calculated according to preset algorithm, the characteristic information is converted into the numerical ciphers;
The smart lock is used to be scanned the graphic code, by the scanner configured according to the graphic code, to described
Smart lock is locked, and according to the user identifier, sends the graphic code to the server, and according to the pre- imputation
The graphic code is converted to the numerical ciphers by method;
Show the numerical ciphers, the numerical ciphers are for being unlocked the smart lock.
7. according to the method described in claim 6, it is characterized in that, the number sent according to user identifier, reception server
Before word password, the method also includes:
Receive the numerical ciphers unlock instruction to the smart lock;
According to the user identifier, numerical ciphers acquisition request is sent to the server, the numerical ciphers acquisition request is used
In the request server according to the preset algorithm, the graphic code is converted into the numerical ciphers.
8. according to the method described in claim 6, it is characterized in that, the method also includes:
According to the user identifier, number unlock setting instruction is sent to the server, the number unlock setting instruction is used
Numerical ciphers unlocking manner is set by the unlocking manner of the smart lock in the instruction server.
9. a kind of unlocking method, the method is applied to server, which is characterized in that the described method includes:
When receiving the graphic code that smart lock is sent according to user identifier, the graphic code is stored, the smart lock is for leading to
The scanner for crossing configuration, is scanned the graphic code, according to the graphic code, locks to the smart lock;
According to preset algorithm, the graphic code is converted into unique number password corresponding with the graphic code;
According to the user identifier, the numerical ciphers are sent to the terminal for using the user identifier to log in the server,
The terminal is for showing the numerical ciphers, and the numerical ciphers are for being unlocked the smart lock;
It is described according to preset algorithm, the graphic code is converted into unique number password corresponding with the graphic code, comprising:
The graphic code is identified, obtains the characteristic information for including in the graphic code, and according to preset algorithm to described
Characteristic information is calculated, and the graphic code is converted to the numerical ciphers, according to the user identifier, to the server
Send the graphic code.
10. according to the method described in claim 9, the graphic code is turned it is characterized in that, described according to the preset algorithm
It is changed to numerical ciphers, comprising:
When receiving the numerical ciphers acquisition request that the terminal is sent, according to the preset algorithm, the graphic code is turned
It is changed to numerical ciphers.
11. according to the method described in claim 9, it is characterized in that, the method also includes:
According to the user identifier, number unlock setting instruction is sent to the smart lock, so that the smart lock is by unlock side
Formula is set as numerical ciphers unlocking manner.
12. a kind of tripper, described device is applied to smart lock, which is characterized in that described device includes:
Scan module is scanned graphic code for the scanner by configuring;
Processing module, for being locked to the smart lock according to the graphic code;
Conversion module, for it is close that the graphic code to be converted to unique number corresponding with the graphic code according to preset algorithm
Code;
Memory module, for storing the numerical ciphers, the numerical ciphers are for being unlocked the smart lock;
Sending module, for sending the graphic code to server according to the corresponding user identifier of the smart lock;The service
The graphic code, according to the preset algorithm, is converted to the numerical ciphers, being sent to makes for storing the graphic code by device
The terminal of the server is logged in the user identifier;
The conversion module obtains the characteristic information for including in the graphic code for identifying to the graphic code, according to
The preset algorithm calculates the characteristic information, and the characteristic information is converted to the numerical ciphers.
13. device according to claim 12, which is characterized in that described device further include:
Module is obtained, for the numeric keypad by configuring, obtains the unlock digital information of input;
Processing module, for being carried out to the smart lock when determining that the unlock digital information is matched with the numerical ciphers
Unlock.
14. device according to claim 13, which is characterized in that the acquisition module is also used in current unlocking manner
Under the premise of for numerical ciphers unlocking manner, by the numeric keypad, the unlock digital information of input is obtained.
15. device according to claim 14, which is characterized in that described device further include:
Receiving module, for receiving the number unlock setting instruction that the server is sent, the number according to the user identifier
Word unlock setting instruction is used to indicate the smart lock and sets numerical ciphers unlocking manner for unlocking manner;
Setup module, for setting numerical ciphers unlocking manner for unlocking manner.
16. device according to claim 12, which is characterized in that described device further include:
Scan module, for current unlocking manner be graphic code unlocking manner under the premise of, it is right by the scanner configured
Assignment graph code is scanned;
Processing module, for being unlocked to the smart lock when the assignment graph code is matched with the graphic code.
17. a kind of tripper, described device is applied to terminal, which is characterized in that described device includes:
Receiving module, for receiving server and sending unique number password corresponding with graphic code, the clothes according to user identifier
Business device is used to store the graphic code of smart lock transmission, identifies to the graphic code, obtains in the graphic code and include
Characteristic information, the characteristic information is calculated according to preset algorithm, the characteristic information is converted into the number
Password;
The smart lock is used to be scanned the graphic code, by the scanner configured according to the graphic code, to described
Smart lock is locked, and according to the user identifier, sends the graphic code to the server, and according to the pre- imputation
The graphic code is converted to the numerical ciphers by method;
Display module, for showing the numerical ciphers, the numerical ciphers are for being unlocked the smart lock.
18. device according to claim 17, which is characterized in that described device further include:
The receiving module is also used to receive the numerical ciphers unlock instruction to the smart lock;
Sending module, for sending numerical ciphers acquisition request to the server, the number is close according to the user identifier
The graphic code is converted to the numerical ciphers for requesting the server according to the preset algorithm by code acquisition request.
19. device according to claim 17, which is characterized in that described device further include:
Sending module, for sending number unlock setting instruction, the digital solution to the server according to the user identifier
Lock setting instruction is used to indicate the server and sets numerical ciphers unlocking manner for the unlocking manner of the smart lock.
20. a kind of tripper, described device is applied to server, which is characterized in that described device includes:
Memory module, it is described for when receiving the graphic code that smart lock is sent according to user identifier, storing the graphic code
Smart lock is used to be scanned the graphic code by the scanner configured, according to the graphic code, be locked into the intelligence
Row locking;
Conversion module, for it is close that the graphic code to be converted to unique number corresponding with the graphic code according to preset algorithm
Code;
Sending module, for being sent to the terminal for using the user identifier to log in the server according to the user identifier
The numerical ciphers, the terminal is for showing the numerical ciphers, and the numerical ciphers are for solving the smart lock
Lock;
The conversion module is used for according to the user identifier, sends the graphic code to the server, and according to pre- imputation
The graphic code is converted to unique number password corresponding with the graphic code by method.
21. device according to claim 20, which is characterized in that the conversion module, which is also used to work as, receives the terminal
When the numerical ciphers acquisition request of transmission, according to the preset algorithm, the graphic code is converted into numerical ciphers.
22. device according to claim 20, which is characterized in that the sending module is also used to be marked according to the user
Know, number unlock setting instruction is sent to the smart lock, so that unlocking manner is set numerical ciphers solution by the smart lock
Lock mode.
23. a kind of tripper characterized by comprising
Processor;
Memory for storage processor executable instruction;
Wherein, the processor is configured to:
By the scanner configured, graphic code is scanned;According to the graphic code, smart lock is locked;
According to preset algorithm, the graphic code is converted into unique number password corresponding with the graphic code;
The numerical ciphers are stored, the numerical ciphers are for being unlocked the smart lock;
According to the corresponding user identifier of the smart lock, the graphic code is sent to server;The server is for storing institute
Graphic code is stated, according to the preset algorithm, the graphic code is converted into the numerical ciphers, is sent to and is marked using the user
Know the terminal for logging in the server;
It is described according to preset algorithm, the graphic code is converted into unique number password corresponding with the graphic code, comprising:
The graphic code is identified, obtains the characteristic information for including in the graphic code, and according to preset algorithm to described
Characteristic information is calculated, and the graphic code is converted to the numerical ciphers, according to the user identifier, to the server
Send the graphic code.
24. a kind of tripper characterized by comprising
Processor;
Memory for storage processor executable instruction;
Wherein, the processor is configured to:
According to user identifier, the unique number password corresponding with graphic code that server is sent is received, the server is for depositing
The graphic code that smart lock is sent is stored up, the graphic code is identified, the characteristic information for including in the graphic code is obtained,
The characteristic information is calculated according to preset algorithm, the characteristic information is converted into the numerical ciphers;
The smart lock is used to be scanned the graphic code, by the scanner configured according to the graphic code, to described
Smart lock is locked, and according to the user identifier, sends the graphic code to the server, and according to the pre- imputation
The graphic code is converted to the numerical ciphers by method;
Show the numerical ciphers, the numerical ciphers are for being unlocked the smart lock.
25. a kind of tripper characterized by comprising
Processor;
Memory for storage processor executable instruction;
Wherein, the processor is configured to:
When receiving the graphic code that smart lock is sent according to user identifier, the graphic code is stored, the smart lock is for leading to
The scanner for crossing configuration, is scanned the graphic code, according to the graphic code, locks to the smart lock;
According to preset algorithm, the graphic code is converted into unique number password corresponding with the graphic code;
It is described to the terminal transmission numerical ciphers for using the user identifier login service device according to the user identifier
Terminal is for showing the numerical ciphers, and the numerical ciphers are for being unlocked the smart lock;
It is described according to preset algorithm, the graphic code is converted into unique number password corresponding with the graphic code, comprising:
The graphic code is identified, obtains the characteristic information for including in the graphic code, and according to preset algorithm to described
Characteristic information is calculated, and the graphic code is converted to the numerical ciphers, according to the user identifier, to the server
Send the graphic code.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510308959.6A CN104951678B (en) | 2015-06-08 | 2015-06-08 | Unlocking method and a device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510308959.6A CN104951678B (en) | 2015-06-08 | 2015-06-08 | Unlocking method and a device |
Publications (2)
Publication Number | Publication Date |
---|---|
CN104951678A CN104951678A (en) | 2015-09-30 |
CN104951678B true CN104951678B (en) | 2019-01-11 |
Family
ID=54166331
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201510308959.6A Active CN104951678B (en) | 2015-06-08 | 2015-06-08 | Unlocking method and a device |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN104951678B (en) |
Families Citing this family (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN105631302A (en) * | 2015-12-25 | 2016-06-01 | 苏州佳世达电通有限公司 | State control method and device of mobile equipment |
CN105847522A (en) * | 2016-01-26 | 2016-08-10 | 乐视致新电子科技(天津)有限公司 | Unlocking method, terminal equipment and server |
CN106656483A (en) * | 2016-11-25 | 2017-05-10 | 宇龙计算机通信科技(深圳)有限公司 | Lock screen password recovery method, server and lock screen password recovery system |
CN109087418A (en) * | 2018-07-23 | 2018-12-25 | 江苏恒宝智能系统技术有限公司 | A kind of intelligent unlocking method and system |
Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102708324A (en) * | 2012-05-16 | 2012-10-03 | 惠州Tcl移动通信有限公司 | Screen locker unlocking system and method |
CN103336924A (en) * | 2013-07-03 | 2013-10-02 | 上海斐讯数据通信技术有限公司 | Starting lock for mobile terminal application program |
Family Cites Families (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103164141A (en) * | 2011-12-15 | 2013-06-19 | 英顺源(上海)科技有限公司 | Device and method capable of unlocking by comprising sequence of track passing through target object |
CN104424409A (en) * | 2013-08-30 | 2015-03-18 | 中兴通讯股份有限公司 | Application unlocking method and device |
-
2015
- 2015-06-08 CN CN201510308959.6A patent/CN104951678B/en active Active
Patent Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102708324A (en) * | 2012-05-16 | 2012-10-03 | 惠州Tcl移动通信有限公司 | Screen locker unlocking system and method |
CN103336924A (en) * | 2013-07-03 | 2013-10-02 | 上海斐讯数据通信技术有限公司 | Starting lock for mobile terminal application program |
Also Published As
Publication number | Publication date |
---|---|
CN104951678A (en) | 2015-09-30 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
WO2017054292A1 (en) | Virtual sim card service authorization method, terminal, server, and system | |
KR102377724B1 (en) | Device network configuration method and apparatus, and medium | |
CN104468524B (en) | The method and device of Authority Verification | |
CN107483715A (en) | The method and system of terminal and equipment communication, terminal, storage medium | |
CN104765990A (en) | Setting method and device for management account of intelligent device | |
CN104283876A (en) | Operation authorization method and device | |
CN104391870B (en) | Logistics information acquisition methods and device | |
CN104992091A (en) | Method and apparatus for accessing terminal end | |
CN104794382A (en) | Application starting method and device | |
CN105093948A (en) | Intelligent device control method, terminal, and server | |
CN104159226A (en) | Network connection method and device | |
CN105791309B (en) | A kind of method, apparatus and system executing business processing | |
CN104091376A (en) | Intelligent lock control method and apparatus thereof | |
CN108022349A (en) | Information input method, equipment, smart lock and storage medium | |
CN105246138A (en) | Control method and device of Internet-of-things device | |
CN104951678B (en) | Unlocking method and a device | |
CN105468767A (en) | Method and device for acquiring calling card information | |
CN105678549A (en) | Payment method and device | |
CN104537526B (en) | Method, terminal and the device of numerical value transfer | |
CN105631254B (en) | Unlocking method and tripper | |
CN109204231A (en) | Unlocking method of vehicle and device | |
CN105407070A (en) | Logging-in authorization method and device | |
CN105392141A (en) | Device control method and device | |
CN106102061A (en) | Method for connecting network and device | |
CN106488450A (en) | Connect the method and device of wireless network |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |