Detailed description of the invention
Describe the method opening smart lock of the present invention below in conjunction with the accompanying drawings in detail.
As it is shown in figure 1, the method opening smart lock of the present invention, a kind of intelligent lock system is utilized to implement, described smart lock
System includes that smart lock and intelligent mobile terminal, described smart lock are provided with smart lock circuit, and described smart lock circuit is provided with
First bluetooth module, described intelligent mobile terminal is provided with the 3rd bluetooth module, described smart lock circuit and described intelligent mobile
Terminal is connected by bluetooth;
The described method opening smart lock comprises the steps:
S01, writes smart lock circuit by the ID of intelligent mobile terminal;
S06, intelligent mobile terminal is set up bluetooth with smart lock circuit and is connected;
S07, intelligent mobile terminal solicited message of unblanking is sent to smart lock circuit, described in solicited message of unblanking include unblanking to test
Card information, described in checking information of unblanking include the ID of intelligent mobile terminal;
S08, whether the checking information of unblanking that what smart lock circuit judges intelligent mobile terminal sent unblank in solicited message is passed through
Checking;It is then to perform step S09;Otherwise represent and open smart lock failure;
S09, smart lock circuit opens smart lock.
Can also comprise the steps: between described step S01 and described step S06
S02, user sends instruction of unblanking to intelligent mobile terminal;
S03, intelligent mobile terminal requires that user inputs client and unblanks checking information;
S04, user unblanks checking information to intelligent mobile terminal input client;
S05, the client that intelligent mobile terminal judges to unblank the client that user inputs checking information and intelligent mobile terminal preserve
Hold checking information of unblanking the most consistent;It is then to perform step S06;Otherwise perform step S03.
Described client checking information of unblanking can be unlocking cipher, and described unlocking cipher can be digital, alphabetical, special
Symbol;Described client checking information of unblanking can also be gesture of unblanking;Described client checking information of unblanking can also is that sound
Stricture of vagina or fingerprint.
Step S10 can also be included after described step S09:
S10, smart lock circuit is sent to intelligent mobile terminal by opening the successful information of smart lock.
Whether the checking information of unblanking in solicited message that what described smart lock circuit judges intelligent mobile terminal sent unblank
By the step of checking, the checking information of unblanking unblanking in solicited message sent when intelligent mobile terminal is not over checking
Time, it is also possible to execution step S11:
S11, the information opening smart lock failed is sent to intelligent mobile terminal by smart lock circuit.
Described intelligent lock system also includes server;Described intelligent mobile terminal is additionally provided with the second network connecting module;
Described intelligent mobile terminal is connected by network with described server;
Described step S01 includes:
S0101, server generates the sole internal identification code of smart lock circuit, the outer logo code of smart lock circuit and smart lock
The internal checksum of circuit;Wherein the sole internal identification code of smart lock circuit and the outer logo code of smart lock circuit have one
One-to-one correspondence;The sole internal identification code of smart lock circuit is sightless for a user;The outside of smart lock circuit
Identification code is visible for a user;
S0102, during production of intelligent lock, the sole internal identification code of smart lock circuit that server is generated, smart lock circuit
The internal checksum write smart lock circuit of outer logo code and smart lock circuit;Guarantee the smart lock circuit of every smart lock
Sole internal identification code differs with the sole internal identification code of the smart lock circuit of other smart locks;
S0103, server preserves the sole internal identification code of smart lock circuit, the outer logo code of smart lock circuit and smart lock
The information of the corresponding relation between the internal checksum of circuit;
S0104, intelligent mobile terminal is connected with server, registers user account;
S0105, intelligent mobile terminal is connected with server, login user account;
S0106, intelligent mobile terminal is set up bluetooth with smart lock circuit and is connected;
S0107, smart lock circuit enters user's bindings state;
S0108, intelligent mobile terminal obtains the outer logo code in smart lock circuit;
S0109, intelligent mobile terminal obtains in smart lock circuit user bound number;
S0110, when user bound number is more than zero in smart lock circuit, performs step S0112;Otherwise perform step S0111;
S0111, intelligent mobile terminal obtains the internal checksum in smart lock circuit, then performs step S0113;
S0112, the outer logo code of the smart lock circuit of acquisition, user account information are sent to service by intelligent mobile terminal
Device, then performs step S0114;Described user account information includes the ID of this intelligent mobile terminal;
S0113, the outer logo code of smart lock circuit, user account information and the smart lock circuit that intelligent mobile terminal will obtain
Internal checksum be sent to server, then perform step S0114;Described user account information includes this intelligent mobile terminal
ID;
S0114, the legitimacy of the outer logo code of the smart lock circuit that server authentication intelligent mobile terminal sends;If it is intelligent
The outer logo code of the smart lock circuit that mobile terminal sends is legal, performs step S0115;Otherwise perform step S0120;
S0115, server judges whether intelligent mobile terminal have sent the internal checksum of smart lock circuit;If intelligent mobile
Terminal have sent the internal checksum of smart lock circuit, performs step S0116;Otherwise perform step S0118;
S0116, the legitimacy of the internal checksum of the smart lock circuit that server authentication intelligent mobile terminal sends;If it is intelligent
The internal checksum of the smart lock circuit that mobile terminal sends is legal, performs step S0117;Otherwise perform step S0120;
S0117, the priority assignation of active user's account is administrator right by server;
S0118, completes the bindings of active user's account and smart lock at server end;
S0119, server judges that active user's account is the most successful with the bindings of smart lock;It is then to perform step S0121;
Otherwise perform step S0120;
S0120, represents server end Bind Failed, and server end active user's account is lost by server with smart lock bindings
The information lost is sent to intelligent mobile terminal;
S0121, represents server end binding success, and server end active user's account is become by server with smart lock bindings
The sole internal identification code of the smart lock circuit of the information of merit and this smart lock is sent to intelligent mobile terminal;Then step is performed
S0122;
S0122, adds the ID list in smart lock circuit by the ID of intelligent mobile terminal.
Can also include after described step S0122:
S0123, it is judged that it is the most successful that the ID of intelligent mobile terminal adds the ID list in smart lock circuit;It is
Then perform step S0124;Otherwise perform step S0125;
S0124, represents smart lock end binding success, and the ID of intelligent mobile terminal is added smart lock by intelligent mobile terminal
The successful information of ID list in circuit is sent to server;
S0125, represents smart lock end Bind Failed, and the ID of intelligent mobile terminal is added smart lock by intelligent mobile terminal
The information that ID list in circuit is failed is sent to server.
The method making smart lock circuit enter user's bindings state can be to insert a key into smart lock, simultaneously in intelligence
Specific key combination can be inputted on the lock body keyboard of lock.
Described administrator right is highest-ranking authority;For having a smart lock circuit of sole internal identification code
For, it being provided with in the multiple users bound in the smart lock of this smart lock circuit, the user with administrator right can only be
One.
When described intelligent mobile terminal is smart mobile phone, the ID of described intelligent mobile terminal can be this intelligence
The cell-phone number of mobile phone, it is also possible to be the IMEI(International Mobile Equipment of this smart mobile phone
Identity, i.e. International Mobile Station Equipment Identification).
Described step S06 includes:
S0601, server preserves the MAC(i.e. medium access control of the first bluetooth module of all smart lock circuit) address;
S0602, intelligent mobile terminal obtains the medium access of the first bluetooth module of all smart lock circuit that server preserves
Control address;
S0603, bluetooth equipment Exclude Lists is set up and preserved to intelligent mobile terminal;Intelligent mobile terminal sets up searching times counting
Device, resets to 0 by searching times enumerator;
S0604, it is judged that whether the value of searching times enumerator is more than threshold value set in advance;If the value of searching times enumerator
More than threshold value set in advance, represent that intelligent mobile terminal and smart lock circuit set up bluetooth connection failure;Otherwise perform step
S0605;
S0605, the bluetooth equipment near intelligent mobile terminal search intelligent mobile terminal, with the Bluetooth signal meeting first condition
The strongest bluetooth equipment is set up bluetooth and is connected;Searching times enumerator is added 1;Then step S0606 is performed;Described first condition
It it is this bluetooth equipment bluetooth equipment of being not belonging in bluetooth equipment Exclude Lists;
S0606, it is judged that whether this bluetooth equipment meets second condition, is then to perform step S0607;Otherwise perform step S0608;
Described second condition is that the Media Access Control address of this bluetooth equipment belongs to the server preservation that intelligent mobile terminal obtains
One of Media Access Control address of the first bluetooth module of all smart lock circuit;
S0607, it is judged that whether this bluetooth equipment meets third condition;It is then to represent that intelligent mobile terminal is set up with smart lock circuit
Bluetooth successful connection;Otherwise perform step S0608;Described third condition be in Bluetooth signal the title of this bluetooth equipment with in advance
The character string set is taken the lead;
S0608, adds described bluetooth equipment Exclude Lists by this bluetooth equipment;Then step S0604 is performed.
Described checking information of unblanking also includes the sole internal identification code of smart lock circuit and the school, inside of smart lock circuit
Test code;
Described step S08 includes:
S0801, the smart lock circuit unblanked in solicited message that smart lock circuit judges intelligent mobile terminal sends unique in
Portion's identification code is the most consistent with the sole internal identification code of the smart lock circuit in this smart lock circuit;It is to perform step
S0802;Otherwise represent that the checking information of unblanking unblanking in solicited message that intelligent mobile terminal sends is not verified, opens intelligence
Can lock unsuccessfully;
S0802, the school, inside of the smart lock circuit unblanked in solicited message that smart lock circuit judges intelligent mobile terminal sends
Test code the most consistent with the internal checksum of the smart lock circuit in this smart lock circuit;It is then to perform step S0803;Otherwise table
Show that the checking information of unblanking unblanking in solicited message that intelligent mobile terminal sends is not verified, open smart lock failure;
S0803, the intelligent mobile terminal user mark unblanked in solicited message that smart lock circuit judges intelligent mobile terminal sends
Know and whether be present in the ID list in this smart lock circuit;It is then to perform step S09;Otherwise represent intelligent mobile eventually
The checking information of unblanking unblanking in solicited message that end sends is not verified, opens smart lock failure.
Described intelligent lock system also includes repeater;Described repeater is provided with the second bluetooth module and first network connects
Module;Smart lock circuit is connected with repeater Bluetooth, and repeater is connected by network with server;
Step S12 can also be included after described step S09:
S12, smart lock circuit is sent to server by opening the successful information of smart lock by repeater.
Whether the checking information of unblanking in solicited message that what described smart lock circuit judges intelligent mobile terminal sent unblank
By the step of checking, the checking information of unblanking unblanking in solicited message sent when intelligent mobile terminal is not over checking
Time, it is also possible to execution step S13:
S13, the information opening smart lock failed is sent to server by repeater by smart lock circuit.
The smart lock circuit unblanked in solicited message that described smart lock circuit judges intelligent mobile terminal sends unique
The step that internal identification code is the most consistent with the sole internal identification code of the smart lock circuit in this smart lock circuit, works as Intelligent sliding
The sole internal identification code of the smart lock circuit that what dynamic terminal sent unblank in solicited message and the intelligence in this smart lock circuit
When the sole internal identification code of lock circuit is inconsistent, it is also possible to execution step S13:
S13, the information opening smart lock failed is sent to server by repeater by smart lock circuit.
The inside of the smart lock circuit unblanked in solicited message that described smart lock circuit judges intelligent mobile terminal sends
The step that check code is the most consistent with the internal checksum of the smart lock circuit in this smart lock circuit, when intelligent mobile terminal is sent out
The inside of the smart lock circuit in the internal checksum of the smart lock circuit unblanked in solicited message gone out and this smart lock circuit
When check code is inconsistent, it is also possible to execution step S13:
S13, the information opening smart lock failed is sent to server by repeater by smart lock circuit.
The intelligent mobile terminal user unblanking in solicited message that described smart lock circuit judges intelligent mobile terminal sends
Identify whether the step being present in the ID list in this smart lock circuit, when intelligent mobile terminal send unblank please
When asking in the intelligent mobile terminal user mark not ID list in this smart lock circuit in information, it is also possible to perform
Step S13:
S13, the information opening smart lock failed is sent to server by repeater by smart lock circuit.
Certainly, smart lock circuit can also will be opened the successful information of smart lock by intelligent mobile terminal or open intelligence
Failed information can be locked and be sent to server.
In order to strengthen the safety utilizing intelligent mobile terminal to open smart lock further, described smart lock circuit is with described
When carrying out data transmission between intelligent mobile terminal, can the sole internal identification code of this smart lock circuit be that key encryption is to be passed
Defeated data.