Equipment binding method, terminal, gateway, electronic equipment and readable storage medium

By sending search commands and using a timer function to the gateway, the problem of high device miss rate and low binding efficiency was solved, achieving an efficient and convenient device binding process and improving the user experience.

CN121841885APending Publication Date: 2026-04-10GUANGZHOU HEMI TECHNOLOGY CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
GUANGZHOU HEMI TECHNOLOGY CO LTD
Filing Date
2026-01-14
Publication Date
2026-04-10

AI Technical Summary

Technical Problem

The high rate of device misbinding and low binding efficiency in existing technologies result in a poor user experience.

Method used

By sending a search command to the gateway, receiving device information from the cloud platform, responding to the target device selected by the user and starting the timer function, the device binding is realized, and the successfully bound devices are displayed within a preset time period. Batch binding of single or multiple devices is supported.

Benefits of technology

It improved the success rate and efficiency of device binding, reduced user waiting time and invalid operations, and enhanced the user experience.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN121841885A_ABST
    Figure CN121841885A_ABST
Patent Text Reader

Abstract

The embodiment of the invention provides an equipment binding method, a terminal, a gateway, electronic equipment and a readable storage medium, and relates to the field of smart home. Comprising the steps that a search instruction is sent to a gateway, and the search instruction is used for instructing the gateway to search binding equipment in a preset range; receiving the device information of the at least one device sent by the cloud platform, and displaying the device information of the at least one device; the device information is obtained according to a device identifier when the cloud platform receives a first instruction which is sent by the gateway and contains the device identifier, and the first instruction is sent to the cloud platform when the gateway searches at least one device which can be bound; sending a binding instruction to the gateway, and starting a timing function to instruct the gateway to establish a binding relationship with at least one target device; and if first response information returned by the gateway is received within a preset duration after the timing function is started, displaying at least one successfully bound target device. According to the embodiment of the invention, the method achieves the high-efficiency binding of the equipment and the gateway.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of smart home technology, and more specifically, to a device binding method, a terminal, a gateway, an electronic device, and a readable storage medium. Background Technology

[0002] With the development of the smart home industry, users are increasingly demanding convenience and reliability in the process of batch binding multiple devices.

[0003] However, the relevant technical solutions still suffer from problems such as high device misbinding rate and low binding efficiency. Summary of the Invention

[0004] This application provides a device binding method, terminal, gateway, electronic device, and readable storage medium to solve the problems of high device binding failure rate and low binding efficiency.

[0005] According to a first aspect of the embodiments of this application, a device binding method is provided, applied to a terminal, the method comprising: Send a search command to the gateway, which instructs the gateway to search for bindable devices within a preset range; the gateway is the gateway bound to the user identifier corresponding to the user of the terminal. Receive device information of at least one device sent by the cloud platform, and display the device information of at least one device; the device information is obtained by the cloud platform based on the device identifier when it receives a first instruction containing the device identifier sent by the gateway, and the first instruction is sent by the gateway to the cloud platform when it finds at least one bindable device; In response to the selection of at least one target device among at least one devices, a binding instruction is sent to the gateway, and a timing function is started to instruct the gateway to establish a binding relationship with at least one target device; If the gateway receives the first response information within the preset time after the timing function is started, it will display that at least one target device has been successfully bound; the first response information is used to indicate that the gateway has been successfully bound to at least one target device. In one possible implementation, the search instruction is either a first search instruction or a second search instruction; If it is determined that the target model input by the user has been received and the first control is triggered, a first search instruction is sent to the gateway; the first search instruction is used to instruct the gateway to search for devices that can be bound to the target model within a preset range; the first control is used to represent the function of searching for devices that can be bound. If it is determined that the target model input by the user has not been received, and the first control is triggered, a second search instruction is sent to the gateway; the second search instruction is used to instruct the gateway to search for all models of devices that can be bound within a preset range.

[0006] In another possible implementation, in response to scanning the QR code of the gateway, the gateway identifier of the gateway is obtained, and a first request containing the gateway identifier is sent to the cloud platform so that the cloud platform can determine whether the gateway meets the preset requirements and whether the user identifier has the authority to establish a binding relationship with the gateway; the first request contains the user identifier and the gateway identifier, and the first request is used to request the establishment of a binding relationship between the gateway identifier and the user identifier. Upon receiving the second response information, the gateway identifier and the corresponding management control of the gateway are displayed. The second response information is used to indicate that the binding relationship between the gateway and the user identifier has been successfully established. The second response information is sent when the cloud platform determines that the gateway meets the preset requirements and the user identifier has the permission to establish a binding relationship with the gateway.

[0007] In another possible implementation, after sending the binding instruction to the gateway, if it is determined that no first response information is received from the gateway within a preset time period, or if a third response information indicating that the gateway has failed to establish a binding relationship with at least one target device is received, a prompt message is displayed. The prompt message includes the reason for the binding failure and the corresponding solution. The prompt message is used to instruct the user to re-update and bind at least one target device to the gateway according to the solution.

[0008] According to a second aspect of the embodiments of this application, a device binding method is provided, applied to a gateway, the method comprising: In response to a search command sent by the receiving terminal, search for bindable devices within a preset range; the terminal is the terminal used by the user whose user identifier is already bound to the gateway. If at least one device is found, a first instruction containing the device identifier is sent to the cloud platform to instruct the cloud platform to obtain the device information based on the device identifier and send the device information to the terminal. In response to a binding instruction sent by a receiving terminal, a binding relationship is established with at least one target device, and a first response message indicating that the gateway has successfully bound to at least one target device is returned to the terminal, so that the terminal displays the at least one target device that has been successfully bound.

[0009] In one possible implementation, the search instruction is either a first search instruction or a second search instruction, wherein the first search instruction includes the target model; In response to the first search command sent by the receiving terminal, a search is performed on the target model of the bindable device within a preset range; In response to receiving a second search command from the terminal, a search is performed on all available devices of all models within a preset range.

[0010] According to a third aspect of the embodiments of this application, a terminal is provided, the device comprising: The sending module is used to send search instructions to the gateway, which instructs the gateway to search for bindable devices within a preset range; the gateway is the gateway bound to the user identifier corresponding to the user of the terminal. The receiving module is used to receive device information of at least one device sent by the cloud platform and display the device information of at least one device. The device information is obtained by the cloud platform based on the device identifier when it receives a first indication containing a device identifier sent by the gateway. The first indication is sent to the cloud platform by the gateway when it finds at least one bindable device. The response module is used to send a binding instruction to the gateway and start a timing function in response to the selection of at least one target device among at least one device, so as to instruct the gateway to establish a binding relationship with at least one target device; The display module is used to display at least one target device that has been successfully bound if the first response information returned by the gateway is received within a preset time after the start of the timing function; the first response information is used to indicate that the gateway has been successfully bound to at least one target device.

[0011] According to a fourth aspect of the embodiments of this application, a gateway is provided, the device comprising: The search module is used to respond to search commands sent by the receiving terminal and search for bindable devices within a preset range; the terminal is the terminal used by the user whose user identifier is bound to the gateway. The processing module is used to send a first instruction containing the device identifier of the device to the cloud platform if at least one device is found, so as to instruct the cloud platform to obtain the device information of the device according to the device identifier and send the device information to the terminal. The module establishes a binding relationship with at least one target device in response to a binding instruction sent by the receiving terminal, and returns first response information to the terminal indicating that the gateway has successfully bound to at least one target device, so that the terminal displays the at least one target device that has been successfully bound.

[0012] According to a fifth aspect of the embodiments of this application, an electronic device is provided, the electronic device including a memory, a processor and a computer program stored in the memory, wherein the processor executes the program to implement the steps of the method provided in the first aspect.

[0013] According to a sixth aspect of the embodiments of this application, a computer-readable storage medium is provided having a computer program stored thereon, which, when executed by a processor, implements the steps of the method provided in the first aspect.

[0014] According to a seventh aspect of the present application, a computer program product is provided, the computer program product including computer instructions stored in a computer-readable storage medium, wherein when a processor of a computer device reads the computer instructions from the computer-readable storage medium, the processor executes the computer instructions, causing the computer device to perform steps implementing the method provided in the first aspect.

[0015] The beneficial effects of the technical solutions provided in this application are: The device binding method for terminals provided in this application sends a search command to the bound gateway to instruct the gateway to search for bindable devices within a preset range. This enables the gateway to confirm the current bindable devices within the preset range, providing an option for establishing a binding relationship between the gateway and the device in the future.

[0016] Upon receiving device information for at least one device from the cloud platform, the system displays this information, providing an option for establishing a binding relationship between the gateway and the device. Since the device information is sent by the cloud platform upon receiving a first instruction containing the device identifier from the gateway, and the first instruction is sent by the gateway to the cloud platform when it finds at least one bindable device, the system ensures that the terminal only displays device information for devices that can be bound to the gateway. This avoids the terminal displaying information for devices that the gateway cannot currently bind to, which could lead to invalid user operations and reduce user experience.

[0017] In response to the selection of at least one target device among at least one device, a binding instruction is sent to the gateway, instructing the gateway to establish a binding relationship with at least one target device and start the timing function. This allows users to bind a single device or bind multiple devices in batches, improving binding efficiency. Furthermore, by starting the timing function, the time spent in the binding process can be analyzed, which is convenient for subsequent analysis of potential problems in the binding process and further improves the binding success rate. If the first response information is received from the gateway within the preset time after the start timer function is activated, it indicates that the gateway and the target device have been successfully bound. At least one target device that has been successfully bound will be displayed. By only receiving the first response information within the preset time, the system avoids waiting for unbound devices to bind for a long time, which would reduce the user experience. Attached Figure Description

[0018] To more clearly illustrate the technical solutions in the embodiments of this application, the accompanying drawings used in the description of the embodiments of this application will be briefly introduced below.

[0019] Figure 1 This is a schematic diagram of the system architecture for implementing the device binding method provided in the embodiments of this application; Figure 2 A flowchart illustrating a device binding method applied to a terminal, provided in an embodiment of this application; Figure 3 A flowchart illustrating a method for binding a gateway to a user identifier, provided in an embodiment of this application; Figure 4 A flowchart illustrating a device binding method applied to a gateway, provided in an embodiment of this application; Figure 5 A schematic flowchart illustrating a device binding method provided in an embodiment of this application; Figure 6 This is a schematic diagram of the structure of a terminal provided in an embodiment of this application; Figure 7 This is a schematic diagram of the structure of a gateway provided in an embodiment of this application; Figure 8 This is a schematic diagram of the structure of an electronic device provided in an embodiment of this application. Detailed Implementation

[0020] The embodiments of this application are described below with reference to the accompanying drawings. It should be understood that the embodiments described below with reference to the accompanying drawings are exemplary descriptions for explaining the technical solutions of the embodiments of this application, and do not constitute a limitation on the technical solutions of the embodiments of this application.

[0021] Those skilled in the art will understand that, unless otherwise stated, the singular forms “a,” “an,” “the,” and “the” used herein may also include the plural forms. It should be further understood that the terms “comprising” and “including” as used in embodiments of this application mean that the corresponding feature can be implemented as the presented feature, information, data, step, operation, element, and / or component, but do not exclude implementation as other features, information, data, step, operation, element, component, and / or combinations thereof supported by the art. It should be understood that when we say that an element is “connected” or “coupled” to another element, the one element can be directly connected or coupled to the other element, or it can mean that the one element and the other element establish a connection relationship through an intermediate element. Furthermore, “connected” or “coupled” as used herein can include wireless connection or wireless coupling. The term “and / or” as used herein indicates at least one of the items defined by the term; for example, “A and / or B” can be implemented as “A,” or as “B,” or as “A and B.”

[0022] 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.

[0023] The relevant technologies are explained below: Currently, after successfully binding the 5GCPE gateway to the APP, users can only view router status information such as the current gateway's signal strength, the number of connected devices, and upload and download speeds when they open the gateway's homepage. They can also manage the router and Wi-Fi, adjust the volume, view chat history, and view traffic lists. However, the APP lacks the function of managing and controlling smart home devices.

[0024] In response to at least one of the aforementioned technical problems or areas requiring improvement in related technologies (the aforementioned YY technology), this application proposes a device binding method. This method sends a search command to the bound gateway to instruct the gateway to search for bindable devices within a preset range, thereby confirming the gateway's current binding capability for devices within the preset range and providing an option for subsequently establishing a binding relationship between the gateway and the device.

[0025] Upon receiving device information for at least one device from the cloud platform, the system displays this information, providing an option for establishing a binding relationship between the gateway and the device. Since the device information is sent by the cloud platform upon receiving a first instruction containing the device identifier from the gateway, and the first instruction is sent by the gateway to the cloud platform when it finds at least one bindable device, the system ensures that the terminal only displays device information for devices that can be bound to the gateway. This avoids the terminal displaying information for devices that the gateway cannot currently bind to, which could lead to invalid user operations and reduce user experience.

[0026] In response to the selection of at least one target device among at least one device, a binding instruction is sent to the gateway, instructing the gateway to establish a binding relationship with at least one target device and start the timing function. This allows users to bind a single device or bind multiple devices in batches, improving binding efficiency. Furthermore, by starting the timing function, the time spent in the binding process can be analyzed, which is convenient for subsequent analysis of potential problems in the binding process and further improves the binding success rate. If the first response information is received from the gateway within the preset time after the start timer function is activated, it indicates that the gateway and the target device have been successfully bound. At least one target device that has been successfully bound will be displayed. By only receiving the first response information within the preset time, the system avoids waiting for unbound devices to bind for a long time, which would reduce the user experience.

[0027] The technical solutions of this application and their effects are described below through several exemplary embodiments. It should be noted that the following embodiments can be referenced, borrowed from, or combined with each other. Identical terms, similar features, and similar implementation steps in different embodiments will not be repeated.

[0028] Figure 1 This is a schematic diagram of the system architecture for implementing the device binding method provided in this application embodiment, wherein the system architecture includes: terminal 120, cloud platform 140 and gateway 160.

[0029] Terminal 120 has an application with a device binding method installed and running, which is used to establish a binding relationship between the device and the gateway.

[0030] Terminal 120 is connected to cloud platform 140 via wireless network.

[0031] Cloud platform 140 includes at least one of a single server, multiple servers, a cloud computing platform, and a virtualization center. Illustratively, cloud platform 140 includes a processor 144 and a memory 142, the memory 142 including a display module 1421, a control module 1422, and a receiving module 1423. Cloud platform 140 provides background services for applications in the device binding method. Optionally, cloud platform 140 undertakes the primary computing task, and terminal 120 undertakes the secondary computing task; or, cloud platform 140 undertakes the secondary computing task, and terminal 120 undertakes the primary computing task; or, cloud platform 140 and terminal 120 collaborate on computing using a distributed computing architecture.

[0032] Gateway 160 is used to establish a binding relationship with the device.

[0033] Optionally, the device type of the terminal includes at least one of the following: smartphone, tablet computer, e-book reader, Moving Picture Experts Group Audio Layer III (MP3) player, Moving Picture Experts Group Audio Layer IV (MP4) player, laptop computer, and desktop computer.

[0034] Those skilled in the art will understand that the number of terminals described above can be more or less. For example, there may be only one terminal, or there may be dozens or hundreds of terminals, or even more. This application does not limit the number of terminals or the type of device.

[0035] This application provides a device binding method for use on a terminal, such as... Figure 2 As shown, the method includes: S101 sends a search command to the gateway.

[0036] In this embodiment of the application, the gateway is the gateway bound to the user identifier corresponding to the user of the terminal. That is, the user logs into the preset application on the terminal through the user identifier, performs preset operations on the corresponding interface of the application, and thus sends a search command to the gateway bound to the user identifier.

[0037] In one example, the user performs a preset operation in the application, and the terminal's visual interface displays the application's addition interface and sends a search command to the user to identify the currently bound gateway.

[0038] In this embodiment, the search command is used to instruct the gateway to search for bindable devices within a preset range. In other words, the terminal sends a search command to the gateway to enable the gateway to start a search and continuously detect devices in the vicinity that meet the gateway's binding requirements, i.e., devices that can establish a binding relationship with the gateway.

[0039] S102, receive device information of at least one device sent by the cloud platform, and display the device information of at least one device.

[0040] In this embodiment of the application, the device information is obtained by the cloud platform based on the device identifier when it receives a first instruction containing a device identifier sent by the gateway. The first instruction is sent by the gateway to the cloud platform when it finds at least one bindable device.

[0041] In this embodiment, after the terminal sends a search command to the gateway, the gateway will start searching for bindable devices within a preset range according to the search command. If at least one bindable device is found, the gateway will send a device identifier containing the bindable device to the cloud platform so that the cloud platform can obtain the device information based on the device identifier. The cloud platform will then send the obtained device information to the terminal. After receiving the device information of at least one device sent by the cloud platform, the terminal will display the device information of the currently bindable devices of the gateway on the visual interface.

[0042] In this embodiment of the application, the device information includes: device identifier, device code, product name, image, and other detailed information.

[0043] In this embodiment of the application, the terminal displays device information of the devices that can be bound, which makes it easier for users to determine which devices need to be bound by the gateway, thus avoiding binding devices that do not need to be bound and missing binding devices that do need to be bound.

[0044] S103, in response to at least one target device being selected among at least one device, a binding instruction is sent to the gateway, and the timing function is started.

[0045] In this embodiment of the application, a binding instruction is sent to instruct the gateway to establish a binding relationship with at least one target device. That is, after the user selects at least one target device from at least one device for binding through the terminal, a binding instruction is sent to the gateway. The binding instruction includes the device of the target device, so that the gateway establishes a binding relationship with the target device after receiving the binding instruction.

[0046] In this embodiment of the application, after sending a binding instruction to the gateway, a timing function is started to monitor the current binding process in real time. By collecting the time required to bind each target device, it is convenient to optimize the binding between the gateway and the device in the future.

[0047] In this embodiment of the application, the user can select to bind a single target device through the terminal, or bind multiple or all target devices in batches. After the terminal sends a binding instruction to the gateway, the status of the target device changes to "binding".

[0048] S104. If the first response information returned by the gateway is received within the preset time after the timing function is started, at least one target device that has been successfully bound is displayed.

[0049] In this embodiment of the application, the first response information is used to indicate that the gateway has been successfully bound to at least one target device. The first response information includes the device identifier of the target device that has been successfully bound. That is, the number of first response information received is consistent with the number of target devices that have been successfully bound.

[0050] In this embodiment of the application, at least one target device is confirmed to be successfully bound to the gateway only when the first response information is received within a preset time after the timing function is started. That is, the terminal only monitors the first response information received within a preset time after the timing function is started. After the preset time is exceeded, the binding process ends.

[0051] In one example, after the terminal sends a binding instruction to the gateway, it starts the timing function and displays "Binding in progress" on the visual interface. After the timing function reaches the preset time, it stops displaying "Binding in progress". If at least one response message is received, the corresponding target device that has been successfully bound is displayed based on the at least one response message.

[0052] In this embodiment of the application, for target devices that are successfully bound in batch binding, the default application will sequentially display the binding success status of the devices, so that users can intuitively understand which target devices have successfully established a binding relationship with the gateway, which facilitates the unified management of these target devices in the future.

[0053] The device binding method for terminals provided in this application sends a search command to the bound gateway to instruct the gateway to search for bindable devices within a preset range. This enables the gateway to confirm the current bindable devices within the preset range, providing an option for establishing a binding relationship between the gateway and the device in the future.

[0054] Upon receiving device information for at least one device from the cloud platform, the system displays this information, providing an option for establishing a binding relationship between the gateway and the device. Since the device information is sent by the cloud platform upon receiving a first instruction containing the device identifier from the gateway, and the first instruction is sent by the gateway to the cloud platform when it finds at least one bindable device, the system ensures that the terminal only displays device information for devices that can be bound to the gateway. This avoids the terminal displaying information for devices that the gateway cannot currently bind to, which could lead to invalid user operations and reduce user experience.

[0055] In response to the selection of at least one target device among at least one device, a binding instruction is sent to the gateway, instructing the gateway to establish a binding relationship with at least one target device and start the timing function. This allows users to bind a single device or bind multiple devices in batches, improving binding efficiency. Furthermore, by starting the timing function, the time spent in the binding process can be analyzed, which is convenient for subsequent analysis of potential problems in the binding process and further improves the binding success rate. If the first response information is received from the gateway within the preset time after the start timer function is activated, it indicates that the gateway and the target device have been successfully bound. At least one target device that has been successfully bound will be displayed. By only receiving the first response information within the preset time, the system avoids waiting for unbound devices to bind for a long time, which would reduce the user experience.

[0056] Based on the above embodiments, as an optional embodiment, the search instruction is a first search instruction or a second search instruction. The first search instruction is used to instruct a search for a specified device. The specified device can be a device of a specified type, a device of a specified model, or a device identified by a specified device identifier. The second search instruction is used to instruct a search for all devices.

[0057] In this embodiment of the application, if it is determined that the target model input by the user is received and the first control is triggered, a first search instruction is sent to the gateway; the first search instruction is used to instruct the gateway to search for devices that can be bound to the target model within a preset range; the first control is used to characterize the function of searching for devices that can be bound.

[0058] In this embodiment of the application, the user can input the target model of a specified device through the terminal. After inputting the first target model, the user can trigger the first control so that the terminal responds to the input of the target model and the triggering of the first control and sends a first search instruction to the gateway to instruct the gateway to search for bindable devices from the devices of the target model within a preset range.

[0059] In this embodiment of the application, if it is determined that no target model input by the user has been received and the first control is triggered, a second search instruction is sent to the gateway; the second search instruction is used to instruct the gateway to search for all models of devices that can be bound within a preset range.

[0060] In this embodiment of the application, if the user does not input the target model through the terminal, but directly triggers the first control, a second search instruction is sent to the gateway to instruct the gateway to search for a bindable device from all models of devices within a preset range.

[0061] In the above solution, by providing an interface for users to input the target model and trigger the first control, the gateway can accurately search within a preset range based on the target model of the device to be bound by the user. Searching by target model greatly reduces the time required to search for bindable devices. By only providing the device with the target model to be bound to the user, it is convenient for the user to bind the device later, thus improving the accuracy and convenience of the device binding process.

[0062] Based on the above embodiments, as an optional embodiment, in response to scanning the QR code of the gateway, the gateway identifier of the gateway is obtained, and a first request containing the gateway identifier is sent to the cloud platform, so that the cloud platform can determine whether the gateway meets the preset requirements and determine whether the user identifier has the authority to establish a binding relationship with the gateway; the first request contains the user identifier and the gateway identifier, and the first request is used to request the establishment of a binding relationship between the gateway identifier and the user identifier.

[0063] In this embodiment, when it is necessary to establish a binding relationship between a user identifier and a gateway, the user identifier is logged in in a preset application running on the terminal. In the preset application, by triggering the control corresponding to the add gateway function, the terminal's camera function is opened. The user scans the QR code corresponding to the gateway through the terminal. The terminal responds by scanning the QR code of the gateway, obtains the gateway identifier of the gateway based on the QR code, and then sends a first request containing the gateway identifier to the cloud platform. The first request is used to request the establishment of a binding relationship between the gateway identifier and the user identifier. Therefore, after the cloud platform receives the first request sent by the gateway, determining whether the gateway meets the preset requirements means determining the legality of the gateway based on the gateway identifier and determining whether the user identifier has the permission to bind the gateway corresponding to the gateway identifier based on the user identifier.

[0064] In this embodiment of the application, in response to receiving the second response information, the gateway identifier of the gateway and the management control corresponding to the gateway are displayed; the second response information is used to indicate that the binding relationship between the gateway and the user identifier has been successfully established, and the second response information is sent when the cloud platform determines that the gateway meets the preset requirements and the user identifier has the permission to establish a binding relationship with the gateway.

[0065] In this embodiment of the application, in order to avoid the user identifier being bound to an illegal device, which would cause security risks, and to avoid the gateway being bound to a user identifier without binding authority, which would lead to management chaos, the cloud platform will only establish the correspondence between the gateway and the user identifier when it determines that the gateway meets the preset requirements and the user identifier has the authority to establish a binding relationship with the gateway. Then, it will send a second response message to the gateway to inform the terminal that the binding relationship between the gateway and the user identifier has been successfully established.

[0066] In this embodiment of the application, after receiving the second response information, the gateway displays the gateway identifier and the corresponding management control. The user can jump to the gateway's management interface by triggering the corresponding management control. The management interface displays the gateway's current connection status, all devices currently bound to the gateway, and the connection status of each device. The connection status is used to indicate whether the device is currently offline or online.

[0067] In one example, the smart gateway is powered on. The user clicks the "Add Device" function within the app, scans the gateway's QR code to obtain its identifier, and the terminal sends an initial request (including the user identifier and gateway identifier) ​​to the cloud platform via the SDK. After verifying the device's legitimacy and the user's permissions, the cloud platform returns information indicating successful binding and simultaneously synchronizes key information to the app. The user can then see the successfully bound gateway device in the device list. Clicking the management control corresponding to the gateway will take the user to the management interface, which displays the current gateway's online / offline status, all currently bound devices, and the online / offline status of each device.

[0068] In the embodiments of this application, such as Figure 3 As shown, a method for binding a gateway to a user identifier is provided, the details of which are as follows: S201, the terminal responds to scanning the QR code of the gateway, obtains the gateway identifier of the gateway, and sends a first request containing the gateway identifier to the cloud platform; S202, the cloud platform determines whether the gateway meets the preset requirements and whether the user identifier has the authority to establish a binding relationship with the gateway; S203, the cloud platform determines that the gateway meets the preset requirements and that the user identifier has the authority to establish a binding relationship with the gateway, establishes the binding relationship between the gateway and the user identifier, and sends the second response information to the terminal.

[0069] S204, in response to receiving the second response information, displays the gateway identifier and the corresponding management control of the gateway.

[0070] In the above solution, the first request is sent to the cloud platform by scanning the gateway QR code, which reduces the tedious manual input process and improves the convenience of operation. The cloud platform verifies the legality of the device and the user's permissions, which effectively prevents unauthorized access and malicious device access and improves security.

[0071] Based on the above embodiments, as an optional embodiment, after sending a binding instruction to the gateway, if it is determined that no first response information is received from the gateway within a preset time after the timing function is started, or if a third response information indicating that the gateway has failed to establish a binding relationship with at least one target device is received, a prompt message is displayed.

[0072] In this embodiment, if no first response information is received from the gateway within a preset time after the timing function is started, it indicates that no target device has successfully bound to the gateway. Therefore, a prompt message is displayed to indicate that the binding has failed. In order to avoid the gateway continuously performing the binding process with target devices that cannot be bound at present, thus wasting the gateway's resources, and to avoid keeping the terminal in a state of waiting for unbound target devices to bind for a long time, the gateway is automatically instructed not to continue the binding process after the timing function reaches the preset time, and the terminal displays a prompt message indicating that the binding has failed.

[0073] In this embodiment of the application, the third response information includes the device identifier of the target device. If at least one third response information indicating that the binding relationship of the target device has failed is received, a prompt message is displayed. Whenever the terminal receives the third response information, it will display the possible reasons for the device binding failure corresponding to the device identifier, so that the user can further resolve the reasons for the binding failure and rebind the target device.

[0074] In this embodiment of the application, the prompt information includes the reason for the binding failure and the corresponding solution. The prompt information is used to instruct the user to re-update and bind at least one target device to the gateway according to the solution.

[0075] In this embodiment of the application, the prompt message is used to guide the user to rebind the device during a period of network downtime. The reasons for binding failure include: network congestion, device compatibility issues, processing errors, etc. The solutions may include: replacing with a compatible device, updating the gateway firmware, reporting the problem to the platform technical support, and trying to rebind.

[0076] In one example, after the terminal sends a binding instruction to the gateway, the application starts a 5-second timeout listener. Within 5 seconds, the terminal receives the binding result reported by the gateway. The terminal clearly displays the binding status and corresponding error messages based on the binding details, allowing users to quickly understand the binding situation and resolve issues. This rapid feedback and detailed error message mechanism avoids long waiting times and blind troubleshooting for users, improving the smoothness of the user experience and the efficiency of problem-solving.

[0077] In the above solution, setting a condition that the device binding is indicated by the failure to receive the first response information within a preset time helps users obtain feedback on the binding result in a short period of time, avoiding long waiting times for users, reducing the waste of network resources, and improving the overall efficiency of the system. When binding fails, timely feedback on the reason for the failure and the corresponding solution helps users quickly identify the problem and rebind after resolving it, thereby improving the efficiency and success rate of device binding. Furthermore, through feedback on the reason for failure and the solution, users can solve problems themselves, reducing reliance on and consultation with human customer service, thereby reducing the company's labor costs.

[0078] This application also provides a device binding method, applied to a gateway, such as... Figure 4 As shown, the specific content is as follows: S301, in response to a search command sent by the receiving terminal, searches for bindable devices within a preset range.

[0079] In this embodiment, the terminal is the terminal used by the user whose user identifier is bound to the gateway. In other words, the user identifier that is bound to the gateway sends a search command to the gateway through the terminal.

[0080] In this embodiment of the application, after receiving the search command, the gateway starts the search program and continuously detects nearby devices that meet the binding conditions and can be bound.

[0081] S302, if at least one device is found, a first instruction containing the device identifier is sent to the cloud platform.

[0082] In this embodiment of the application, the cloud platform is instructed to obtain the device information of the device based on the device identifier and send the device information to the terminal.

[0083] In this embodiment of the application, if at least one bindable device is found, a device identifier containing the bindable device will be sent to the cloud platform so that the cloud platform can obtain the device information based on the device identifier. The cloud platform will then send the obtained device information to the terminal.

[0084] S303, in response to the binding instruction sent by the receiving terminal, establish a binding relationship with at least one target device, and return first response information to the terminal indicating that the gateway has successfully bound to at least one target device.

[0085] In this embodiment of the application, after receiving the binding instruction sent by the terminal, the gateway establishes a binding relationship with the corresponding target device according to the device identifier of at least one target device included in the binding instruction.

[0086] In this embodiment of the application, a first response information is sent to the terminal so that the terminal displays at least one target device that has been successfully bound. That is, when the gateway successfully establishes a binding relationship with a target device, it returns a first response information containing the device identifier of the target device to the terminal to inform the terminal that the binding relationship with the target device has been successfully established.

[0087] The device binding method for gateways provided in this application embodiment searches for bindable devices within a preset range in response to a search command sent by the terminal, thereby enabling the gateway to confirm the bindable devices within the current preset range and providing selectable devices for establishing a binding relationship between the gateway and the device in the future. If at least one device is found, a first instruction containing the device's identifier is sent to the cloud platform to instruct the cloud platform to obtain the device information based on the device identifier and send the device information to the device. This ensures that the terminal only displays the device information of devices that can be bound to the gateway, avoiding the terminal displaying devices that the gateway cannot currently bind to, which would lead to invalid user operations and reduce the user experience.

[0088] In response to the binding instruction sent by the receiving terminal, a binding relationship is established with at least one target device. The gateway returns a first response message indicating that the gateway has successfully bound to at least one target device, so that the terminal can display the at least one target device that has been successfully bound. This achieves timely return of the first response message when the binding is successful, ensuring that the user can receive the binding result and display the successfully bound target device in a short time, thus improving the efficiency of device binding.

[0089] Based on the above embodiments, as an optional embodiment, the search instruction is a first search instruction or a second search instruction, wherein the first search instruction includes a target model, and the target model is at least one device model.

[0090] In this embodiment of the application, in response to a first search command sent by the receiving terminal, a search is performed on bindable devices of target models within a preset range.

[0091] In this embodiment of the application, if the gateway receives the first search instruction, it determines the bindable device from the target model of the device within the preset range. That is, the gateway first filters out the target model of the device from the preset range, and then filters out the bindable device from the target model of the device, without needing to filter each device within the preset range to see if it meets the binding requirements.

[0092] In this embodiment of the application, in response to receiving a second search command sent by the terminal, a search is performed on all models of bindable devices within a preset range.

[0093] In this embodiment of the application, if the gateway receives a second search instruction, it means that the terminal has not limited the devices that can be bound. Therefore, it filters each device within the preset range to see if it meets the binding requirements.

[0094] In the above scheme, a specified search is performed according to the first search instruction, which realizes accurate searching within a preset range based on the target model of the device to be bound by the user. Searching by target model greatly reduces the time required to search for bindable devices, saves network resources, and facilitates convenient binding for users in the future, thereby improving the accuracy and convenience of the device binding process.

[0095] In this application embodiment, a flowchart of a device binding method is provided, as follows: Figure 5 As shown, the specific content is as follows: S401-1, If ​​the terminal determines that it has received the target model input by the user and the first control is triggered, it sends the first search command to the gateway; S401-2, if the terminal determines that it has not received the target model input by the user and the first control is triggered, it sends a second search command to the gateway; S402-1, The gateway searches for devices of the target model that can be bound within a preset range; S402-2, the gateway searches for all compatible devices within a preset range; S403: If the gateway finds at least one bindable device, it sends the device identifier of at least one device to the cloud platform. S404, the cloud platform obtains the device information corresponding to at least one device based on the device identifier of at least one device, and sends the device information of at least one device to the terminal; S405, the terminal displays device information for at least one device, and in response to at least one target device being selected among the at least one devices, sends a binding instruction to the gateway and starts the timing function; S406, In response to receiving the binding instruction, the gateway binds to at least one target device. If there is at least one successfully bound target device, the gateway sends a first response message to the terminal. S407, the terminal determines whether it has received the first response information within the preset time after the timing function is started; if yes, then proceed to step S408; if no, then proceed to step S409. S408, the terminal displays that the corresponding device binding is successful based on the device identifier contained in the first response information; S409, the terminal displays a binding failure message and a prompt.

[0096] The device binding method provided in this application enables users to quickly bind smart sub-devices in their homes, achieving rapid binding, convenient management, and control, thus greatly improving the user experience. This method supports binding by model and batch binding. Binding by model can accurately adapt to the unique functions of specific device models, facilitating in-depth user management; batch binding significantly improves the efficiency of binding multiple devices, especially suitable for scenarios with a large number of devices connected in a new home, saving time and effort with one-click operation. Furthermore, when binding fails, the terminal displays detailed error messages and specific solutions for potential network and compatibility issues, such as prompting for retrying in batches when network congestion occurs during batch binding, providing users with a smoother, more efficient, and user-friendly smart home management experience.

[0097] This application provides a terminal, such as... Figure 6 As shown, the terminal 60 may include: a sending module 601, a receiving module 602, a response module 603, and a display module 604.

[0098] Specifically, the sending module 601 is used to send a search command to the gateway, which instructs the gateway to search for bindable devices within a preset range; the gateway is the gateway bound to the user identifier corresponding to the user of the terminal. The receiving module 602 is used to receive device information of at least one device sent by the cloud platform and display the device information of at least one device. The device information is obtained by the cloud platform based on the device identifier when it receives a first indication containing a device identifier sent by the gateway. The first indication is sent by the gateway to the cloud platform when it finds at least one bindable device. The response module 603 is used to send a binding instruction to the gateway and start a timing function in response to the selection of at least one target device among at least one device, so as to instruct the gateway to establish a binding relationship with at least one target device; The display module 604 is used to display at least one target device that has been successfully bound if it receives the first response information returned by the gateway within a preset time after the start of the timing function; the first response information is used to indicate that the gateway has been successfully bound to at least one target device.

[0099] The terminal provided in this application embodiment sends a search command to the bound gateway to instruct the gateway to search for bindable devices within a preset range. This enables the gateway to confirm the current bindable devices within the preset range, providing an option for establishing a binding relationship between the gateway and the devices in the future.

[0100] Upon receiving device information for at least one device from the cloud platform, the system displays this information, providing an option for establishing a binding relationship between the gateway and the device. Since the device information is sent by the cloud platform upon receiving a first instruction containing the device identifier from the gateway, and the first instruction is sent by the gateway to the cloud platform when it finds at least one bindable device, the system ensures that the terminal only displays device information for devices that can be bound to the gateway. This avoids the terminal displaying information for devices that the gateway cannot currently bind to, which could lead to invalid user operations and reduce user experience.

[0101] In response to the selection of at least one target device among at least one device, a binding instruction is sent to the gateway, instructing the gateway to establish a binding relationship with at least one target device and start the timing function. This allows users to bind a single device or bind multiple devices in batches, improving binding efficiency. Furthermore, by starting the timing function, the time spent in the binding process can be analyzed, which is convenient for subsequent analysis of potential problems in the binding process and further improves the binding success rate. If the first response information is received from the gateway within the preset time after the start timer function is activated, it indicates that the gateway and the target device have been successfully bound. At least one target device that has been successfully bound will be displayed. By only receiving the first response information within the preset time, the system avoids waiting for unbound devices to bind for a long time, which would reduce the user experience.

[0102] The apparatus in this application embodiment can execute the method provided in this application embodiment, and the implementation principle is similar. The actions performed by each module in the apparatus of each embodiment of this application correspond to the steps in the method of each embodiment of this application. For detailed functional descriptions of each module of the apparatus, please refer to the descriptions in the corresponding methods shown above, which will not be repeated here.

[0103] Furthermore, in one possible implementation, the search instruction is either a first search instruction or a second search instruction; If it is determined that the target model input by the user has been received and the first control is triggered, a first search instruction is sent to the gateway; the first search instruction is used to instruct the gateway to search for devices that can be bound to the target model within a preset range; the first control is used to represent the function of searching for devices that can be bound. If it is determined that the target model input by the user has not been received, and the first control is triggered, a second search instruction is sent to the gateway; the second search instruction is used to instruct the gateway to search for all models of devices that can be bound within a preset range.

[0104] In another possible implementation, in response to scanning the QR code of the gateway, the gateway identifier of the gateway is obtained, and a first request containing the gateway identifier is sent to the cloud platform so that the cloud platform can determine whether the gateway meets the preset requirements and whether the user identifier has the authority to establish a binding relationship with the gateway; the first request contains the user identifier and the gateway identifier, and the first request is used to request the establishment of a binding relationship between the gateway identifier and the user identifier. Upon receiving the second response information, the gateway identifier and the corresponding management control of the gateway are displayed. The second response information is used to indicate that the binding relationship between the gateway and the user identifier has been successfully established. The second response information is sent when the cloud platform determines that the gateway meets the preset requirements and the user identifier has the permission to establish a binding relationship with the gateway.

[0105] In another possible implementation, after sending the binding instruction to the gateway, if it is determined that no first response information is received from the gateway within a preset time period, or if a third response information indicating that the gateway has failed to establish a binding relationship with at least one target device is received, a prompt message is displayed. The prompt message includes the reason for the binding failure and the corresponding solution. The prompt message is used to instruct the user to re-update and bind at least one target device to the gateway according to the solution.

[0106] This application provides a gateway, such as Figure 7 As shown, the gateway 70 may include a search module 701, a processing module 702, and an establishment module 703.

[0107] Specifically, the search module 701 is used to search for bindable devices within a preset range in response to a search command sent by the receiving terminal; the terminal is the terminal used by the user whose user identifier is bound to the gateway. The processing module 702 is configured to send a first instruction containing the device identifier of the device to the cloud platform if at least one device is found, so as to instruct the cloud platform to obtain the device information of the device according to the device identifier and send the device information to the terminal. The module 703 is configured to establish a binding relationship with at least one target device in response to a binding instruction sent by the receiving terminal, and return first response information to the terminal indicating that the gateway has successfully bound to at least one target device, so that the terminal displays the at least one target device that has been successfully bound.

[0108] The gateway provided in this application embodiment searches for bindable devices within a preset range in response to a search command sent by the terminal, thereby enabling the gateway to confirm the bindable devices within the current preset range and providing selectable devices for establishing a binding relationship between the gateway and the device in the future. If at least one device is found, a first instruction containing the device's identifier is sent to the cloud platform to instruct the cloud platform to obtain the device information based on the device identifier and send the device information to the device. This ensures that the terminal only displays the device information of devices that can be bound to the gateway, avoiding the terminal displaying devices that the gateway cannot currently bind to, which would lead to invalid user operations and reduce the user experience.

[0109] In response to the binding instruction sent by the receiving terminal, a binding relationship is established with at least one target device. The gateway returns a first response message indicating that the gateway has successfully bound to at least one target device, so that the terminal can display the at least one target device that has been successfully bound. This achieves timely return of the first response message when the binding is successful, ensuring that the user can receive the binding result and display the successfully bound target device in a short time, thus improving the efficiency of device binding.

[0110] The apparatus in this application embodiment can execute the method provided in this application embodiment, and the implementation principle is similar. The actions performed by each module in the apparatus of each embodiment of this application correspond to the steps in the method of each embodiment of this application. For detailed functional descriptions of each module of the apparatus, please refer to the descriptions in the corresponding methods shown above, which will not be repeated here.

[0111] Furthermore, in one possible implementation, the search instruction is either a first search instruction or a second search instruction, wherein the first search instruction includes the target model; In response to the first search command sent by the receiving terminal, a search is performed on the target model of the bindable device within a preset range; In response to receiving a second search command from the terminal, a search is performed on all available devices of all models within a preset range.

[0112] This application provides an electronic device (computer device / equipment / system) including a memory, a processor, and a computer program stored in the memory. The processor executes the computer program to implement the steps of the device binding method. Compared with related technologies, it can achieve the following: by sending a search command to the bound gateway to instruct the gateway to search for bindable devices within a preset range, the gateway can confirm the current bindable devices within the preset range, providing an option for subsequently establishing a binding relationship between the gateway and the device.

[0113] Upon receiving device information for at least one device from the cloud platform, the system displays this information, providing an option for establishing a binding relationship between the gateway and the device. Since the device information is sent by the cloud platform upon receiving a first instruction containing the device identifier from the gateway, and the first instruction is sent by the gateway to the cloud platform when it finds at least one bindable device, the system ensures that the terminal only displays device information for devices that can be bound to the gateway. This avoids the terminal displaying information for devices that the gateway cannot currently bind to, which could lead to invalid user operations and reduce user experience.

[0114] In response to the selection of at least one target device among at least one device, a binding instruction is sent to the gateway, instructing the gateway to establish a binding relationship with at least one target device and start the timing function. This allows users to bind a single device or bind multiple devices in batches, improving binding efficiency. Furthermore, by starting the timing function, the time spent in the binding process can be analyzed, which is convenient for subsequent analysis of potential problems in the binding process and further improves the binding success rate. If the first response information is received from the gateway within the preset time after the start timer function is activated, it indicates that the gateway and the target device have been successfully bound. At least one target device that has been successfully bound will be displayed. By only receiving the first response information within the preset time, the system avoids waiting for unbound devices to bind for a long time, which would reduce the user experience.

[0115] In one alternative embodiment, an electronic device is provided, such as Figure 8 As shown, Figure 8 The illustrated electronic device 4000 includes a processor 4001 and a memory 4003. The processor 4001 and the memory 4003 are connected, for example, via a bus 4002. Optionally, the electronic device 4000 may further include a transceiver 4004, which can be used for data interaction between the electronic device and other electronic devices, such as sending and / or receiving data. It should be noted that in practical applications, the transceiver 4004 is not limited to one type, and the structure of the electronic device 4000 does not constitute a limitation on the embodiments of this application.

[0116] Processor 4001 may be a CPU (Central Processing Unit), a general-purpose processor, a DSP (Digital Signal Processor), an ASIC (Application Specific Integrated Circuit), an FPGA (Field Programmable Gate Array), or other programmable logic devices, transistor logic devices, hardware components, or any combination thereof. It can implement or execute the various exemplary logic blocks, modules, and circuits described in conjunction with the disclosure of this application. Processor 4001 may also be a combination that implements computational functions, such as including one or more microprocessor combinations, a combination of a DSP and a microprocessor, etc.

[0117] Bus 4002 may include a pathway for transmitting information between the aforementioned components. Bus 4002 may be a PCI (Peripheral Component Interconnect) bus or an EISA (Extended Industry Standard Architecture) bus, etc. Bus 4002 can be divided into address bus, data bus, control bus, etc. For ease of representation, Figure 8 The bus is represented by a single thick line, but this does not mean that there is only one bus or one type of bus.

[0118] The memory 4003 may be ROM (Read Only Memory) or other types of static storage devices capable of storing static information and instructions, RAM (Random Access Memory) or other types of dynamic storage devices capable of storing information and instructions, or EEPROM (Electrically Erasable Programmable Read Only Memory), CD-ROM (Compact Disc Read Only Memory) or other optical disc storage, optical disc storage (including compressed optical discs, laser discs, optical discs, digital universal optical discs, Blu-ray discs, etc.), magnetic disk storage media, other magnetic storage devices, or any other medium capable of carrying or storing computer programs and capable of being read by a computer, without limitation herein.

[0119] The memory 4003 stores computer programs that execute embodiments of this application, and its execution is controlled by the processor 4001. The processor 4001 executes the computer programs stored in the memory 4003 to implement the steps shown in the foregoing method embodiments.

[0120] Among them, electronic devices may include, but are not limited to, mobile terminals such as mobile phones, laptops, digital radio receivers, PDAs (personal digital assistants), PADs (tablet computers), PMPs (portable multimedia players), and in-vehicle terminals (such as in-vehicle navigation terminals), as well as fixed terminals such as digital TVs and desktop computers. Figure 8 The electronic device shown is merely an example and should not be construed as limiting the functionality and scope of use of the embodiments disclosed herein.

[0121] This application provides a computer-readable storage medium storing a computer program. When executed by a processor, the computer program can implement the steps and corresponding content of the aforementioned method embodiments. Compared with the prior art, it enables the following: by sending a search command to the bound gateway, instructing the gateway to search for bindable devices within a preset range, it achieves confirmation of the gateway's current bindable devices within the preset range, providing an option for subsequently establishing a binding relationship between the gateway and the device.

[0122] Upon receiving device information for at least one device from the cloud platform, the system displays this information, providing an option for establishing a binding relationship between the gateway and the device. Since the device information is sent by the cloud platform upon receiving a first instruction containing the device identifier from the gateway, and the first instruction is sent by the gateway to the cloud platform when it finds at least one bindable device, the system ensures that the terminal only displays device information for devices that can be bound to the gateway. This avoids the terminal displaying information for devices that the gateway cannot currently bind to, which could lead to invalid user operations and reduce user experience.

[0123] It allows users to bind a single device or bind multiple devices in batches, improving binding efficiency. Furthermore, by starting a timer, the time spent during the binding process can be analyzed, facilitating the analysis of potential problems during the binding process and further improving the binding success rate. If the first response information is received from the gateway within the preset time after the start timer function is activated, it indicates that the gateway and the target device have been successfully bound. At least one target device that has been successfully bound will be displayed. By only receiving the first response information within the preset time, the system avoids waiting for unbound devices to bind for a long time, which would reduce the user experience.

[0124] It should be noted that the computer-readable medium described in this disclosure can be a computer-readable signal medium, a computer-readable medium, or any combination thereof. A computer-readable storage medium can be, for example,—but not limited to—an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination thereof. More specific examples of a computer-readable storage medium may include, but are not limited to: an electrical connection having one or more wires, a portable computer disk, a hard disk, random access memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM or flash memory), optical fiber, portable compact disk read-only memory (CD-ROM), optical storage device, magnetic storage device, or any suitable combination thereof. In this disclosure, a computer-readable storage medium can be any tangible medium containing or storing a program that can be used by or in conjunction with an instruction execution system, apparatus, or device. In this disclosure, a computer-readable signal medium can include a data signal propagated in baseband or as part of a carrier wave, carrying computer-readable program code. Such propagated data signals can take various forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination thereof. A computer-readable signal medium can be any computer-readable medium other than a computer-readable storage medium, which can send, propagate, or transmit a program for use by or in connection with an instruction execution system, apparatus, or device. The program code contained on the computer-readable medium can be transmitted using any suitable medium, including but not limited to: wires, optical fibers, RF (radio frequency), etc., or any suitable combination thereof.

[0125] This application also provides a computer program product, including a computer program that, when executed by a processor, can implement the steps and corresponding content of the aforementioned method embodiments. Compared with the prior art, it can achieve: confirming the devices that the gateway can currently bind within a preset range, providing an option for subsequently establishing a binding relationship between the gateway and the devices; ensuring that the terminal only displays device information for devices that can be bound to the gateway, avoiding the display of devices that the gateway cannot currently bind, thus preventing invalid user operations and reducing user experience; enabling users to bind a single device or bind multiple devices in batches, improving binding efficiency; and by activating a timer function, the time spent during the binding process can be analyzed, facilitating subsequent analysis of potential problems during the binding process and further improving the binding success rate. If the first response information is received from the gateway within the preset time after the start timer function is activated, it indicates that the gateway and the target device have been successfully bound. At least one target device that has been successfully bound will be displayed. By only receiving the first response information within the preset time, the system avoids waiting for unbound devices to bind for a long time, which would reduce the user experience.

[0126] The terms "first," "second," "third," "fourth," "1," "2," etc. (if present) in the specification, claims, and accompanying drawings of this application are used to distinguish similar objects and are not necessarily used to describe a specific order or sequence. It should be understood that such data can be interchanged where appropriate so that the embodiments of this application described herein can be implemented in a sequence other than that shown in the illustrations or text descriptions.

[0127] It should be understood that although arrows indicate various operation steps in the flowcharts of this application's embodiments, the order in which these steps are implemented is not limited to the order indicated by the arrows. Unless explicitly stated herein, in some implementation scenarios of this application's embodiments, the implementation steps in each flowchart can be executed in other orders as required. Furthermore, some or all steps in each flowchart, based on the actual implementation scenario, may include multiple sub-steps or multiple stages. Some or all of these sub-steps or stages can be executed at the same time, and each sub-step or stage can also be executed at different times. In scenarios where execution times differ, the execution order of these sub-steps or stages can be flexibly configured according to requirements, and this application's embodiments do not limit this.

[0128] The above are only optional implementation methods for some implementation scenarios of this application. It should be noted that for those skilled in the art, other similar implementation methods based on the technical concept of this application, without departing from the technical concept of this application, also fall within the protection scope of the embodiments of this application.

Claims

1. A device binding method, characterized in that, Applied to terminals, including: A search command is sent to the gateway, which instructs the gateway to search for bindable devices within a preset range; the gateway is the gateway bound to the user identifier corresponding to the user using the terminal. The cloud platform receives device information of at least one device sent by the cloud platform and displays the device information of the at least one device. The device information is obtained by the cloud platform based on the device identifier when it receives a first indication containing a device identifier sent by the gateway. The first indication is sent by the gateway to the cloud platform when it finds at least one bindable device. In response to the selection of at least one target device among the at least one devices, a binding instruction is sent to the gateway, and a timing function is started to instruct the gateway to establish a binding relationship with the at least one target device; If a first response message is received from the gateway within a preset time after the timing function is started, it will indicate that at least one target device has been successfully bound; the first response message is used to indicate that the gateway has been successfully bound to the at least one target device.

2. The method according to claim 1, characterized in that, The search instruction is either a first search instruction or a second search instruction; Sending the search command to the gateway includes: If it is determined that the target model input by the user has been received and the first control is triggered, the first search instruction is sent to the gateway; the first search instruction is used to instruct the gateway to search for devices that can be bound to the target model within a preset range; the first control is used to characterize the function of searching for devices that can be bound. If it is determined that no target model input from the user has been received, and the first control is triggered, then the second search instruction is sent to the gateway; the second search instruction is used to instruct the gateway to search for all models of devices that can be bound within a preset range.

3. The method according to claim 1, characterized in that, The user identifier is bound to the gateway in the following way: In response to scanning the QR code of the gateway, the gateway identifier of the gateway is obtained, and a first request containing the gateway identifier is sent to the cloud platform so that the cloud platform can determine whether the gateway meets the preset requirements and whether the user identifier has the permission to establish a binding relationship with the gateway; the first request contains the user identifier and the gateway identifier, and the first request is used to request the establishment of a binding relationship between the gateway identifier and the user identifier; Upon receiving the second response information, the gateway identifier of the gateway and the management control corresponding to the gateway are displayed; The second response information is used to indicate that the binding relationship between the gateway and the user identifier has been successfully established. The second response information is sent when the cloud platform determines that the gateway meets the preset requirements and the user identifier has the permission to establish a binding relationship with the gateway.

4. The method according to claim 1, characterized in that, The step of sending a binding instruction to the gateway further includes: If no first response information is received from the gateway within the preset time after the timing function is started, or if a third response information indicating that the gateway has failed to establish a binding relationship with the at least one target device is received, a prompt message will be displayed. The prompt information includes the reason for the binding failure and the corresponding solution. The prompt information is used to instruct the user to re-bind the at least one target device to the gateway according to the solution.

5. A device binding method, characterized in that, Applied to gateways, including: In response to a search command sent by a receiving terminal, the system searches for bindable devices within a preset range; the terminal is the terminal used by the user whose user identifier is already bound to the gateway. If at least one device is found, a first instruction containing the device identifier of the device is sent to the cloud platform to instruct the cloud platform to obtain the device information of the device based on the device identifier and send the device information to the terminal. In response to receiving the binding instruction sent by the terminal, a binding relationship is established with the at least one target device, and a first response message indicating that the gateway has successfully bound to the at least one target device is returned to the terminal, so that the terminal displays the at least one target device that has been successfully bound.

6. The method according to claim 5, characterized in that, The search instruction is either a first search instruction or a second search instruction, wherein the first search instruction includes the target model; The process of responding to a search command sent by the receiving terminal and searching for bindable devices within a preset range includes: In response to the first search command sent by the receiving terminal, a search is performed on the target model of the bindable device within a preset range; In response to receiving a second search command from the terminal, a search is performed on all available devices of all models within a preset range.

7. A terminal, characterized in that, include: The sending module is used to send a search command to the gateway, the search command being used to instruct the gateway to search for bindable devices within a preset range; The gateway is the gateway bound to the user identifier corresponding to the user using the terminal; A receiving module is used to receive device information of at least one device sent by the cloud platform and display the device information of the at least one device; The device information is obtained by the cloud platform based on the device identifier when it receives a first indication containing a device identifier sent by the gateway. The first indication is sent by the gateway to the cloud platform when it finds at least one bindable device. A response module is configured to, in response to the selection of at least one target device among the at least one devices, send a binding instruction to the gateway and start a timing function to instruct the gateway to establish a binding relationship with the at least one target device; The display module is used to display at least one target device that has been successfully bound if the first response information returned by the gateway is received within a preset time after the start of the timing function. The first response information is used to indicate that the gateway has been successfully bound to the at least one target device.

8. A gateway, characterized in that, The search module is used to respond to a search command sent by the receiving terminal and search for bindable devices within a preset range; the terminal is the terminal used by the user whose user identifier is bound to the gateway. The processing module is configured to send a first instruction containing the device identifier of the device to the cloud platform if at least one device is found, so as to instruct the cloud platform to obtain the device information of the device according to the device identifier and send the device information to the terminal; The module is configured to, in response to receiving a binding instruction sent by the terminal, establish a binding relationship with the at least one target device, and return first response information to the terminal indicating that the gateway has successfully bound to the at least one target device, so that the terminal displays the at least one target device that has been successfully bound.

9. An electronic device comprising a memory, a processor, and a computer program stored in the memory, characterized in that, The processor executes the computer program to implement the method according to any one of claims 1-6.

10. A computer-readable storage medium having a computer program stored thereon, characterized in that, When the computer program is executed by a processor, it implements the method described in any one of claims 1-6.