Smart home device binding method and computer device
Patent Information
- Application Number
- CN202311283278.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-09-28
- Publication Date
- 2026-10-09
- Estimated Expiration
- 2043-09-28
AI Technical Summary
然而,APP与晾衣机的交互依赖WiFi网络,由于晾衣机安装在阳台顶部,通常会面临WiFi信号质量差的问题,容易导致用户绑定失败,即使绑定成功,后续的远程交互也经常由于信号问题导致失败,因此存在控制成功率低的技术缺陷
[0019] A fourth aspect of this application provides a computer device including a storage unit, a processor, and a computer program stored in the storage unit and executable by the processor, wherein the processor executes the computer program to implement the steps of the smart home device binding method described above.
Smart Images

Figure CN117201218B_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of smart home device binding technology, specifically to a smart home device binding method and a computer device. Background Technology
[0002] Traditional clothes dryers are controlled via a control panel. However, since the control panel is fixed in one location, users have to walk to it to operate the dryer, which is inconvenient. Existing technologies improve the ease of control by connecting the dryer to a network via Wi-Fi. Before connecting, the user needs to configure and bind the dryer to the network. This involves transmitting the Wi-Fi router's SSID and password to the dryer to enable connection. Once configuration is complete, the dryer exchanges a token (for authentication) with the app and simultaneously sends the token to the backend for cross-verification. Successful verification completes the binding process. After binding, users can interact with the dryer through the app via the cloud backend. However, the interaction between the APP and the clothes drying rack relies on the WiFi network. Since the clothes drying rack is installed on the top of the balcony, it usually faces the problem of poor WiFi signal quality, which can easily lead to user binding failure. Even if the binding is successful, subsequent remote interaction often fails due to signal problems. Therefore, there is a technical defect of low control success rate. Summary of the Invention
[0003] The purpose of this application is to overcome the shortcomings and deficiencies in the prior art and provide a smart home device binding method and computer device, which can directly bind smart home devices to the user terminal, enabling the smart home devices to directly obtain and execute control commands issued by the user terminal after binding, thereby improving the convenience and success rate of smart home device control.
[0004] A first aspect of this application provides a smart home device binding method, applied to smart home devices; the smart home device binding method includes:
[0005] Based on the near-field communication binding request sent by the user terminal, initial verification data is sent to the user terminal so that the initial verification data can be sent to the cloud via the user terminal. The cloud verifies the initial verification data and generates a first symmetric key based on the verification result, which is then sent to the user terminal.
[0006] Receive binding verification data generated by the user terminal based on the first symmetric key;
[0007] The binding verification data is verified. If the verification passes, the data is bound to the user terminal.
[0008] A second aspect of this application provides a smart home device binding method, applied in the cloud; the smart home device binding method includes:
[0009] Receive initial verification data sent by the user terminal; wherein, the initial verification data sent by the user terminal is sent by the smart home device to the user terminal when it receives a near-field communication binding request;
[0010] The received initial verification data is verified, and a first symmetric key is generated based on the verification result;
[0011] The generated first symmetric key is sent to the user terminal, so that the user terminal generates binding verification data based on the first symmetric key and sends it to the smart home device. The smart home device verifies the binding verification data and binds it to the user terminal if the verification is successful.
[0012] A third aspect of this application provides a method for binding smart home devices, including:
[0013] The user sends a proximity communication binding request to the selected smart home devices found through proximity communication broadcasting;
[0014] The smart home device sends initial verification data to the user terminal based on the near-field communication binding request sent by the user terminal;
[0015] The user client forwards the initial verification data to the cloud;
[0016] The cloud verifies the initial verification data, generates a first symmetric key based on the verification result, and sends the first symmetric key to the user terminal.
[0017] The user terminal generates binding verification data based on the received first symmetric key and sends the binding verification data to the smart home device;
[0018] The smart home device verifies the binding verification data. If the verification is successful, it binds to the user terminal.
[0019] A fourth aspect of this application provides a computer device including a storage unit, a processor, and a computer program stored in the storage unit and executable by the processor, wherein the processor executes the computer program to implement the steps of the smart home device binding method described above.
[0020] Compared to related technologies, the smart home device of this application can send initial verification data to the user terminal based on a short-range communication binding request sent by the user terminal. After the user terminal receives the first symmetric key generated from the initial verification data sent by the cloud, it receives and verifies the binding verification data generated by the user terminal based on the first symmetric key. If the binding verification data passes verification, the device is bound to the user terminal, allowing the smart home device to directly receive and execute control commands issued by the user terminal after binding. This improves the convenience of controlling the smart home device. Furthermore, after successful binding, the smart home device can stably receive control commands issued by the user terminal through short-range communication technology, resulting in a high control success rate. Simultaneously, since two data verifications are performed during the binding process, the security of the binding between the smart home device and the user terminal is also improved.
[0021] To provide a clearer understanding of this application, the specific embodiments of this application will be described below in conjunction with the accompanying drawings. Attached Figure Description
[0022] Figure 1 This is a flowchart illustrating a smart home device binding method applied to smart home devices according to an embodiment of this application.
[0023] Figure 2 This is a flowchart illustrating a smart home device binding method applied to the cloud, according to one embodiment of this application.
[0024] Figure 3 This is a flowchart illustrating a smart home device binding method according to an embodiment of this application. Detailed Implementation
[0025] To make the objectives, technical solutions, and advantages of this application clearer, the embodiments of this application will be described in further detail below with reference to the accompanying drawings.
[0026] It should be understood that the described embodiments are merely some, not all, of the embodiments of this application. All other embodiments obtained by those skilled in the art based on the embodiments of this application without creative effort are within the scope of protection of the embodiments of this application.
[0027] In the following description, when referring to the accompanying drawings, unless otherwise indicated, the same numbers in different drawings represent the same or similar elements. In the description of this application, it should be understood that the terms "first," "second," "third," etc., are used only to distinguish similar objects and are not necessarily used to describe a specific order or sequence, nor should they be construed as indicating or implying relative importance. Those skilled in the art can understand the specific meaning of the above terms in this application according to the specific circumstances. The singular forms "a," "the," and "the" used in this application and the appended claims are also intended to include the plural forms, unless the context clearly indicates otherwise. The word "if" as used herein can be interpreted as "when," "when," or "in response to determination."
[0028] Furthermore, in the description of this application, unless otherwise stated, "multiple" means two or more. "And / or" describes the relationship between related objects, indicating that three relationships can exist. For example, A and / or B can represent: A alone, A and B simultaneously, or B alone. The character " / " generally indicates that the preceding and following related objects have an "or" relationship.
[0029] This application applies to smart home devices, including smart electronic devices such as clothes dryers, smart locks, air conditioners, curtains, and lights.
[0030] Please see Figure 1 This is a smart home device binding method according to an embodiment of the present application, comprising:
[0031] S1: Based on the near-field communication binding request sent by the user terminal, initial verification data is sent to the user terminal so that the initial verification data can be sent to the cloud via the user terminal. The cloud verifies the initial verification data and generates a first symmetric key based on the verification result, and then sends it to the user terminal.
[0032] The user terminal can be a software program that allows users to log in with their accounts and interact with smart home devices. When this software program is installed on an electronic device with short-range communication (PRC) capabilities, it enables data interaction with smart home devices via PRC technology. The user terminal can also be an electronic device with PRC capabilities, such as a smartphone or tablet, that can interact with a bound object via PRC. The cloud is a cloud server connected to the user terminal's network.
[0033] A short-range communication (NRCM) bonding application is a bonding application transmitted using NRCM technology, which can be wireless communication technologies such as Bluetooth, NFC, and infrared.
[0034] The initial verification data includes at least the unique identifier of the smart home device, enabling the cloud to obtain the data object used to verify the initial verification data based on the unique identifier of the smart home device.
[0035] Specifically, S1 includes:
[0036] S101: Receive the near-field communication binding request sent by the user terminal.
[0037] S102: Perform calculations on the pre-stored device key and the timestamp corresponding to the current time to obtain the first digest information.
[0038] Step S12 includes: performing a hash operation on the device key and the timestamp corresponding to the current time, and determining the hash value obtained from the operation as the first digest information.
[0039] A hash operation is an algorithm that transforms an input of arbitrary length into an output of fixed length, where the length of the output is shorter than the length of the input. In this embodiment, a hash operation can compress the device key and the timestamp corresponding to the current time, thereby obtaining a first digest that includes the device key and the current time, but with a shorter data length.
[0040] S103: The first summary information and the unique identifier of the smart home device are determined as the initial verification data, and the initial verification data is sent to the user terminal so that the initial verification data is forwarded to the cloud through the user terminal.
[0041] Using the first summary information and the unique identifier of the smart home device as the initial verification data can effectively reduce the amount of verification data, shorten the time consumed by data interaction, and improve the efficiency of verification.
[0042] Specifically, regarding the first symmetric key, the cloud pre-stores a mapping relationship between the unique identifier of the smart home device and the device key; the cloud verifies the initial verification data and generates the first symmetric key based on the verification result, including:
[0043] The cloud determines the unique identifier of the smart home device from the initial verification data, and then determines the device key based on the mapping relationship.
[0044] S111: The cloud determines the computation time range based on the time when the initial verification data is received.
[0045] S112: The cloud performs hash operations on each timestamp within the computation time range with the device key determined from the mapping relationship to obtain candidate digest information.
[0046] The relationship between the stored unique identifier and the device key is a mapping relationship. Based on this mapping relationship, the cloud can directly look up the device key corresponding to the unique identifier. The device key retrieved by the cloud is the same as the device key stored in the smart home device.
[0047] S113: The cloud compares each candidate summary information with the first summary information, determines the candidate summary information that is the same as the first summary information, uses it as the second summary information, and obtains the timestamp of the second summary information.
[0048] S114: The cloud generates a first symmetric key based on the timestamp of the second digest information, the device key determined by the mapping relationship, and a preset constant, and sends it to the user terminal.
[0049] For example, the cloud will take the time of receiving the initial verification data as the center of the time range, and take the several minutes before (e.g., 1 minute, 2 minutes, 3 minutes, etc.) before receiving the initial verification data and the several minutes after receiving the initial verification data as (e.g., 1 minute, 2 minutes, 3 minutes, etc.) as the calculation time range. All timestamps within the calculation time range will be hashed using the device key to generate multiple candidate digest information. Then, each candidate digest information will be compared with the first digest information. In the comparison results, the candidate digest information that is the same as the first digest information will be determined as the second digest information. The timestamp corresponding to the second digest information is the timestamp for generating the first digest information, and it is also the timestamp used to generate the first symmetric key.
[0050] S2: Receive the binding verification data generated by the user terminal based on the first symmetric key.
[0051] The binding verification data is generated by the user terminal by encrypting the verification information using the first symmetric key; the first symmetric key is obtained by the cloud based on the timestamp of the first digest information, a preset constant, and a device key.
[0052] S3: Verify the binding verification data. If the verification passes, bind it to the user terminal.
[0053] The verification of the binding verification data can be achieved by decrypting the data and determining whether the decrypted information corresponds to preset verification information. If they correspond, the binding data verification is successful, and the smart home device is bound to the user terminal. Otherwise, the binding data verification fails, and the smart home device will not bind to the user terminal. The binding between the smart home device and the user terminal can also have a valid binding time. During this time, the smart home device will directly execute control commands sent by the user terminal via short-range communication (SMC) technology. The smart home device can also send its current operating status information to the user terminal via SMC technology, including load information, airing temperature, and airing humidity. When the valid binding time expires, the smart home device will refuse to execute control commands sent by the user terminal via SMC technology until the smart home device is re-bound to the user terminal.
[0054] It's important to note that after a smart home device is bound to a user's device, if the user's device is an electronic device, the smart home device is bound to that electronic device. If the user's device is a software program that allows data interaction with the smart home device after logging into a user account, the smart home device is bound to that user account. The user can log into the software program using their user account on an electronic device to establish a binding between the electronic device and the smart home device, which continues until the user logs out of the user account. During the binding period, the electronic device logged into with that user account can control the smart home device.
[0055] Compared to related technologies, the smart home device of this application can send initial verification data to the user terminal based on a short-range communication binding request sent by the user terminal. After the user terminal receives the first symmetric key generated from the initial verification data sent by the cloud, it receives and verifies the binding verification data generated by the user terminal based on the first symmetric key. If the binding verification data passes verification, the device is bound to the user terminal, allowing the smart home device to directly receive and execute control commands issued by the user terminal after binding. This improves the convenience of controlling the smart home device. Furthermore, after successful binding, the smart home device can stably receive control commands issued by the user terminal through short-range communication technology, resulting in a high control success rate. Simultaneously, since two data verifications are performed during the binding process, the security of the binding between the smart home device and the user terminal is also improved.
[0056] In a feasible embodiment, the smart home device pre-stores the verification information and preset constants; in S3, the step of verifying the binding verification data includes:
[0057] S31: Generate third digest information based on the timestamp of the first digest information, the preset constant and the pre-stored device key, and use the third digest information as the second symmetric key.
[0058] Specifically, the smart home device performs a hash operation on the timestamp, preset constant, and device key of the first digest information, and determines the digest information output by the hash operation as the second symmetric key.
[0059] S32: Decrypt the bound verification data using the second symmetric key. If the plaintext information obtained after decryption is the same as the pre-stored verification information, the verification is successful.
[0060] In this embodiment, since the smart home device also stores corresponding verification information, when the decryption information obtained by the second symmetric key decrypting the binding verification data is the same as the verification information stored in the smart home device, it means that the verification information stored in the smart home device is the same as the verification information stored in the user terminal. At this time, the smart home device can securely bind and connect to the user terminal.
[0061] In a feasible embodiment, step S3: verifying the binding verification data; if the verification passes, the step following the binding with the user terminal includes:
[0062] S41: Generate a random number and transmit the random number to the user terminal.
[0063] S42: Obtain encrypted data of control commands sent by the user terminal.
[0064] Among them, the encrypted control command data is generated by the user terminal based on the received random number and the encrypted control command.
[0065] S43: Decrypt the encrypted control command data. If a random number and control command are successfully obtained, drive the smart home device to execute the control command.
[0066] In this embodiment, by having the smart home device send a random number to the user terminal, the user terminal sends encrypted control command data generated by encrypting the received random number and control command when sending control commands to the smart home device. After the smart home device decrypts the encrypted control command data to obtain the corresponding random number and control command, it executes the control command, thereby further improving the confidentiality of the control commands received by the smart home device.
[0067] Please see Figure 2 The second embodiment of this application provides a smart home device binding method, applied in the cloud, including:
[0068] S10: Receive initial verification data sent by the user terminal; wherein, the initial verification data sent by the user terminal is sent by the smart home device to the user terminal when it receives a near-field communication binding request.
[0069] S20: Verify the received initial verification data and generate the first symmetric key based on the verification result.
[0070] S30: The generated first symmetric key is sent to the user terminal, so that the user terminal generates binding verification data based on the first symmetric key and sends it to the smart home device. The smart home device verifies the binding verification data and binds it to the user terminal if the verification is successful.
[0071] It should be noted that the smart home device binding method provided in the second embodiment of this application belongs to the same concept as the smart home device binding method in the first embodiment of this application. The implementation process is detailed in the first embodiment and will not be repeated here.
[0072] Please see Figure 3 The third embodiment of this application provides a method for binding smart home devices, including:
[0073] S100: The user sends a short-range communication binding request to the selected smart home devices found through short-range communication broadcast.
[0074] S200: The smart home device sends initial verification data to the user terminal based on the near-field communication binding request sent by the user terminal.
[0075] Specifically, the smart home device performs a hash operation on the pre-stored device key and the timestamp corresponding to the current time based on the near-field communication binding request sent by the user terminal, and determines the hash value obtained from the operation as the first digest information.
[0076] The smart home device uses the first summary information and the unique identifier of the smart home device as the initial verification data, and sends the initial verification data to the user terminal.
[0077] S300: The user client forwards the initial verification data to the cloud.
[0078] S400: The cloud verifies the initial verification data, generates a first symmetric key based on the verification result, and sends the first symmetric key to the user terminal.
[0079] Specifically, the cloud determines the unique identifier of the smart home device from the initial verification data, and then determines the device key based on the mapping relationship.
[0080] The cloud determines a computation time range based on the time when the initial verification data is received, and performs a hash operation on each timestamp within the computation time range with the device key determined from the mapping relationship to obtain each candidate digest information. Each candidate digest information is then compared with the first digest information to determine the candidate digest information that is the same as the first digest information, which is then used as the second digest information. The timestamp for generating the second digest information is then obtained.
[0081] The cloud platform generates a first symmetric key based on the timestamp of the first digest information, the device key determined by the mapping relationship, and a preset constant, and sends it to the user terminal.
[0082] S500: The user terminal generates binding verification data based on the received first symmetric key and sends the binding verification data to the smart home device.
[0083] S600: The smart home device verifies the binding verification data. If the verification is successful, it binds to the user terminal.
[0084] It should be noted that the smart home device binding method provided in the third embodiment of this application belongs to the same concept as the smart home device binding method in the first embodiment of this application. The implementation process is detailed in the first embodiment and will not be repeated here.
[0085] The fourth embodiment of this application provides a computer device, including a storage device, a processor, and a computer program stored in the storage device and executable by the processor. When the processor executes the computer program, it implements the steps of the smart home device binding method described above.
[0086] The device embodiments described above are merely illustrative. The components described as separate parts may or may not be physically separate, and the components shown as units may or may not be physical units; that is, they may be located in one place or distributed across multiple network units. Some or all of the modules can be selected to achieve the purpose of this application according to actual needs. Those skilled in the art can understand and implement this without any inventive effort.
[0087] Those skilled in the art will understand that embodiments of this application can be provided as methods, systems, or computer program products. Therefore, this application can take the form of a completely hardware embodiment, a completely software embodiment, or an embodiment combining software and hardware aspects. Furthermore, this application can take the form of a computer program product embodied on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.
[0088] This application is described with reference to flowchart illustrations and / or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of this application. It will be understood that each block of the flowchart illustrations and / or block diagrams, and combinations of blocks in the flowchart illustrations and / or block diagrams, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, special-purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, generate instructions for implementing the flowchart... Figure 1 One or more processes and / or boxes Figure 1 The computer program instructions may also be stored in a computer-readable storage medium that can direct a computer or other programmable data processing device to function in a particular manner, such that the instructions stored in the computer-readable storage medium produce an article of manufacture including instruction means, which are implemented in a process Figure 1 One or more processes and / or boxes Figure 1 The function selected in one or more boxes.
[0089] These computer program instructions may also be loaded onto a computer or other programmable data processing equipment to cause a series of operational steps to be performed on the computer or other programmable equipment to produce a computer-implemented process, thereby providing instructions that execute on the computer or other programmable equipment for implementing the process. Figure 1 One or more processes and / or boxes Figure 1 The steps of the function selected in one or more boxes.
[0090] In a typical configuration, a computing device includes one or more processors (CPU), input / output interfaces, network interfaces, and memory.
[0091] Memory may include non-persistent memory in computer-readable media, such as random access memory (RAM) and / or non-volatile memory, such as read-only memory (ROM) or flash RAM. Memory is an example of computer-readable media.
[0092] Computer-readable media includes both permanent and non-permanent, removable and non-removable media that can store information using any method or technology. Information can be computer-readable instructions, data structures, modules of programs, or other data. Examples of computer storage media include, but are not limited to, phase-change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technologies, CD-ROM, digital versatile optical disc (DVD) or other optical storage, magnetic tape, magnetic magnetic disk storage or other magnetic storage devices, or any other non-transferable medium that can be used to store information accessible by a computing device. As defined herein, computer-readable media does not include transient computer-readable media, such as modulated data signals and carrier waves.
[0093] It should also be noted that the terms "comprising," "including," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such process, method, article, or apparatus. Unless otherwise specified, an element defined by the phrase "comprising one..." does not exclude the presence of other identical elements in the process, method, article, or apparatus that includes that element.
[0094] The above are merely embodiments of this application and are not intended to limit the scope of this application. Various modifications and variations can be made to this application by those skilled in the art. Any modifications, equivalent substitutions, improvements, etc., made within the spirit and principles of this application should be included within the scope of the claims of this application.
Claims
1. A method for binding smart home devices, characterized in that, Applied to smart home devices; the smart home device binding method includes: Based on the near-field communication binding request sent by the user terminal, initial verification data is sent to the user terminal. This initial verification data is then transmitted to the cloud via the user terminal. The cloud verifies the initial verification data and generates a first symmetric key based on the verification result, which is then sent to the user terminal. The cloud's verification of the initial verification data and generation of the first symmetric key includes: the cloud determining the unique identifier of the smart home device from the initial verification data, and then determining the device key based on the pre-stored mapping relationship between the unique identifier and the device key; the cloud determining the delivery time based on the time the initial verification data is received. The cloud performs a hash operation on each timestamp within the calculated time range and the device key determined from the mapping relationship to obtain candidate digest information. The cloud compares each candidate digest information with the first digest information and identifies the candidate digest information that matches the first digest information as the second digest information. It then obtains the timestamp used to generate the second digest information, whereby the pre-stored device key and the timestamp corresponding to the current time are used to calculate the first digest information. Based on the timestamp used to generate the second digest information, the device key determined from the mapping relationship, and a preset constant, the cloud generates a first symmetric key and sends it to the user terminal. Receive binding verification data generated by the user terminal based on the first symmetric key; The binding verification data is verified. If the verification passes, the data is bound to the user terminal.
2. The smart home device binding method according to claim 1, characterized in that, The step of sending initial verification data to the user terminal based on the near-field communication binding request sent by the user terminal, so as to forward the initial verification data to the cloud through the user terminal, includes: Receive the near-field communication binding request sent by the user terminal; The first summary information and the unique identifier of the smart home device are used as the initial verification data, and the initial verification data is sent to the user terminal so that the user terminal can forward the initial verification data to the cloud.
3. The smart home device binding method according to claim 2, characterized in that, The step of calculating the first digest information based on the pre-stored device key and the timestamp corresponding to the current time includes: A hash operation is performed on the device key and the timestamp corresponding to the current time, and the hash value obtained is determined as the first digest information.
4. The smart home device binding method according to claim 1, characterized in that, The smart home device has pre-stored verification information and preset constants; The step of verifying the binding verification data includes: The third digest information is generated based on the timestamp of the first digest information, the preset constant and the pre-stored device key, and the third digest information is used as the second symmetric key; The binding verification data is decrypted using the second symmetric key. If the plaintext information obtained after decryption is the same as the verification information, the verification is successful.
5. The smart home device binding method according to any one of claims 1-4, characterized in that, The step of verifying the binding verification data, and binding it to the user terminal if the verification passes, includes: Generate a random number and transmit the random number to the user terminal; Obtain encrypted data of control commands sent by the user terminal; Decrypt the encrypted control command data. If the random number and control command are successfully obtained, drive the smart home device to execute the control command.
6. A method for binding smart home devices, characterized in that, Applied to the cloud, including: Receive initial verification data sent by the user terminal; wherein, the initial verification data sent by the user terminal is sent by the smart home device to the user terminal when it receives a near-field communication binding request; The received initial verification data is verified, and a first symmetric key is generated based on the verification result. Specifically, a unique identifier for the smart home device is determined from the initial verification data, and a device key is determined based on the mapping relationship between the smart home device's unique identifier and the device key pre-stored in the cloud. A computation time range is determined based on the time the initial verification data is received. Each timestamp within the computation time range is hashed with the device key determined from the mapping relationship to obtain candidate digest information. Each candidate digest information is compared with the first digest information, and the candidate digest information identical to the first digest information is determined as the second digest information. The timestamp for generating the second digest information is obtained, wherein the first digest information is obtained by performing a calculation on the pre-stored device key and the timestamp corresponding to the current time. A first symmetric key is generated based on the timestamp for generating the second digest information, the device key determined by the mapping relationship, and a preset constant. The generated first symmetric key is sent to the user terminal, so that the user terminal generates binding verification data based on the first symmetric key and sends it to the smart home device. The smart home device verifies the binding verification data and binds it to the user terminal if the verification is successful.
7. A method for binding smart home devices, characterized in that, include: The user sends a proximity communication binding request to the selected smart home devices found through proximity communication broadcasting; The smart home device sends initial verification data to the user terminal based on the near-field communication binding request sent by the user terminal; The user client forwards the initial verification data to the cloud; The cloud verifies the initial verification data, generates a first symmetric key based on the verification result, and sends the first symmetric key to the user terminal. This includes: the cloud determining the unique identifier of the smart home device from the initial verification data, and then determining the device key based on the mapping relationship between the smart home device's unique identifier and the device key pre-stored in the cloud; the cloud determining a computation time range based on the time the initial verification data was received; the cloud performing hash operations on each timestamp within the computation time range with the device key determined from the mapping relationship to obtain candidate digest information; the cloud comparing each candidate digest information with the first digest information, determining the candidate digest information identical to the first digest information as the second digest information, obtaining the timestamp for generating the second digest information, wherein the first digest information is obtained by performing operations on the pre-stored device key and the timestamp corresponding to the current time; and the cloud generating the first symmetric key based on the timestamp for generating the second digest information, the device key determined by the mapping relationship, and a preset constant, and sending it to the user terminal. The user terminal generates binding verification data based on the received first symmetric key and sends the binding verification data to the smart home device; The smart home device verifies the binding verification data. If the verification is successful, it binds to the user terminal.
8. The smart home device binding method according to claim 7, characterized in that, The step of the smart home device sending initial verification data to the user terminal based on the near-field communication binding request sent by the user terminal includes: The smart home device performs a hash operation on the pre-stored device key and the timestamp corresponding to the current time based on the near-field communication binding request sent by the user terminal, and determines the hash value obtained by the operation as the first digest information; The smart home device uses the first summary information and the unique identifier of the smart home device as the initial verification data, and sends the initial verification data to the user terminal.
9. A computer device, characterized in that: It includes a storage device, a processor, and a computer program stored in the storage device and executable by the processor, wherein the processor executes the computer program to implement the steps of the smart home device binding method as described in any one of claims 1 to 8.
Citation Information
Patent Citations
Method, device and system for authorizing control authority of intelligent equipment
CN110049040A
Equipment binding method and device, terminal, Internet of Things equipment and storage medium
CN114666151A