Invention content
Technical problem to be solved of the embodiment of the present invention is, provides a kind of electron key opening gate method and its dress
It sets, system, when the terminal trust and correct encrypted message of unlocking, which has access permission, just opens intelligent door lock,
Improve the safety of intelligent door lock.
A kind of electron key opening gate method is applied to intelligent door lock, including:
The control signal that first terminal is sent is received, the control signal includes encrypted message and the first terminal
Identification code information, the first terminal are the launch terminal of the control signal;
Judge whether the identification code information of the first terminal is item in trust account list, and judges the password
Whether information is correct;
When above-mentioned judging result is all to be, the intelligent door lock is opened.
Optionally, the control signal is received by NFC, Wi-Fi, bluetooth and at least one of infrared mode, it is described
It controls signal to be generated according to unlocking grant instruction by the first terminal, the unlocking grant instruction includes the encrypted message.
Optionally, the unlocking grant instruction is the instruction for the second terminal transmission that the first terminal receives, described to open
Lock grant instruction further includes the identification code information of the second terminal, after the control signal that the reception first terminal is sent,
Before the opening intelligent door lock, the method further includes:
Judge whether the identification code information of the second terminal is item in administrator's account list.
Optionally, the unlocking grant instruction is that the second terminal is generated according to encrypted message input by user.
Optionally, the encrypted message includes character string, image information, voice messaging, finger print information, Quick Response Code, bar shaped
One or more combinations in code.
Optionally, the unlocking grant instruction further includes:Authority information, the authority information include:Effective time, effectively
One or more combinations in number, effective range, the effective time use effective time for the unlocking grant instruction,
The effective degree is the use effective degree of the unlocking grant instruction, and the effective range is the unlocking grant instruction
Applicable intelligent door lock;
After the control signal for receiving first terminal, before opening the intelligent door lock, further include:Judge the power
Whether limit information is effective.
A kind of intelligent door lock, including:
First receiving unit, the reception sent for first terminal control signal, and the control signal includes encrypted message
And the identification code information of the first terminal;
Judging unit, for judging whether the identification code information of the first terminal is item in trust account list,
And judge whether the encrypted message is correct;
Execution unit, for when above-mentioned judging result is all to be, opening the intelligent door lock.
Optionally, the intelligent door lock includes one kind or more of NFC module, Wi-Fi module, bluetooth module or infrared module
Kind combination, the one or more combinations passed through in NFC module, Wi-Fi module, bluetooth module and infrared module receive the control
Signal, the control signal are generated by the first terminal according to unlocking grant instruction, and the unlocking grant instruction includes described
Encrypted message.
Optionally, the unlocking grant instruction is the instruction for the second terminal transmission that the first terminal receives, described to open
Lock grant instruction further includes the identification code information of the second terminal, and the judging unit is additionally operable to,
Judge whether the identification code information of the second terminal is item in administrator's account list.
Optionally, the unlocking grant instruction is that the second terminal is generated according to encrypted message input by user.
Optionally, the encrypted message includes character string, image information, voice messaging, finger print information, Quick Response Code, bar shaped
One or more combinations in code.
Optionally, the unlocking grant instruction further includes:Authority information, the authority information include:Effective time, effectively
One or more combinations in number, effective range, the effective time use effective time for the unlocking grant instruction,
The effective degree is the use effective degree of the unlocking grant instruction, and the effective range is the unlocking grant instruction
Applicable intelligent door lock;
The judging unit is additionally operable to, and judges whether the authority information is effective.
A kind of electron key opening gate method is applied to first terminal, which is characterized in that including:
Identification code information and encrypted message are obtained, and control is generated according to the identification code information and the encrypted message
Signal processed, the identification code information judge whether the identification code information is in trust account list for intelligent door lock
, the encrypted message is for unlocking the intelligent door lock;
The control signal is sent to the intelligent door lock, the control signal includes the identification code information and password
Information.
Optionally, the control signal is sent by NFC, Wi-Fi, bluetooth and at least one of infrared mode, it is described
Generating control signal according to the identification code information and the encrypted message further includes specifically:According to the identification code information with
And unlocking grant instruction generates control signal, the unlocking grant instruction includes the encrypted message.
Optionally, the acquisition identification code information and encrypted message, and according to the identification code information and described close
Code information generates control signal:Receive the unlocking grant instruction that second terminal is sent, the unlocking license
Instruction further includes the identification code information of the second terminal, and the identification code information of the second terminal is sentenced for the intelligent door lock
Whether the identification code information for the second terminal of breaking is item in administrator's account list, and the unlocking grant instruction is described the
Two terminals are generated according to encrypted message input by user.
Optionally, the encrypted message includes character string, image information, voice messaging, finger print information, Quick Response Code, bar shaped
One or more combinations in code.
Optionally, the unlocking grant instruction and the control information further include:Authority information, the authority information packet
It includes:One or more combinations in effective time, effective degree, effective range, the effective time are that unlocking license refers to
The use effective time, the effective degree of order are the use effective degree of the unlocking grant instruction, and the effective range is
The applicable intelligent door lock of the unlocking grant instruction, the authority information judge the authority information for the intelligent door lock
Whether effectively.
A kind of terminal, which is characterized in that including:
First acquisition unit, for obtaining identification code information and encrypted message;
First generation unit, it is described for generating control signal according to the identification code information and the encrypted message
Identification code information judges whether the identification code information is item in trust account list, the message in cipher for intelligent door lock
Breath is for unlocking intelligent door lock;
First transmission unit, for sending the control signal to the intelligent door lock, the control signal includes described
Identification code information and encrypted message.
Optionally, the terminal includes one or more groups of NFC module, Wi-Fi module, bluetooth module or infrared module
It closes, is sent out to the intelligent door lock by one or more combinations in NFC module, Wi-Fi module, bluetooth module and infrared module
The control signal, first generation unit is sent to further include:It is generated according to the identification code information and unlocking grant instruction
Signal is controlled, the unlocking grant instruction includes the encrypted message.
Optionally, the terminal further includes:Second receiving unit, the unlocking license for receiving second terminal transmission
Instruction, the unlocking grant instruction further includes the identification code information of the second terminal, the identification code information of the second terminal
Judge whether the identification code information of the second terminal is item in administrator's account list for the intelligent door lock, it is described to open
Lock grant instruction is that the second terminal is generated according to encrypted message input by user.
Optionally, the encrypted message includes character string, image information, voice messaging, finger print information, Quick Response Code, bar shaped
One or more combinations in code.
Optionally, the unlocking grant instruction and the control signal further include:Authority information, the authority information packet
It includes:One or more combinations in effective time, effective degree, effective range, the effective time are that unlocking license refers to
The use effective time, the effective degree of order are the use effective degree of the unlocking grant instruction, and the effective range is
The applicable intelligent door lock of the unlocking grant instruction, the authority information judge the authority information for the intelligent door lock
Whether effectively.
A kind of electron key opening gate method is applied to second terminal, which is characterized in that including:
It obtains encrypted message input by user and obtains identification code information, the encrypted message is for unlocking intelligent door
Lock, the identification code information judge whether the identification code information of the second terminal is administrator's account for the intelligent door lock
Item in list;
Unlocking grant instruction, the unlocking grant instruction packet are generated according to the encrypted message and the identification code information
Include the encrypted message and the identification code information;
The unlocking grant instruction is sent to first terminal, the first terminal is used to send control letter to intelligent door lock
Number, the control signal is that the first terminal is given birth to according to the identification code information of the unlocking grant instruction and first terminal
At the control signal includes the identification code information of the encrypted message, the identification code information and the first terminal, institute
The identification code information for stating first terminal judges whether the identification code information is trust account list for the intelligent door lock
In item.
Optionally, the encrypted message includes character string, image information, voice messaging, finger print information, Quick Response Code, bar shaped
One or more combinations in code.
Optionally, the unlocking grant instruction and the control information further include:Authority information, the authority information packet
It includes:One or more combinations in effective time, effective degree, effective range, the effective time are that unlocking license refers to
The use effective time, the effective degree of order are the use effective degree of the unlocking grant instruction, and the effective range is
The applicable intelligent door lock of the unlocking grant instruction, the authority information judge the authority information for the intelligent door lock
Whether effectively.
A kind of terminal, which is characterized in that including:
Second acquisition unit, for obtaining encrypted message input by user and obtaining identification code information, the message in cipher
Breath judges the identification code information of the second terminal for the intelligent door lock for unlocking intelligent door lock, the identification code information
Whether it is item in administrator's account list;
Second generation unit, for generating unlocking grant instruction according to the encrypted message and the identification code information,
The unlocking grant instruction includes the encrypted message and the identification code information;
Second transmission unit, for the unlocking grant instruction to be sent to first terminal, the first terminal be used for
Intelligent door lock sends control signal, and the control signal is that the first terminal is whole according to the unlocking grant instruction and first
The identification code information at end generates, and the control signal includes the encrypted message, the identification code information and first end
Whether the identification code information of the identification code information at end, the first terminal judges the identification code information for the intelligent door lock
For the item in trust account list.
Optionally, the encrypted message includes character string, image information, voice messaging, finger print information, Quick Response Code, bar shaped
One or more combinations in code.
Optionally, the unlocking grant instruction and the control information further include:Authority information, the authority information packet
It includes:One or more combinations in effective time, effective degree, effective range, the effective time are that unlocking license refers to
The use effective time, the effective degree of order are the use effective degree of the unlocking grant instruction, and the effective range is
The applicable intelligent door lock of the unlocking grant instruction, the authority information judge the authority information for the intelligent door lock
Whether effectively.
A kind of electron key opening gate system, which is characterized in that including:Intelligent door lock, first terminal and second are eventually
End, wherein
The intelligent door lock is the intelligent door lock as described in claim 7-12 any claims, and the first terminal is
Terminal as described in claim 18-22 any claims, the second terminal are as any rights of claim 26-28 are wanted
Seek the terminal.
Foregoing invention sends control signal by first terminal to intelligent door lock, which includes first terminal
Identification code information and encrypted message, intelligent door lock receives the control signal, and judges whether identification code information is trust
Item in account list, and judge whether encrypted message is correct, only when judging result is all to be, which weighs with gate inhibition
Limit just opens intelligent door lock.
Specific implementation mode
Following will be combined with the drawings in the embodiments of the present invention, and technical solution in the embodiment of the present invention carries out clear, complete
Site preparation describes, it is clear that described embodiments are only a part of the embodiments of the present invention, instead of all the embodiments.It is based on
Embodiment in the present invention, those of ordinary skill in the art are obtained every other without creative efforts
Embodiment shall fall within the protection scope of the present invention.
It should be noted that the term used in embodiments of the present invention is the mesh only merely for description specific embodiment
, it is not intended to limit the invention." the one of the embodiment of the present invention and singulative used in the attached claims
Kind ", " described " and "the" are also intended to including most forms, unless context clearly shows that other meanings.It is also understood that this
Term "and/or" used herein refers to and includes one or more associated any or all possible group of list items purposes
It closes.
Referring to Fig. 1, Fig. 1 is a kind of flow chart of electron key opening gate method provided in an embodiment of the present invention.It should
Method is applied to intelligent door lock and terminal, such as mobile phone, tablet computer, wearable intelligent terminal, forms system, this method packet
It includes:
Step S101:First terminal sends control signal to intelligent door lock.
Short-distance wireless communication refer to communicating pair in smaller region (tens of rice) by radio wave transmissions information
The communication technology.Currently, including using wide wireless communication technique:Bluetooth (Bluetooth), WLAN (Wi-
Fi), infrared data transmission (IrDA), purple honeybee (ZigBee), ultra-wideband (UltraWideBand) and short-range communication (NFC)
Deng.Short haul connection can be realized when two terminals are all configured with the function of a certain short haul connection, between them, for example,
Both the terminal with NFC function can be in communication with each other by NFC.
Terminal electronic key is a typical application of short haul connection, and using terminal such as mobile phone, tablet computer can be worn
Equipment etc. is worn, by adding module and the application of short haul connection in terminal, with the intelligence with identical short-range communications functionality
It can communicate between door lock, be opened to control intelligent door lock.Such as NFC module built in NFC mobile phone may be used as contactless intelligence
Can card, the reader terminal of smart card and equipment to the data transmission link of equipment, if with the intelligent door with NFC function
Lock is used cooperatively, and may be implemented, using mobile phone as the electron key of intelligent door lock, to control the opening of intelligent door number.
Specifically, first terminal obtains encrypted message input by user, can also be reception other-end, for example, second
Terminal, the encrypted message or unlocking grant instruction of transmission, the unlocking grant instruction are the instruction for permitting other-end to unlock,
It is that second terminal is generated according to encrypted message, and includes the encrypted message.In general, the second terminal is to be bound with intelligent door lock
Terminal, according to the unlocking grant instruction, obtains identification code after first terminal receives unlocking grant instruction, generates control letter
Number, which is the identification code information of first terminal, it should be noted that and each terminal has unique identification code,
Also referred to as " identity ", the identification code information be the terminal it is specific, can be as the number of the authentication information of the terminal
According to for example, if terminal is mobile phone, identification code information can be the IMEI code of mobile phone.The control signal includes encrypted message
And the identification code information of first terminal.For example, when first terminal is NFC mobile phone electron key, first terminal is obtained from
The identification code information and encrypted message of body, by NFC module to intelligent door lock emissioning controling signal.
It should be noted that intelligent terminal receives control by NFC, Wi-Fi, bluetooth and at least one of infrared mode
Signal, the communication between intelligent door lock and first terminal are by NFC module, Wi-Fi module, bluetooth module in their function modules
Or one or more combinations of infrared module, when first terminal sends control signal by NFC module to intelligent door lock, intelligence
Door lock receives control signal by NFC module;When first terminal by Wi-Fi module, bluetooth module or infrared module to intelligence
When door lock sends control signal, intelligent door lock receives control signal by Wi-Fi module, bluetooth module or infrared module respectively.
Second terminal can send unlocking grant instruction by network or mobile radio network etc. to first terminal.
It should also be noted that, above-mentioned encrypted message can be character string, image information, voice messaging, finger print information,
Quick Response Code, bar code etc., the present invention is not restricted.
Step S102:Intelligent door lock receives control signal.
Specifically, intelligent door lock receives the control signal that first terminal is sent.For example, intelligent terminal by NFC module
The control signal for receiving other-end transmitting obtains encrypted message and first terminal identification code letter that the control signal includes
Breath.
Step S103:Judge whether the identification code information of first terminal is item in trust account list.
Specifically, an intelligent door lock can appoint with multiple electron keys, i.e., multiple terminals can beat the intelligent unlocking, be
Increase safety, can be arranged trust account list, which includes the mark of user's trust terminal in intelligent door lock
Know code information, when the identification code information of first terminal is the item in trust account list, then the terminal is trusted end
End.
Step S104:Judge whether encrypted message is correct.
Specifically, the encrypted message of intelligent door lock is set, judges whether the encrypted message is the intelligent door lock unlocking cipher
One in library, if it is, the encrypted message is correct.
It should be noted that when the control signal that first terminal is sent to intelligent door lock is sent according to reception second terminal
Unlocking grant instruction generate when, if the unlocking grant instruction further includes authority information, which includes:When effective
Between, one or more combinations in effective degree, effective range etc., when effective time is that the use of unlocking grant instruction is effective
Between, effective degree is the use effective degree of unlocking grant instruction, and effective range is the applicable intelligent door of unlocking grant instruction
Lock, then it further includes authority information to control signal, and step S103 further includes judging whether authority information is effective, specifically, intelligent door
Lock judges that it receives the time of control signal whether within the scope of effective time, and it is to use the control that intelligent door lock, which records the terminal,
The number of signal processed, and judge that it receives whether the number of the control signal is less than effective degree, first terminal can also be arranged
The intelligent door lock range of unlocking grant instruction to work can utilize the identification code identification intelligent door lock of intelligent door lock, intelligence
Door lock also needs to judge its identification code whether within effective range, only when all when judging all to be, then authority information
Effectively.
It should also be noted that, judge first terminal identification code information whether be item in trust account list step
Rapid S103, judge the whether correct step S104 of encrypted message and judge whether authority information accords with effective step can be with
Any order executes, and the present invention is not construed as limiting.
Step S105:Open intelligent door lock.
Specifically, in step S103 and step S104 when judging all to be, that is to say, that only when first terminal is
The trusted terminal of intelligent door lock, and when encrypted message is correct, intelligent door lock passes through the relay for controlling and being set in intelligent door lock
Module opens intelligent door lock, and otherwise, as long as there are one being judged as otherwise, intelligent door lock keeps lock-out state.
It should be noted that the unlocking cipher of intelligent door lock can have it is multiple, in usual one family have multiple doors,
The corresponding unlocking authority of terminal thus can not be allowed by Password Management, for example, all intelligent door locksets of family can be arranged
There is identical trust account list, but the unlocking cipher library that each room corresponds to intelligent door lock is inconsistent, for example, gate
Unlocking cipher includes unlocking cipher one, unlocking cipher two, unlocking cipher three, unlocking cipher four, and the unlocking in the bedroom of user one is close
Code includes unlocking cipher one, and the unlocking cipher in the bedroom of user two includes unlocking cipher two, and the unlocking cipher in study includes unlocking
Password one, unlocking cipher three, at this point, when the identification code of terminal is the premise of the item in each intelligent door lock trust account list
Under, the terminal of unlocking cipher one can be obtained, there is the permission for opening gate, the bedroom door of user one and study;It can obtain
The terminal of unlocking cipher two has the permission for opening gate, the bedroom door of user two and study;Unlocking cipher three can be obtained
Terminal, there is the permission for opening gate and book door;The terminal of unlocking cipher three can be obtained, only there is the power for opening gate
Limit.
Foregoing invention sends control signal by first terminal to intelligent door lock, which includes first terminal
Identification code information and encrypted message, intelligent door lock receives the control signal, and judges whether identification code information is trust
Item in account list, and judge whether encrypted message is correct, only when judging result is all to be, which weighs with gate inhibition
Limit just opens door lock.
Referring to Fig. 2, Fig. 2 is a kind of flow for electron key opening gate method that another embodiment of the present invention provides
Figure.This method is applied to intelligent door lock and terminal, such as mobile phone, tablet computer, wearable intelligent terminal, forms system, the party
Method includes:
Step S201:Second terminal obtains encrypted message and identification code, and generates unlocking grant instruction.
When user stays out, and guest comes to visit, the terminal of guest, such as mobile phone can be authorized, opens intelligent door lock.Specifically
Ground, the terminal of user, second terminal take encrypted message input by user and the identification code information of itself, such as mobile phone
IMEI code, and unlocking grant instruction is generated according to the encrypted message and identification code information.
It should be noted that above-mentioned encrypted message can be character string, image information, voice messaging, finger print information, two
Code, bar code etc. are tieed up, the present invention is not restricted.
It should also be noted that, the unlocking grant instruction can also include authority information, which includes:When effective
Between, one or more combinations in effective degree, effective range etc., when effective time is that the use of unlocking grant instruction is effective
Between, effective degree is the use effective degree of unlocking grant instruction, and effective range is the applicable intelligent door of unlocking grant instruction
Lock.
Step S202:Second terminal sends unlocking grant instruction to first terminal.
Specifically, second terminal can send unlocking grant instruction by network or mobile radio network to first terminal.
Step S203:First terminal receives unlocking grant instruction, and generates control signal according to unlocking grant instruction.
Specifically, first terminal receives the unlocking grant instruction that second terminal is sent, and is given birth to according to the unlocking grant instruction
At control signal, it should be noted that include encrypted message, the second terminal identification code in unlocking grant instruction in control signal
The identification code information of information, authorization message etc. and first terminal.
Step S204:First terminal sends control signal to intelligent door lock.
Specifically, first terminal is sent by NFC, Wi-Fi, bluetooth and at least one of infrared mode to intelligent door lock
Signal is controlled, for example, when first terminal is NFC mobile phone electron key, first terminal is sent out by NFC module to intelligent door lock
Penetrate control signal.
Step S205:Intelligent door lock receives control signal.
Specifically, intelligent door lock receives the control signal that first terminal is sent.For example, intelligent terminal by NFC module
The control signal for receiving other-end transmitting, obtain the encrypted message that the control signal includes, first terminal identification code information,
Second terminal identification code information.
It should be noted that when in the unlocking grant instruction that first terminal receives including authority information, control in signal
Also include authority information.
It should also be noted that, the communication between intelligent door lock and first terminal be by NFC module in their function modules,
One or more combinations of Wi-Fi module, bluetooth module or infrared module, when first terminal by NFC module to intelligent door lock
When sending control signal, intelligent door lock receives control signal by NFC module;When first terminal passes through Wi-Fi module, bluetooth mould
When block or infrared module send control signal to intelligent door lock, intelligent door lock passes through Wi-Fi module, bluetooth module or infrared respectively
Module receives control signal.
Step S206:Judge whether the identification code information of second terminal is item in administrator's account list.
One intelligent door lock can appoint with multiple electron keys, i.e., multiple terminals can beat the intelligent unlocking, in order to increase
Administrator's account list and trust account list, trust account list packet can be arranged in safety in intelligent door lock
The identification code information of user's trust terminal is included, and administrator's account list can manage the intelligent door lock of its binding.
Specifically, judge to control whether the identification code for the second terminal for including in signal is in administrator's account list
, if it is, the second terminal is administrator terminal.
Step S207:Judge whether the identification code information of first terminal is item in trust account list.
Specifically, when the identification code information of first terminal is the item in trust account list, then the terminal is accredited
The terminal appointed.
Step S208:Judge whether encrypted message is correct.
Specifically, the encrypted message of intelligent door lock is set, judges whether the encrypted message is the intelligent door lock unlocking cipher
One in library, if it is, the encrypted message is correct.
It should be noted that if the unlocking grant instruction further includes authority information, which includes:When effective
Between, one or more combinations in effective degree, effective range etc., then it further includes authority information, step S206 to control signal
Further include judging whether authority information is effective, specifically, intelligent door lock judges that whether it receives the time of control signal effective
Within time range, it is the number using the control signal that intelligent door lock, which records the terminal, and judges that it receives the control signal
Number whether be less than effective degree, the intelligent door lock range of unlocking grant instruction to work can also be arranged in first terminal,
The identification code identification intelligent door lock of intelligent door lock, intelligent door lock can be utilized to also need to judge its identification code whether in effective range
Within, only when all when judging all to be, authority information is effective.
It should also be noted that, judge second terminal identification code information whether be item in administrator's account list step
Rapid S206, judge whether the identification code information of first terminal is the step S207 of item in trust account list, judges password
The whether correct step S208 of information and judge that the whether effective step of authority information can executed with any order, this hair
It is bright to be not construed as limiting.
Step S209:Open intelligent door lock.
Specifically, only when first terminal is trusted terminal, and its unlocking grant instruction received is by managing
Member account list in terminal send, and control the encrypted message for including in signal it is correct when, first terminal could be opened
Intelligent door lock, otherwise, as long as wherein there is one to be judged as NO, then door lock keeps lock-out state.Specifically, intelligent door lock judges
Whether the identification code information of two terminals is item in administrator's account list, and whether the identification code information of first terminal is trust
Item in account list, and judge whether encrypted message is correct, if above-mentioned judge all to be yes, by controlling in intelligent door lock
The relay module inside set opens intelligent door lock.Otherwise, as long as one of them is judged as NO, then intelligent door lock keeps gained shape
State.
It should be noted that the unlocking cipher of intelligent door lock can have it is multiple, in usual one family have multiple doors,
The corresponding unlocking authority of terminal thus can not be allowed by Password Management, for example, all intelligent door locksets of family can be arranged
There is identical trust account list, but the unlocking cipher library that each room corresponds to intelligent door lock is inconsistent, for example, gate
Unlocking cipher includes unlocking cipher one, unlocking cipher two, unlocking cipher three, unlocking cipher four, and the unlocking in the bedroom of user one is close
Code includes unlocking cipher one, and the unlocking cipher in the bedroom of user two includes unlocking cipher two, and the unlocking cipher in study includes unlocking
Password one, unlocking cipher three, at this point, when the identification code of terminal is the premise of the item in each intelligent door lock trust account list
Under, the terminal of unlocking cipher one can be obtained, there is the permission for opening gate, the bedroom door of user one and study;It can obtain
The terminal of unlocking cipher two has the permission for opening gate, the bedroom door of user two and study;Unlocking cipher three can be obtained
Terminal, there is the permission for opening gate and book door;The terminal of unlocking cipher three can be obtained, only there is the power for opening gate
Limit.Second terminal can be awarded by sending the unlocking grant instruction for including the encrypted message with corresponding authority to first terminal
Weighing first terminal has the permission for opening those intelligent door locks.
Foregoing invention obtains encrypted message and identification code by second terminal, generates unlocking grant instruction, and sent out
Give second terminal;Second terminal receives the unlocking grant instruction, and control signal is generated according to unlocking grant instruction according to this, and
Send it to intelligent door lock, the control signal include second terminal identification code information, first terminal identification code information with
And encrypted message;Intelligent door lock receives the control signal, and judges whether the identification code information of second terminal is administrator's account
Item in list, whether the identification code information of first terminal is item in trust account list, and whether judges encrypted message
Correctly.Only when judging result is all to be, which has access permission, just opens intelligent door lock.
Moreover, first terminal can be arranged to multiple intelligent doors in family by inputting different encrypted messages in second terminal
The unlocking authority of lock protects individual privacy.
Referring to Fig. 3, Fig. 3 is a kind of structural schematic diagram of intelligent door lock provided in an embodiment of the present invention, the intelligent door lock
300 include:
First receiving unit 301, the control signal for receiving the transmission of first terminal 400, control signal include message in cipher
The identification code information of breath and first terminal 400;
Judging unit 302 for judging whether identification code information is item in trust account list, and judges message in cipher
Whether breath is correct;
Execution unit 303, for when above-mentioned judging result is all to be, opening intelligent door lock 300.
Optionally, intelligent door lock includes one or more groups of NFC module, Wi-Fi module, bluetooth module or infrared module
It closes, receiving the control by one or more combinations in NFC module, Wi-Fi module, bluetooth module and infrared module believes
Number, control signal is generated by first terminal 400 according to unlocking grant instruction, and unlocking grant instruction includes encrypted message.
Optionally, unlocking grant instruction is the instruction for the transmission of second terminal 500 that first terminal 400 receives, license of unlocking
Instruction further includes the identification code information of second terminal 500, and judging unit 302 is additionally operable to, and judges the identification code letter of second terminal 500
Whether breath is item in administrator's account list.
Optionally, unlocking grant instruction is that second terminal 500 is generated according to encrypted message input by user.
Optionally, encrypted message includes in character string, image information, voice messaging, finger print information, Quick Response Code, bar code
One or more combinations.
Optionally, unlocking grant instruction further includes:Authority information, authority information include:Effective time, has effective degree
One or more combinations in range are imitated, effective time is the effective time that uses of unlocking grant instruction, and effective degree is to unlock
The use effective degree of grant instruction, effective range are the applicable intelligent door lock 300 of unlocking grant instruction;
Judging unit 302 is additionally operable to, and judges whether authority information is effective.
It should be noted that the intelligent door lock 300 in each embodiment of the present invention can be received including but not limited to first
Unit 301, judging unit 302, execution unit 303, said units can be integrated in a chip and include with intelligent door lock 300
Each function module such as NFC module, Wi-Fi module, bluetooth module or infrared module is connected, or is either partially or completely integrated in intelligence
The function module such as NFC module, Wi-Fi module, bluetooth module or infrared module for including in door lock 300.Also need to explanation
It is that the function of 300 each function module of intelligent door lock in the embodiment of the present invention can have according to the method in above method embodiment
Body realizes that specific implementation process is referred to the associated description of above method embodiment, and details are not described herein again.
Referring to Fig. 4, Fig. 4 is a kind of structural schematic diagram of first terminal provided in an embodiment of the present invention, the first terminal
400 can be mobile phone, tablet computer, wearable intelligent terminal etc., which includes:
First acquisition unit 401, for obtaining identification code information and encrypted message;
First generation unit 402, for generating control signal, institute according to the identification code information and the encrypted message
It states identification code information and judges whether the identification code information is item in trust account list for intelligent door lock 300, it is described
Encrypted message is for unlocking intelligent door lock 300;
First transmission unit 403, for sending the control signal to the intelligent door lock 300, the control signal packet
Include the identification code information and encrypted message.
Optionally, first terminal 400 includes NFC module, one kind or more of Wi-Fi module, bluetooth module or infrared module
Kind of combination, by one or more combinations in NFC module, Wi-Fi module, bluetooth module and infrared module to intelligent door lock
300 send control signal, and first generation unit 402 further includes:According to the identification code information and unlocking grant instruction
Control signal is generated, the unlocking grant instruction includes the encrypted message.
Optionally, the first terminal 400 further includes:Second receiving unit 404, for receiving opening for second terminal transmission
Grant instruction is locked, the unlocking grant instruction further includes the identification code information of the second terminal 500, the second terminal 500
Identification code information judge whether the identification code information of the second terminal 500 is administrator's account for the intelligent door lock 300
Item in the list of family, the unlocking grant instruction are that the second terminal is generated according to encrypted message input by user.
Optionally, the encrypted message includes character string, image information, voice messaging, finger print information, Quick Response Code, bar shaped
One or more combinations in code.
Optionally, the unlocking grant instruction and the control signal further include:Authority information, the authority information packet
It includes:One or more combinations in effective time, effective degree, effective range, the effective time are that unlocking license refers to
The use effective time, the effective degree of order are the use effective degree of the unlocking grant instruction, and the effective range is
The applicable intelligent door lock 300 of the unlocking grant instruction, the authority information judge that the authority information is for intelligent door lock 300
It is no effective.
It should be noted that the first terminal 400 in each embodiment of the present invention can be obtained including but not limited to first
Unit 401, the first generation unit 402, the first transmission unit 403, the second receiving unit 404, said units can be integrated in one
A chip or be integrated on the primary processor of first terminal 400 with include in first terminal 400 NFC module, Wi-Fi module,
The function module such as bluetooth module or infrared module is connected, or is either partially or completely integrated in the NFC moulds that first terminal 400 includes
The function module such as block, Wi-Fi module, bluetooth module or infrared module.
It should also be noted that, the function of 400 each function module of first terminal in the embodiment of the present invention can be according to above-mentioned
Method specific implementation in embodiment of the method, specific implementation process are referred to the associated description of above method embodiment, this
Place repeats no more.
Referring to Fig. 5, Fig. 5 is a kind of structural schematic diagram of second terminal provided in an embodiment of the present invention, the second terminal
500 can be mobile phone, tablet computer, wearable intelligent terminal etc., which includes:
Second acquisition unit 501, for obtaining encrypted message input by user and obtaining identification code information, the password
Information judges the mark of the second terminal for the intelligent door lock 300 for unlocking intelligent door lock 300, the identification code information
Know whether code information is item in administrator's account list;
Second generation unit 502 refers to for generating license of unlocking according to the encrypted message and the identification code information
It enables, the unlocking grant instruction includes the encrypted message and the identification code information;
Second transmission unit 503, for the unlocking grant instruction to be sent to first terminal 400, the first terminal
400 to intelligent door lock 300 for sending control signal, and the control signal is that the first terminal 400 is permitted according to the unlocking
It can instruct and the identification code information of first terminal 400 generates, the control signal includes the encrypted message, the identification code
The identification code information of the identification code information of information and the first terminal 400, the first terminal 400 is used for intelligent door lock
300 judge whether the identification code information is item in trust account list.
Optionally, the encrypted message includes character string, image information, voice messaging, finger print information, Quick Response Code, bar shaped
One or more combinations in code.
Optionally, the unlocking grant instruction and the control information further include:Authority information, the authority information packet
It includes:One or more combinations in effective time, effective degree, effective range, the effective time are that unlocking license refers to
The use effective time, the effective degree of order are the use effective degree of the unlocking grant instruction, and the effective range is
The applicable intelligent door lock 300 of the unlocking grant instruction, the authority information judge that the authority information is for intelligent door lock 300
It is no effective.
It should be noted that the second terminal 500 in each embodiment of the present invention can be obtained including but not limited to second
Unit 501, the second generation unit 502, said units can be integrated in a chip or be integrated in the main process task of second terminal 500
On device with the function module phase such as the NFC module, Wi-Fi module, bluetooth module or the infrared module that include in second terminal 500
Even, or NFC module, Wi-Fi module, bluetooth module or infrared module etc. that second terminal 500 includes are either partially or completely integrated in
A function module.
It should also be noted that, the function of 500 each function module of second terminal in the embodiment of the present invention can be according to above-mentioned
Method specific implementation in embodiment of the method, specific implementation process are referred to the associated description of above method embodiment, this
Place repeats no more.
Referring to Fig. 6, Fig. 6 is a kind of structural representation of electron key opening gate system provided in an embodiment of the present invention
Figure, the system include:Intelligent door lock 300, first terminal 400 and second terminal 500, wherein
Intelligent door lock 300 is intelligent door lock as described in Figure 3;First terminal 400 is first terminal as described in Figure 4, the
Two terminals 500 are second terminal as described in Figure 5.
It should be noted that first terminal 400 is connected with second terminal 500 by network, mobile radio network etc., that is, the
One terminal 400 can be communicated by network, mobile radio network etc. with second terminal 500.First terminal 400 and intelligent door lock 300
It is connected by Wi-Fi, bluetooth, NFC, infrared etc., that is to say, that the communication between intelligent door lock 300 and first terminal 400 is to pass through
One or more combinations of NFC module, Wi-Fi module, bluetooth module or infrared module, work as first terminal in their function modules
400 by NFC module to intelligent door lock 300 send control signal when, intelligent door lock 300 pass through NFC module receive control signal;
When first terminal 400 sends control signal by Wi-Fi module, bluetooth module or infrared module to intelligent door lock 300, intelligence
Door lock 300 receives control signal by Wi-Fi module, bluetooth module or infrared module respectively.
It should also be noted that, the function of each module of electron key opening gate system in the embodiment of the present invention can basis
Method specific implementation in above method embodiment, the correlation that specific implementation process is referred to above method embodiment are retouched
It states, details are not described herein again.
In conclusion sending control signal to intelligent door lock by first terminal, which includes first terminal
Identification code information and encrypted message, intelligent door lock receives the control signal, and judges whether identification code information is trust
Item in account list, and judge whether encrypted message is correct, only when judging result is all to be, which weighs with gate inhibition
Limit just opens intelligent door lock.It is that the unlocking sent according to second terminal is permitted when first terminal sends control signal to intelligent door lock
When can instruct generation, intelligent door lock also needs to judge whether the identification code information of second terminal is correct, further increases intelligence
The safety of door lock, moreover, first terminal can be arranged to multiple in family by inputting different encrypted messages in second terminal
The unlocking authority of intelligent door lock protects individual privacy.
One of ordinary skill in the art will appreciate that realizing all or part of flow in above-described embodiment method, being can be with
Relevant hardware is instructed to complete by computer program, the program can be stored in a computer read/write memory medium
In, the program is when being executed, it may include such as the flow of the embodiment of above-mentioned each method.Wherein, the storage medium can be magnetic
Dish, CD, read-only memory (Read-Only Memory, ROM) or random access memory (Random Access
Memory, RAM) etc..
It is above disclosed to be only a preferred embodiment of the present invention, the power of the present invention cannot be limited with this certainly
Sharp range, those skilled in the art can understand all or part of the processes for realizing the above embodiment, and is weighed according to the present invention
Equivalent variations made by profit requirement, still belong to the scope covered by the invention.