Equipment binding method and device, storage medium and electronic device
Patent Information
- Application Number
- CN202410961068.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-17
- Publication Date
- 2024-11-22
AI Technical Summary
[0004]本申请实施例提供了一种设备的绑定方法和装置、存储介质及电子装置,以至少解决相关技术中,在目标设备和家电设备进行绑定的过程中,通常通过模组与物联云进行单端绑定,以实现目标设备和家电设备之间的绑定,导致的在模组所处的网络环境较差时,出现的绑定失败的问题
[0013] According to another aspect of the embodiment of the present application, an electronic device is also provided, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor executes the above-mentioned steps through the computer program. Device binding method.
Smart Images

Figure CN119011528A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of smart home technology, and more specifically, to a device binding method and apparatus, a storage medium, and an electronic device. Background Art
[0002] At present, in the process of binding smart home appliances, due to the different environments in which home appliances are located in the home and the limited communication capabilities of the modules used, the success rate of device binding is often not high due to wireless network reasons. At present, the binding of smart home appliances is basically done by connecting the modules on the home appliances to the IoT cloud to complete the binding and notify the user. When the network in which the module is located is poor, binding failure often occurs. In addition, the industry currently generally adopts dual modules of Bluetooth Low Energy (BLE) and Wireless Fidelity (WiFi), and the overall home decoration is developing towards the integration of home appliances and homes, and more home appliances are hidden in cabinets. As a result, the network signal will be limited, and the problem of long retry time often occurs during network configuration, resulting in a reduced user experience.
[0003] Regarding the related technology, in the process of binding the target device and the home appliance, a single-end binding is usually performed between the module and the IoT cloud to achieve the binding between the target device and the home appliance. This leads to the problem of binding failure when the network environment of the module is poor, and no effective solution has been proposed yet. Summary of the invention
[0004] The embodiments of the present application provide a device binding method and apparatus, a storage medium and an electronic device to at least solve the problem in the related art that, in the process of binding a target device and a household appliance, a single-end binding is usually performed between a module and an IoT cloud to achieve the binding between the target device and the household appliance, which leads to binding failure when the network environment in which the module is located is poor.
[0005] According to an embodiment of the embodiments of the present application, a device binding method is provided, including: sending a first connection request to a target device, and receiving a second connection request sent by the target device; when the target device establishes a first connection relationship according to the target connection request, sending a binding request to an Internet of Things cloud, and instructing the target device to send a proxy binding request to the Internet of Things cloud, so that the Internet of Things cloud establishes a binding relationship between the Internet of Things cloud and a household appliance according to the binding request and the proxy binding request, wherein the target connection request includes: the first connection request and the second connection request, the first connection relationship is a connection relationship between the target device and the household appliance, and the target device is a device including a target client.
[0006] In an exemplary embodiment, before sending a binding request to the IoT cloud and instructing the target device to send a proxy binding request to the IoT cloud, the method also includes: receiving network configuration information sent by the target device based on the first connection relationship; determining whether a router can be connected according to the network configuration information based on the first identity information, wherein the first identity information includes: a first user identity corresponding to the target object and a first local key.
[0007] In an exemplary embodiment, determining whether a router can be connected according to the network configuration information based on the first identity information includes: receiving second identity information sent by the target device, wherein the second identity information is identity information stored in the target device, and the second identity information includes: a second user identity and a second local key corresponding to the target object; when it is determined that the first identity information and the second identity information are consistent, allowing the router to be connected according to the network configuration information; when it is determined that the first identity information and the second identity information are inconsistent, prohibiting the router from being connected according to the network configuration information.
[0008] In an exemplary embodiment, after determining whether it is possible to connect to the router according to the network configuration information based on the first identity information, the method further includes: if it is determined that connecting to the router according to the network configuration information is allowed, sending a third connection request to the router according to the network configuration information to establish a second connection relationship with the router; if it is determined that connecting to the router according to the network configuration information is prohibited, sending an authentication failure notification to the target device.
[0009] In an exemplary embodiment, sending a binding request to the IoT cloud and instructing the target device to send a proxy binding request to the IoT cloud includes: when the second connection relationship is successfully established, sending the binding request to the IoT cloud according to the second connection relationship, and instructing the target device to send the proxy binding request to the IoT cloud based on the first connection relationship.
[0010] In an exemplary embodiment, after sending a binding request to the IoT cloud and instructing the target device to send a proxy binding request to the IoT cloud, the method further includes: determining that the binding relationship between the IoT cloud and the household appliance is successfully established when it is determined that a first binding result sent by the IoT cloud to the target device based on the proxy binding request is a successful binding, and / or when it is determined that a second binding result sent by the IoT cloud based on the binding request is a successful binding.
[0011] According to another embodiment of the embodiments of the present application, a device binding system is also provided, including: a target device and a module, wherein: the target device is used to send a second connection request to the module and receive a first connection request sent by the module; in the case of establishing a first connection relationship according to the target connection request, a proxy binding request is sent to the Internet of Things cloud, wherein the target connection request includes: the first connection request and the second connection request, the first connection relationship is the connection relationship between the target device and the home appliance, and the target device is a device including a target client; the module is used to send the first connection request to the target device and receive the second connection request; in the case of the target device establishing the first connection relationship according to the target connection request, a binding request is sent to the Internet of Things cloud, so that the Internet of Things cloud establishes a binding relationship between the Internet of Things cloud and the home appliance according to the binding request and the proxy binding request.
[0012] According to another aspect of the embodiments of the present application, a computer-readable storage medium is provided, in which a computer program is stored, wherein the computer program is configured to execute the above-mentioned device binding method when running.
[0013] According to another aspect of an embodiment of the present application, an electronic device is provided, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor executes the device binding method through the computer program.
[0014] According to another aspect of the embodiments of the present application, a computer program product is provided, including a computer program, wherein the computer program is executed by a processor to implement the device binding method.
[0015] In an embodiment of the present application, a first connection request is sent to a target device, and a second connection request sent by the target device is received; when the target device establishes a first connection relationship between the target device and the home appliance according to the first connection request and the second connection request, a binding request is sent to the IoT cloud, and the target device is instructed to send a proxy binding request to the IoT cloud, so that the IoT cloud establishes a binding relationship between the IoT cloud and the home appliance according to the binding request and the proxy binding request. In other words, the embodiment of the present application establishes a first connection relationship between the target device and the home appliance through the first connection request and the second connection request, and then a binding request can be sent to the IoT cloud, and the target device can be instructed to send a proxy binding request to the IoT cloud. Compared with the situation in the related art where only one-end binding is performed between the module and the IoT cloud, the embodiment of the present application performs two-end binding by sending a binding request to the IoT cloud through the module and instructing the target device to send a proxy binding request to the IoT cloud. This can solve the problem of binding failure in the related art where, during the binding process between the target device and the home appliance, one-end binding is usually performed between the module and the IoT cloud to achieve the binding between the target device and the home appliance, resulting in poor network environment for the module. BRIEF DESCRIPTION OF THE DRAWINGS
[0016] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present application and, together with the description, serve to explain the principles of the present application.
[0017] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, for ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative labor.
[0018] Figure 1 It is a hardware environment diagram of a device binding method according to an embodiment of the present application;
[0019] Figure 2 is a flowchart of a method for binding a device according to an embodiment of the present application;
[0020] Figure 3 It is an architecture diagram of a smart device dual-end binding and asynchronous network configuration system according to an optional embodiment of the present application;
[0021] Figure 4 It is a flow chart of a method for dual-end binding and asynchronous network configuration of a smart device according to an optional embodiment of the present application;
[0022] Figure 5 It is a structural block diagram of a device binding system according to an embodiment of the present application. DETAILED DESCRIPTION
[0023] In order to enable those skilled in the art to better understand the solution of the present application, the technical solution in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work should fall within the scope of protection of the present application.
[0024] It should be noted that the terms "first", "second", etc. in the specification and claims of the present application and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchangeable where appropriate, so that the embodiments of the present application described herein can be implemented in an order other than those illustrated or described herein. In addition, the terms "including" and "having" and any of their variations are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device comprising a series of steps or units is not necessarily limited to those steps or units clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.
[0025] According to one aspect of the embodiments of the present application, a device binding method is provided. The device binding method is widely used in smart home (Smart Home), smart home, smart home device ecology, smart residential (Intelligence House) ecology and other whole-house intelligent digital control application scenarios. Optionally, Figure 1 is a hardware environment diagram of a device binding method in an embodiment of the present application. In this embodiment, the device binding method can be applied to a module in a home appliance. The module can be applied to Figure 1 In the hardware environment composed of the home appliance 102 and the server 104 shown in FIG. Figure 1 As shown, the server 104 is connected to the home appliance 102 via a network, and can be used to provide services (such as application services, etc.) for the node or the client installed on the node. A database can be set on the server or independently of the server to provide data storage services for the server 104. Cloud computing and / or edge computing services can be configured on the server or independently of the server to provide data computing services for the server 104.
[0026] The network may include but is not limited to at least one of the following: wired network, wireless network. The wired network may include but is not limited to at least one of the following: wide area network, metropolitan area network, local area network, and the wireless network may include but is not limited to at least one of the following: WIFI (Wireless Fidelity), Bluetooth. The home appliance 102 may be but is not limited to smart air conditioners, smart range hoods, smart refrigerators, smart ovens, smart stoves, smart washing machines, smart water heaters, smart washing equipment, smart dishwashers, smart projection equipment, smart TVs, smart clothes hangers, smart curtains, smart audio and video, smart sockets, smart speakers, smart speakers, smart fresh air equipment, smart kitchen and bathroom equipment, smart bathroom equipment, smart sweeping robots, smart window cleaning robots, smart mopping robots, smart air purification equipment, smart steamers, smart microwave ovens, smart kitchen treasures, smart purifiers, smart water dispensers, smart door locks, etc.
[0027] In this embodiment, a device binding method is provided, which is applied to the above module. Figure 2 : is a flowchart of a method for binding a device according to an embodiment of the present application, and the process includes the following steps:
[0028] Step S202, sending a first connection request to a target device, and receiving a second connection request sent by the target device;
[0029] It can be understood that the embodiment of the present application establishes a first connection relationship between the home appliance and the target device through the first connection relationship sent by the module to the target device and the second connection relationship sent by the target device to the module. Compared with the technical solution in the related art that only the connection relationship between the target device and the home appliance is established through the connection request sent by the target device to the module of the home appliance, and the response of the home appliance is waited to complete the establishment of the connection relationship, the target device and the module in the embodiment of the present application initiate the connection request at the same time, making the connection process more efficient and reliable.
[0030] Step S204, when the target device establishes a first connection relationship according to the target connection request, sends a binding request to the IoT cloud, and instructs the target device to send a proxy binding request to the IoT cloud, so that the IoT cloud establishes a binding relationship between the IoT cloud and the home appliance device according to the binding request and the proxy binding request, wherein the target connection request includes: the first connection request and the second connection request, the first connection relationship is the connection relationship between the target device and the home appliance device, and the target device is a device including a target client.
[0031] It is understandable that the embodiments of the present application can be applied to a module, and the module can be located in a home appliance; the target device can be a mobile phone, a computer, etc. The target client in the above target device is used to establish a connection relationship with the home appliance.
[0032] Through the above steps, a first connection request is sent to the target device, and a second connection request sent by the target device is received; when the target device establishes a first connection relationship between the target device and the home appliance according to the first connection request and the second connection request, a binding request is sent to the IoT cloud, and the target device is instructed to send a proxy binding request to the IoT cloud, so that the IoT cloud establishes a binding relationship between the IoT cloud and the home appliance according to the binding request and the proxy binding request. That is to say, the embodiment of the present application establishes a first connection relationship between the target device and the home appliance through the first connection request and the second connection request, and then a binding request can be sent to the IoT cloud, and the target device can be instructed to send a proxy binding request to the IoT cloud. Compared with the situation in the related art where only one-end binding is performed between the module and the IoT cloud, the embodiment of the present application performs two-end binding by sending a binding request to the IoT cloud through the module and instructing the target device to send a proxy binding request to the IoT cloud. This can solve the problem of binding failure in the related art where, during the binding process between the target device and the home appliance, one-end binding is usually performed between the module and the IoT cloud to achieve the binding between the target device and the home appliance, resulting in poor network environment for the module.
[0033] Optionally, before sending a binding request to the IoT cloud in the above step S204 and instructing the target device to send a proxy binding request to the IoT cloud, the method also includes: receiving network configuration information sent by the target device based on the first connection relationship; determining whether a router can be connected according to the network configuration information based on the first identity information, wherein the first identity information includes: a first user identity corresponding to the target object and a first local key.
[0034] It is understandable that before instructing the target device to send a proxy binding request to the IoT cloud, it is necessary to connect to the router. Specifically: it is necessary to receive the network configuration information sent by the target device, and determine whether the router can be connected according to the network configuration information based on the first identity information entered by the target object in the home appliance.
[0035] Wherein, determining whether the router can be connected according to the network configuration information according to the first identity information includes: receiving second identity information sent by the target device, wherein the second identity information is identity information stored in the target device, and the second identity information includes: a second user identity and a second local key corresponding to the target object; when it is determined that the first identity information and the second identity information are consistent, allowing the router to be connected according to the network configuration information; when it is determined that the first identity information and the second identity information are inconsistent, prohibiting the router from being connected according to the network configuration information.
[0036] It is understandable that the module can obtain the first identity information, and also needs to obtain the second identity information sent by the target device. Only by comparing the first identity information and the second identity information can it be determined whether the router can be connected according to the network configuration information. Specifically: only when the first user identity in the first identity information is consistent with the second user identity in the second identity information, and the first local key in the first identity information is consistent with the second local key in the second identity information, can it be determined that the router is allowed to be connected according to the first configuration information. In the following situations, it is prohibited to connect to the router based on the network configuration information:
[0037] 1) The first user identity is consistent with the second user identity, and the first local key is inconsistent with the second local key;
[0038] 2) The first user identity is inconsistent with the second user identity, and the first local key is consistent with the second local key;
[0039] 3) The first user identity is inconsistent with the second user identity, and the first local key is inconsistent with the second local key.
[0040] Among them, after determining whether it is possible to connect to the router according to the network configuration information based on the first identity information, the method also includes: when it is determined that connecting to the router according to the network configuration information is allowed, sending a third connection request to the router according to the network configuration information to establish a second connection relationship with the router; when it is determined that connecting to the router according to the network configuration information is prohibited, sending an authentication failure notification to the target device.
[0041] It is understandable that before sending a binding request to the IoT Cloud and instructing the target device to send a proxy binding request to the IoT Cloud, the module needs to be configured for network, specifically: receiving the network configuration information sent by the target device, determining whether the first user identity and the second identity information corresponding to the target object are consistent, and determining whether the first local key and the second local key corresponding to the target object are consistent. When the first identity information and the second identity information are consistent, and the first local key and the second local key are consistent, the router can be connected according to the network configuration information to establish a second connection relationship. When it is determined that the second connection relationship is successfully established, the identity and security authentication is successful.
[0042] Optionally, the above step S204 of sending a binding request to the IoT Cloud and instructing the target device to send a proxy binding request to the IoT Cloud includes: when the second connection relationship is successfully established, sending the binding request to the IoT Cloud according to the second connection relationship, and instructing the target device to send the proxy binding request to the IoT Cloud based on the first connection relationship.
[0043] From the above analysis, it can be known that only when the second connection relationship is successfully established with the router according to the network configuration information, a binding request can be sent to the IoT cloud and the target device can be instructed to send a proxy binding request to the IoT cloud.
[0044] Optionally, after sending a binding request to the IoT cloud and instructing the target device to send a proxy binding request to the IoT cloud in the above step S204, the method further includes: when it is determined that a first binding result sent by the IoT cloud to the target device based on the proxy binding request is a successful binding, and / or when it is determined that a second binding result sent by the IoT cloud based on the binding request is a successful binding, determining that the binding relationship between the IoT cloud and the household appliance is successfully established.
[0045] It is understandable that, when the second connection relationship is successfully established, it can be determined that the first connection relationship between the target device and the module, and the second connection relationship between the module and the router have been established. At this time, the target device can be instructed to send a binding request to the IoT Cloud based on the first connection relationship, and a proxy binding request can be sent to the IoT Cloud based on the second connection relationship. Through the above embodiment, if one of the technical binding request and the proxy binding request is not successfully bound, it can also be determined that the module is successfully bound to the IoT Cloud; only when it is determined that both the binding request and the proxy binding request are not successfully bound, can it be determined that the module has failed to bind to the IoT Cloud. Reduce the possibility of failure in binding between the module and the IoT Cloud.
[0046] In order to better understand the process of the binding method of the above-mentioned device, the implementation method flow of the binding of the above-mentioned device is described below in combination with an optional embodiment, but it is not used to limit the technical solution of the embodiment of the present application.
[0047] In an optional embodiment of the present application, a method for dual-end binding and asynchronous network configuration of a smart device is provided. Figure 3 is an architecture diagram of a smart device dual-end binding and asynchronous network configuration system according to an optional embodiment of the present application, such as Figure 3 As shown, the smart device dual-end binding and asynchronous network configuration system includes:
[0048] A mobile phone (i.e., the target device of this application) that includes an application (Application, abbreviated as APP) and a software development kit (Software Development Kit, abbreviated as SDK), wherein AOO includes various APP services; IoT cloud; router; home appliances including electronic control panels and modules (i.e., home appliances of this application).
[0049] Figure 4 This is a flowchart of a method for dual-end binding and asynchronous network configuration of a smart device according to an optional embodiment of the present application, which is applied to Figure 3 In the system framework diagram, Figure 4 As shown:
[0050] Step S401, the user (ie, the target object of this application) opens the APP in the mobile phone.
[0051] In step S402, the APP sends a BLE search command to the home appliance (i.e., the second connection request of the present application), and at the same time, the module in the home appliance sends a BLE broadcast to the APP (i.e., the first connection request of the present application) to establish a BLE connection (i.e., the first connection relationship of the present application).
[0052] Step S403: The user enters the home network information (ie, the network configuration information of the present application) in the mobile phone APP, and the APP sends the home network information to the module.
[0053] Step S404: The module exchanges the user identity and local key with the device to perform identity and security authentication to determine whether the authentication is successful. If the authentication is successful, step S405 is executed. If the authentication fails, the process ends.
[0054] Step S405, the module attempts to connect to the router and determines whether the connection is successful. If the connection is successful, step S406 is executed. If the connection fails, the process ends.
[0055] It is understandable that the module connects to the network asynchronously, which will not block user operations and improve the user experience. If the module successfully connects to the router, it will asynchronously notify the APP of the successful network configuration.
[0056] Step S406: The module sends a network configuration success notification to the mobile phone.
[0057] Step S407, the mobile phone sends a device binding request to the module, so that the module determines that it can send a binding request to the IoT cloud; the module sends the device binding request to the IoT cloud, and the mobile phone sends a device proxy binding request to the module.
[0058] Step S408, determining the binding result. If the binding result of either party is successful, it is determined that the device and the IoT cloud are successfully bound. If it is determined that neither party is successfully bound, step S409 is executed.
[0059] It is understandable that the advantage of dual-end binding is very obvious when the network configuration is successful. The APP and the module send device binding requests to the IoT cloud (i.e., the IoT cloud of this application) at the same time. When the signal in the environment where the module is located is interfered or the network is restricted, the binding can be initiated through the mobile phone APP application. If either party successfully binds, the APP will determine that the binding is successful.
[0060] When the binding is completed, if the module is in a weak signal or needs a long time to connect to the router, the user can still control the device through the communication channel between the mobile phone and the module. This avoids the situation where the binding fails due to the limited network capacity of the module in single-end binding, or the situation where the binding cannot continue until the network configuration is successful.
[0061] Step S409: Send a notification of binding failure to inform the user of the reason for the binding failure.
[0062] The reasons for binding failure are: password error or non-password error.
[0063] Users can adjust network settings or contact technical support in a timely manner based on notifications of binding failure.
[0064] That is to say, the dual-end binding of the optional embodiment of the present application optimizes the response speed and user experience of the binding process, while ensuring the reliability and security of the binding, and is an effective way to connect and control IoT devices. The improvement of asynchronous network configuration can further enhance the user experience, making user operations smoother, and greatly enhancing the usability and popularity of IoT devices.
[0065] Through the description of the above implementation methods, those skilled in the art can clearly understand that the method according to the above embodiment can be implemented by means of software plus a necessary general hardware platform, and of course by hardware, but in many cases the former is a better implementation method. Based on such an understanding, the technical solution of the present application, or the part that contributes to the prior art, can be embodied in the form of a software product, which is stored in a storage medium (such as ROM / RAM, magnetic disk, optical disk), and includes a number of instructions for a terminal device (which can be a mobile phone, computer, server, or network device, etc.) to execute the methods of each embodiment of the present application.
[0066] Figure 5 is a structural block diagram of a device binding system according to an embodiment of the present application; Figure 5 As shown, it includes a target device 52 and a module 54, wherein:
[0067] The target device 52 is used to send a second connection request to the module and receive a first connection request sent by the module; in the case of establishing a first connection relationship according to the target connection request, send a proxy binding request to the IoT cloud, wherein the target connection request includes: the first connection request and the second connection request, the first connection relationship is the connection relationship between the target device and the home appliance, and the target device is a device including a target client;
[0068] The module 54 is used to send a first connection request to the target device and receive the second connection request; when the target device establishes the first connection relationship according to the target connection request, send a binding request to the IoT cloud, so that the IoT cloud establishes a binding relationship between the IoT cloud and the home appliance device according to the binding request and the proxy binding request.
[0069] Through the above-mentioned device, a first connection request is sent to the target device, and a second connection request sent by the target device is received; when the target device establishes a first connection relationship between the target device and the household appliance according to the first connection request and the second connection request, a binding request is sent to the IoT cloud, and the target device is instructed to send a proxy binding request to the IoT cloud, so that the IoT cloud establishes a binding relationship between the IoT cloud and the household appliance according to the binding request and the proxy binding request. That is to say, the embodiment of the present application establishes a first connection relationship between the target device and the household appliance through the first connection request and the second connection request, and then a binding request can be sent to the IoT cloud, and the target device can be instructed to send a proxy binding request to the IoT cloud. Compared with the situation in the related art where only one-end binding is performed between the module and the IoT cloud, the embodiment of the present application performs two-end binding by sending a binding request to the IoT cloud through the module and instructing the target device to send a proxy binding request to the IoT cloud. This can solve the problem of binding failure in the related art where, during the binding process between the target device and the home appliance, one-end binding is usually performed between the module and the IoT cloud to achieve the binding between the target device and the home appliance, resulting in poor network environment for the module.
[0070] In an exemplary embodiment, the target device 52 is further used to send network configuration information to the module 54 based on the first connection relationship, and the module 54 is further used to receive the network configuration information; determine whether a router can be connected according to the network configuration information based on the first identity information, wherein the first identity information includes: a first user identity corresponding to the target object and a first local key.
[0071] It is understandable that before instructing the target device to send a proxy binding request to the IoT cloud, it is necessary to connect to the router. Specifically: it is necessary to receive the network configuration information sent by the target device, and determine whether the router can be connected according to the network configuration information based on the first identity information entered by the target object in the home appliance.
[0072] In an exemplary embodiment, the target device 52 is also used to send second identity information to the module 54, wherein the second identity information is identity information stored in the target device, and the second identity information includes: a second user identity and a second local key corresponding to the target object; the module 54 is also used to receive the second identity information; when it is determined that the first identity information and the second identity information are consistent, allowing the router to be connected according to the network configuration information; when it is determined that the first identity information and the second identity information are inconsistent, prohibiting the router from being connected according to the network configuration information.
[0073] It is understandable that the module can obtain the first identity information, and also needs to obtain the second identity information sent by the target device. Only by comparing the first identity information and the second identity information can it be determined whether the router can be connected according to the network configuration information. Specifically: only when the first user identity in the first identity information is consistent with the second user identity in the second identity information, and the first local key in the first identity information is consistent with the second local key in the second identity information, can it be determined that the router is allowed to be connected according to the first configuration information. In the following situations, it is prohibited to connect to the router based on the network configuration information:
[0074] 1) The first user identity is consistent with the second user identity, and the first local key is inconsistent with the second local key;
[0075] 2) The first user identity is inconsistent with the second user identity, and the first local key is consistent with the second local key;
[0076] 3) The first user identity is inconsistent with the second user identity, and the first local key is inconsistent with the second local key.
[0077] In an exemplary embodiment, when it is determined that connection to the router is allowed according to the network configuration information, the module 54 is also used to send a third connection request to the router according to the network configuration information to establish a second connection relationship with the router; when it is determined that connection to the router according to the network configuration information is prohibited, an authentication failure notification is sent to the target device.
[0078] It is understandable that before sending a binding request to the IoT Cloud and instructing the target device to send a proxy binding request to the IoT Cloud, the module needs to be configured for network, specifically: receiving the network configuration information sent by the target device, determining whether the first user identity and the second identity information corresponding to the target object are consistent, and determining whether the first local key and the second local key corresponding to the target object are consistent. When the first identity information and the second identity information are consistent, and the first local key and the second local key are consistent, the router can be connected according to the network configuration information to establish a second connection relationship. When it is determined that the second connection relationship is successfully established, the identity and security authentication is successful.
[0079] In an exemplary embodiment, when the second connection relationship is successfully established, the module 54 is further used to send the binding request to the IoT cloud according to the second connection relationship; the target device 52 is further used to send the proxy binding request to the IoT cloud.
[0080] In an exemplary embodiment, the module 54 is also used to determine that the binding relationship between the IoT cloud and the household appliance is successfully established when it is determined that a first binding result sent by the IoT cloud to the target device based on the proxy binding request is a successful binding, and / or when it is determined that a second binding result sent by the IoT cloud based on the binding request is a successful binding.
[0081] It is understandable that, when the second connection relationship is successfully established, it can be determined that the first connection relationship between the target device and the module, and the second connection relationship between the module and the router have been established. At this time, the target device can be instructed to send a binding request to the IoT Cloud based on the first connection relationship, and a proxy binding request can be sent to the IoT Cloud based on the second connection relationship. Through the above embodiment, if one of the technical binding request and the proxy binding request is not successfully bound, it can also be determined that the module is successfully bound to the IoT Cloud; only when it is determined that both the binding request and the proxy binding request are not successfully bound, can it be determined that the module has failed to bind to the IoT Cloud. Reduce the possibility of failure in binding between the module and the IoT Cloud.
[0082] An embodiment of the present application further provides a storage medium, which includes a stored program, wherein the program executes any of the above methods when it is run.
[0083] Optionally, in this embodiment, the storage medium may be configured to store program codes for executing the following steps:
[0084] S1, sending a first connection request to a target device, and receiving a second connection request sent by the target device;
[0085] S2. When the target device establishes a first connection relationship according to a target connection request, a binding request is sent to the IoT cloud, and the target device is instructed to send a proxy binding request to the IoT cloud, so that the IoT cloud establishes a binding relationship between the IoT cloud and the home appliance according to the binding request and the proxy binding request, wherein the target connection request includes: the first connection request and the second connection request, the first connection relationship is a connection relationship between the target device and the home appliance, and the target device is a device including a target client.
[0086] An embodiment of the present application further provides an electronic device, including a memory and a processor, wherein a computer program is stored in the memory, and the processor is configured to run the computer program to execute the steps in any one of the above method embodiments.
[0087] Optionally, the electronic device may further include a transmission device and an input / output device, wherein the transmission device is connected to the processor, and the input / output device is connected to the processor.
[0088] Optionally, in this embodiment, the processor may be configured to perform the following steps through a computer program:
[0089] S1, sending a first connection request to a target device, and receiving a second connection request sent by the target device;
[0090] S2. When the target device establishes a first connection relationship according to a target connection request, a binding request is sent to the IoT cloud, and the target device is instructed to send a proxy binding request to the IoT cloud, so that the IoT cloud establishes a binding relationship between the IoT cloud and the home appliance according to the binding request and the proxy binding request, wherein the target connection request includes: the first connection request and the second connection request, the first connection relationship is a connection relationship between the target device and the home appliance, and the target device is a device including a target client.
[0091] An embodiment of the present application further provides a computer program product, including a computer program, which is used by a processor to execute the steps in any of the above method embodiments.
[0092] Optionally, in this embodiment, the computer program product may be executed by a processor to perform the following steps:
[0093] S1, sending a first connection request to a target device, and receiving a second connection request sent by the target device;
[0094] S2. When the target device establishes a first connection relationship according to a target connection request, a binding request is sent to the IoT cloud, and the target device is instructed to send a proxy binding request to the IoT cloud, so that the IoT cloud establishes a binding relationship between the IoT cloud and the home appliance according to the binding request and the proxy binding request, wherein the target connection request includes: the first connection request and the second connection request, the first connection relationship is a connection relationship between the target device and the home appliance, and the target device is a device including a target client.
[0095] Optionally, in this embodiment, the above-mentioned storage medium may include but is not limited to: a USB flash drive, a read-only memory (ROM), a random access memory (RAM), a mobile hard disk, a magnetic disk or an optical disk, and other media that can store program codes.
[0096] Optionally, the specific examples in this embodiment may refer to the examples described in the above embodiments and optional implementation modes, and this embodiment will not be described in detail here.
[0097] Obviously, those skilled in the art should understand that the above modules or steps of the present application can be implemented by a general computing device, they can be concentrated on a single computing device, or distributed on a network composed of multiple computing devices, and optionally, they can be implemented by a program code executable by a computing device, so that they can be stored in a storage device and executed by the computing device, and in some cases, the steps shown or described can be executed in a different order from that herein, or they can be made into individual integrated circuit modules, or multiple modules or steps therein can be made into a single integrated circuit module for implementation. Thus, the present application is not limited to any specific combination of hardware and software.
[0098] The above is only a preferred implementation of the present application. It should be pointed out that for ordinary technicians in this technical field, several improvements and modifications can be made without departing from the principles of the present application. These improvements and modifications should also be regarded as the scope of protection of the present application.
Claims
1. A device binding method, characterized in that: include: Sending a first connection request to a target device, and receiving a second connection request sent by the target device; In the case where the target device establishes a first connection relationship according to the target connection request, a binding request is sent to the IoT cloud, and the target device is instructing to send a proxy binding request to the IoT cloud, so that the IoT cloud establishes a binding relationship between the IoT cloud and the home appliance according to the binding request and the proxy binding request, wherein the target connection request includes: the first connection request and the second connection request, the first connection relationship is a connection relationship between the target device and the home appliance, and the target device is a device including a target client.
2. The device binding method according to claim 1, characterized in that: Before sending the binding request to the IoT cloud and instructing the target device to send a proxy binding request to the IoT cloud, the method further includes: Receiving network configuration information sent by the target device based on the first connection relationship; Determine whether a router can be connected according to the network configuration information according to the first identity information, wherein the first identity information includes: a first user identity and a first local key corresponding to the target object.
3. The device binding method according to claim 2, characterized in that: Determining whether a router can be connected according to the network configuration information according to the first identity information includes: Receiving second identity information sent by the target device, wherein the second identity information is identity information stored in the target device, and the second identity information includes: a second user identity corresponding to the target object and a second local key; If it is determined that the first identity information and the second identity information are consistent, allowing connection to the router according to the network configuration information; When it is determined that the first identity information and the second identity information are inconsistent, connecting to the router according to the network configuration information is prohibited.
4. The device binding method according to claim 2, characterized in that: After determining whether the router can be connected according to the network configuration information according to the first identity information, the method further includes: In a case where it is determined that connection to the router is allowed according to the network configuration information, sending a third connection request to the router according to the network configuration information to establish a second connection relationship with the router; In a case where it is determined that connection to the router according to the network configuration information is prohibited, an authentication failure notification is sent to the target device.
5. The device binding method according to claim 4, characterized in that: Sending a binding request to the IoT cloud, and instructing the target device to send a proxy binding request to the IoT cloud, includes: In the case where the second connection relationship is successfully established, the binding request is sent to the IoT cloud according to the second connection relationship, and the target device is instructed to send the proxy binding request to the IoT cloud based on the first connection relationship.
6. The device binding method according to claim 1, characterized in that: After sending the binding request to the IoT cloud and instructing the target device to send a proxy binding request to the IoT cloud, the method further includes: In the case where it is determined that the first binding result sent by the IoT cloud to the target device based on the proxy binding request is a successful binding, and / or When it is determined that the second binding result sent by the IoT cloud based on the binding request is a successful binding, it is determined that the binding relationship between the IoT cloud and the home appliance is successfully established.
7. A device binding system, characterized in that: include: Target devices and modules, including: The target device is used to send a second connection request to the module and receive a first connection request sent by the module; in the case of establishing a first connection relationship according to the target connection request, send a proxy binding request to the IoT cloud, wherein the target connection request includes: the first connection request and the second connection request, the first connection relationship is a connection relationship between the target device and the home appliance, and the target device is a device including a target client; The module is used to send a first connection request to the target device and receive the second connection request; when the target device establishes the first connection relationship according to the target connection request, send a binding request to the IoT cloud, so that the IoT cloud establishes a binding relationship between the IoT cloud and the home appliance device according to the binding request and the proxy binding request.
8. A computer-readable storage medium, characterized in that: The computer-readable storage medium includes a stored program, wherein the program executes the method described in any one of claims 1 to 6 when executed.
9. An electronic device comprising a memory and a processor, characterized in that: A computer program is stored in the memory, and the processor is configured to execute the method according to any one of claims 1 to 6 through the computer program.
10. A computer program product, comprising a computer program, characterized in that The computer program is used by a processor to execute the method described in any one of claims 1 to 6.
