Invention content
The present invention is directed to solve at least some of the technical problems in related technologies.
For this purpose, first purpose of the present invention is to propose a kind of remote unlocking method based on ZigBee, it is logical to improve
Communication distance realizes remote unlocking, solves the problems, such as that existing unlocking mode can not be that interim visiting user opens the door.
Second object of the present invention is to propose another remote unlocking method based on ZigBee.
Third object of the present invention is to propose a kind of remote unlocking device based on ZigBee.
Fourth object of the present invention is to propose another remote unlocking device based on ZigBee.
The 5th purpose of the present invention is to propose a kind of remote unlocking system based on ZigBee.
The 6th purpose of the present invention is to propose a kind of computer program product.
The 7th purpose of the present invention is to propose a kind of non-transitorycomputer readable storage medium.
In order to achieve the above object, first aspect present invention embodiment proposes a kind of remote unlocking method based on ZigBee,
This method is applied to cloud server, includes the following steps:
The interim unlocking for receiving the carrying request user identifier that request user is sent by applications client is asked;
Legal verification is carried out to the request user identifier according to the log-on message to prestore, unlocking cipher is generated after legal;
The unlocking cipher is sent to the intelligent gateway with ZigBee functions, so that the intelligent gateway is opened described
Lock cipher is sent to the intelligent door lock configured in advance according to Zigbee protocol;
The unlocking cipher is sent to casual user, so as to the intelligent door lock according to preset unlocking condition to described
The verification password that casual user sends is compared with the unlocking cipher, if in the case where meeting the unlocking condition two
Person is identical, then unlocks to the casual user.
The remote unlocking method based on ZigBee of the embodiment of the present invention, cloud server receive request user and pass through application
Client send carrying request user identifier interim unlockings ask, according to the log-on message to prestore to ask user identifier into
The legal verification of row, and legal rear generation unlocking cipher is being verified, unlocking cipher is sent to the intelligent network with ZigBee functions
It closes, so that unlocking cipher is sent to the intelligent door lock configured in advance according to Zigbee protocol by intelligent gateway, and by unlocking cipher
It is sent to casual user, casual user is sent according to preset unlocking condition so as to intelligent door lock verification password and is unlocked close
Code is compared, if identical both in the case where meeting unlocking condition, is unlocked to casual user.Thereby, it is possible to
Communication distance is greatly improved, remote unlocking when casual user is visiting is realized, avoids casual user and falling into a long wait outdoors.
In order to achieve the above object, second aspect of the present invention embodiment proposes another remote unlocking side based on ZigBee
Method, this method are applied to intelligent door lock, wherein the intelligent door lock is to have the function of ZigBee according to Zigbee protocol configuration
Intelligent gateway under network node, this approach includes the following steps:
Receive the unlocking cipher that the intelligent gateway is sent by Zigbee protocol, wherein the unlocking cipher is and institute
State what the corresponding cloud server of intelligent gateway generated after carrying out legal verification to the request user for sending interim unlocking request;
Receive the verification password that casual user sends;
The verification password is compared with the unlocking cipher according to preset unlocking condition, if described in satisfaction
It is identical both in the case of unlocking condition, then it unlocks to the casual user.
The remote unlocking method based on ZigBee of the embodiment of the present invention, intelligent door lock receive intelligent gateway and pass through ZigBee
The unlocking cipher that agreement is sent, and the verification password of casual user's transmission is received, according to preset unlocking condition to verifying password
It is compared with unlocking cipher, if identical both in the case where meeting unlocking condition, unlocks to casual user.By
This, can when casual user visits remote unlocking, avoid casual user from falling into a long wait outdoors.
In order to achieve the above object, third aspect present invention embodiment proposes a kind of remote unlocking device based on ZigBee,
The device is applied to cloud server, including:
First receiving module asks facing for user identifier for receiving request user by the carrying that applications client is sent
Shi Kaisuo is asked;
Generation module, for carrying out legal verification to the request user identifier according to the log-on message to prestore, after legal
Generate unlocking cipher;
First sending module, for the unlocking cipher to be sent to the intelligent gateway with ZigBee functions, so that institute
It states intelligent gateway and the unlocking cipher is sent to the intelligent door lock configured in advance according to Zigbee protocol;
Second sending module, for the unlocking cipher to be sent to casual user, so that the intelligent door lock is according to pre-
If unlocking condition the verification password that the casual user sends is compared with the unlocking cipher, if described in satisfaction
It is identical both in the case of unlocking condition, then it unlocks to the casual user.
The remote unlocking device based on ZigBee of the embodiment of the present invention asks user to pass through applications client by reception
The interim unlocking request of the carrying request user identifier of transmission, it is legal to be carried out to request user identifier according to the log-on message to prestore
Verification, and legal rear generation unlocking cipher is being verified, unlocking cipher is sent to the intelligent gateway with ZigBee functions, so that
Unlocking cipher is sent to the intelligent door lock configured in advance according to Zigbee protocol by intelligent gateway, and unlocking cipher is sent to and is faced
When user, so that intelligent door lock compares the verification password that casual user sends with unlocking cipher according to preset unlocking condition
Compared with if identical both in the case where meeting unlocking condition, unlocking to casual user.Thereby, it is possible to greatly improve
Communication distance realizes remote unlocking when casual user is visiting, avoids casual user and falling into a long wait outdoors.
In order to achieve the above object, fourth aspect present invention embodiment proposes another remote unlocking dress based on ZigBee
It sets, which is applied to intelligent door lock, wherein the intelligent door lock is to have the function of ZigBee according to Zigbee protocol configuration
Intelligent gateway under network node, which includes:
Second receiving module, the unlocking cipher sent by Zigbee protocol for receiving the intelligent gateway, wherein institute
It is that cloud server corresponding with the intelligent gateway is carried out to the request user for sending interim request of unlocking to state unlocking cipher
It is generated after legal verification;
Third receiving module, the verification password for receiving casual user's transmission;
Unlocking module, for being compared with the unlocking cipher to the verification password according to preset unlocking condition,
If identical both in the case where meeting the unlocking condition, unlock to the casual user.
The remote unlocking device based on ZigBee of the embodiment of the present invention passes through Zigbee protocol by receiving intelligent gateway
The unlocking cipher of transmission, and the verification password of casual user's transmission is received, according to preset unlocking condition to verifying password and opening
Lock cipher is compared, if identical both in the case where meeting unlocking condition, is unlocked to casual user.As a result,
Can when casual user visits remote unlocking, avoid casual user from falling into a long wait outdoors.
In order to achieve the above object, fifth aspect present invention embodiment proposes a kind of remote unlocking system based on ZigBee,
Including cloud server and intelligent door lock, wherein cloud server includes as described in third aspect embodiment based on ZigBee
Remote unlocking device, intelligent door lock includes the remote unlocking device based on ZigBee as described in fourth aspect embodiment.
The remote unlocking system based on ZigBee of the embodiment of the present invention receives request user by cloud server and sends
Carrying request user identifier interim unlockings request, according to the log-on message to prestore to asking the legal school of user identifier progress
It tests, and is verifying legal rear generation unlocking cipher, unlocking cipher is sent to the intelligent gateway with ZigBee functions, so that intelligence
Unlocking cipher is sent to the intelligent door lock configured in advance according to Zigbee protocol by energy gateway, and unlocking cipher is sent to temporarily
User, intelligent door lock receive the unlocking cipher that intelligent gateway is sent by Zigbee protocol, and receive testing for casual user's transmission
Password is demonstrate,proved, verification password is compared with unlocking cipher according to preset unlocking condition, if in the feelings for meeting unlocking condition
It is identical both under condition, then it unlocks to casual user.Thereby, it is possible to greatly improve communication distance, realize that casual user is visiting
When remote unlocking, avoid casual user and falling into a long wait outdoors.
In order to achieve the above object, sixth aspect present invention embodiment proposes a kind of computer program product, when the computer
When instruction in program product is executed by processor, the remote unlocking based on ZigBee as described in first aspect embodiment is executed
Method, and the remote unlocking method based on ZigBee as described in second aspect embodiment.
In order to achieve the above object, seventh aspect present invention embodiment proposes a kind of non-transitorycomputer readable storage medium,
Be stored thereon with computer program, when which is executed by processor realize as described in first aspect embodiment based on
The remote unlocking method of ZigBee, and the remote unlocking method based on ZigBee as described in second aspect embodiment.
The additional aspect of the present invention and advantage will be set forth in part in the description, and will partly become from the following description
Obviously, or practice through the invention is recognized.
Specific implementation mode
The embodiment of the present invention is described below in detail, examples of the embodiments are shown in the accompanying drawings, wherein from beginning to end
Same or similar label indicates same or similar element or element with the same or similar functions.Below with reference to attached
The embodiment of figure description is exemplary, it is intended to for explaining the present invention, and is not considered as limiting the invention.
Below with reference to the accompanying drawings the remote unlocking method, apparatus and system based on ZigBee of the embodiment of the present invention are described.
Under the conditions of existing unlocking mode, when guest visits, it is that guest could be into after guest unlocks to need owner in person
Door.If owner because when thing is outgoing or owner cannot rush to unlocking in time, the guest of visiting needs waiting for the long period outdoors, this
It can influence the mood of guest and owner.
In view of the above-mentioned problems, the embodiment of the present invention proposes a kind of remote unlocking method based on ZigBee, it is remote to realize
Cheng Kaisuo avoids the guest to visit temporarily from waiting for the long period outdoors.
Fig. 1 is the flow diagram for the remote unlocking method based on ZigBee that one embodiment of the invention provides, this method
Applied to cloud server.
As shown in Figure 1, the remote unlocking method based on ZigBee of being somebody's turn to do includes the following steps:
S11, the interim unlocking for receiving the carrying request user identifier that request user is sent by applications client are asked.
In our daily life, it will usually encounter the feelings much opened the door for other people or other people is allowed voluntarily to open the door
Shape.For example, relative, friend etc. come to home when acting as a guest, need to open the door for it;After to company send out current material fall at home and oneself
It when having no time to go home to take, tells that subordinate or colleague's help fetch, needs the key family to subordinate or colleague, so as to subordinate or together
Thing can voluntarily open the door.If however, owner does not exist when relative, friend etc. are visiting, or colleague's help goes home to send out after drawing materials away
Now without key, they will be unable to enter door.
Come for home acts as a guest by relative, friend etc., when guest comes to visit, guest can pass through doorbell, visible dialogue system
Deng prompting owner someone's visiting, and owner is asked to open the door.If guest does not meet with a response, it can guess that owner does not exist, and at this time would generally
Owner is informed in a manner of phone, short message, wechat etc., and it is being waited.
In the present embodiment, when owner has learnt that guest visits and when waiting, to avoid guest from waiting for the long period outdoors,
Owner can be to ask the identity of user to send interim request of unlocking, cloud server to cloud server by applications client
Receive the interim unlocking request that request user sends.
Wherein, applications client can be mounted in the application on the intelligent terminals such as mobile phone, the PC of request user
Program can realize the communication between cloud server under conditions of the coverings such as wireless network, data network.
In the present embodiment, carried in the interim unlocking request that request user is sent by applications client to cloud server
There is request user identifier, is used to help cloud server identification request user, wherein request user identifier can be request user
The mark of used intelligent terminal asks user in the log-on message of applications client, the mark of intelligent gateway, intelligent door lock
At least one of mark, number etc., this is not limited by the present invention.
S12 carries out legal verification to request user identifier according to the log-on message to prestore, unlocking cipher is generated after legal.
In the present embodiment, cloud server receives request user and asks user's mark by the carrying that applications client is sent
After the interim unlocking request known, can legal verification further be carried out to request user identifier according to the log-on message to prestore.
Wherein, log-on message be cloud server storage request user for the first time using intelligent door lock when the information filled in,
Including but not limited to ask the mark of intelligent terminal used by a user, the log-on message for asking user in applications client, intelligence
Mark, intelligent door lock mark, the number etc. of energy gateway.It should be noted that content should not included in log-on message
Less than the content of entrained request user identifier in interim request of unlocking, to ensure the accuracy of information checking.
The request user identifier that cloud server carries in being asked the interim unlocking of reception according to the log-on message to prestore
Legitimate verification being carried out, when there is request user identifier in log-on message, indicating that request user is validated user, high in the clouds clothes
Business device generates unlocking cipher;When in log-on message there is no user identifier is asked, indicate that request user is illegal, high in the clouds clothes
Business device refusal generates unlocking cipher.Preferably implementing mode as one kind, can be arranged when in log-on message at least exist two
When the content matching of content and request user identifier, it is believed that request user is validated user, to ensure the safety of user's property
Property.
Unlocking cipher is sent to the intelligent gateway with ZigBee functions, so that intelligent gateway sends out unlocking cipher by S13
Give the intelligent door lock configured in advance according to Zigbee protocol.
Heart of the intelligent gateway as smart home has information collection, information input/output, centralized control, long-range control
The functions such as system, can be by being communicated after LAN optimization router with cloud server.
In the present embodiment, after cloud server verification asks user identifier legal and generates unlocking cipher, and then it will open
Lock cipher is sent to the intelligent gateway with ZigBee functions so that intelligent gateway by unlocking cipher be sent in advance according to
The intelligent door lock of Zigbee protocol configuration.
Wherein, ZigBee uses 128 Advanced Encryption Standards (Advanced Encryption Standard, AES)
Split lock cipher is encrypted, to ensure the safety of unlocking cipher.
Intelligent door lock, energy are configured by using the intelligent gateway with ZigBee management functions, and according to Zigbee protocol
It enough realizes the secure communication between intelligent gateway and intelligent door lock, and increases communication distance.
Unlocking cipher is sent to casual user by S14, so as to intelligent door lock according to preset unlocking condition to casual user
The verification password of transmission is compared with unlocking cipher, if identical both in the case where meeting unlocking condition, to interim
User unlocks.
In the present embodiment, after cloud server verification asks user identifier legal and generates unlocking cipher, in addition to that will open
Lock cipher is sent to except intelligent gateway, and unlocking cipher is also sent to the guest that casual user visits, and casual user uses
The unlocking cipher of reception is unlocked, using unlocking cipher as verification Password Input to intelligent door lock, so that intelligent door lock is according to default
Unlocking condition the verification password that casual user sends is compared with unlocking cipher, if the case where meeting unlocking condition
It is both lower identical, then it unlocks to casual user.Specifically intelligent door lock unlocking process will provide in subsequent embodiment, be
It avoids repeating, not elaborate herein.
The remote unlocking method based on ZigBee of the present embodiment, cloud server receive request user and pass through application client
The interim unlocking request for the carrying request user identifier that end is sent closes request user identifier according to the log-on message to prestore
Method verifies, and is verifying legal rear generation unlocking cipher, and unlocking cipher is sent to the intelligent gateway with ZigBee functions, with
Make intelligent gateway that unlocking cipher to be sent to the intelligent door lock configured in advance according to Zigbee protocol, and unlocking cipher is sent to
Casual user, so that intelligent door lock carries out the verification password that casual user sends with unlocking cipher according to preset unlocking condition
Compare, if identical both in the case where meeting unlocking condition, unlocks to casual user.Thereby, it is possible to carry significantly
High communication distance realizes remote unlocking when casual user is visiting, avoids casual user and falling into a long wait outdoors.
How by unlocking cipher casual user is sent to for cloud server, an embodiment of the present invention provides two kinds of possibility
Realization method, as one of which realization method, as shown in Fig. 2, above-described embodiment is based on, by unlocking cipher in step S14
Casual user is sent to may comprise steps of:
S21 parses interim unlocking acquisition request casual user's contact details.
In the present embodiment, the interim unlocking that is sent to cloud server by applications client of request user ask in addition to
It carries outside request user identifier, the contact details of casual user can also be included.Cloud server receives interim request of unlocking
Later, the relevant technologies may be used to parse request of unlocking temporarily, to obtain casual user's contact details, wherein interim
User contact infonnation can be phone number, QQ number code, Email Accounts of casual user etc., be not especially limited herein.
S22 sends unlocking cipher according to casual user's contact details to casual user.
In the present embodiment, cloud server can determine which kind of is used according to the contact details for the casual user that parsing obtains
Mode sends unlocking cipher to casual user.
As an example, casual user's contact details that cloud server obtains are phone number, then cloud server
Unlocking cipher can be supplied to casual user in the form of text by way of sending short message to casual user, can also passed through
Unlocking cipher is supplied to user by the mode made a phone call in the form of voice broadcast.
As another example, casual user's contact details that cloud server obtains are Email Accounts, then cloud service
Unlocking cipher can be supplied to casual user by device by way of sending mail to casual user.
A kind of method that unlocking cipher is sent to casual user provided in this embodiment, by parsing interim request of unlocking
Casual user's contact details are obtained, unlocking cipher is sent to casual user according to casual user's contact details, can be used in request
Unlocking cipher is transmitted directly to use temporarily by family under the premise of providing casual user's contact details according to casual user's contact details
Family, ensure that the diversity and adaptability of sending method, while reduce the participation process of request user, simplify request user
Operation.
As alternatively possible realization method, when unlocking cipher is sent to casual user by cloud server, can incite somebody to action
Unlocking cipher is first sent to applications client and is shown to request user by applications client as transmission medium, cloud server,
Again by asking user that unlocking cipher is sent to casual user.
As it can be seen that compared with aforementioned offer sends the mode of unlocking cipher to casual user, this realization method be not necessarily to
Cloud server provides the contact details of casual user, can ensure the information security of casual user.The realization method is not necessarily to cloud
The contact details in the interim request of unlocking of server extraction are held, the workload of cloud server can be reduced.By asking to use
Unlocking cipher is sent to casual user by family, can improve the sense of participation of request user.
Previous embodiment be from cloud server side to the remote unlocking method based on ZigBee of the embodiment of the present invention into
Capable description, in order to clearly illustrate remote unlocking process, an embodiment of the present invention provides another kinds based on ZigBee's
Remote unlocking method, this method be applied to intelligent door lock, wherein intelligent door lock be according to Zigbee protocol configuration with
Network node under the intelligent gateway of ZigBee functions.Fig. 3 be further embodiment of this invention provide based on the long-range of ZigBee
The flow diagram of method for unlocking.
As shown in figure 3, the remote unlocking method based on ZigBee of being somebody's turn to do includes the following steps:
S31 receives the unlocking cipher that intelligent gateway is sent by Zigbee protocol.
Wherein, unlocking cipher is that cloud server corresponding with intelligent gateway is used to the request for sending interim request of unlocking
What family generate after legal verification.
After cloud server receives the interim unlocking request that request user sends, according to asking in interim request of unlocking
It asks User Identity to carry out legal verification to request user, is verifying legal rear generation unlocking cipher and be sent to intelligent network
It closes, intelligent door lock is sent to by Zigbee protocol by intelligent gateway.Intelligent door lock receives the unlocking cipher that intelligent gateway is sent,
And unlocking cipher is stored in the memory built in intelligent door lock.
S32 receives the verification password that casual user sends.
It, will after casual user receives cloud server or asks the unlocking cipher that user sends in the present embodiment
Unlocking cipher receives the verification password of casual user's transmission simultaneously as verification Password Input to intelligent door lock, for intelligent door lock
It unlocks after being verified.Optionally, casual user can will verify Password Input to intelligence by way of button or voice
Door lock, this is not limited by the present invention.
S33 is compared verification password with unlocking cipher according to preset unlocking condition, if meeting unlocking condition
In the case of both it is identical, then unlock to casual user.
In a kind of possible realization method of the embodiment of the present invention, preset unlocking condition can be that verification password is for the first time
It uses.Know that verification password is identical as unlocking cipher if comparing, and it is to use for the first time to verify password, then opens casual user
Lock.Judging to verify whether password is for the first time that carry out one-time authentication can be arranged in use, as a kind of possible realization method
After the comparison of password and unlocking cipher, unlocking cipher failure.After intelligent door lock receives the verification password that casual user sends, if
Unlocking cipher is effective, shows that it is to use for the first time to verify password, and further relatively whether verification password and unlocking cipher are identical, and
It unlocks to casual user when the two is identical.As alternatively possible realization method, it is empty that caching can be set in intelligent door lock
Between, the comparison of one-time authentication password and unlocking cipher is often carried out, verification password is kept in spatial cache, and is opened in intelligent door lock
After lock or certain time, the automatic content for removing spatial cache.Intelligent door lock receive casual user send verification password it
Afterwards, it first looks for the presence or absence of the information consistent with verification password in spatial cache, if being not present, it is determined that headed by verification password
Secondary use, further relatively whether verification password and unlocking cipher are identical, and unlock to casual user when the two is identical.
In the alternatively possible realization method of the embodiment of the present invention, preset unlocking condition can verify the hair of password
The time is sent to belong to preset effective uncaging time.Know that verification password is identical as unlocking cipher if comparing, and verifies the hair of password
It send the time to belong to preset effective uncaging time, then unlocks to casual user.For example, preset effective uncaging time is intelligence
Energy door lock receives first three minute after the unlocking cipher of intelligent gateway transmission.Assuming that intelligent door lock receive unlocking cipher when
Between be 10:32, then unlocking cipher is 10:Before 35 effectively, if user is 10:Input verification password, then close in verification before 35
When code is identical as unlocking cipher, intelligent door lock unlocks to casual user;If user is 10:Input verification password after 35, even if
Verification password is identical as unlocking cipher, and intelligent door lock will not unlock to casual user.
By compare in the case where meeting preset unlocking condition verification password and unlocking cipher it is whether identical, Neng Goubao
The timeliness for demonstrate,proving unlocking cipher, further improves safety.
The remote unlocking method based on ZigBee of the present embodiment, intelligent door lock receive intelligent gateway and pass through Zigbee protocol
The unlocking cipher of transmission, and the verification password of casual user's transmission is received, according to preset unlocking condition to verifying password and opening
Lock cipher is compared, if identical both in the case where meeting unlocking condition, is unlocked to casual user.As a result,
Can when casual user visits remote unlocking, avoid casual user from falling into a long wait outdoors.
In order to realize that above-described embodiment, the present invention also propose a kind of remote unlocking device based on ZigBee.
Fig. 4 is the structural schematic diagram for the remote unlocking device based on ZigBee that one embodiment of the invention provides, the device
Applied to cloud server.
As shown in figure 4, the remote unlocking device 40 based on ZigBee includes:First receiving module 410, generation module
420, the first sending module 430 and the second sending module 440.Wherein,
First receiving module 410 asks user identifier for receiving request user by the carrying that applications client is sent
Interim unlocking request.
Generation module 420, it is raw after legal for carrying out legal verification to request user identifier according to the log-on message to prestore
At unlocking cipher.
First sending module 430, for unlocking cipher to be sent to the intelligent gateway with ZigBee functions, so that intelligence
Unlocking cipher is sent to the intelligent door lock configured in advance according to Zigbee protocol by gateway.
Second sending module 440, for unlocking cipher to be sent to casual user, so that intelligent door lock is opened according to preset
Bolt part is compared the verification password that casual user sends with unlocking cipher, if in the case where meeting unlocking condition two
Person is identical, then unlocks to casual user.
In a kind of possible realization method of the embodiment of the present invention, the second sending module 440 is specifically used for, by unlocking cipher
It is sent to applications client and is shown to request user, so that unlocking cipher is sent to casual user by request user.Pass through request
Unlocking cipher is sent to casual user by user, can improve the sense of participation of request user.
Optionally, in a kind of possible realization method of the embodiment of the present invention, as shown in figure 5, the second sending module 440 can
To include:
Resolution unit 441, for parsing interim unlocking acquisition request casual user's contact details.
Transmission unit 442, for sending unlocking cipher to casual user according to casual user's contact details.
By parsing interim unlocking acquisition request casual user's contact details, used to interim according to casual user's contact details
Family sends unlocking cipher, can be under the premise of asking user to provide casual user's contact details according to casual user's contact details
Unlocking cipher is transmitted directly to casual user, ensure that the diversity and adaptability of sending method, while reducing request and using
The participation process at family simplifies request user's operation.
It should be noted that the aforementioned explanation to the remote unlocking embodiment of the method based on ZigBee is also applied for this
The remote unlocking device based on ZigBee of embodiment, realization principle is similar, and details are not described herein again.
The remote unlocking device based on ZigBee of the present embodiment asks user to be sent by applications client by reception
Carrying request user identifier interim unlockings request, according to the log-on message to prestore to asking the legal school of user identifier progress
It tests, and is verifying legal rear generation unlocking cipher, unlocking cipher is sent to the intelligent gateway with ZigBee functions, so that intelligence
Unlocking cipher is sent to the intelligent door lock configured in advance according to Zigbee protocol by energy gateway, and unlocking cipher is sent to temporarily
User, so that intelligent door lock compares the verification password that casual user sends with unlocking cipher according to preset unlocking condition
Compared with if identical both in the case where meeting unlocking condition, unlocking to casual user.Thereby, it is possible to greatly improve
Communication distance realizes remote unlocking when casual user is visiting, avoids casual user and falling into a long wait outdoors.
In order to realize above-described embodiment, the invention also provides a kind of applied to intelligent door lock based on the long-range of ZigBee
Unlocking apparatus, wherein intelligent door lock is to configure the network under the intelligent gateway with ZigBee functions according to Zigbee protocol
Node.
Fig. 6 is the structural schematic diagram for the remote unlocking device based on ZigBee that further embodiment of this invention provides.
As shown in fig. 6, the remote unlocking device 60 based on ZigBee includes:Second receiving module 610, third receive mould
Block 620 and unlocking module 630.Wherein,
Second receiving module 610, the unlocking cipher sent by Zigbee protocol for receiving intelligent gateway.
Wherein, unlocking cipher is that cloud server corresponding with intelligent gateway is used to the request for sending interim request of unlocking
What family generate after legal verification.
Third receiving module 620, the verification password for receiving casual user's transmission.
Unlocking module 630, for being compared with unlocking cipher to verification password according to preset unlocking condition, if
The two is identical in the case of meeting unlocking condition, then unlocks to casual user.
Optionally, in a kind of possible realization method of the embodiment of the present invention, unlocking module 630 is used for, and is known if comparing
It is identical as unlocking cipher to verify password, and it is to use for the first time to verify password, then unlocks to casual user.
Optionally, in a kind of possible realization method of the embodiment of the present invention, unlocking module 630 is used for, and is known if comparing
Verification password is identical as unlocking cipher, and the sending time for verifying password belongs to preset effective uncaging time, then to using temporarily
It unlocks at family.
It should be noted that the aforementioned explanation to the remote unlocking embodiment of the method based on ZigBee is also applied for this
The remote unlocking device based on ZigBee of embodiment, realization principle is similar, and details are not described herein again.
The remote unlocking device based on ZigBee of the present embodiment is sent by receiving intelligent gateway by Zigbee protocol
Unlocking cipher, and receive casual user transmission verification password, according to preset unlocking condition to verification password with unlocking it is close
Code is compared, if identical both in the case where meeting unlocking condition, is unlocked to casual user.Thereby, it is possible to
The remote unlocking when casual user visits avoids casual user from falling into a long wait outdoors.
In order to realize above-described embodiment, the invention also provides a kind of remote unlocking systems based on ZigBee.
Fig. 7 is the structural schematic diagram for the remote unlocking system based on ZigBee that one embodiment of the invention provides.
As shown in fig. 7, the remote unlocking system 70 based on ZigBee includes:Cloud server 710 and intelligent door lock
720.Wherein,
Cloud server 710 includes the remote unlocking device 40 based on ZigBee described in previous embodiment.
Intelligent door lock 720 includes the remote unlocking device 60 based on ZigBee described in previous embodiment.
In the present embodiment, cloud server 710 receives request user and is asked by the interim unlocking that applications client is sent,
And legal verification is carried out to request user, unlocking cipher is generated after being verified, unlocking cipher is sent to intelligent door lock 720,
The verification password that intelligent door lock 720 receives unlocking cipher and casual user sends, and according to preset unlocking condition to verification
Password is compared with unlocking cipher, when meet unlocking condition and verification password it is identical as unlocking cipher when, to casual user into
Row is unlocked.
In order to clearly illustrate the course of work of the remote unlocking system based on ZigBee, the present invention also provides bases
In the practical configuration diagram of the remote unlocking system of ZigBee, Fig. 8 is the system tray of the remote unlocking system based on ZigBee
Structure schematic diagram.
As shown in figure 8, realizing two-way communication, intelligence based on mobile communication technology between applications client and cloud server
It is communicated by Zigbee protocol between door lock and intelligent gateway, intelligent gateway passes through LAN connection router, router
Cloud server is accessed by Internet network, cloud server is accessed using router as relay node, can be increased logical
Communication distance.
When there is casual user to come to visit, the work of each section in the configuration diagram of the remote unlocking system based on ZigBee
Process is as shown in figure 9, Fig. 9 is the realization process schematic of the remote unlocking system based on ZigBee.As shown in figure 9, facing when having
When user it is visiting when, applications client sends interim request of unlocking to cloud server first, and cloud server is according to opening temporarily
The legitimacy of lock request verification request user, and unlocking cipher is generated when asking user legal, unlocking cipher is handed down to road
By device, intelligent gateway is transmitted to by router, unlocking cipher is sent to intelligent door lock by intelligent gateway by Zigbee protocol.Separately
Outside, two kinds of possibility realization methods that unlocking cipher is sent to casual user are provided in Fig. 9, wherein route 1 is to be taken by high in the clouds
Unlocking cipher is directly sent to casual user by business device, and route 2 is that unlocking cipher is sent to applications client by cloud server
It is shown to request user, by asking user that unlocking cipher is transmitted to casual user.It should be noted that in previous embodiment
The specific implementation process that unlocking cipher is sent to the two ways of casual user is described in detail, it is unnecessary to avoid, herein not
It is described in detail again.
The remote unlocking system based on ZigBee of the present embodiment receives taking for request user's transmission by cloud server
Interim unlocking request with request user identifier carries out legal verification according to the log-on message to prestore to request user identifier, and
Legal rear generation unlocking cipher is being verified, unlocking cipher is being sent to the intelligent gateway with ZigBee functions, so that intelligent network
It closes and unlocking cipher is sent to the intelligent door lock configured in advance according to Zigbee protocol, and unlocking cipher is sent to interim use
Family, intelligent door lock receive the unlocking cipher that intelligent gateway is sent by Zigbee protocol, and receive the verification of casual user's transmission
Password is compared verification password with unlocking cipher according to preset unlocking condition, if the case where meeting unlocking condition
It is both lower identical, then it unlocks to casual user.Thereby, it is possible to greatly improve communication distance, when realizing that casual user is visiting
Remote unlocking avoids casual user and is falling into a long wait outdoors.
In order to realize above-described embodiment, the invention also provides a kind of computer program products, when the computer program produces
When instruction in product is executed by processor, the remote unlocking method based on ZigBee described in previous embodiment is executed.
In order to realize that above-described embodiment, the present invention also propose a kind of non-transitorycomputer readable storage medium, deposit thereon
Contain computer program, when which is executed by processor, can realize described in previous embodiment based on ZigBee
Remote unlocking method.
In the description of this specification, reference term " one embodiment ", " some embodiments ", " example ", " specifically show
The description of example " or " some examples " etc. means specific features, structure, material or spy described in conjunction with this embodiment or example
Point is included at least one embodiment or example of the invention.In the present specification, schematic expression of the above terms are not
It must be directed to identical embodiment or example.Moreover, particular features, structures, materials, or characteristics described can be in office
It can be combined in any suitable manner in one or more embodiments or example.In addition, without conflicting with each other, the skill of this field
Art personnel can tie the feature of different embodiments or examples described in this specification and different embodiments or examples
It closes and combines.
Although the embodiments of the present invention has been shown and described above, it is to be understood that above-described embodiment is example
Property, it is not considered as limiting the invention, those skilled in the art within the scope of the invention can be to above-mentioned
Embodiment is changed, changes, replacing and modification.