Detailed description of the invention
Describe setting and the verification method thereof of the temporary password of the smart lock of the present invention below in conjunction with the accompanying drawings in detail.
As it is shown in figure 1, the method to set up of the temporary password of the smart lock of the present invention, a kind of intelligent lock system is utilized to implement,
Described intelligent lock system includes smart lock, mobile intelligent terminal, repeater and server;Described smart lock is provided with smart lock electricity
Road;Described smart lock circuit is provided with the first bluetooth module;Described repeater is provided with the second bluetooth module and first network connects
Connection module;Smart lock circuit is connected with repeater Bluetooth, and repeater is connected by network with server, mobile intelligent terminal with
Server is connected;
The method to set up of the temporary password of described smart lock comprises the steps:
S06, the information that the first smart lock temporary password arranges request is sent to server by mobile intelligent terminal;
S07, the information that the second smart lock temporary password arranges request is sent to repeater by server;
S09, the information that the 3rd smart lock temporary password arranges request is sent to smart lock circuit by repeater;
S11, smart lock circuit arranges the temporary password of this smart lock at smart lock end;
S15, smart lock temporary password is arranged successful information and is sent to mobile intelligent terminal by server.
Described mobile intelligent terminal can be that network is connected with the connected mode of server.
Described mobile intelligent terminal can be to have the mobile phone of network connecting module, panel computer etc..
The information that described first smart lock temporary password arranges request is the intelligence that mobile intelligent terminal is sent to server
Lock temporary password arranges the information of request.
It is interim that the information that described second smart lock temporary password arranges request is that server is sent to the smart lock of repeater
Password arranges the information of request.
The information that described 3rd smart lock temporary password arranges request is the smart lock that repeater is sent to smart lock circuit
Temporary password arranges the information of request.
Step S05 can also be included before described step S06:
S05, mobile intelligent terminal logs in the user account with administrator right.
Step S04 can also be included before described step S05:
S04, has the user account of administrator right in server end registration.
Step S08 is also included before described step S09:
S08, binds smart lock circuit with repeater.
Can also comprise the steps: before described step S06
S01, server generates the sole internal identification code of smart lock circuit, the outer logo code of smart lock circuit and smart lock electricity
The internal checksum on road;Wherein the sole internal identification code of smart lock circuit and the outer logo code of smart lock circuit have one by one
Corresponding relation;The sole internal identification code of smart lock circuit is sightless for a user;The outside mark of smart lock circuit
Knowing code is visible for a user;Server generates the outer logo code of repeater;The outer logo code of repeater is to user
For be visible, can locate to use the form of Quick Response Code be shown in seen from the outside of this repeater;
S02, during production of intelligent lock, by outside the sole internal identification code of smart lock circuit of server generation, smart lock circuit
The internal checksum write smart lock circuit of portion's identification code and smart lock circuit;Guarantee the smart lock circuit of every smart lock only
One internal identification code differs with the sole internal identification code of the smart lock circuit of other smart locks;
S03, server preserves the sole internal identification code of smart lock circuit, the outer logo code of smart lock circuit, smart lock electricity
The internal checksum on road and the MAC(i.e. medium access control of the first bluetooth module of this smart lock circuit) corresponding between address
The information of relation;Server preserves the medium access control of the outer logo code of repeater and the second bluetooth module of this repeater
The information of the corresponding relation between address;The sole internal identification code of smart lock circuit and the first bluetooth mould of this smart lock circuit
There is between the Media Access Control address of block relation one to one;The outer logo code of repeater and the second of this repeater
There is between the Media Access Control address of bluetooth module relation one to one.
The information that described first smart lock temporary password arranges request includes proposing the smart lock temporary password put.
The information that described first smart lock temporary password arranges request also includes that this proposes the smart lock temporary password put
Effect duration.
The information that described first smart lock temporary password arranges request also includes the outside of the smart lock circuit of this smart lock
Identification code.
The information that described second smart lock temporary password arranges request includes proposing the smart lock temporary password put.
The information that described second smart lock temporary password arranges request also includes that this proposes the smart lock temporary password put
Effect duration.
The information that described second smart lock temporary password arranges request also includes the outside of the smart lock circuit of this smart lock
Identification code.
The information that described second smart lock temporary password arranges request also includes the inside of the smart lock circuit of this smart lock
Check code.
The information that described second smart lock temporary password arranges request also includes the unique of the smart lock circuit of this smart lock
Internal identification code.
The information that described 3rd smart lock temporary password arranges request includes proposing the smart lock temporary password put.
The information that described 3rd smart lock temporary password arranges request also includes that this proposes the smart lock temporary password put
Effect duration.
The information that described 3rd smart lock temporary password arranges request also includes credential information.
Step S10 can also be included between described step S09 and described step S11:
S10, whether the credential information that smart lock circuit judges repeater sends is by checking;It is then to perform step S11;Otherwise table
Showing smart lock temporary password setup failed, the information of smart lock end smart lock temporary password setup failed is sent by smart lock circuit
To repeater.
Described credential information includes the outer logo code of the smart lock circuit of smart lock;
Described step S10 includes:
S1003, the outer logo code of the smart lock circuit of the smart lock that smart lock circuit judges repeater sends and this smart lock
The outer logo code of the smart lock circuit in circuit is the most consistent;It is then to perform step S11;Otherwise represent smart lock temporary password
Setup failed, the information of smart lock end smart lock temporary password setup failed is sent to repeater by smart lock circuit.
Described credential information also includes the internal checksum of the smart lock circuit of smart lock;
Described step S10 includes:
S1002, the internal checksum of the smart lock circuit of the smart lock that smart lock circuit judges repeater sends and this smart lock
The internal checksum of the smart lock circuit in circuit is the most consistent;It is then to perform step S1003;Otherwise represent that smart lock is the closeest
Code setup failed, the information of smart lock end smart lock temporary password setup failed is sent to repeater by smart lock circuit;
S1003, the outer logo code of the smart lock circuit of the smart lock that smart lock circuit judges repeater sends and this smart lock
The outer logo code of the smart lock circuit in circuit is the most consistent;It is then to perform step S11;Otherwise represent smart lock temporary password
Setup failed, the information of smart lock end smart lock temporary password setup failed is sent to repeater by smart lock circuit.
Described credential information also includes the sole internal identification code of the smart lock circuit of smart lock;
Described step S10 includes:
S1001, the sole internal identification code of the smart lock circuit of the smart lock that smart lock circuit judges repeater sends and this intelligence
The sole internal identification code of the smart lock circuit in energy lock circuit is the most consistent;It is then to perform step S1002;Otherwise represent intelligence
Lock temporary password setup failed, the information of smart lock end smart lock temporary password setup failed is sent to relaying by smart lock circuit
Device;
S1002, the internal checksum of the smart lock circuit of the smart lock that smart lock circuit judges repeater sends and this smart lock
The internal checksum of the smart lock circuit in circuit is the most consistent;It is then to perform step S1003;Otherwise represent that smart lock is the closeest
Code setup failed, the information of smart lock end smart lock temporary password setup failed is sent to repeater by smart lock circuit;
S1003, the outer logo code of the smart lock circuit of the smart lock that smart lock circuit judges repeater sends and this smart lock
The outer logo code of the smart lock circuit in circuit is the most consistent;It is then to perform step S11;Otherwise represent smart lock temporary password
Setup failed, the information of smart lock end smart lock temporary password setup failed is sent to repeater by smart lock circuit.
The method to set up of the temporary password of described smart lock can also include step S16:
S16, the information of smart lock temporary password setup failed is sent to mobile intelligent terminal by server;
Can also include between described step S11 and described step S15:
S12, if smart lock end smart lock temporary password arranges successfully, smart lock circuit is by smart lock end smart lock temporary password
Successful information is set and is sent to repeater;Otherwise smart lock circuit is by the letter of smart lock end smart lock temporary password setup failed
Breath is sent to repeater;
S13, smart lock end smart lock temporary password is arranged repeater successful information or smart lock end smart lock is the closeest
The information of code setup failed is sent to server;
S14, server judges whether to receive the smart lock end smart lock temporary password that repeater sends and arranges successful information;It is
Then perform step S15;Otherwise represent smart lock temporary password setup failed, perform step S16.
Described mobile intelligent terminal is additionally provided with the 3rd bluetooth module;
Described step S08 may include that
S0801, mobile intelligent terminal obtains the medium intending carrying out the second bluetooth module of the repeater bound with smart lock circuit
Accessing to control address;It is for instance possible to use mobile phone is by scanning the two dimension on the repeater that plan and smart lock circuit carry out binding
Code obtains the outer logo code of this repeater, and the outer logo code of this repeater obtained is sent to server, and server is looked into
Ask preserve repeater outer logo code and the Media Access Control address of the second bluetooth module of repeater between corresponding
The information of relation, by the medium access control ground of the second bluetooth module of the repeater corresponding with the outer logo code of this repeater
The information of location is sent to mobile phone;
The smart lock circuit that S0802, mobile intelligent terminal and plan carry out binding with repeater is set up bluetooth and is connected;
S0803, the Media Access Control address of the second bluetooth module of repeater is write by mobile intelligent terminal to be intended and repeater
Carry out the smart lock circuit bound;
S0804, mobile intelligent terminal acquisition plan and repeater carry out the sole internal identification code of smart lock circuit, the outside bound
The Media Access Control address of the first bluetooth module of identification code and this smart lock circuit;Such as, plan is entered by mobile phone with repeater
The outer logo code of smart lock circuit of row binding is sent to server, the smart lock circuit that server lookup preserves unique in
The Media Access Control address of the first bluetooth module of portion's identification code, the outer logo code of smart lock circuit and this smart lock circuit
Between the information of corresponding relation, by the sole internal identification code corresponding with the outer logo code of this smart lock circuit and with this
The information of the Media Access Control address of the first bluetooth module of the smart lock circuit that the outer logo code of smart lock circuit is corresponding
It is sent to mobile phone;
S0805, mobile intelligent terminal and the repeater foundation intending carrying out with smart lock circuit binding are connected;
S0806, plan and repeater are carried out the sole internal identification code of smart lock circuit, this intelligence bound by mobile intelligent terminal
The Media Access Control address write repeater of the outer logo code of lock circuit and the first bluetooth module of this smart lock circuit;
S0807, intends carrying out, with repeater, the smart lock circuit bound and intending carrying out, with smart lock circuit, the repeater foundation bound
Bluetooth connects;
S0808, the smart lock circuit intending carrying out binding with repeater sends to the repeater intending carrying out binding with smart lock circuit
The binding repeater request of smart lock circuit;
S0809, the repeater intending carrying out binding with smart lock circuit processes the binding repeater request of this smart lock circuit;If intended
Carry out, with repeater, the smart lock circuit bound and the repeater intending carrying out binding with smart lock circuit is bound at repeater end
Merit, the repeater end smart lock circuit binding successful information of repeater is sent to send in the binding of this smart lock circuit by repeater
The smart lock circuit of the device that continues request;
S0810, sends the repeater end smart lock electricity that the smart lock circuit of this smart lock circuit binding repeater request will receive
The road binding successful information of repeater is sent to server by mobile intelligent terminal, and server preserves this smart lock circuit and is somebody's turn to do
Binding information between repeater;
S0811, smart lock circuit and repeater are sent to intelligent movable eventually in the information of server end binding success by server
End.
In order to strengthen the safety of smart lock temporary password setting up procedure further, described smart lock circuit and described relaying
When carrying out data transmission between device, can the sole internal identification code of this smart lock circuit be that key encrypts data waiting for transmission.
As in figure 2 it is shown, the verification method of the temporary password of the smart lock of the present invention, a kind of intelligent lock system is utilized to implement,
Described intelligent lock system includes smart lock;Described smart lock is provided with smart lock circuit;
The verification method of the temporary password of described smart lock comprises the steps:
S21, the temporary password of input smart lock;
S22, whether the smart lock temporary password in the smart lock temporary password of smart lock circuit judges input and smart lock circuit
Unanimously;It is then to perform step S23;Otherwise represent and open smart lock failure;
S23, opens smart lock.
Described smart lock temporary password is provided with effect duration, when reaching the effect duration of smart lock temporary password of setting,
Delete the smart lock temporary password in smart lock circuit.
Step S25 can also be included after described step S23:
S25, deletes the smart lock temporary password in smart lock circuit.
Step S24 is also included between described step S23 and described step S25:
S24, it is judged that open smart lock the most successful;When opening smart lock success, perform step S25.
Described intelligent lock system also includes mobile intelligent terminal, repeater and server;Smart lock circuit and repeater phase
Connect;Repeater is connected with server;Mobile intelligent terminal is connected with server;
Also include after described step S25:
S26, the information that smart lock temporary password has used is sent to repeater by smart lock circuit;
S27, the information that smart lock temporary password has used is sent to server by repeater;
S28, the information that smart lock temporary password has used is sent to mobile intelligent terminal by server.
Step S05 is also included before described step S28:
S05, mobile intelligent terminal logs in the user account with administrator right.
Step S04 can also be included before described step S05:
S04, has the user account of administrator right in server end registration.
Described smart lock is additionally provided with lock body keyboard;Lock body keyboard is connected with smart lock circuit;
The step of the temporary password of described input smart lock is the temporary password by lock body input through keyboard smart lock.
Step S08 can also be included before described step S26:
S08, binds smart lock circuit with repeater.
Described smart lock circuit is provided with the first bluetooth module;Described repeater is provided with the second bluetooth module and the first net
Network link block;Smart lock circuit is connected with repeater Bluetooth, and repeater is connected by network with server;Described mobile intelligence
Terminal can be additionally provided with the 3rd bluetooth module;
Also include before described step S08:
S01, server generates the sole internal identification code of smart lock circuit, the outer logo code of smart lock circuit and smart lock electricity
The internal checksum on road;Wherein the sole internal identification code of smart lock circuit and the outer logo code of smart lock circuit have one by one
Corresponding relation;The sole internal identification code of smart lock circuit is sightless for a user;The outside mark of smart lock circuit
Knowing code is visible for a user;Server generates the outer logo code of repeater;The outer logo code of repeater is to user
For be visible, can locate to use the form of Quick Response Code be shown in seen from the outside of this repeater;
S02, during production of intelligent lock, by outside the sole internal identification code of smart lock circuit of server generation, smart lock circuit
The internal checksum write smart lock circuit of portion's identification code and smart lock circuit;Guarantee the smart lock circuit of every smart lock only
One internal identification code differs with the sole internal identification code of the smart lock circuit of other smart locks;
S03, server preserves the sole internal identification code of smart lock circuit, the outer logo code of smart lock circuit, smart lock electricity
The internal checksum on road and the MAC(i.e. medium access control of the first bluetooth module of this smart lock circuit) corresponding between address
The information of relation;Server preserves the medium access control of the outer logo code of repeater and the second bluetooth module of this repeater
The information of the corresponding relation between address;The sole internal identification code of smart lock circuit and the first bluetooth mould of this smart lock circuit
There is between the Media Access Control address of block relation one to one;The outer logo code of repeater and the second of this repeater
There is between the Media Access Control address of bluetooth module relation one to one;
Described step S08 includes:
S0801, mobile intelligent terminal obtains the medium intending carrying out the second bluetooth module of the repeater bound with smart lock circuit
Accessing to control address;It is for instance possible to use mobile phone is by scanning the two dimension on the repeater that plan and smart lock circuit carry out binding
Code obtains the outer logo code of this repeater, and the outer logo code of this repeater obtained is sent to server, and server is looked into
Ask preserve repeater outer logo code and the Media Access Control address of the second bluetooth module of repeater between corresponding
The information of relation, by the medium access control ground of the second bluetooth module of the repeater corresponding with the outer logo code of this repeater
The information of location is sent to mobile phone;
The smart lock circuit that S0802, mobile intelligent terminal and plan carry out binding with repeater is set up bluetooth and is connected;
S0803, the Media Access Control address of the second bluetooth module of repeater is write by mobile intelligent terminal to be intended and repeater
Carry out the smart lock circuit bound;
S0804, mobile intelligent terminal acquisition plan and repeater carry out the sole internal identification code of smart lock circuit, the outside bound
The Media Access Control address of the first bluetooth module of identification code and this smart lock circuit;Such as, plan is entered by mobile phone with repeater
The outer logo code of smart lock circuit of row binding is sent to server, the smart lock circuit that server lookup preserves unique in
The Media Access Control address of the first bluetooth module of portion's identification code, the outer logo code of smart lock circuit and this smart lock circuit
Between the information of corresponding relation, by the sole internal identification code corresponding with the outer logo code of this smart lock circuit and with this
The information of the Media Access Control address of the first bluetooth module of the smart lock circuit that the outer logo code of smart lock circuit is corresponding
It is sent to mobile phone;
S0805, mobile intelligent terminal and the repeater foundation intending carrying out with smart lock circuit binding are connected;
S0806, plan and repeater are carried out the sole internal identification code of smart lock circuit, this intelligence bound by mobile intelligent terminal
The Media Access Control address write repeater of the outer logo code of lock circuit and the first bluetooth module of this smart lock circuit;
S0807, intends carrying out, with repeater, the smart lock circuit bound and intending carrying out, with smart lock circuit, the repeater foundation bound
Bluetooth connects;
S0808, the smart lock circuit intending carrying out binding with repeater sends to the repeater intending carrying out binding with smart lock circuit
The binding repeater request of smart lock circuit;
S0809, the repeater intending carrying out binding with smart lock circuit processes the binding repeater request of this smart lock circuit;If intended
Carry out, with repeater, the smart lock circuit bound and the repeater intending carrying out binding with smart lock circuit is bound at repeater end
Merit, the repeater end smart lock circuit binding successful information of repeater is sent to send in the binding of this smart lock circuit by repeater
The smart lock circuit of the device that continues request;
S0810, sends the repeater end smart lock electricity that the smart lock circuit of this smart lock circuit binding repeater request will receive
The road binding successful information of repeater is sent to server by mobile intelligent terminal, and server preserves this smart lock circuit and is somebody's turn to do
Binding information between repeater;
S0811, smart lock circuit and repeater are sent to intelligent movable eventually in the information of server end binding success by server
End.
In order to strengthen the safety of smart lock temporary password proof procedure further, described smart lock circuit and described relaying
When carrying out data transmission between device, can the sole internal identification code of this smart lock circuit be that key encrypts data waiting for transmission.