CN114189863B - Binding method and device of intelligent door lock, storage medium and electronic device - Google Patents

Binding method and device of intelligent door lock, storage medium and electronic device Download PDF

Info

Publication number
CN114189863B
CN114189863B CN202111547683.9A CN202111547683A CN114189863B CN 114189863 B CN114189863 B CN 114189863B CN 202111547683 A CN202111547683 A CN 202111547683A CN 114189863 B CN114189863 B CN 114189863B
Authority
CN
China
Prior art keywords
client
door lock
intelligent door
server
binding
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202111547683.9A
Other languages
Chinese (zh)
Other versions
CN114189863A (en
Inventor
杜薇
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Qingdao Haier Technology Co Ltd
Haier Smart Home Co Ltd
Original Assignee
Qingdao Haier Technology Co Ltd
Haier Smart Home Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Qingdao Haier Technology Co Ltd, Haier Smart Home Co Ltd filed Critical Qingdao Haier Technology Co Ltd
Priority to CN202111547683.9A priority Critical patent/CN114189863B/en
Publication of CN114189863A publication Critical patent/CN114189863A/en
Priority to PCT/CN2022/121037 priority patent/WO2023109240A1/en
Application granted granted Critical
Publication of CN114189863B publication Critical patent/CN114189863B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W12/00Security arrangements; Authentication; Protecting privacy or anonymity
    • H04W12/06Authentication
    • H04W12/068Authentication using credential vaults, e.g. password manager applications or one time password [OTP] applications
    • GPHYSICS
    • G07CHECKING-DEVICES
    • G07CTIME OR ATTENDANCE REGISTERS; REGISTERING OR INDICATING THE WORKING OF MACHINES; GENERATING RANDOM NUMBERS; VOTING OR LOTTERY APPARATUS; ARRANGEMENTS, SYSTEMS OR APPARATUS FOR CHECKING NOT PROVIDED FOR ELSEWHERE
    • G07C9/00Individual registration on entry or exit
    • G07C9/00174Electronically operated locks; Circuits therefor; Nonmechanical keys therefor, e.g. passive or active electrical keys or other data carriers without mechanical keys
    • G07C9/00309Electronically operated locks; Circuits therefor; Nonmechanical keys therefor, e.g. passive or active electrical keys or other data carriers without mechanical keys operated with bidirectional data transmission between data carrier and locks
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W12/00Security arrangements; Authentication; Protecting privacy or anonymity
    • H04W12/50Secure pairing of devices

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Computer Security & Cryptography (AREA)
  • Signal Processing (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Lock And Its Accessories (AREA)
  • Mobile Radio Communication Systems (AREA)

Abstract

The invention discloses a binding method and device of an intelligent door lock, a storage medium and an electronic device, wherein the method comprises the following steps: the method comprises the steps that a client of a device management application sends a binding request to a server; the device binding state information fed back by the server indicates that the intelligent door lock is in an unbound state, and the client sends verification information to the intelligent door lock; the client sends the verification result fed back by the intelligent door lock to the server; the client receives authentication information dynamically generated by the server according to the verification result, wherein the authentication information carries an authentication key group for carrying out binding authentication on the intelligent door lock according to the binding request; the client sends a confirmation message corresponding to the authentication information and fed back by the intelligent door lock to the server; the client receives a binding instruction sent by the server and triggers an account binding process of the intelligent door lock in response to the binding instruction. By adopting the technical scheme, the problem of lower data transmission security in the intelligent door lock binding process in the prior art is solved.

Description

Binding method and device of intelligent door lock, storage medium and electronic device
Technical Field
The invention relates to the technical field of intelligent door locks, in particular to a binding method and device of an intelligent door lock, a storage medium and an electronic device.
Background
With the development of internet of things technology, intelligent devices have been gradually popularized to every family, for example: before the intelligent door lock is used, the intelligent door lock and a user account number are required to be bound, and a common intelligent door lock is mainly connected with Bluetooth door lock equipment through a client side, so that the intelligent door lock can be subjected to read-write operation, the intelligent door lock can be controlled by adopting simulation data after being connected through Bluetooth, key data in the intelligent door lock binding process are easy to attack, and further, a certain degree of benefit loss is caused for a user.
That is, the method for performing read-write operation on the intelligent door lock only through bluetooth connection provided in the related art has the problem of low data transmission security when the intelligent door lock is bound.
In view of the above problems, no effective solution has been proposed at present.
Disclosure of Invention
The embodiment of the invention provides a binding method and device of an intelligent door lock, a storage medium and an electronic device, which are used for at least solving the problem of low data transmission security in the binding process of the intelligent door lock.
According to an aspect of the embodiment of the present invention, there is provided a binding method for an intelligent door lock, including: the method comprises the steps that a client of an equipment management application sends a binding request to a server, wherein the binding request carries an application identifier of the equipment management application and a wireless communication address of an intelligent door lock to be bound; the method comprises the steps that equipment binding state information fed back by a server indicates that an intelligent door lock is in an unbound state, and a client sends verification information to the intelligent door lock, wherein the verification information is used for verifying input information received by the intelligent door lock; the client sends the verification result fed back by the intelligent door lock to the server; the client receives authentication information dynamically generated by the server according to the verification result, wherein the authentication information carries an authentication key group for carrying out binding authentication on the intelligent door lock according to the binding request; the client sends a confirmation message corresponding to the authentication information and fed back by the intelligent door lock to the server; the client receives a binding instruction sent by the server and triggers an account binding process of the intelligent door lock in response to the binding instruction.
Optionally, the client receiving the authentication information dynamically generated by the server according to the verification result includes: under the condition that the server checks the application identifier and the communication address carried in the binding request successfully, the client receives the Bluetooth key sent by the server and sends the Bluetooth key to the intelligent door lock; after the client sends the Bluetooth key confirmation message fed back by the intelligent door lock to the server, the client receives the service key sent by the server and sends the service key to the intelligent door lock; after the client sends the service key confirmation message fed back by the intelligent door lock to the server, the client receives the authentication code sent by the server and sends the authentication code to the intelligent door lock; the authentication information comprises a Bluetooth key, a service key and an authentication code.
Optionally, the sending, by the client, the service key to the intelligent door lock includes: the client encrypts the service key by using the Bluetooth key to obtain a first encryption result; and the client sends the first encryption result to the intelligent door lock so that the intelligent door lock decrypts the first encryption result by using the Bluetooth key to obtain the service key.
Optionally, the client sending the authentication code to the intelligent door lock includes at least one of: the client encrypts the authentication code by using the Bluetooth key to obtain a second encryption result; the client sends the second encryption result to the intelligent door lock so that the intelligent door lock decrypts the second encryption result by using the Bluetooth key to obtain an authentication code; the client encrypts the authentication code by using the service key to obtain a third encryption result; and the client sends the third encryption result to the intelligent door lock so that the intelligent door lock decrypts the third encryption result by using the service key to obtain the authentication code.
Optionally, the client sends the verification result fed back by the intelligent door lock to the server, wherein the client calls the hypertext transfer link to send the verification result to the server, so that the server sends authentication information in an interface corresponding to the hypertext transfer link.
Optionally, the client side triggers an account binding process of the intelligent door lock in response to the binding instruction, including: the client sends binding information to the server, wherein the binding information carries a user account matched with the client; and the client receives a binding result returned by the server, wherein the binding result is used for indicating that the user account and the intelligent door lock are bound.
Optionally, before the client of the device management application sends the binding request to the server, the method further includes: under the condition that the intelligent door lock is in a Bluetooth broadcasting state, the client side displays a Bluetooth identification list which is allowed to be linked currently; responding to a selection operation executed in the client, and determining a door lock Bluetooth identifier matched with the selected intelligent door lock; the client generates a binding request by using an application identifier of the device management application and a wireless communication address of the intelligent door lock matched with the Bluetooth identifier of the door lock, wherein the wireless communication address comprises a Bluetooth communication physical address.
According to another aspect of the present invention, there is also provided a binding method of an intelligent door lock, including: the method comprises the steps that a server receives a binding request sent by a client of an equipment management application, wherein the binding request carries an application identifier of the equipment management application and a wireless communication address of an intelligent door lock to be bound; responding to the binding request, the server sends equipment binding state information to the client to indicate the client to send verification information to the intelligent door lock under the condition that the equipment binding state information indicates that the intelligent door lock is not bound, wherein the verification information is used for verifying input information received by the intelligent door lock; the server receives a verification result fed back by the intelligent door lock, which is sent by the client; based on the verification result, the server dynamically generates authentication information and sends the authentication information to the client, wherein the authentication information carries an authentication key group for binding and authenticating the intelligent door lock according to the binding request; the server receives a confirmation message which is sent by the client and corresponds to the authentication information and is fed back by the intelligent door lock; the server sends a binding instruction to the client to instruct the client to trigger an account binding process of the intelligent door lock in response to the binding instruction.
Optionally, the dynamically generating authentication information based on the verification result and sending the authentication information to the client includes: under the condition that verification of the application identifier and the communication address carried in the binding request is successful, the server sends a Bluetooth key to the client so as to instruct the client to send the Bluetooth key to the intelligent door lock; after receiving the Bluetooth key confirmation message fed back by the intelligent door lock, the server sends a service key to the client so as to instruct the client to send the service key to the intelligent door lock; after receiving the service key confirmation message fed back by the intelligent door lock, the server sends an authentication code to the client and sends the authentication code to the intelligent door lock.
Optionally, the verification result of receiving the intelligent door lock feedback sent by the client includes: the server receives the verification result sent by the client calling the hypertext transfer connection, and sends authentication information in an interface corresponding to the hypertext transfer connection based on the verification result.
Optionally, the sending the binding instruction value client side instructs the client side to trigger an account binding process of the intelligent door lock in response to the binding instruction, including: the method comprises the steps that a server receives binding information sent by a client, wherein the binding information carries a user account matched with the client; and the server returns a binding result to the client, wherein the binding result is used for indicating that the user account and the intelligent door lock are bound.
According to another aspect of the present invention, there is also provided a binding method of an intelligent door lock, including: the intelligent door lock receives verification information sent by the client, wherein the verification information is used for verifying the received input information; the intelligent door lock feeds back the verification result and sends the verification result to the server through the client so as to instruct the server to send authentication information dynamically generated according to the verification result to the client; the intelligent door lock feeds back a confirmation message corresponding to the authentication information so as to instruct the client to send the authentication information to the server; the intelligent door lock starts an account binding process.
Optionally, the foregoing feeding back the verification result, and sending the verification result to the server through the client, so as to instruct the server to send authentication information dynamically generated according to the verification result to the client, including: the intelligent door lock receives a Bluetooth key sent by a client; the intelligent door lock sends a confirmation message of the Bluetooth key to the client so as to instruct the client to send the confirmation message of the Bluetooth key to the server; after the server receives the confirmation message of the Bluetooth key sent by the client, the intelligent door lock receives the service key sent by the client; the intelligent door lock sends a confirmation message of the service key to the client so as to instruct the client to send the confirmation message of the service key to the server; after the server receives the confirmation message of the service key sent by the client, the intelligent door lock receives the authentication code sent by the client; the authentication information comprises a Bluetooth key, a service key and an authentication code.
Optionally, the receiving the service key sent by the client includes: the intelligent door lock receives a first encryption result sent by the client, wherein the first encryption result is obtained by encrypting a service key by the client by using a Bluetooth key; the intelligent door lock decrypts the first encryption result by using the Bluetooth key to obtain the service key.
Optionally, the authentication code sent by the receiving client includes at least one of the following: the intelligent door lock receives a second encryption result sent by the client, wherein the second encryption result is obtained by encrypting the authentication code by the client through a Bluetooth key; the intelligent door lock decrypts the second encryption result by using the Bluetooth key to obtain an authentication code; the intelligent door lock receives a third encryption result sent by the client, wherein the third encryption result is obtained by encrypting the authentication code by the client by using the service key; and the intelligent door lock decrypts the third encryption result by utilizing the service key to obtain the authentication code.
Optionally, the above-mentioned process of starting account binding includes: the intelligent door lock receives binding information sent by a client, wherein the binding information carries a user account matched with the client; based on the user account, the intelligent door lock starts an account binding process.
According to another aspect of the present invention, there is also provided a binding apparatus for an intelligent door lock, applied to a client of an appliance application management application, including: the device comprises a first sending unit, a second sending unit and a binding unit, wherein the first sending unit is used for sending a binding request to a server, and the binding request carries an application identifier of an equipment management application and a wireless communication address of an intelligent door lock to be bound; the second sending unit is used for indicating that the intelligent door lock is in an unbound state by the equipment binding state information fed back by the server and sending verification information to the intelligent door lock, wherein the verification information is used for verifying input information received by the intelligent door lock; the third sending unit is used for sending the verification result fed back by the intelligent door lock to the server; the first receiving unit is used for receiving authentication information dynamically generated by the server according to the verification result, wherein the authentication information carries an authentication key group for carrying out binding authentication on the intelligent door lock according to the binding request; a fourth sending unit, configured to send a confirmation message corresponding to the authentication information and fed back by the intelligent door lock to the server; the second receiving unit is used for receiving the binding instruction sent by the server and triggering an account binding process of the intelligent door lock in response to the binding instruction.
According to another aspect of the present invention, there is also provided a binding apparatus for an intelligent door lock, applied to a client of a device management application, including: the third receiving unit is used for receiving a binding request sent by a client of the equipment management application by the server, wherein the binding request carries an application identifier of the equipment management application and a wireless communication address of an intelligent door lock to be bound; the first processing unit is used for responding to the binding request, the server sends equipment binding state information to the client so as to indicate the client to send verification information to the intelligent door lock when the equipment binding state information indicates that the intelligent door lock is not bound, wherein the verification information is used for verifying input information received by the intelligent door lock; the fourth receiving unit is used for receiving the verification result fed back by the intelligent door lock and sent by the client side by the server; the second processing unit is used for dynamically generating authentication information based on the verification result and sending the authentication information to the client, wherein the authentication information carries an authentication key group for carrying out binding authentication on the intelligent door lock according to the binding request; a fifth receiving unit, configured to receive, by the server, a confirmation message corresponding to the authentication information, where the confirmation message is sent by the client and is fed back by the intelligent door lock; and the fifth sending unit is used for sending the binding instruction value client to instruct the client to respond to the binding instruction and trigger the account binding process of the intelligent door lock.
According to another aspect of the present invention, there is also provided a binding apparatus for an intelligent door lock, applied to a client of a device management application, including: the sixth receiving unit is used for receiving verification information sent by the client side through the intelligent door lock, wherein the verification information is used for verifying the received input information; the first feedback unit is used for feeding back a verification result through the intelligent door lock, and sending the verification result to the server through the client so as to instruct the server to send authentication information dynamically generated according to the verification result to the client; the second feedback unit is used for feeding back a confirmation message corresponding to the authentication information by the intelligent door lock so as to instruct the client to send the authentication information to the server; and the starting unit is used for starting the account binding process.
According to the embodiment of the invention, when the binding request is sent by the client and the server feeds back that the intelligent door lock is not bound, the client sends verification information for verifying input information received by the intelligent door lock to the intelligent door lock, sends a verification result fed back by the intelligent end to the server, dynamically generates authentication information according to the verification result, and sends the authentication information to the intelligent door lock. And the client sends a confirmation message corresponding to the authentication information and fed back by the intelligent door lock to the server, and the server can send a binding instruction to the client to trigger an account binding process of the intelligent door lock. That is, after the intelligent door lock feeds back the verification result, the server does not immediately issue a binding instruction of the intelligent door lock, but dynamically generates an authentication key group carrying binding authentication on the intelligent door lock according to the verification result, and then issues the binding instruction to the client through a confirmation message corresponding to the authentication information fed back by the intelligent door lock, thereby realizing account binding of the intelligent door lock. By adopting a mode of dynamically acquiring the secret key, key data in the intelligent door lock binding process are encrypted and checked, the risk of the key data being attacked is reduced, and the safety of data transmission in the intelligent door lock binding process is improved.
Drawings
The accompanying drawings, which are included to provide a further understanding of the invention and are incorporated in and constitute a part of this application, illustrate embodiments of the invention and together with the description serve to explain the invention and do not constitute a limitation on the invention. In the drawings:
FIG. 1 is a schematic diagram of a hardware environment of an alternative smart door lock binding method according to an embodiment of the present invention;
FIG. 2 is a flow chart of an alternative smart door lock binding method in accordance with an embodiment of the present invention;
FIG. 3 is a flow chart of another alternative smart door lock binding method in accordance with an embodiment of the present invention;
FIG. 4 is a flow chart of yet another alternative smart door lock binding method in accordance with an embodiment of the present invention;
FIG. 5 is an overall flowchart of an alternative smart door lock binding method according to an embodiment of the present invention;
fig. 6 is a block diagram (a) of a binding apparatus of an intelligent door lock according to an embodiment of the present invention;
fig. 7 is a block diagram (two) of a binding apparatus of an intelligent door lock according to an embodiment of the present invention;
fig. 8 is a block diagram (iii) of a binding apparatus of an intelligent door lock according to an embodiment of the present invention.
Detailed Description
In order that those skilled in the art will better understand the present invention, a technical solution in the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings in which it is apparent that the described embodiments are only some embodiments of the present invention, not all embodiments. All other embodiments, which can be made by those skilled in the art based on the embodiments of the present invention without making any inventive effort, shall fall within the scope of the present invention.
It should be noted that the terms "first," "second," and the like in the description and the claims of the present invention and the above figures are used for distinguishing between similar objects and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used may be interchanged where appropriate such that the embodiments of the invention described herein may be implemented in sequences other than those illustrated or otherwise described herein. Furthermore, the terms "comprises," "comprising," and "having," and any variations thereof, are intended to cover a non-exclusive inclusion, such that a process, method, system, article, or apparatus that comprises a list of steps or elements is not necessarily limited to those steps or elements expressly listed but may include other steps or elements not expressly listed or inherent to such process, method, article, or apparatus.
The method embodiments provided in the embodiments of the present application may be executed in a computer terminal or similar computing device. Taking the operation on a mobile phone terminal as an example, fig. 1 is a hardware structure block diagram of a mobile phone client of the binding method of the intelligent door lock according to the embodiment of the invention. As shown in fig. 1, the mobile phone client may include one or more (only one is shown in fig. 1) processors 102 (the processor 102 may include, but is not limited to, a microprocessor (Microprocessor Unit, abbreviated MPU) or programmable logic device (Programmable logic device, abbreviated PLD)) and a memory 104 for storing data, and in an exemplary embodiment, the mobile phone client may further include a transmission device 106 for communication functions and an input-output device 108. It will be appreciated by those skilled in the art that the structure shown in fig. 1 is merely illustrative, and is not intended to limit the structure of the mobile client described above. For example, a cell phone client may also include more or fewer components than shown in FIG. 1, or have a different configuration than the equivalent functionality shown in FIG. 1 or more than the functionality shown in FIG. 1.
The memory 104 may be used to store a computer program, for example, a software program of application software and a module, such as a computer program corresponding to a binding method of an intelligent door lock in an embodiment of the present invention, and the processor 102 executes the computer program stored in the memory 104, thereby performing various functional applications and data processing, that is, implementing the above-mentioned method. Memory 104 may include high-speed random access memory, and may also include non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. In some examples, the memory 104 may further include memory remotely located with respect to the processor 102, which may be connected to the cell phone client via a network. Examples of such networks include, but are not limited to, the internet, intranets, local area networks, mobile communication networks, and combinations thereof.
The transmission device 106 is used to receive or transmit data via a network. Specific examples of the network described above may include a wireless network provided by a communication provider of a mobile phone terminal. In one embodiment, the transmission device 106 includes a network adapter (Network Interface Controller, simply referred to as NIC) that can connect to other network devices through a base station to communicate with the internet. In one example, the transmission device 106 may be a Radio Frequency (RF) module, which is configured to communicate with the internet wirelessly.
In this embodiment, there is provided a binding method of an intelligent door lock, and fig. 2 is a flowchart of a binding method of an intelligent door lock according to an embodiment of the present invention, where the flowchart includes the following steps:
step S202, a client of an equipment management application sends a binding request to a server, wherein the binding request carries an application identifier of the equipment management application and a wireless communication address of an intelligent door lock to be bound;
step S204, the equipment binding state information fed back by the server indicates that the intelligent door lock is in an unbound state, and the client sends verification information to the intelligent door lock, wherein the verification information is used for verifying input information received by the intelligent door lock;
step S206, the client sends the verification result fed back by the intelligent door lock to the server;
step S208, the client receives authentication information dynamically generated by the server according to the verification result, wherein the authentication information carries an authentication key group for carrying out binding authentication on the intelligent door lock according to the binding request;
step S210, the client sends a confirmation message corresponding to the authentication information and fed back by the intelligent door lock to the server;
step S212, the client receives the binding instruction sent by the server and triggers an account binding process of the intelligent door lock in response to the binding instruction.
Optionally, in this embodiment, before the client initiates the binding application to the server, the bluetooth broadcast of the smart door lock may be, but is not limited to, ensured to be unlocked, then the searched bluetooth list is displayed in the display interface of the client of the device application, and the user may select one bluetooth device in the bluetooth list as the smart door lock to be bound according to the need. Wherein each bluetooth device has a wireless communication address (bluetooth MAC), and each different device management application has an application identifier, such as an APP ID identifier, matched with itself.
Optionally, in this embodiment, after the client establishes bluetooth connection with the intelligent door lock by searching for the wireless communication address of the intelligent door lock, the client initiates a binding request of the intelligent door lock to the server, where the binding request carries an APP ID of the client and a bluetooth MAC of the intelligent door lock. The server identifies the current states of the intelligent door lock and the client according to Bluetooth MAC and APP ID identifications of the intelligent door lock in the binding request, wherein the current states of the intelligent door lock and the client at least comprise two states of binding or unbinding. When the intelligent door lock is in an unbound state as a result of the identification, the client randomly generates a verification code, such as a 6-bit digital verification code. And issuing the verification code and the APP ID of the client to the intelligent door lock together for verifying the input information received by the intelligent door lock.
It should be noted that, after the smart door receives the verification code issued by the client, the smart door will actively light the numeric keypad on the smart door, and the user inputs the verification code on the numeric keypad according to the prompt of the client. After the verification is successfully input, the intelligent door lock can verify the verification code input by the user, if the user inputs an error or the verification code is not input within a specified time (such as 30 seconds), the verification is failed, the intelligent door lock can actively report a message of the verification failure to the client, and meanwhile the intelligent door lock exits from the binding mode.
And if the verification code input by the user is successfully verified by the intelligent door lock, sending a message of the verification success to the server. The server dynamically generates authentication information according to the APP ID identification of the client and the Bluetooth MAC of the intelligent door lock carried in the binding request, wherein the authentication information can include, but is not limited to, binding authentication for the intelligent door lock. In the practical application process, the form and the content of the authentication information are not limited, and can be, for example, a service key, a bluetooth key, an authentication code and the like.
Further, after the intelligent door lock receives the authentication information issued by the server, the intelligent door lock actively reports a confirmation message corresponding to the authentication information to the client, and the confirmation message is sent to the server through the client. After receiving the confirmation message of the authentication information received fed back by the intelligent door lock, the server can send a binding instruction to the client, and the client correspondingly binds the instruction to trigger the account binding process of the intelligent door lock.
It will be appreciated that in step S208, the client receives authentication information dynamically generated by the server according to the verification result, and the authentication information is generated by the server each time the client issues a new binding request, in relation to each binding request issued by the client. That is, the key for binding authentication of the intelligent door lock is changed continuously with the binding request initiated by the client.
Through the above embodiment provided by the application, the server dynamically generates the authentication key set for binding authentication to the intelligent door lock according to the verification result obtained by the intelligent door lock on the verification information received each time, and the server sends the binding instruction according to the confirmation message of the key received by the intelligent door lock. In other words, by adopting the technical scheme, the key data in the intelligent door lock binding process is encrypted and checked, the risk of the key data being attacked is reduced, and the safety of data transmission in the intelligent door lock binding process is improved.
In an optional embodiment, the step S208 of receiving, by the client, authentication information dynamically generated by the server according to the verification result includes:
under the condition that the server checks the application identifier and the communication address carried in the binding request successfully, the client receives the Bluetooth key sent by the server and sends the Bluetooth key to the intelligent door lock;
After the client sends the Bluetooth key confirmation message fed back by the intelligent door lock to the server, the client receives the service key sent by the server and sends the service key to the intelligent door lock;
after the client sends the service key confirmation message fed back by the intelligent door lock to the server, the client receives the authentication code sent by the server and sends the authentication code to the intelligent door lock;
the authentication information comprises a Bluetooth key, a service key and an authentication code.
In the embodiment, after receiving the message that the verification code reported by the intelligent door lock is successfully verified, the server verifies the APP ID and the bluetooth MAC carried in the binding request, and replies the verification result to the intelligent door lock. The intelligent door lock feeds back a confirmation message of 'the received check result' to the server. After receiving the confirmation message, the server sends the Bluetooth key to the client through the hypertext transfer security protocol, and the client sends the Bluetooth key to the intelligent door lock after receiving the Bluetooth key. And at the same time the bluetooth key is stored in the client.
It should be noted that, in the process that the server sends the bluetooth key to the intelligent door lock, the server does not directly send the bluetooth protocol to the client, but the bluetooth key is carried in the reply message through the hypertext transfer security protocol interface, and the client sends the bluetooth key in the reply message to the intelligent door lock after receiving the reply message.
Optionally, in this embodiment, after the smart door receives the bluetooth key issued by the server, a bluetooth key confirmation message is fed back to the client, and the client calls the hypertext transfer security protocol to send the bluetooth key confirmation message to the server. The server sends the service key to the client at the hypertext transfer security protocol interface. And after receiving the service key, the client sends the service key to the intelligent door lock. Notably, unlike the server's first issued bluetooth key, the second issued traffic key is an encrypted key since the smart door lock has received the server's issued bluetooth key.
Optionally, in this embodiment, after the intelligent door lock receives the encrypted service key, a confirmation message of "the received service key" is fed back to the server, where the intelligent door lock sends the confirmation message to the client first, and then the client transmits the confirmation message to the server by calling the hypertext transfer security protocol in the server. After the server receives the confirmation message, the authentication code is issued through the interface of the hypertext transfer security protocol, and is sent to the client, and meanwhile, the authentication code is stored in the memory of the client.
It should be noted that, before the server issues the authentication code to the intelligent door lock, the bluetooth key and the encrypted service key are already stored in the intelligent door lock, so the authentication code issued by the server for the third time is an encrypted key, and the authentication code is a key encrypted twice by the bluetooth key and the service key. Namely, firstly, the service key is encrypted for the first time by using the Bluetooth key, and then, the encrypted service key is encrypted for the second time by using the authentication code.
By adopting the technical scheme, after the client initiates the binding request, the server can send the bluetooth key, the service key and the authentication code to the client and the intelligent door lock in sequence, and the key data in the binding process is encrypted twice by using the bluetooth key, the service key and the authentication code. The complexity of data processing in the binding process is enhanced, and the attack of an attacker on the binding data is avoided, so that the security of data transmission is improved.
As an alternative embodiment, the client sends the service key to the intelligent door lock, including:
the client encrypts the service key by using a Bluetooth key to obtain a first encryption result;
And the client sends the first encryption result to the intelligent door lock so that the intelligent door lock decrypts the first encryption result by using the Bluetooth key to obtain the service key.
In this embodiment, the server may, but is not limited to, have sent the bluetooth key to the client before sending the service key to the smart door lock, and the bluetooth key is stored in the memory of the client. The client also sends the bluetooth key to the intelligent door lock and stores the bluetooth key in the intelligent door lock. After the server sends the service key to the client, the client encrypts the service key by using the pre-stored Bluetooth key to obtain a first encryption result, and sends the first encryption result to the intelligent door lock.
Optionally, in this embodiment, after the smart door receives the first encryption result sent by the client, the smart door may, but is not limited to, decrypt the first encryption result with a pre-stored bluetooth key to obtain the service key. That is, the service key issued by the server is not directly sent to the intelligent door lock, but after the client performs encryption processing, the encrypted service key is sent to the intelligent door lock. Assuming that the bluetooth key corresponds to a key, the key is used to crack the encrypted service key.
By adopting the technical scheme, in the process of transmitting the service key among the server, the client and the intelligent door lock, the service key is encrypted and decrypted by utilizing the Bluetooth key, so that the transmission of the service key has higher security, and the security of data transmission in the intelligent binding process is indirectly improved.
As an alternative embodiment, the client sending the authentication code to the smart door lock includes at least one of:
the client encrypts the authentication code by using the Bluetooth key to obtain a second encryption result; the client sends the second encryption result to the intelligent door lock so that the intelligent door lock decrypts the second encryption result by using the Bluetooth key to obtain an authentication code;
the client encrypts the authentication code by using the service key to obtain a third encryption result; and the client sends the third encryption result to the intelligent door lock so that the intelligent door lock decrypts the third encryption result by using the service key to obtain the authentication code.
In this embodiment, the authentication code C sent by the client is received by the intelligent door lock and encrypted, and the authentication code C can be identified by decrypting the authentication code C by the intelligent door lock. The process of decrypting the encrypted authentication code C by the intelligent door lock at least comprises the following two cases: one is to encrypt directly with the bluetooth key a stored in the smart door lock.
According to the embodiment provided by the application, before issuing the authentication code, the server issues the Bluetooth key and the service key successively, and encrypts the service key after the client receives the service key. That is, the bluetooth key and the encrypted service key are stored in the memory of the client before the server sends the authentication code to the client. Then, the process of the server issuing the authentication code to the intelligent door lock at least comprises the following two cases:
first case: the server sends the authentication code to the client, the client encrypts the authentication code by using a pre-stored bluetooth key, and then sends the encrypted authentication code to the intelligent door lock, for example, the authentication code C is encrypted by using a bluetooth key a, so as to obtain an encrypted authentication code C. Because the authentication code received by the intelligent door lock is an authentication code which is encrypted, the intelligent door lock cannot directly read the encrypted authentication code. The encrypted authentication code C is required to be decrypted by utilizing a Bluetooth key A stored in the intelligent door lock in advance, so that the authentication code is obtained;
second case: the server sends the authentication code to the client, and the client encrypts the authentication code by using a pre-stored service key to obtain a third encryption result, wherein the third encryption result comprises the encrypted authentication code. For example, the service key B is encrypted by using the bluetooth key a to obtain an encrypted service key B, and then the authentication code C is encrypted by using the encrypted service key B to obtain an encrypted authentication code C. After the client sends the encrypted authentication code C to the intelligent door lock, the intelligent door lock decrypts the encrypted authentication code C by using the pre-stored service key B, thereby obtaining the authentication code.
It should be noted that, in the first case, after the client receives the authentication code sent by the server, the authentication code is encrypted only once by using the bluetooth key. In the second case, since the service key stored in the client is a key that has been encrypted using the bluetooth key, after receiving the authentication code sent by the server, the client encrypts the authentication code again using the encrypted service key, that is, in the second case, the client actually encrypts the authentication code twice after receiving the authentication code (to obtain the third encryption result). After the third encryption result is sent to the intelligent door lock, the intelligent door lock firstly decrypts the third encryption result once by using the encrypted service key to obtain an intermediate result; and then, the result between the Bluetooth key pairs is decrypted for the second time to obtain the authentication code in the original state issued by the server.
By adopting the technical scheme, one of the two conditions can be set as a mode that the client sends the authentication code to the intelligent door lock according to the requirement. In the two modes, the client encrypts the authentication code sent by the server, so that the interaction between the intelligent door lock and the client has higher security.
Optionally, the client sends the verification result fed back by the intelligent door lock to the server, including:
and the client calls a hypertext transfer link to send the verification result to the server so that the server sends the authentication information in an interface corresponding to the hypertext transfer link.
It should be noted that the hypertext transfer link may include, but is not limited to, an access request in https, and the client may send not only the verification result fed back by the smart door lock to the server, but also a confirmation message fed back by the smart door lock to the server through an interface of https. In addition, the server also performs data transmission through https interface in the process of sending the Bluetooth key, the service key and the authentication code to the client. That is, the interaction between the client and the server is through the https interface.
By adopting the technical scheme, in the process of data transmission between the client and the server through the hypertext transmission link, the data is encrypted once or more times, so that the data interaction between the client and the server has higher security.
As an optional implementation manner, the client triggers an account binding process of the intelligent door lock in response to the binding instruction, including:
The client sends binding information to the server, wherein the binding information carries a user account matched with the client;
and the client receives a binding result returned by the server, wherein the binding result is used for indicating that the user account and the intelligent door lock are bound.
In the above embodiment provided by the present application, after the server issues the bluetooth key, the service key and the authentication code to encrypt the data in the binding process, the intelligent door lock replies a confirmation message of encryption completion to the server (i.e. the intelligent door lock receives the confirmation message fed back after the authentication issued by the service for the last time). After receiving the confirmation message, the client sends the confirmation message to the server, and the server can send binding information to the client according to the confirmation message. The binding information at least comprises a user account matched with the client.
The client sends the binding information to the intelligent door lock, then sends the confirmation message replied by the intelligent door lock to the server, and the server sends an instruction for carrying out next binding to the client to start the binding process of the user account. After the binding between the user account and the intelligent door lock is completed, the server sends a binding completion result to the client so as to indicate that the binding flow of the intelligent door lock is completed completely.
In an optional embodiment, before the client of the device management application sends the binding request to the server, the method further includes:
under the condition that the intelligent door lock is in a Bluetooth broadcasting state, the client side displays a Bluetooth identification list which is allowed to be connected currently;
responding to a selection operation executed in the client, and determining a door lock Bluetooth identifier matched with the selected intelligent door lock;
the client generates a binding request by using an application identifier of the device management application and a wireless communication address of the intelligent door lock matched with the Bluetooth identifier of the door lock, wherein the wireless communication address comprises a Bluetooth communication physical address.
In the above embodiments provided in the present application, before binding processing is performed on the intelligent door lock, it is required to ensure that the intelligent door lock has opened a bluetooth broadcast, and a bluetooth identifier of a bluetooth device that can be currently connected will be displayed in an application interface of the client. The bluetooth identifier list allowing connection may include, but is not limited to, a door lock bluetooth identifier of the intelligent door lock, and may also include a sound box bluetooth identifier of the intelligent sound box, a bluetooth identifier of the intelligent air conditioner, a bluetooth identifier of the intelligent refrigerator, and the like.
It can be understood that the number of bluetooth devices that the client can search for can be one or more, and then bluetooth identifiers of all the intelligent door locks that allow connection are displayed in the form of a bluetooth identifier list in the application interface of the client. After the user selects and operates in the application interface of the client, the door lock Bluetooth identification of the selected intelligent door lock can be determined.
After determining the bluetooth door lock identifier, the client may generate a binding request by using its own application identifier, for example, APP ID, and a wireless communication address (such as bluetooth MAC) of the smart door lock that matches the bluetooth door lock identifier selected, where the application identifier of each client is a unique identifier that matches the client. When the client sends a binding request to the server, the unique identification matched with the client and the Bluetooth MAC of the intelligent door lock are reported to the server together.
It should be noted that, in the foregoing embodiments of the present application, the execution body is a client of a device management application, and in order to better understand the present application, in this embodiment of the present application, a binding method of an intelligent door lock is further provided, which is applied to a target server, and specifically, as shown in fig. 3, the flow includes the following steps:
step S302, a server receives a binding request sent by a client of an equipment management application, wherein the binding request carries an application identifier of the equipment management application and a wireless communication address of an intelligent door lock to be bound;
step S304, responding to the binding request, the server sends equipment binding state information to the client to indicate the client to send verification information to the intelligent door lock under the condition that the equipment binding state information indicates that the intelligent door lock is not bound, wherein the verification information is used for verifying input information received by the intelligent door lock;
Step S306, the server receives a verification result fed back by the intelligent door lock, which is sent by the client;
step S308, based on the verification result, the server dynamically generates authentication information and sends the authentication information to the client, wherein the authentication information carries an authentication key group for carrying out binding authentication on the intelligent door lock according to the binding request;
step S310, the server receives a confirmation message corresponding to the authentication information, which is fed back by the intelligent door lock and sent by the client;
step S312, the server sends a binding instruction value client to instruct the client to trigger an account binding process of the intelligent door lock in response to the binding instruction.
Through the steps, after the server receives the binding request sent by the client, the server can identify the current states of the client and the intelligent door lock according to the APP ID of the client and the MAC of the Bluetooth capable of locking the door. When the identification result is that the intelligent door lock is in an unbound state, the server dynamically generates authentication information according to the APP ID of the client carried in the binding request and the Bluetooth MAC of the intelligent door lock, so as to be used for binding and authenticating the intelligent door lock.
By adopting the technical scheme, the data in the intelligent door lock binding process is bound and authenticated (such as encryption and verification) in a mode of dynamically issuing authentication information through the server, so that the risk of attacking key data is reduced, and the safety of data transmission in the intelligent door lock binding process is improved.
In an alternative embodiment, dynamically generating authentication information based on the verification result and transmitting the authentication information to the client may be implemented by:
under the condition that verification of the application identifier and the communication address carried in the binding request is successful, the server sends a Bluetooth key to the client so as to instruct the client to send the Bluetooth key to the intelligent door lock;
after receiving the Bluetooth key confirmation message fed back by the intelligent door lock, the server sends a service key to the client so as to instruct the client to send the service key to the intelligent door lock;
after receiving the service key confirmation message fed back by the intelligent door lock, the server sends an authentication code to the client and sends the authentication code to the intelligent door lock.
In this embodiment, after the server receives the message that the verification reported by the intelligent door lock is successful, the server sequentially sends the bluetooth key, the service key and the authentication code to the client. The specific process is as follows: after receiving the message of successful verification, the server sends the Bluetooth key to the client so as to instruct the client to send the Bluetooth key to the intelligent door lock; after receiving a confirmation message of 'received Bluetooth key' replied by the intelligent door lock, the server sends the service key to the client so as to instruct the client to send the encrypted service key to the intelligent door lock; after the server receives the confirmation message of the service key received returned by the intelligent door lock, the server sends an authentication code to the client so as to instruct the client to send the encrypted authentication code to the intelligent door lock.
It should be noted that, before the server sends the service key to the client, the memory of the client has stored the bluetooth key, after the client receives the service key, the service key is encrypted by using the bluetooth key, and then the encrypted service key is sent to the intelligent door lock.
Further, before the server sends the authentication code to the client, the bluetooth key and the encrypted service key are stored in the memory of the client, and after the client receives the authentication code, the authentication code is encrypted by using the pre-stored bluetooth key and the encrypted service key, so that the authentication code is transmitted to the intelligent door lock in an encrypted form.
By adopting the technical scheme, the server can sequentially send the Bluetooth key, the encrypted service key and the encrypted authentication code to the intelligent door lock, so that the safety of data transmission between the server and the intelligent door lock is higher, an attacker is prevented from attacking data in the intelligent door lock binding process, and the benefit loss of a user is reduced.
As an optional implementation manner, the receiving the verification result of the intelligent door lock feedback sent by the client includes:
the server receives the verification result sent by the client-side calling the hypertext transfer link, and sends authentication information in an interface corresponding to the hypertext transfer link based on the verification result.
It should be noted that, through the above hypertext transfer link, the server may receive, in addition to the verification result sent by the client, a confirmation message fed back by the intelligent door lock. In addition, the server also needs to send the bluetooth key, the service key and the authentication code to the client in sequence through the hypertext transfer link.
By adopting the technical scheme, in the process of data transmission between the client and the server through the hypertext transmission link, the data is encrypted at least once, so that the risk of data attack is reduced, and the safety of data transmission is improved.
As an optional implementation manner, the sending a binding instruction to the client to instruct the client to trigger an account binding process of the intelligent door lock in response to the binding instruction includes:
the method comprises the steps that a server receives binding information sent by a client, wherein the binding information carries a user account matched with the client;
and the server returns a binding result to the client, wherein the binding result is used for indicating that the user account and the intelligent door lock are bound.
In the above embodiment provided by the application, after the server sequentially sends the bluetooth key, the service key and the authentication code to the intelligent door lock, the server receives a confirmation message replied by the intelligent door lock, and issues binding information to the client according to the confirmation message, so as to instruct the client to send the binding information to the intelligent door lock.
After receiving the confirmation message of the binding information received returned by the intelligent door lock, the server sends an instruction for carrying out next binding to the client, and the binding process of the user account is started. After the binding between the user account and the intelligent door lock is completed, the server sends a binding completion result to the client so as to indicate that the binding flow of the intelligent door lock is completed completely.
By adopting the technical scheme, the data in the binding process of the intelligent door lock can be encrypted, and the technical problem of low data security caused by the fact that Bluetooth connection is established between the client and the intelligent door lock in the prior art and the binding process can be executed according to verification information is solved.
It should be noted that, the execution main body of the above steps is an intelligent door lock binding server, in order to better understand the technical solution of the present invention, the present application further provides a binding method of an intelligent door lock, applied to an intelligent door lock, specifically, as shown in fig. 4, the process includes the following steps:
step S402, the intelligent door lock receives verification information sent by the client, wherein the verification information is used for verifying the received input information;
step S404, the intelligent door lock feeds back the verification result and sends the verification result to the server through the client to instruct the server to send authentication information dynamically generated according to the verification result to the client;
Step S406, the intelligent door lock feeds back a confirmation message corresponding to the authentication information to instruct the client to send the authentication information to the server;
step S408, the intelligent door lock starts an account binding process.
In this embodiment, when it is confirmed that the smart door lock is in an unbound state, the smart door lock receives a verification code (e.g., a verification code with a 6-digit number) randomly generated by the client and an APP ID generated by the client itself. And the user inputs a verification code of 6 digits on a numeric keypad of the intelligent door lock according to the prompt of the client, and after the input is successful, the intelligent door lock can verify the verification code input by the user.
If the verification code input by the user is verified successfully by the intelligent door lock, a message (verification result) of the verification success is sent to the client so as to instruct the client to send the message (verification result) of the verification success to the service. And then the intelligent door lock can receive the authentication information dynamically generated by the server according to the verification result, and replies a confirmation message of 'received authentication information' to the client so as to instruct the client to send the authentication information to the server, and further, the binding flow of the intelligent door lock is started.
It should be noted that, the user inputs the verification code on the numeric keypad according to the prompt of the client, and the method further includes: if the user inputs an error or does not input the verification code within a specified time (such as 30 seconds), the verification fails, the intelligent door lock actively reports a message of the verification failure to the client, and the intelligent door lock exits the binding mode.
By adopting the technical scheme, the intelligent door lock receives the verification code randomly generated by the client and verifies the verification code. Under the condition that the verification is successful, the intelligent door lock can receive authentication information dynamically generated by the server according to the verification result and reply a confirmation message to the server, so that the binding flow of the intelligent door lock is started. According to the technical scheme, verification information and confirmation information are dynamically obtained in the data transmission process between the intelligent door lock and the client side and between the intelligent door lock and the server, and data in the intelligent door lock binding process are encrypted, so that the data are irregular and circulated. The intelligent door lock binding method and device avoid the attack on the intelligent door lock binding process by using the simulation data, improve the reliability of the intelligent door lock binding process and improve the safety of data transmission.
Optionally, the feeding back the verification result and sending the verification result to the server through the client to instruct the server to send authentication information dynamically generated according to the verification result to the client, including:
the intelligent door lock receives a Bluetooth key sent by a client;
the intelligent door lock sends a confirmation message of the Bluetooth key to the client so as to instruct the client to send the confirmation message of the Bluetooth key to the server;
After the server receives the confirmation message of the Bluetooth key sent by the client, the intelligent door lock receives the service key sent by the client;
the intelligent door lock sends a confirmation message of the service key to the client so as to instruct the client to send the confirmation message of the service key to the server;
after the server receives the confirmation message of the service key sent by the client, the intelligent door lock receives the authentication code sent by the client;
the authentication information comprises a Bluetooth key, a service key and an authentication code.
In this embodiment, the intelligent door lock sequentially receives the bluetooth key, the service key and the authentication code sent by the server. It should be noted that, the bluetooth key a received for the first time is not encrypted; the second received service key B is the key information after the client encrypts the service key B by using the bluetooth key; the third received authentication code C is key information obtained by encrypting the authentication code C by the client using the bluetooth key and/or the encrypted service key.
By adopting the technical scheme, in the intelligent door lock binding process, key data in the binding process are encrypted twice by utilizing the Bluetooth key, the service key and the authentication code. The safety of the data interaction process between the intelligent door lock and the client side and between the intelligent door lock and the server is higher, and the reliability of data transmission is further improved.
As an optional implementation manner, the receiving service key sent by the client includes:
the intelligent door lock receives a first encryption result sent by the client, wherein the first encryption result is obtained by encrypting a service key by the client by using a Bluetooth key;
the intelligent door lock decrypts the first encryption result by using the Bluetooth key to obtain the service key.
It should be noted that, after the smart door receives the first encryption result sent by the client, the service key B included in the first encryption result B is not directly identified, but the service key B issued by the server can be obtained only by performing decryption processing using the first encryption result B of the bluetooth key stored in the smart door in advance.
Optionally, the authentication code sent by the receiving client includes at least one of the following:
the intelligent door lock receives a second encryption result sent by the client, wherein the second encryption result is obtained by encrypting the authentication code by the client through a Bluetooth key;
the intelligent door lock decrypts the second encryption result by using the Bluetooth key to obtain an authentication code;
the intelligent door lock receives a third encryption result sent by the client, wherein the third encryption result is obtained by encrypting the authentication code by the client by using the service key;
And the intelligent door lock decrypts the third encryption result by utilizing the service key to obtain the authentication code.
It should be noted that, in this embodiment, the authentication code C sent by the client is received by the intelligent door lock and is encrypted, and the authentication code C can be identified by decrypting the authentication code C by the intelligent door lock. The process of decrypting the encrypted authentication code C by the intelligent door lock at least comprises the following two cases: one is to directly utilize the bluetooth key a stored in the intelligent door lock to encrypt the authentication code C, so as to obtain the authentication code C; the other is that firstly, the service key B stored in the intelligent door lock is used for carrying out one-time decryption processing on the authentication code C, and then the Bluetooth key A stored in the intelligent door lock is used for carrying out a second-time decryption processing, so that the authentication code C issued by the server can be obtained.
By adopting the technical scheme, in the practical application process, the intelligent door lock can select a corresponding decryption processing mode according to encryption processing of the authentication code by the client, and the two modes all require the intelligent door lock to decrypt the encrypted authentication code, so that the authentication code has higher privacy in the transmission process, and further the security of data transmission is improved.
As an alternative embodiment, the above-mentioned process of starting account binding includes:
the intelligent door lock receives binding information sent by a client, wherein the binding information carries a user account matched with the client;
based on the user account, the intelligent door lock starts an account binding process.
It should be noted that, after the intelligent door lock receives the binding information sent by the client and sends the confirmation information to the server through the client, the user account matched with the client and carried in the binding information can be used for binding with the intelligent door lock.
In order to better understand the above embodiments, the present application further provides an overall flowchart of a binding method of an intelligent door, specifically, as shown in fig. 5:
after the APP and the door lock are connected through Bluetooth, the APP end initiates a binding application to the Server end, requests to randomly generate a verification code (6-bit number) successfully, sends the verification code and APP ID information of the verification code to the intelligent door lock, and prompts a user to input the verification code in the intelligent door lock.
It should be noted that, the intelligent door will initiatively lighten the digital keyboard after receiving the verification code issued by the APP, the user inputs the verification code in the intelligent door according to the prompt of the APP, the device will check whether the verification code input by the user is correct after inputting, if the user inputs the verification code incorrectly or the verification is failed when the verification code is not input within 30 seconds. The device will actively report the verification failure message to the APP while the device exits the binding mode.
Through steps S522-S528, after receiving the message that the verification code verification is successful, the Server end verifies the information, including the information carried by the APP when the APP initiates the binding request, and replies the verification result to the intelligent door lock. The Server returns the following information to the intelligent door lock and the APP: service key, bluetooth key, authentication code.
The intelligent door replies an ACK message after receiving an authentication result of the Server, the APP sends the message to the Server by calling HTTPS, the Server gives a Bluetooth key in a response of an HTTPS interface, and the APP sends the Bluetooth key to the intelligent door after receiving the response and simultaneously stores the key in an APP memory for subsequent communication;
after the intelligent door receives the Bluetooth key, the intelligent door can reply to the ACK message. The APP sends the message to the Server by calling HTTPS, and the Server gives service key information among response of HTTPS interface. (since the intelligent door lock has the Bluetooth key, the message is an encrypted message), and the APP sends the service key to the intelligent door lock after receiving the response;
after receiving the service key, the intelligent door lock replies an ACK message, the APP calls the Server HTTPS interface to transmit the message to the Server, the Server gives the appId and the authentication code message (the message is a key-encrypted message because the intelligent door lock already has the bluetooth key and the service key) in the response of the HTTPS interface, and the APP sends the message to the intelligent door lock after receiving the response and simultaneously saves the authentication code in the memory, thereby facilitating the subsequent communication, specifically, as shown in steps S530-S552.
In steps S554-S570, after receiving the confirmation message sent by the intelligent door lock to the APP and receiving the authentication code, the APP gives the confirmation message to the Server, and the Server gives the APP a message (tells the APP that the binding condition has been met), that is, the Server issues a binding-enabled instruction, and the APP initiates an account binding flow (carries MAC address information and initiates an HTTPS request to the Server).
By adopting the technical scheme, after the client initiates the binding request, the Server applies for the Bluetooth key and the service key, the Bluetooth key and the service key are encrypted and then the binding data is transmitted, and the Bluetooth key and the service key are changed when the binding request is initiated in sequence, so that the dynamically acquired Bluetooth key and service key are irregular and circulated, and the security of data transmission is provided.
From the description of the above embodiments, it will be clear to a person skilled in the art that the method according to the above embodiments may be implemented by means of software plus the necessary general hardware platform, but of course also by means of hardware, but in many cases the former is a preferred embodiment. Based on such understanding, the technical solution of the present invention may be embodied essentially or in a part contributing to the prior art in the form of a software product stored in a storage medium (e.g. ROM/RAM, magnetic disk, optical disk) comprising several instructions for causing a terminal device (which may be a mobile phone, a computer, a server, or a network device, etc.) to perform the method of the various embodiments of the present invention.
The embodiment also provides a binding device for an intelligent door lock, which is used for implementing the above embodiment and the preferred embodiment, and is not described again. As used below, the term "module" may be a combination of software and/or hardware that implements a predetermined function. While the devices described in the following embodiments are preferably implemented in software, implementations in hardware, or a combination of software and hardware, are also possible and contemplated.
Fig. 6 is a block diagram of a binding apparatus of an intelligent door lock according to an embodiment of the present invention, the apparatus including:
a first sending unit 602, configured to send a binding request to a server by using a client of an equipment management application, where the binding request carries an application identifier of the equipment management application and a wireless communication address of an intelligent door lock to be bound;
the second sending unit 604 is configured to indicate, in the unbound state of the intelligent door lock, by using the device binding state information fed back by the server, that the client sends verification information to the intelligent door lock, where the verification information is used to verify input information received by the intelligent door lock;
a third sending unit 606, configured to send, by the client, a verification result fed back by the intelligent door lock to the server;
The first receiving unit 608 is configured to receive authentication information dynamically generated by the server according to the verification result, where the authentication information carries an authentication key set for performing binding authentication on the intelligent door lock according to the binding request;
a fourth sending unit 610, configured to send, by the client, a confirmation message corresponding to the authentication information and fed back by the intelligent door lock to the server;
the second receiving unit 612 is configured to receive a binding instruction sent by the server, and trigger an account binding process of the intelligent door lock in response to the binding instruction.
Optionally, the first receiving unit 608 is further configured to, when the server verifies the application identifier and the communication address carried in the binding request successfully, receive the bluetooth key sent by the server, and send the bluetooth key to the intelligent door lock; after the client sends the Bluetooth key confirmation message fed back by the intelligent door lock to the server, the client receives the service key sent by the server and sends the service key to the intelligent door lock; after the client sends the service key confirmation message fed back by the intelligent door lock to the server, the client receives the authentication code sent by the server and sends the authentication code to the intelligent door lock; the authentication information comprises a Bluetooth key, a service key and an authentication code.
Optionally, the first receiving unit 608 is further configured to encrypt the service key by using the bluetooth key to obtain a first encryption result; and the client sends the first encryption result to the intelligent door lock so that the intelligent door lock decrypts the first encryption result by using the Bluetooth key to obtain the service key.
Optionally, the first receiving unit 608 is further configured to encrypt the authentication code by using the bluetooth key to obtain a second encryption result; the client sends the second encryption result to the intelligent door lock so that the intelligent door lock decrypts the second encryption result by using the Bluetooth key to obtain an authentication code; the client encrypts the authentication code by using the service key to obtain a third encryption result; and the client sends the third encryption result to the intelligent door lock so that the intelligent door lock decrypts the third encryption result by using the service key to obtain the authentication code.
Optionally, the third sending unit 606 is further configured to send the verification result to the server by calling the hypertext transfer link by the client, so that the server sends the authentication information in an interface corresponding to the hypertext transfer link.
Optionally, the second receiving unit 612 is further configured to send binding information to the server, where the binding information carries a user account matched with the client; and the client receives a binding result returned by the server, wherein the binding result is used for indicating that the user account and the intelligent door lock are bound.
Optionally, before the first sending unit 602, the binding device of the smart door lock is further configured to, when the smart door lock is in a bluetooth broadcast state, enable the client to display a bluetooth identifier list that is currently allowed to be linked; responding to a selection operation executed in the client, and determining a door lock Bluetooth identifier matched with the selected intelligent door lock; the client generates a binding request by using an application identifier of the device management application and a wireless communication address of the intelligent door lock matched with the Bluetooth identifier of the door lock, wherein the wireless communication address comprises a Bluetooth communication physical address.
As an alternative embodiment, the present application further provides another smart door lock binding apparatus, applied to a client of a device management application, specifically as shown in fig. 7, where the apparatus includes:
a third receiving unit 702, configured to receive, by a server, a binding request sent by a client of a device management application, where the binding request carries an application identifier of the device management application and a wireless communication address of an intelligent door lock to be bound;
the first processing unit 704 is configured to respond to the binding request, where the server sends device binding status information to the client to instruct the client to send verification information to the intelligent door lock when it is determined that the device binding status information indicates that the intelligent door lock is not bound, where the verification information is used to verify input information received at the intelligent door lock;
A fourth receiving unit 706, configured to receive, by the server, a verification result of the intelligent door lock feedback sent by the client;
the second processing unit 708 is configured to dynamically generate authentication information based on the verification result, and send the authentication information to the client, where the authentication information carries an authentication key set for performing binding authentication on the intelligent door lock according to the binding request;
a fifth receiving unit 710, configured to receive, by the server, a confirmation message corresponding to the authentication information, where the confirmation message is sent by the client and is fed back by the intelligent door lock;
and a fifth sending unit 712, configured to send, by the server, a binding instruction value client, so as to instruct the client to trigger an account binding process of the intelligent door lock in response to the binding instruction.
Optionally, the second processing unit 708 is further configured to send a bluetooth key to the client to instruct the client to send the bluetooth key to the intelligent door lock if the verification of the application identifier and the communication address carried in the binding request is successful; after receiving the Bluetooth key confirmation message fed back by the intelligent door lock, sending a service key to the client so as to instruct the client to send the service key to the intelligent door lock; and after receiving the service key confirmation message fed back by the intelligent door lock, sending an authentication code to the client and sending the authentication code to the intelligent door lock.
Optionally, the second processing unit 708 is further configured to receive a verification result sent by the client calling the hypertext transfer connection, and send authentication information in an interface corresponding to the hypertext transfer connection based on the verification result.
Optionally, the fifth sending unit 712 is further configured to receive binding information sent by the client, where the binding information carries a user account matched with the client; and returning a binding result to the client, wherein the binding result is used for indicating that the user account and the intelligent door lock are bound.
As an optional implementation manner, the application also provides a binding device of the intelligent door lock, which is applied to the client of the device management application. Specifically, as shown in fig. 8, the apparatus includes:
a sixth receiving unit 802, configured to receive verification information sent by the client, where the verification information is used to verify the received input information;
the first feedback unit 804 is configured to feed back a verification result from the intelligent door lock, and send the verification result to the server through the client, so as to instruct the server to send authentication information dynamically generated according to the verification result to the client;
a second feedback unit 806, configured to feed back a confirmation message corresponding to the authentication information by the intelligent door lock, so as to instruct the client to send the authentication information to the server;
And the starting unit 808 is used for starting the account binding process by the intelligent door lock.
Optionally, the first feedback unit 804 is further configured to receive a bluetooth key sent by the client; transmitting a confirmation message of the Bluetooth key to the client to instruct the client to transmit the confirmation message of the Bluetooth key to the server; after receiving a confirmation message of a Bluetooth key sent by a client, a server receives a service key sent by the client; sending a confirmation message of the service key to the client to instruct the client to send the confirmation message of the service key to the server; after receiving the confirmation message of the service key sent by the client, the server receives an authentication code sent by the client; the authentication information comprises a Bluetooth key, a service key and an authentication code.
Optionally, the first feedback unit 804 is further configured to receive a first encryption result sent by the client, where the first encryption result is obtained by encrypting the service key by the client using the bluetooth key; and decrypting the first encryption result by using the Bluetooth key to obtain a service key.
Optionally, the first feedback unit 804 is further configured to receive a second encryption result sent by the client, where the second encryption result is obtained by encrypting the authentication code by the client using the bluetooth key; decrypting the second encryption result by using the Bluetooth key to obtain an authentication code; receiving a third encryption result sent by the client, wherein the third encryption result is obtained by encrypting the authentication code by the client by using the service key; and decrypting the third encryption result by using the service key to obtain an authentication code.
Optionally, the starting unit 808 is further configured to receive binding information sent by the client, where the binding information carries a user account matched with the client; based on the user account, an account binding process is initiated.
The present invention also provides a computer readable storage medium having a computer program stored therein, wherein the computer program is arranged to perform the steps of any of the method embodiments described above when run.
Alternatively, in the present embodiment, the above-described storage medium may be configured to store a computer program for performing the steps of:
s1, a client of an equipment management application sends a binding request to a server, wherein the binding request carries an application identifier of the equipment management application and a wireless communication address of an intelligent door lock to be bound;
s2, the equipment binding state information fed back by the server indicates that the intelligent door lock is in an unbound state, and the client sends verification information to the intelligent door lock, wherein the verification information is used for verifying input information received by the intelligent door lock;
s3, the client sends the verification result fed back by the intelligent door lock to the server;
S4, the client receives authentication information dynamically generated by the server according to the verification result, wherein the authentication information carries an authentication key group for carrying out binding authentication on the intelligent door lock according to the binding request;
s5, the client sends a confirmation message corresponding to the authentication information and fed back by the intelligent door lock to the server;
s6, the client receives the binding instruction sent by the server and triggers an account binding process of the intelligent door lock in response to the binding instruction.
In one exemplary embodiment, the computer readable storage medium may include, but is not limited to: a usb disk, a Read-Only Memory (ROM), a random access Memory (Random Access Memory, RAM), a removable hard disk, a magnetic disk, or an optical disk, or other various media capable of storing a computer program.
Specific examples in this embodiment may refer to the examples described in the foregoing embodiments and the exemplary implementation, and this embodiment is not described herein.
An embodiment of the invention also provides an electronic device comprising a memory having stored therein a computer program and a processor arranged to run the computer program to perform the steps of any of the method embodiments described above.
Alternatively, in the present embodiment, the above-described processor may be configured to execute the following steps by a computer program:
s1, a client of an equipment management application sends a binding request to a server, wherein the binding request carries an application identifier of the equipment management application and a wireless communication address of an intelligent door lock to be bound;
s2, the equipment binding state information fed back by the server indicates that the intelligent door lock is in an unbound state, and the client sends verification information to the intelligent door lock, wherein the verification information is used for verifying input information received by the intelligent door lock;
s3, the client sends the verification result fed back by the intelligent door lock to the server;
s4, the client receives authentication information dynamically generated by the server according to the verification result, wherein the authentication information carries an authentication key group for carrying out binding authentication on the intelligent door lock according to the binding request;
s5, the client sends a confirmation message corresponding to the authentication information and fed back by the intelligent door lock to the server;
s6, the client receives the binding instruction sent by the server and triggers an account binding process of the intelligent door lock in response to the binding instruction.
In an exemplary embodiment, the electronic apparatus may further include a transmission device connected to the processor, and an input/output device connected to the processor.
Specific examples in this embodiment may refer to the examples described in the foregoing embodiments and the exemplary implementation, and this embodiment is not described herein.
It will be appreciated by those skilled in the art that the modules or steps of the invention described above may be implemented in a general purpose computing device, they may be concentrated on a single computing device, or distributed across a network of computing devices, they may be implemented in program code executable by computing devices, so that they may be stored in a storage device for execution by computing devices, and in some cases, the steps shown or described may be performed in a different order than that shown or described herein, or they may be separately fabricated into individual integrated circuit modules, or multiple modules or steps of them may be fabricated into a single integrated circuit module. Thus, the present invention is not limited to any specific combination of hardware and software.
The above description is only of the preferred embodiments of the present invention and is not intended to limit the present invention, but various modifications and variations can be made to the present invention by those skilled in the art. Any modification, equivalent replacement, improvement, etc. made within the principle of the present invention should be included in the protection scope of the present invention.

Claims (14)

1. The binding method of the intelligent door lock is characterized by comprising the following steps of:
a client of an equipment management application sends a binding request to a server, wherein the binding request carries an application identifier of the equipment management application and a wireless communication address of an intelligent door lock to be bound;
the device binding state information fed back by the server indicates that the intelligent door lock is in an unbound state, and the client sends verification information to the intelligent door lock, wherein the verification information is used for verifying input information received by the intelligent door lock, and the input information is input by a target object on a digital keyboard of the intelligent door lock;
the client sends the verification result fed back by the intelligent door lock to the server;
the client receives authentication information dynamically generated by the server according to the verification result, wherein the authentication information carries an authentication key group for carrying out binding authentication on the intelligent door lock according to the binding request;
the client sends a confirmation message corresponding to the authentication information and fed back by the intelligent door lock to the server;
the client receives the binding instruction sent by the server, and responds to the binding instruction to trigger the account binding process of the intelligent door lock,
The client receiving authentication information dynamically generated by the server according to the verification result comprises:
under the condition that the server checks the application identifier and the communication address carried in the binding request successfully, the client receives a Bluetooth key sent by the server and sends the Bluetooth key to the intelligent door lock;
after the client sends the Bluetooth key confirmation message fed back by the intelligent door lock to the server, the client receives a service key sent by the server and sends the service key to the intelligent door lock;
after the client sends the service key confirmation message fed back by the intelligent door lock to the server, the client receives an authentication code sent by the server and sends the authentication code to the intelligent door lock;
wherein, the authentication information comprises the Bluetooth key, the service key and the authentication code;
wherein the client sending the service key to the intelligent door lock comprises:
the client encrypts the service key by using the Bluetooth key to obtain a first encryption result;
The client sends the first encryption result to the intelligent door lock so that the intelligent door lock decrypts the first encryption result by using the Bluetooth key to obtain the service key;
wherein the client sends the authentication code to the intelligent door lock comprises one of the following steps:
the client encrypts the authentication code by using the Bluetooth key to obtain a second encryption result; the client sends the second encryption result to the intelligent door lock so that the intelligent door lock decrypts the second encryption result by using the Bluetooth key to obtain the authentication code;
the client encrypts the authentication code by using the service key to obtain a third encryption result; and the client sends the third encryption result to the intelligent door lock so that the intelligent door lock decrypts the third encryption result by using the service key to obtain the authentication code.
2. The method of claim 1, wherein the client sending the verification result fed back by the smart door lock to the server comprises:
and the client calls a hypertext transfer link to send the verification result to the server so that the server sends the authentication information in an interface corresponding to the hypertext transfer link.
3. The method of claim 1, wherein the triggering, by the client, an account binding process of the smart door lock in response to the binding instruction comprises:
the client sends binding information to the client, wherein the binding information carries a user account matched with the client;
and the client receives a binding result returned by the server, wherein the binding result is used for indicating that the user account and the intelligent door lock are bound.
4. The method of claim 1, further comprising, prior to the client of the device management application sending the binding request to the server:
under the condition that the intelligent door lock is in a Bluetooth broadcasting state, the client side displays a Bluetooth identification list which is allowed to be linked currently;
responding to a selection operation executed in the client, and determining a door lock Bluetooth identifier matched with the intelligent door lock;
the client generates the binding request by using an application identifier of the device management application and a wireless communication address of the intelligent door lock matched with the door lock Bluetooth identifier, wherein the wireless communication address comprises a Bluetooth communication physical address.
5. The binding method of the intelligent door lock is characterized by comprising the following steps of:
the method comprises the steps that a server receives a binding request sent by a client of an equipment management application, wherein the binding request carries an application identifier of the equipment management application and a wireless communication address of an intelligent door lock to be bound;
responding to the binding request, the server sends equipment binding state information to the client to indicate the client to send verification information to the intelligent door lock under the condition that the equipment binding state information indicates that the intelligent door lock is not bound, wherein the verification information is used for verifying input information received by the intelligent door lock, and the input information is input by a target object on a digital keyboard of the intelligent door lock;
the server receives a verification result fed back by the intelligent door lock, which is sent by the client;
based on the verification result, the server dynamically generates authentication information and sends the authentication information to the client, wherein the authentication information carries an authentication key group for carrying out binding authentication on the intelligent door lock according to the binding request;
The server receives a confirmation message which is sent by the client and corresponds to the authentication information, wherein the confirmation message is fed back by the intelligent door lock and corresponds to the authentication information;
the server sends a binding instruction to the client to instruct the client to respond to the binding instruction, trigger an account binding process of the intelligent door lock,
wherein the dynamically generating authentication information based on the verification result and sending the authentication information to the client comprises:
under the condition that the verification of the application identifier and the communication address carried in the binding request is successful, the server sends a Bluetooth key to the client so as to instruct the client to send the Bluetooth key to the intelligent door lock;
after receiving a Bluetooth key confirmation message fed back by the intelligent door lock, the server sends a service key to the client so as to instruct the client to send the service key to the intelligent door lock;
after receiving the service key confirmation message fed back by the intelligent door lock, the server sends an authentication code to the client and sends the authentication code to the intelligent door lock;
wherein the server instructing the client to send the service key to the intelligent door lock includes:
The server instructs the client to encrypt the service key by using the Bluetooth key to obtain a first encryption result;
the server instructs the client to send the first encryption result to the intelligent door lock so that the intelligent door lock decrypts the first encryption result by using the Bluetooth key to obtain the service key;
wherein the server sending an authentication code to the client and sending the authentication code to the intelligent door lock comprises one of:
the server instructs the client to encrypt the authentication code by using the Bluetooth key to obtain a second encryption result; the server instructs the client to send the second encryption result to the intelligent door lock so that the intelligent door lock decrypts the second encryption result by using the Bluetooth key to obtain the authentication code;
the server instructs the client to encrypt the authentication code by using the service key to obtain a third encryption result; and the server instructs the client to send the third encryption result to the intelligent door lock so that the intelligent door lock decrypts the third encryption result by using the service key to obtain the authentication code.
6. The method of claim 5, wherein the receiving the verification result of the smart door lock feedback sent by the client comprises:
and the server receives a verification result sent by the client calling the hypertext transfer connection and sends the authentication information in an interface corresponding to the hypertext transfer connection based on the verification result.
7. The method of claim 5, wherein the sending a binding instruction to the client to instruct the client to trigger an account binding process for the smart door lock in response to the binding instruction comprises:
the server receives binding information sent by the client, wherein the binding information carries a user account matched with the client;
and the server returns a binding result to the client, wherein the binding result is used for indicating that the user account and the intelligent door lock are bound.
8. The binding method of the intelligent door lock is characterized by comprising the following steps of:
the intelligent door lock receives verification information sent by a client, wherein the verification information is used for verifying received input information, and the input information is input by a target object on a digital keyboard of the intelligent door lock;
The intelligent door lock feeds back a verification result and sends the verification result to a server through the client so as to instruct the server to send authentication information dynamically generated according to the verification result to the client;
the intelligent door lock feeds back a confirmation message corresponding to the authentication information so as to instruct the client to send the authentication information to the server;
the intelligent door lock initiates an account binding process,
the feedback of the verification result and the sending of the verification result to a server through the client side are used for indicating the server to send authentication information dynamically generated according to the verification result to the client side, and the method comprises the following steps:
the intelligent door lock receives a Bluetooth key sent by the client;
the intelligent door lock sends a confirmation message of the Bluetooth key to the client so as to instruct the client to send the confirmation message of the Bluetooth key to the server;
after the server receives the confirmation message of the Bluetooth key sent by the client, the intelligent door lock receives the service key sent by the client;
the intelligent door lock sends a confirmation message of the service key to the client so as to instruct the client to send the confirmation message of the service key to the server;
After the server receives the confirmation message of the service key sent by the client, the intelligent door lock receives an authentication code sent by the client;
wherein, the authentication information comprises the Bluetooth key, the service key and the authentication code;
the receiving the service key sent by the client includes:
the intelligent door lock receives a first encryption result sent by the client, wherein the first encryption result is obtained by encrypting the service key by the client through the Bluetooth key;
the intelligent door lock decrypts the first encryption result by utilizing the Bluetooth key to obtain the service key;
wherein, the receiving the authentication code sent by the client comprises one of the following steps:
the intelligent door lock receives a second encryption result sent by the client, wherein the second encryption result is obtained by encrypting the authentication code by the client through the Bluetooth key;
the intelligent door lock decrypts the second encryption result by utilizing the Bluetooth key to obtain the authentication code;
the intelligent door lock receives a third encryption result sent by the client, wherein the third encryption result is obtained by encrypting the authentication code by the client by using the service key;
And the intelligent door lock decrypts the third encryption result by utilizing the service key to obtain the authentication code.
9. The method of claim 8, wherein the initiating an account binding process comprises:
the intelligent door lock receives binding information sent by the client, wherein the binding information carries a user account matched with the client;
based on the user account, the intelligent door lock starts the account binding process.
10. The binding device of intelligent door lock is characterized in that the binding device is applied to a client of a device management application, and comprises:
the device comprises a first sending unit, a second sending unit and a binding unit, wherein the first sending unit is used for sending a binding request to a server, and the binding request carries an application identifier of the device management application and a wireless communication address of an intelligent door lock to be bound;
the second sending unit is used for indicating that the intelligent door lock is in an unbound state by the equipment binding state information fed back by the server and sending verification information to the intelligent door lock, wherein the verification information is used for verifying input information received by the intelligent door lock, and the input information is input by a target object on a digital keyboard of the intelligent door lock;
The third sending unit is used for sending the verification result fed back by the intelligent door lock to the server;
the first receiving unit is used for receiving authentication information dynamically generated by the server according to the verification result, wherein the authentication information carries an authentication key group for carrying out binding authentication on the intelligent door lock according to the binding request;
a fourth sending unit, configured to send a confirmation message corresponding to the authentication information, which is fed back by the intelligent door lock, to the server;
a second receiving unit, configured to receive a binding instruction sent by the server, and trigger an account binding process of the intelligent door lock in response to the binding instruction,
the first receiving unit is further used for receiving a Bluetooth key sent by the server and sending the Bluetooth key to the intelligent door lock under the condition that the server successfully verifies the application identifier and the communication address carried in the binding request; after the client sends the Bluetooth key confirmation message fed back by the intelligent door lock to the server, the client receives the service key sent by the server and sends the service key to the intelligent door lock; after the client sends the service key confirmation message fed back by the intelligent door lock to the server, the client receives the authentication code sent by the server and sends the authentication code to the intelligent door lock; the authentication information comprises a Bluetooth key, a service key and an authentication code;
The first receiving unit is further configured to encrypt the service key by using the bluetooth key by using the client to obtain a first encryption result;
the client sends the first encryption result to the intelligent door lock so that the intelligent door lock decrypts the first encryption result by using the Bluetooth key to obtain the service key;
the first receiving unit is further configured to encrypt the authentication code by using the bluetooth key by using the client to obtain a second encryption result; the client sends the second encryption result to the intelligent door lock so that the intelligent door lock decrypts the second encryption result by using the Bluetooth key to obtain the authentication code;
the client encrypts the authentication code by using the service key to obtain a third encryption result; and the client sends the third encryption result to the intelligent door lock so that the intelligent door lock decrypts the third encryption result by using the service key to obtain the authentication code.
11. The binding device of intelligent door lock is characterized in that the binding device is applied to a client of a device management application, and comprises:
The third receiving unit is used for receiving a binding request sent by a client of the equipment management application by the server, wherein the binding request carries an application identifier of the equipment management application and a wireless communication address of an intelligent door lock to be bound;
the first processing unit is used for responding to the binding request, the server sends equipment binding state information to the client so as to instruct the client to send verification information to the intelligent door lock under the condition that the equipment binding state information indicates that the intelligent door lock is not bound, wherein the verification information is used for verifying input information received by the intelligent door lock, and the input information is input by a target object on a digital keyboard of the intelligent door lock;
a fourth receiving unit, configured to receive, by using a server, a verification result fed back by the intelligent door lock sent by the client;
the second processing unit is used for dynamically generating authentication information based on the verification result, and sending the authentication information to the client, wherein the authentication information carries an authentication key group for carrying out binding authentication on the intelligent door lock according to the binding request;
A fifth receiving unit, configured to receive, by using a server, a confirmation message corresponding to the authentication information, where the confirmation message is sent by the client and is fed back by the intelligent door lock;
a fifth sending unit, configured to send a binding instruction value to the client to instruct the client to trigger an account binding process of the intelligent door lock in response to the binding instruction, where the second processing unit is further configured to send a bluetooth key to the client to instruct the client to send the bluetooth key to the intelligent door lock when verification of an application identifier and a communication address carried in a binding request is successful; after receiving the Bluetooth key confirmation message fed back by the intelligent door lock, sending a service key to the client so as to instruct the client to send the service key to the intelligent door lock; after receiving the service key confirmation message fed back by the intelligent door lock, sending an authentication code to the client and sending the authentication code to the intelligent door lock;
the second processing unit is further configured to instruct the server to instruct the client to encrypt the service key by using the bluetooth key, so as to obtain a first encryption result;
the server instructs the client to send the first encryption result to the intelligent door lock so that the intelligent door lock decrypts the first encryption result by using the Bluetooth key to obtain the service key;
The second processing unit is further configured to instruct the client to encrypt the authentication code by using the bluetooth key, so as to obtain a second encryption result; the server instructs the client to send the second encryption result to the intelligent door lock so that the intelligent door lock decrypts the second encryption result by using the Bluetooth key to obtain the authentication code;
the server instructs the client to encrypt the authentication code by using the service key to obtain a third encryption result; and the server instructs the client to send the third encryption result to the intelligent door lock so that the intelligent door lock decrypts the third encryption result by using the service key to obtain the authentication code.
12. The binding device of intelligent door lock is characterized in that the binding device is applied to a client of a device management application, and comprises:
the sixth receiving unit is used for receiving verification information sent by the client side through the intelligent door lock, wherein the verification information is used for verifying received input information, and the input information is input by a target object on a digital keyboard of the intelligent door lock;
The first feedback unit is used for feeding back a verification result through the intelligent door lock, and sending the verification result to the server through the client so as to instruct the server to send authentication information dynamically generated according to the verification result to the client;
the second feedback unit is used for feeding back a confirmation message corresponding to the authentication information by the intelligent door lock so as to instruct the client to send the authentication information to the server;
a starting unit for starting the account binding process of the intelligent door lock,
the first feedback unit is further used for receiving a Bluetooth key sent by the client; transmitting a confirmation message of the Bluetooth key to the client to instruct the client to transmit the confirmation message of the Bluetooth key to the server; after receiving a confirmation message of a Bluetooth key sent by a client, a server receives a service key sent by the client; sending a confirmation message of the service key to the client to instruct the client to send the confirmation message of the service key to the server; after receiving the confirmation message of the service key sent by the client, the server receives an authentication code sent by the client; the authentication information comprises a Bluetooth key, a service key and an authentication code;
The first feedback unit is further configured to receive a first encryption result sent by the client, where the first encryption result is obtained by encrypting the service key by the client using the bluetooth key;
the intelligent door lock decrypts the first encryption result by utilizing the Bluetooth key to obtain the service key;
the first feedback unit is further configured to receive a second encryption result sent by the client, where the second encryption result is obtained by encrypting the authentication code by the client using the bluetooth key;
the intelligent door lock decrypts the second encryption result by utilizing the Bluetooth key to obtain the authentication code;
the intelligent door lock receives a third encryption result sent by the client, wherein the third encryption result is obtained by encrypting the authentication code by the client by using the service key;
and the intelligent door lock decrypts the third encryption result by utilizing the service key to obtain the authentication code.
13. A computer readable storage medium, characterized in that the computer readable storage medium comprises a stored program, wherein the program when run performs the method of any one of claims 1 to 9.
14. An electronic device comprising a memory and a processor, characterized in that the memory has stored therein a computer program, the processor being arranged to execute the method according to any of the claims 1 to 9 by means of the computer program.
CN202111547683.9A 2021-12-16 2021-12-16 Binding method and device of intelligent door lock, storage medium and electronic device Active CN114189863B (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN202111547683.9A CN114189863B (en) 2021-12-16 2021-12-16 Binding method and device of intelligent door lock, storage medium and electronic device
PCT/CN2022/121037 WO2023109240A1 (en) 2021-12-16 2022-09-23 Smart door lock binding method and apparatus, storage medium and electronic device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111547683.9A CN114189863B (en) 2021-12-16 2021-12-16 Binding method and device of intelligent door lock, storage medium and electronic device

Publications (2)

Publication Number Publication Date
CN114189863A CN114189863A (en) 2022-03-15
CN114189863B true CN114189863B (en) 2024-03-22

Family

ID=80544236

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111547683.9A Active CN114189863B (en) 2021-12-16 2021-12-16 Binding method and device of intelligent door lock, storage medium and electronic device

Country Status (2)

Country Link
CN (1) CN114189863B (en)
WO (1) WO2023109240A1 (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114189863B (en) * 2021-12-16 2024-03-22 青岛海尔科技有限公司 Binding method and device of intelligent door lock, storage medium and electronic device
CN115376229B (en) * 2022-08-26 2023-11-07 广东好太太智能家居有限公司 Intelligent lock binding method and device, storage medium and computer equipment

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110930552A (en) * 2019-11-27 2020-03-27 广东科徕尼智能科技有限公司 Unlocking method, equipment and storage medium based on two-dimensional code
CN111105528A (en) * 2020-02-20 2020-05-05 南京艾弗雷德网络技术有限公司 Intelligent door lock system based on Bluetooth broadcast
CN112053477A (en) * 2020-09-15 2020-12-08 公牛集团股份有限公司 Control system, method and device of intelligent door lock and readable storage medium
CN112330855A (en) * 2020-10-15 2021-02-05 成都市以太节点科技有限公司 Electronic lock safety management method, equipment and system
CN113538739A (en) * 2021-06-09 2021-10-22 杭州华橙软件技术有限公司 Pairing method of intelligent lock, electronic device and storage medium

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20150339662A1 (en) * 2014-05-23 2015-11-26 LoopPay Inc. Systems and methods for linking devices to user accounts
WO2021023164A1 (en) * 2019-08-02 2021-02-11 云丁网络技术(北京)有限公司 Intelligent lock control method and system
CN114189863B (en) * 2021-12-16 2024-03-22 青岛海尔科技有限公司 Binding method and device of intelligent door lock, storage medium and electronic device

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110930552A (en) * 2019-11-27 2020-03-27 广东科徕尼智能科技有限公司 Unlocking method, equipment and storage medium based on two-dimensional code
CN111105528A (en) * 2020-02-20 2020-05-05 南京艾弗雷德网络技术有限公司 Intelligent door lock system based on Bluetooth broadcast
CN112053477A (en) * 2020-09-15 2020-12-08 公牛集团股份有限公司 Control system, method and device of intelligent door lock and readable storage medium
CN112330855A (en) * 2020-10-15 2021-02-05 成都市以太节点科技有限公司 Electronic lock safety management method, equipment and system
CN113538739A (en) * 2021-06-09 2021-10-22 杭州华橙软件技术有限公司 Pairing method of intelligent lock, electronic device and storage medium

Also Published As

Publication number Publication date
CN114189863A (en) 2022-03-15
WO2023109240A1 (en) 2023-06-22

Similar Documents

Publication Publication Date Title
CN108768970B (en) Binding method of intelligent equipment, identity authentication platform and storage medium
CN107979514B (en) Method and device for binding devices
KR100978818B1 (en) A method for authenticating a user in a terminal, an authentication system, a terminal, and an authorization device
CN114189863B (en) Binding method and device of intelligent door lock, storage medium and electronic device
US11757874B2 (en) Mutual authentication system
TW201706900A (en) Method and device for authentication using dynamic passwords
CN102572815B (en) Method, system and device for processing terminal application request
EP3724798B1 (en) Method for authenticating a user based on an image relation rule and corresponding first user device, server and system
CN104601590A (en) Login method, server and mobile terminal
CN108243176B (en) Data transmission method and device
CN103503408A (en) System and method for providing access credentials
KR101765917B1 (en) Method for authenticating personal network entity
CN113099443A (en) Equipment authentication method, device, equipment and system
CN111783068A (en) Device authentication method, system, electronic device and storage medium
CN111131300B (en) Communication method, terminal and server
CN105722072A (en) Business authorization method, device, system and router
CN105191208A (en) Methods for activation of an application on a user device
CN111699706A (en) Master-slave system for communication over bluetooth low energy connections
EP3787250B1 (en) Authentication between a telematic control unit and a core server system
CN111416718A (en) Method and device for receiving communication key, method and device for sending communication key
CN110602133B (en) Intelligent contract processing method, block chain management device and storage medium
CN114338132B (en) Secret-free login method, client application, operator server and electronic equipment
CN111371734A (en) Identity verification and upgrade method, medium, cloud platform, equipment and upgrade server
EP3090522B1 (en) Method of secure transmission of push messages
JP3851781B2 (en) Wireless communication apparatus, wireless communication system, and connection authentication method

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant