A binding method for Internet of Things devices
By introducing the unique binding code Bcode into IoT devices, the problem of insufficient device identification is solved, ensuring the secure connection between the device and the user terminal and the accurate execution of operation instructions.
Patent Information
- Application Number
- CN202310121955.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-02-16
- Publication Date
- 2025-09-12
- Estimated Expiration
- 2043-02-16
AI Technical Summary
In the existing technology, the binding between IoT devices and user terminals is not unique, resulting in insufficient security in the use of devices.
When the user scans the QR code, the gateway generates a unique binding code Bcode, which uniquely binds the user to the IoT device and ensures a secure connection between the device and the terminal through two-way communication.
It realizes the unique binding between IoT devices and user terminals, improving the security of device use and the accuracy of identity authentication.
Smart Images

Figure CN116234058B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of Internet of Things, and in particular to a binding method for Internet of Things devices. Background Art
[0002] At present, more and more IoT devices can establish associations with user terminal accounts to achieve information interaction between IoT devices and user terminals (user-related business information or application data information), and even control one or more IoT devices through the user terminal (or the user terminal's application). However, after knowing the account, the second user can also use the same IoT device through the server to issue instructions; this will cause the IoT device to be used incorrectly, such as Figure 1 shown.
[0003] In order to solve the shortcomings of the existing technology, the present invention proposes a binding method for Internet of Things devices. When the user uses the Internet of Things device, the Internet of Things device and the user are used one-to-one; the user scans the QR code, and the gateway returns the user confirmation information. After the user confirms, the user is connected to the Internet of Things device, and the gateway generates a unique binding code Bcode, so that the user and the Internet of Things device are uniquely bound, which solves the problem of insufficient identification of Internet of Things devices and improves the security of the use of Internet of Things devices. Summary of the Invention
[0004] In order to solve the deficiencies in the prior art, the present invention proposes a binding method for IoT devices, which enables the IoT device and the user to be used one-to-one when the user uses the IoT device; the user scans a QR code, and the gateway returns user confirmation information. After the user confirms, the user is connected to the IoT device, and the gateway generates a unique binding code Bcode, so that the user and the IoT device are uniquely bound, thereby solving the problem of insufficient IoT device identification and improving the security of IoT device use.
[0005] To achieve the above objectives, the present invention adopts the following technical solutions.
[0006] In an embodiment of the present invention, a method for binding IoT devices is proposed, which includes the following steps:
[0007] S1 users connect to the gateway by scanning the QR code through their user terminals;
[0008] After receiving the user's confirmation message, the S2 gateway generates a unique binding code Bcode and sends the unique Bcode code to the IoT device;
[0009] After the S3 IoT device is bound to the user terminal, the IoT device sends a binding message to the server. After receiving the response message, the server obtains the user terminal identity information contained in the response message.
[0010] S4 users issue commands through the APP to operate IoT devices.
[0011] Furthermore, the user scans the QR code and the gateway returns user confirmation information. After the user confirms, the user is connected to the IoT device, and the gateway generates a unique binding code Bcode, which uniquely binds the user to the IoT.
[0012] Furthermore, after the user scans the code to register and log in to the account, he or she needs to perform operations such as mobile phone binding. The account is equivalent to the first verification information, and the mobile phone binding is the second verification information.
[0013] Furthermore, the IoT device uploads user account-related information to the server, the server generates first verification information based on the user terminal device information, and forwards the first verification information through the IoT device. After the user terminal device obtains second verification information based on the first verification information, the second verification information and the account identifier of the user terminal are uploaded to the server; the server searches for a matching IoT device based on the second verification information, and associates the found IoT device information with the account identifier. Furthermore, the user issues instructions through the APP to operate the IoT device, and the IoT device will decode the operation instructions and Bcode. If the Bcode decoding is consistent with the unique Bcode code, the user's instruction is executed; if the Bcode decoding is inconsistent with the unique Bcode code, it indicates that the user is not connected to the IoT device.
[0014] In an embodiment of the present invention, a computer device is also proposed, including a memory, a processor, and a computer program stored in the memory and executable on the processor. When the processor executes the computer program, the aforementioned method for binding an IoT device is implemented.
[0015] In an embodiment of the present invention, a computer-readable storage medium is further provided, wherein the computer-readable storage medium stores a computer program for executing a binding method for an Internet of Things device.
[0016] The beneficial effect of the present invention is that, in response to the problems existing in the existing Internet of Things technology, the present invention proposes a binding method for Internet of Things devices, establishes two-way communication between the Internet of Things device and the user terminal, realizes the binding between the Internet of Things device and the user terminal, that is, realizes the binding between the Internet of Things device and the user terminal; enables the user to obtain information about the Internet of Things device through the user terminal and send corresponding operation instructions to the Internet of Things device; ensures the security of the use of the Internet of Things device, and solves the problem of insufficient identification of the Internet of Things device. BRIEF DESCRIPTION OF THE DRAWINGS
[0017] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the following briefly introduces the drawings required for the embodiments or the description of the prior art. Obviously, the drawings described below are only some embodiments of the present invention. For those skilled in the art, other drawings can be obtained based on these drawings without creative work. In the drawings:
[0018] Figure 1 This is a schematic diagram of multiple users connecting to IoT devices according to the present invention;
[0019] Figure 2 This is an example diagram of the process of connecting a user of the present invention to an IoT device;
[0020] Figure 3 This is an example diagram of the process of connecting a user and an IoT device according to the first embodiment of the present invention;
[0021] Figure 4 This is a schematic diagram of a single user connecting to an IoT device according to the first embodiment of the present invention;
[0022] Figure 5 This is a schematic diagram of two users connecting to an IoT device according to the first embodiment of the present invention. DETAILED DESCRIPTION
[0023] To make the purpose, technical solutions and advantages of the embodiments of the present invention more clearly understood, the embodiments of the present invention are further described in detail below with reference to the accompanying drawings. The following examples are only used to more clearly illustrate the system method and technical solutions of the present invention, and are not intended to limit the scope of protection of this application.
[0024] According to the embodiment of the present invention, the present invention proposes a binding method for IoT devices, which establishes two-way communication between the IoT device and the user terminal to realize the binding between the IoT device and the user terminal, that is, to realize the binding between the IoT device and the user terminal; enables the user to obtain information about the IoT device through the user terminal and send corresponding operation instructions to the IoT device; ensures the security of the use of the IoT device and solves the problem of insufficient identification of the IoT device.
[0025] The principles and spirit of the present invention are explained in detail below with reference to several representative embodiments of the present invention.
[0026] A method for binding IoT devices, the implementation process is as follows Figure 2 As shown, the method includes the following steps:
[0027] S1 users connect to the gateway by scanning the QR code through their user terminals;
[0028] After receiving the user's confirmation message, the S2 gateway generates a unique binding code Bcode and sends the unique Bcode code to the IoT device;
[0029] The user scans the QR code and the gateway returns user confirmation information. After the user confirms, the user is connected to the IoT device. The gateway generates a unique binding code Bcode, which uniquely binds the user to the IoT device.
[0030] After the S3 IoT device is bound to the user terminal, the IoT device sends a binding message to the server. After receiving the binding message, the server binds the IoT device and obtains the user terminal identity information contained in the binding message.
[0031] After the user scans the QR code to register and log in to the account, he or she must also perform operations such as mobile phone binding. The account is equivalent to the first verification information, and mobile phone binding is the second verification information.
[0032] The IoT device uploads the user's account information to the server. The server generates first verification information based on the user's terminal device information and forwards the first verification information through the IoT device. The user terminal device then obtains second verification information based on the first verification information and uploads the second verification information and the user's terminal account ID to the server. The server searches for a matching IoT device based on the second verification information and associates the found IoT device information with the account ID. If the IoT device has already been bound or the IoT device cannot be found, the server prompts "Bind Failed."
[0033] S4 users issue commands through the APP to operate IoT devices.
[0034] The user issues instructions through the APP to operate the IoT device. The IoT device will decode the operation instructions and Bcode. If the Bcode decoding is consistent with the unique Bcode code, the user's instructions will be executed; if the Bcode decoding is inconsistent with the unique Bcode code, it means that the user is not connected to the IoT device.
[0035] It should be noted that although the operations of the method of the present invention are described in a specific order in the above embodiments and drawings, this does not require or imply that these operations must be performed in this specific order, or that all illustrated operations must be performed to achieve the desired results. Additionally or alternatively, certain steps may be omitted, multiple steps may be combined into one step, and / or one step may be broken down into multiple steps.
[0036] In order to more clearly explain the above-mentioned binding method of an IoT device, a specific embodiment is described below. However, it should be noted that this embodiment is only for better illustrating the present invention and does not constitute an improper limitation to the present invention.
[0037] Example 1:
[0038] A method for binding IoT devices, the specific implementation process is as follows Figure 3 As shown, the details are as follows:
[0039] Step 1: The user scans the QR code through the user terminal 1 to connect to the gateway 2;
[0040] The user scans the QR code, and the gateway 2 returns user confirmation information. After the user confirms, the user is connected to the IoT device 3.
[0041] Step 2: After receiving the user's confirmation message, the gateway 2 generates a unique binding code Bcode and sends the unique binding code Bcode to the IoT device 3;
[0042] The user scans the QR code, and the gateway 2 returns user confirmation information. After the user confirms, the user is connected to the IoT device 3. The gateway 2 generates a unique binding code Bcode, which uniquely binds the user to the IoT device 3.
[0043] Step 3: After the IoT device 3 is bound to the user terminal 1, the IoT device 3 sends a binding message to the server 4. After receiving the binding message, the server 4 binds the IoT device 3 and obtains the user terminal identity information contained in the binding message.
[0044] In specific implementation, after the user scans the code to register and log in to the account, he or she also needs to perform operations such as mobile phone binding. The account is equivalent to the first verification information, and the mobile phone binding is the second verification information.
[0045] IoT device 3 uploads the user account-related information to server 4. Server 4 generates first verification information based on the user terminal device information and forwards the first verification information through IoT device 3. After user terminal 1 obtains second verification information based on the first verification information, it uploads the second verification information and the user terminal's account ID to the server. Server 4 searches for a matching IoT device 3 based on the second verification information and associates the found IoT device 3 information with the account ID. If the device has already been bound or the IoT device 3 cannot be found, server 4 displays a "binding failed" message.
[0046] In step 4, the user issues an instruction through the APP to operate the IoT device 3. The IoT device 3 will perform operation decoding and Bcode decoding. If the Bcode decoding is consistent with the unique Bcode code, the user's instruction will be executed; if the Bcode decoding is inconsistent with the unique Bcode code, it means that the user is not connected to the IoT device 3.
[0047] In specific implementation, IoT devices and users are used one-to-one, such as Figure 4 shown.
[0048] In specific implementation, if two users need to use the same IoT device, user one can share the IoT device with user two (the user is still user one, that is, user two sends instructions to user one, and user one sends instructions to use the IoT device). Figure 5 shown.
[0049] The present invention addresses the problems existing in existing Internet of Things technologies and proposes a binding method for Internet of Things devices, which establishes two-way communication between the Internet of Things device and the user terminal to achieve binding between the Internet of Things device and the user terminal, that is, to achieve binding between the Internet of Things device and the user terminal; enables the user to obtain information about the Internet of Things device through the user terminal and send corresponding operation instructions to the Internet of Things device; ensures the security of the use of the Internet of Things device and solves the problem of insufficient identification of the Internet of Things device.
[0050] The applicant of the present invention has made a detailed explanation and description of the implementation examples of the present invention in conjunction with the drawings in the specification. The above implementation examples are only preferred implementation plans of the present invention. The detailed description is only to help readers better understand the spirit of the present invention, and it is not a limitation on the scope of protection of the present invention. On the contrary, any improvements or modifications based on the inventive spirit of the present invention should fall within the scope of protection of the present invention.
Claims
1. A method for binding an Internet of Things device, characterized in that: The method comprises the following steps: S1. The user connects to the gateway by scanning the QR code through the user terminal; S2. After the gateway receives the user's confirmation message, it generates a unique binding code Bcode and sends the unique Bcode code to the IoT device; S3. After the IoT device is bound to the user terminal, the IoT device sends a binding message to the server. After receiving the binding message, the server performs the IoT device binding and obtains the user terminal identity information contained in the binding message. S4. The user issues instructions through the APP to operate the IoT device; the user scans the QR code, and the gateway returns user confirmation information. After the user confirms, the user is connected to the IoT device, and the gateway generates a unique binding code Bcode, which uniquely binds the user to the IoT device; after the user scans the code to register and log in to the account, it is also necessary to perform a mobile phone binding operation. The account is equivalent to the first verification information, and the mobile phone binding is the second verification information; the user issues instructions through the APP to operate the IoT device, and the IoT device will decode the operation instruction and Bcode. If the Bcode decoding is consistent with the unique Bcode code, the user's instruction is executed; if the Bcode decoding is inconsistent with the unique Bcode code, it means that this user is not connected to the IoT device.
2. The method for binding an IoT device according to claim 1, wherein: The IoT device uploads user account-related information to the server. The server generates first verification information based on the user terminal device information and forwards the first verification information through the IoT device. After the user terminal device obtains second verification information based on the first verification information, it uploads the second verification information and the user terminal's account identifier to the server. The server searches for a matching IoT device based on the second verification information, and associates the found IoT device information with the account identifier.
Citation Information
Patent Citations
Interaction method based on gateway server and electronic equipment
CN108156488A