Summary of the invention
In order to promote the safety of smart lock, the method that the invention provides a kind of user account binding smart lock, utilize
A kind of intelligent lock system is implemented, and described intelligent lock system includes smart lock, the first intelligent mobile terminal, the second intelligent mobile eventually
End, repeater and server;Described smart lock is provided with smart lock circuit;Described smart lock circuit is provided with the first bluetooth mould
Block;Described repeater is provided with the second bluetooth module and first network link block;Smart lock circuit is connected with repeater Bluetooth,
Repeater is connected by network with server, and the first intelligent mobile terminal is connected with server, the second intelligent mobile terminal
It is connected with server;
The method of described user account binding smart lock comprises the steps:
S06, bind request is sent to server by the first intelligent mobile terminal, and described bind request includes intending carrying out with smart lock
The authentication information of the user account of binding;
S07, server preserves this bind request;
S08, the authentication information of user account intending carrying out binding with smart lock is sent to the by the first intelligent mobile terminal
Two intelligent mobile terminals;
S10, the second intelligent mobile terminal login plan and smart lock carry out the user account bound;
S13, the user account information intending carrying out binding with smart lock, plan are bound by the second intelligent mobile terminal with smart lock
The authentication information of user account be sent to server;
S14, server authentication plan and smart lock carry out the authentication information of the user account bound;If by checking, held
Row step S16;Otherwise show that this plan and smart lock carry out user account and this smart lock Bind Failed bound;
S16, carries out smart lock end binding;
S17, carries out server end binding.
The method of the user account binding smart lock of the present invention, improves the safety of smart lock.If user utilizes intelligence
The App(i.e. application program installed on energy mobile terminal) complete aforesaid operations, the viscosity of user and this App can be increased, thus
Promote the commercial value of this App.
Detailed description of the invention
The method describing the user account binding smart lock of the present invention below in conjunction with the accompanying drawings in detail.
As it is shown in figure 1, the method for the user account binding smart lock of the present invention, a kind of intelligent lock system is utilized to implement, institute
State intelligent lock system and include smart lock, the first intelligent mobile terminal, the second intelligent mobile terminal, repeater and server;Described
Smart lock is provided with smart lock circuit;Described smart lock circuit is provided with the first bluetooth module;Described repeater is provided with second
Bluetooth module and first network link block;Smart lock circuit is connected with repeater Bluetooth, and repeater and server pass through network
Being connected, the first intelligent mobile terminal is connected with server, and the second intelligent mobile terminal is connected with server;
The method of described user account binding smart lock comprises the steps:
S06, bind request is sent to server by the first intelligent mobile terminal, and described bind request includes intending carrying out with smart lock
The authentication information of the user account of binding;
S07, server preserves this bind request;
S08, the authentication information of user account intending carrying out binding with smart lock is sent to the by the first intelligent mobile terminal
Two intelligent mobile terminals;
S10, the second intelligent mobile terminal login plan and smart lock carry out the user account bound;
S13, the user account information intending carrying out binding with smart lock, plan are bound by the second intelligent mobile terminal with smart lock
The authentication information of user account be sent to server;
S14, server authentication plan and smart lock carry out the authentication information of the user account bound;If by checking, held
Row step S16;Otherwise show that this plan and smart lock carry out user account and this smart lock Bind Failed bound;
S16, carries out smart lock end binding;
S17, carries out server end binding.
Described first intelligent mobile terminal can be that network is connected with the connected mode of server.Described second intelligent mobile
Terminal can be that network is connected with the connected mode of server.
Described first intelligent mobile terminal can be to have the mobile phone of network connecting module, panel computer etc..Described
Two intelligent mobile terminals can be to have the mobile phone of network connecting module, panel computer etc..
Step S05 can also be included before described step S06:
S05, the first intelligent mobile 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 S09 can also be included before described step S10:
S09, carries out the user account bound at server end registration plan and smart lock.
The authentication information of user account that described plan and smart lock carry out binding can be the first intelligent mobile terminal
Or the check information that server generates.
The authentication information of user account that described plan and smart lock carry out binding can be the second intelligent mobile terminal
Identity.Such as, when described second intelligent mobile terminal is smart mobile phone, the identity of described second intelligent mobile terminal
Mark can be the cell-phone number of this smart mobile phone.Described plan and smart lock carry out the authentication information of user account bound also
The check information that the first intelligent mobile terminal or server generate can be included.Such as server can be with stochastic generation 6 figure place
Word is as check information.
Can also comprise the steps: between described step S10 and described step S13
S11, the second intelligent mobile terminal detects whether to exist the bind request of the identity comprising the second intelligent mobile terminal;
It is then to perform step S12;Otherwise terminate the operation of user account binding smart lock;
S12, it is judged that whether user agrees to continue with the bindings performing user account with smart lock;It is then to perform step S13;No
Then user is disagreed and continues executing with the information of user account and the bindings of smart lock and be sent to by the second intelligent mobile terminal
Server, server sends that information to the first intelligent mobile terminal, terminates the operation of user account binding smart lock.
Step S15 is also included before described step S16:
S15, 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.
Described bind request can also include that user account intends the outer logo code of the smart lock circuit of the smart lock of binding.
Described intelligent lock system also includes the intelligent mobile terminal with bluetooth module and network connecting module;
Described step S15 includes:
S1501, the intelligent mobile terminal acquisition with bluetooth module and network connecting module is intended binding with smart lock circuit
The Media Access Control address of the second bluetooth module of repeater;It is for instance possible to use have bluetooth module and network connection
The mobile phone of module obtains the outside of this repeater by scanning the Quick Response Code on the repeater that plan and smart lock circuit carry out binding
Identification code, is sent to server by the outer logo code of this repeater obtained, the outside of the repeater that server lookup preserves
The information of the corresponding relation between the Media Access Control address of the second bluetooth module of identification code and repeater, will be with this relaying
The information of the Media Access Control address of the second bluetooth module of the repeater that the outer logo code of device is corresponding is sent to have indigo plant
Tooth module and the mobile phone of network connecting module;
S1502, has the intelligent mobile terminal of bluetooth module and network connecting module and intends carrying out, with repeater, the intelligence bound
Lock circuit is set up bluetooth and is connected;
S1503, has intelligent mobile terminal Jie by the second bluetooth module of repeater of bluetooth module and network connecting module
Matter accessing to control address write plan and repeater carry out the smart lock circuit bound;
S1504, has the intelligent mobile terminal of bluetooth module and network connecting module and obtains and intend carrying out, with repeater, the intelligence bound
The medium access control of the first bluetooth module of the energy sole internal identification code of lock circuit, outer logo code and this smart lock circuit
Address;Such as, there is the mobile phone of bluetooth module and network connecting module by the smart lock circuit intending carrying out binding with repeater
Outer logo code is sent to server, the sole internal identification code of smart lock circuit of server lookup preservation, smart lock circuit
Outer logo code and this smart lock circuit the first bluetooth module Media Access Control address between the letter of corresponding relation
Breath, marks by the sole internal identification code corresponding with the outer logo code of this smart lock circuit and with the outside of this smart lock circuit
The information of the Media Access Control address knowing the first bluetooth module of smart lock circuit corresponding to code is sent to have bluetooth module
Mobile phone with network connecting module;
S1505, has the intelligent mobile terminal of bluetooth module and network connecting module and intends carrying out binding with smart lock circuit
Repeater is set up and is connected;
S1506, has the intelligent mobile terminal of bluetooth module and network connecting module and carries out, with repeater, the intelligence bound by intending
First bluetooth module of the sole internal identification code of lock circuit, the outer logo code of this smart lock circuit and this smart lock circuit
Media Access Control address write repeater;
S1507, intends carrying out, with repeater, the smart lock circuit bound and intending carrying out, with smart lock circuit, the repeater foundation bound
Bluetooth connects;
S1508, 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;
S1509, 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;
S1510, 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 service by having the intelligent mobile terminal of bluetooth module and network connecting module
Device, server preserves the binding information between this smart lock circuit and this repeater;
S1511, smart lock circuit and repeater are sent to have bluetooth mould in the information of server end binding success by server
Block and the intelligent mobile terminal of network connecting module.
Described step S16 includes:
S1601, server will intend the outer logo code of smart lock circuit of smart lock of binding, the school, inside of this smart lock circuit
Test code and the user account information intending carrying out binding with this smart lock is sent to repeater;
S1602, repeater will intend the outer logo code of smart lock circuit of smart lock of binding, the school, inside of this smart lock circuit
The user account information testing code and intend carrying out binding with this smart lock is sent to intend the smart lock circuit of the smart lock of binding;
S1603, if the outside of this smart lock circuit that the repeater that the smart lock circuit of smart lock intending binding receives sends
Identification code is identical with the smart lock circuit external identification code in the smart lock circuit of this smart lock and the smart lock of this smart lock
The internal checksum of this smart lock circuit that the repeater that circuit receives sends and the intelligence in the smart lock circuit of this smart lock
Lock circuit internal checksum is identical, completes user account that this plan and smart lock carry out binding and this smart lock at smart lock end
Binding, this plan of smart lock end and smart lock are carried out user account and the letter of this smart lock binding success bound by smart lock circuit
Breath is sent to repeater;Otherwise show that this plan and smart lock carry out user account and this smart lock Bind Failed bound, intelligence
This plan of smart lock end and smart lock are carried out the information of user account and this smart lock Bind Failed bound and are sent to by lock circuit
Repeater.
Described step S17 includes:
S1701, this plan of smart lock end received and smart lock are carried out user account and the binding of this smart lock bound by repeater
Successfully information or this plan of smart lock end and smart lock carry out user account and the information of this smart lock Bind Failed bound
It is sent to server;
S1702, if the repeater that receives of server send be this plan of smart lock end and smart lock carries out user's account of binding
Number and the information of this smart lock binding success, server completes, at server end, the user account that this plan and smart lock carry out binding
Binding with this smart lock;If what the repeater that server receives sent is that this plan of smart lock end carries out binding with smart lock
User account and the information of this smart lock Bind Failed, show that this plan and smart lock carry out user account and this smart lock bound
Bind Failed.
When carrying out data transmission between described smart lock circuit and described repeater, can this smart lock circuit unique in
Portion's identification code is that key encrypts data waiting for transmission.