Method, storage medium and electronic device for controlling equipment
By establishing a temporary secure connection channel between the bound device and the target device and forwarding control instructions, the problems of complex binding and long control time of smart home devices are solved, and the rapid control of the device is achieved.
Patent Information
- Application Number
- CN202211509537.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-11-29
- Publication Date
- 2025-05-02
- Estimated Expiration
- 2042-11-29
AI Technical Summary
The large number of smart home devices has led to an increase in binding workload, and the existing technology's network configuration binding process is complex, which extends the time for device control.
The bound device sends configuration binding messages, carries the target device information and the key information used to establish a temporary secure connection channel, establishes a temporary secure connection channel, and forwards control instructions through this channel to achieve control of the target device when the target device does not establish an association relationship with the user account.
The process of device control is simplified, the time to bind to user accounts is reduced, and the rapid control of unbound devices is achieved.
Smart Images

Figure CN115967588B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of smart home, and more specifically, to a method, storage medium and electronic device for controlling equipment. Background Art
[0002] With the development of Internet of Things technology, smart home devices can be bound to smart terminals. After binding, smart home devices can be controlled remotely or through a local area network through smart terminals. In some scenarios, there are a large number of smart home devices, which invisibly increases the workload of binding.
[0003] In the related art, when smart home devices enter the home network environment, they usually need to perform network configuration and binding operations before they can be controlled. However, the network configuration and binding process is complicated, and most platforms require users to bind with smart devices before smart home devices can be put online and controlled. This cumbersome operation prolongs the time required to control the device, making it difficult for users to quickly control the device.
[0004] It should be noted that the information disclosed in the above background technology section is only used to enhance the understanding of the background of the present application, and therefore may include information that does not constitute the prior art known to ordinary technicians in the field. Summary of the invention
[0005] In order to provide a basic understanding of some aspects of the disclosed embodiments, a brief summary is given below. The summary is not an extensive review, nor is it intended to identify key / critical components or delineate the scope of protection of these embodiments, but rather serves as a prelude to the detailed description that follows.
[0006] The embodiments of the present disclosure provide a control, storage medium and electronic device for smart home appliances, so as to shorten the time required for a terminal device to control an unbound device, and enable faster control of the unbound device.
[0007] In some embodiments, the method includes: sending a configuration binding message, the configuration binding message carrying target device information and key information for establishing a temporary secure connection channel; receiving a confirmation message from the target device, and establishing the temporary secure connection channel with the target device based on the key information; triggering an operation of sending an online declaration of the target device; receiving a control instruction of the target device triggered based on the online declaration; and, if the target device has not established an association with a user account, sending the control instruction to the target device through the temporary secure connection channel to achieve control of the target device.
[0008] In some embodiments, the method includes: receiving a configuration binding message, the configuration binding message carrying target device information and key information for establishing a temporary secure connection channel; parsing the configuration binding message to obtain a target device identifier; when the target device identifier matches the identifier of the current device, sending a confirmation message to the bound device so that the bound device establishes the temporary secure connection channel with the target device based on the key information; when the bound device triggers the operation of sending an online declaration of the target device, and no association is established between the target device and the user account binding, receiving, through the temporary secure connection channel, a control instruction of the target device triggered by the online declaration and forwarded by the bound device.
[0009] In some embodiments, the computer-readable storage medium includes: a stored program, wherein the program executes the aforementioned method when it is run.
[0010] In some embodiments, the electronic device includes: a memory and a processor, the memory stores a computer program, and the processor is configured to execute the aforementioned method through the computer program.
[0011] The control, storage medium and electronic device for smart home appliances provided by the embodiments of the present disclosure can achieve the following technical effects:
[0012] In the disclosed embodiment, a configuration binding message is sent through a bound device. After the target device responds, the bound device establishes a temporary secure connection channel with the target device. The target device is declared online and receives control instructions related to the target device. In the case where the target device has not established an association with the user account, the bound device forwards the control instructions to the target device through the temporary secure connection channel to control the target device. In this way, when the target device is not bound to the user account, the control instructions can be forwarded through the bound device. In this way, the time for binding with the user account is saved, and the target device can be controlled more quickly.
[0013] The above general description and the following description are exemplary and explanatory only and are not intended to limit the present application. BRIEF DESCRIPTION OF THE DRAWINGS
[0014] 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.
[0015] 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.
[0016] Figure 1 is a schematic diagram of a hardware environment of an interaction method of a smart device according to an embodiment of the present application;
[0017] Figure 2 is a schematic diagram of a method for controlling a bound device according to an embodiment of the present application;
[0018] Figure 3 is a schematic diagram of another method for controlling a bound device according to an embodiment of the present application;
[0019] Figure 4 is a schematic diagram of another method for controlling a bound device according to an embodiment of the present application;
[0020] Figure 5 is a schematic diagram of a method for controlling an unbound device according to an embodiment of the present application;
[0021] Figure 6 is a schematic diagram of another method for controlling an unbound device according to an embodiment of the present application;
[0022] Figure 7 is a schematic diagram of another method for controlling an unbound device according to an embodiment of the present application;
[0023] Figure 8 is a structural diagram of a smart home system according to an embodiment of the present application;
[0024] Figure 9-1 is an application schematic diagram according to an embodiment of the present application;
[0025] Figure 9-2 is another application schematic diagram according to an embodiment of the present application;
[0026] Fig.10 It is a schematic diagram of a device for controlling equipment according to an embodiment of the present application. DETAILED DESCRIPTION
[0027] 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.
[0028] 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.
[0029] According to one aspect of an embodiment of the present application, a method for interacting with a smart home device is provided. The method for interacting with a smart home device is widely used in smart home, smart home, smart home device ecosystem, smart home ecosystem and other whole-house intelligent digital control application scenarios. Optionally, in this embodiment, the method for interacting with the smart home device can be applied to Figure 1 In the hardware environment composed of the terminal device 102 and the server 104 shown in FIG. Figure 1 As shown, the server 104 is connected to the terminal device 102 via a network, and can be used to provide services (such as application services, etc.) for the terminal or a client installed on the terminal. 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.
[0030] 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 terminal device 102 may be but is not limited to a PC, a mobile phone, a tablet computer, a smart air conditioner, a smart range hood, a smart refrigerator, a smart oven, a smart stove, a smart washing machine, a smart water heater, a smart washing device, a smart dishwasher, a smart projection device, a smart TV, a smart clothes drying rack, a smart curtain, a smart audio and video, a smart socket, a smart speaker, a smart fresh air device, a smart kitchen and bathroom device, a smart bathroom device, a smart sweeping robot, a smart window cleaning robot, a smart mopping robot, a smart air purification device, a smart steamer, a smart microwave oven, a smart kitchen treasure, a smart purifier, a smart water dispenser, a smart door lock, etc.
[0031] Combination Figure 2 As shown, an embodiment of the present disclosure provides a method for controlling a device, which is applied to a bound device, including:
[0032] S201, the bound device sends a configuration binding message, which carries target device information and key information for establishing a temporary secure connection channel.
[0033] S202, the bound device receives a confirmation message from the target device and establishes a temporary secure connection channel with the target device based on the key information.
[0034] S203: The bound device triggers the operation of sending an online announcement to the target device.
[0035] S204, the bound device receives a control instruction of the target device triggered by the online announcement.
[0036] S205: If the target device has not established an association relationship with the user account, the bound device sends the control instruction to the target device through a temporary secure connection channel to achieve control over the target device.
[0037] Here, a bound device refers to a smart device that has established an association with a user account (i.e., bound to a user account) and can receive control instructions through the network. For example, a bound device can receive instructions from a terminal device, or receive instructions from the cloud, etc. A target device refers to a device to be bound that the user wants to control but has not established an association with a user account and has not joined the network where the bound device is located. In this case, the target device cannot receive control instructions. Therefore, the embodiment of the present disclosure forwards control instructions to the target device through a bound device.
[0038] Specifically, the bound device sends a configuration binding message. Among them, the sending method includes broadcast or unicast. As an example, when the bound device specifies the target device, the configuration binding message can be sent to the target device by unicast. In addition, if there are multiple target devices, even if the bound device specifies each target device, it can be sent by broadcast. As another example, when the bound device does not specify the target device, the configuration binding message can be sent by broadcast. The configuration binding message can be sent by the user through BLE (Bluetooth Low Energy), WIFI (Wireless-Fidelity), ZigBee, router, etc. The configuration binding message includes information and key information of the target device. Among them, the information of the target device includes information such as the MAC (Media Access Control) address, SSID (Service Set Identifier), PWD (Password) of the target device. The key information is used to establish a temporary secure connection between the bound device and the target device, including PUBLIC KEY (public key) + random number to improve the security of the key.
[0039] After the bound device receives the binding message, it parses the binding message. After determining that the information matches, it feeds back a bound device confirmation message. When the target device is not unique, the feedback confirmation message may carry the identification information of the target device, such as the MAC address. In this way, the bound device can identify the source of the confirmation message, and then establish a temporary secure connection channel based on the key information between the target device and the target device. The temporary secure connection channel is a channel for the target device to temporarily communicate with the bound device when it is not bound to the user account. After the temporary secure connection channel is established, the target device is sent to the online announcement. Here, the online announcement of the target device can be a local area network announcement, a cloud announcement (i.e., a wide area network announcement), or even a local area network and a wide area network announcement. The local area network announcement refers to notifying the terminal device that the target device and the bound device have been bound, while the cloud announcement refers to requesting the cloud server to bind the target device to the user account. In some embodiments, when the terminal device needs to control the target device, it can be determined whether to initiate a local area network announcement or a cloud announcement based on the network information where the terminal device is located. For example, if the network information of the terminal device indicates that the terminal device is in the LAN environment where the bound device is located, a LAN announcement is initiated; otherwise, a cloud announcement is initiated. In addition, the location information of the terminal device can also be used to determine whether the terminal device is in the LAN environment where the bound device is located.
[0040] Then, the terminal device, other control terminal or cloud can issue control instructions to the target device, and the bound device receives the control instructions related to the target device. If the target device is not associated with the user account, the bound device can communicate with the target device through the temporary secure connection channel established above. That is, the control instructions are sent to the target device through the temporary secure connection channel. In this way, the target device can be controlled even if it is not associated with the user account.
[0041] Using the method for controlling a device provided by an embodiment of the present disclosure, a configuration binding message is sent through a bound device. After the target device responds, the bound device establishes a temporary secure connection channel with the target device. The target device is announced to be online, and control instructions related to the target device are received. In the case where the target device has not established an association with the user account, the bound device forwards the control instructions to the target device through the temporary secure connection channel to control the target device. In this way, when the target device is not bound to the user account, the control instructions can be forwarded through the bound device. In this way, the time for binding with the user account is saved, and the target device can be controlled more quickly.
[0042] Optionally, the online announcement includes a local area network announcement and / or a cloud announcement; step S203, the operation of triggering the online announcement of the target device by the bound device includes:
[0043] The operation of triggering the sending of the cloud declaration of the target device by the bound device includes: sending a configuration binding message to the cloud server, so that the cloud server establishes an association relationship between the target device and the user account according to the configuration binding message.
[0044] The operation of the bound device triggering the sending of the LAN announcement of the target device includes: sending a message that the target device and the bound device have successfully established an association relationship.
[0045] Here, the cloud announcement is initiated by the bound device on behalf of the target device, because when the target device has not joined the basic wireless network where the bound device is located, it cannot directly connect to the cloud server. In this case, it can be initiated by the bound device. When the bound device initiates the cloud announcement on behalf of the target device, it also means notifying the cloud server that the bound device and the target device are bound. That is to say, only after the bound device and the target setting establish an association relationship, the bound device can initiate the cloud announcement on behalf of the target device. In addition, when the target device joins the basic wireless network where the bound device is located, the target device can initiate the cloud announcement by itself. To request the cloud server to establish an association relationship between the target device and the user account according to the configuration binding message, that is, to request the cloud server to bind the target device to the user account. Among them, the target device needs more information to join the basic wireless network where the bound device is located, resulting in a slow network access speed. The cloud announcement initiated by the bound device does not require the target device to provide a large amount of information, and only needs to feedback the bound device confirmation message. This method takes effect faster and helps to quickly associate the target device with the user account. Therefore, the pending binding method can achieve rapid binding of the target device with the user account. In addition, the basic wireless network where the bound device is located refers to the wireless local area network.
[0046] The LAN announcement is also initiated by the bound device. That is, after the bound device successfully establishes an association with the target device, it sends the message to the LAN to notify the terminal device. The establishment of an association between the bound device and the target device means that the bound device and the target device successfully establish a temporary secure connection channel, or in other words, the bound device and the target device are bound. In this way, the terminal device can control the target device through the bound device.
[0047] Combination Figure 3 As shown, the embodiment of the present disclosure provides another method for controlling a device, including:
[0048] S301, the bound device sends a configuration binding message, which carries target device information and key information for establishing a temporary secure connection channel.
[0049] S302, the bound device receives a confirmation message from the target device and establishes a temporary secure connection channel with the target device based on the key information.
[0050] S303, the bound device triggers the operation of sending a local area network announcement and a cloud announcement to the target device in sequence.
[0051] S304, the bound device receives a control instruction of the target device triggered by the Internet access announcement.
[0052] S305: If the target device has not established an association relationship with the user account, the bound device sends the control instruction to the target device through a temporary secure connection channel to achieve control of the target device.
[0053] S306, if the bound device receives a message that the association between the target device and the user account has been successfully established, it triggers an operation to change the association between the target device and the bound device to the association between the target device and the user account; and destroys the established temporary secure connection channel.
[0054] Here, when the control terminal is in the local area network where the bound device is located, in order to quickly achieve control of the target device. The target device is controlled through the temporary secure connection channel established between the target device and the bound device. After that, the bound device can also initiate a cloud announcement on behalf of the target device, and after the cloud server feedback has successfully established the association relationship between the target device and the user account, it triggers the operation of changing the association relationship between the target device and the bound device to the association relationship between the target device and the user account. The execution subject of this operation depends on the preservation subject of the above two association relationships. As an example, the above two association relationships can be saved on the cloud server or the local server. The bound device triggers the cloud server or the local server to change the association relationship. At the same time, the bound device destroys the established temporary secure connection. It can be understood that after the cloud server successfully associates the target device with the user account, the cloud server establishes a new communication channel, then the target device can be controlled based on the new communication channel.
[0055] Optionally, in step S306, when the bound device destroys the established temporary secure connection channel, the following steps are also included:
[0056] The bound device receives the key information sent by the cloud server for establishing a non-temporary secure connection channel.
[0057] The bound device sends the control command to the target device through a non-temporary secure connection channel established based on the key information.
[0058] Here, after the target device is successfully bound to the user account, the cloud server sends the bound device key information, which is used to establish a non-temporary secure connection channel between the bound device and the target device. The non-temporary secure connection channel is a communication channel between the cloud server and the bound device, which is allocated to the target device. Therefore, the bound device can forward the control instructions of the cloud server or terminal device to the target device based on the non-temporary secure connection channel. At the same time, the response instructions or operation information of the target device can also be forwarded to the cloud server or terminal device based on the temporary secure connection channel. In this way, after the target device is associated with the user account, the control of the target device can be achieved through a non-temporary secure connection channel.
[0059] Combination Figure 4 As shown, the embodiment of the present disclosure provides another method for controlling a device, including:
[0060] S401, the bound device sends a configuration binding message, which carries target device information and key information for establishing a temporary secure connection channel.
[0061] S402, the bound device receives a confirmation message from the target device and establishes a temporary secure connection channel with the target device based on the key information.
[0062] S403, the bound device triggers the operation of sending a LAN announcement to the target device.
[0063] S404, the bound device receives a control instruction of the target device triggered by a local area network announcement.
[0064] S405: If the target device has not established an association relationship with the user account, the bound device sends the control instruction to the target device through a temporary secure connection channel to achieve control over the target device.
[0065] S406, if the bound device receives a message that the target device has accessed the basic wireless network, it triggers an operation of sending a configuration binding message to the cloud server so that the cloud server establishes an association between the target device and the user account; wherein the basic wireless network is the network where the bound device is located.
[0066] Here, it is different from the bound device initiating a cloud declaration on behalf of the target device as described above. The configuration binding message also carries the configuration information of the basic wireless network where the bound device is located, such as the MAC address of the basic wireless network. Therefore, the target device can initiate a connection based on the configuration information to request to join the basic wireless network. After the bound device receives the information that the target device has joined the basic wireless network, it triggers the operation of sending the configuration binding message to the cloud service. In this way, the cloud server can establish an association between the target device and the user account. In addition, it should be noted that after the cloud server successfully establishes an association between the target device and the user, the bound device destroys the temporary secure connection channel. The target device can receive control instructions from the cloud server through the basic wireless network, or receive control instructions forwarded by the terminal device through the cloud server based on the wireless basic network.
[0067] Optionally, after the bound device triggers the operation of sending the configuration binding message to the cloud server, S406 further includes:
[0068] If the operation of sending the configured binding message to the cloud server is generated by the device, and the bound device receives a message that the association relationship between the target device and the user account is not successfully established, the operation of sending the binding message to the cloud server is triggered again;
[0069] If the operation of sending the configuration binding message to the cloud server is generated for the target device, the bound device forwards the message to the target device when receiving a message indicating that the association relationship between the target device and the user account is not successfully established.
[0070] Here, the bound device triggers the operation of sending a configuration message to the cloud server. The executor of this operation can be the target device or the bound device. If the executor is a bound device, then upon receiving a message from the cloud server indicating that the association between the target device and the user account has failed to be established, the bound device again triggers the operation of sending a binding message to the cloud server. There are many reasons why the cloud server fails to successfully establish an association between the target device and the user account. In some embodiments, the binding fails because the cloud server times out in establishing the association between the target device and the user account. At this point, it is necessary to try binding again. In other embodiments, the binding fails because the configuration binding message sent by the bound device is not received by the cloud server. At this point, it is also necessary to try binding again.
[0071] Similarly, if the execution subject is the target device, when the bound device receives a message that the association between the target device and the user account cannot be established, the message is forwarded to the target device. Here, because the cloud server has not successfully established the association between the target device and the user account, the cloud server cannot directly forward the message to the target device through the basic wireless network. The message can only be forwarded to the bound device through the basic wireless network, and then forwarded to the target device by the bound device.
[0072] Combination Figure 5 As shown, an embodiment of the present disclosure provides a method for controlling a device, which is applied to a device to be bound, and includes:
[0073] S501: The device to be bound receives a configuration binding message, which carries target device information and key information for establishing a temporary secure connection channel.
[0074] S502: The device to be bound parses the configuration binding message to obtain a target device identifier.
[0075] S503, when the target device identifier matches the identifier of the device, the device to be bound sends a confirmation message to the bound device, so that the bound device establishes a temporary secure connection channel with the target device based on the key information.
[0076] S504, when the bound device triggers the operation of sending the online declaration of the target device and the target device has not established an association with the user account, the device to be bound receives the control instruction of the target device based on the online declaration trigger and forwarded by the bound device through a temporary secure connection channel.
[0077] Here, the device to be bound receives the configuration binding message sent by the bound device, and parses the configuration binding message to obtain the target device identifier. Among them, the target device identifier includes the attribute characteristics of the target device (the attribute characteristics are unique), so that the device to be bound can identify whether the attribute characteristics are the attribute characteristics of this device. That is, the device to be bound identifies whether the target device identifier matches the identifier of this device. If they match, it indicates that the configuration binding message is for this device (that is, the bound device is the target device). Then the device to be bound can send a confirmation message to the bound device, so that the bound device can establish a temporary secure connection channel with the target device based on the key information. Furthermore, the bound device triggers the operation of sending the online declaration of the target device, and when the device to be bound is not bound to the user account, the device to be bound receives the control instructions of the target device triggered by the online declaration forwarded by the bound device through the temporary secure connection channel.
[0078] Using the method for controlling a device provided by an embodiment of the present disclosure, a configuration binding message is sent through a bound device. After the target device responds, the bound device establishes a temporary secure connection channel with the target device. The target device is announced to be online, and control instructions related to the target device are received. In the case where the target device has not established an association with the user account, the bound device forwards the control instructions to the target device through the temporary secure connection channel to control the target device. In this way, when the target device is not bound to the user account, the control instructions can be forwarded through the bound device. In this way, the time for binding with the user account is saved, and the target device can be controlled more quickly.
[0079] Optionally, in step S502, the target device identification includes:
[0080] The media access control MAC address of the target device, or the Internet Protocol IP address of the target device, or the identification ID number of the target device.
[0081] Here, the target identifier can be any identifier that can indicate a unique attribute of the target device, such as a MAC address, an IP address, or an ID number.
[0082] Combination Figure 6 As shown, the embodiment of the present disclosure provides another method for controlling a device, which is applied to a device to be bound, and includes:
[0083] S601: The device to be bound receives a configuration binding message, where the configuration binding message carries target device information and key information for establishing a temporary secure connection channel.
[0084] S602: The device to be bound parses the configuration binding message to obtain a target device identifier.
[0085] S603: When the target device identifier matches the identifier of the device, the device to be bound sends a confirmation message to the bound device, so that the bound device establishes a temporary secure connection channel with the target device based on the key information.
[0086] S604, when the bound device triggers the operation of sending a LAN declaration to the target device and the target device has not established an association with the user account, the device to be bound receives the control instruction of the target device based on the online declaration trigger and forwarded by the bound device through a temporary secure connection channel.
[0087] S605, after the bound device triggers the sending of the LAN declaration of the target device and receives the message that the target device has successfully established an association with the user account, the device to be bound receives the control instructions of the target device based on the online declaration trigger and forwarded by the bound device through a non-temporary secure connection channel.
[0088] Among them, the non-temporary secure connection channel is established based on the key information of the non-temporary secure connection channel sent by the cloud server after the bound device triggers the cloud declaration operation.
[0089] Here, after the bound device triggers the sending of the LAN announcement of the target device, it can also trigger the cloud announcement of the target device, that is, the bound device initiates a request to bind to the user account on behalf of the target device. Since the target device can be controlled after the LAN announcement, the LAN announcement is triggered first and then the cloud announcement. The purpose of the cloud announcement is to enable the cloud server to establish an association between the target device and the user account, that is, to bind the target device to the user account. If the association is successfully established, the cloud server sends the key information for establishing a non-temporary secure connection channel for communication between the target device and the bound device to the bound device. In this way, when the bound device receives a control instruction for controlling the target device, the target device can receive the control instruction forwarded by the target device through the non-temporary secure connection channel.
[0090] That is to say, in LAN control, the target device can receive control instructions forwarded by the bound device through a temporary secure connection channel. If the target device is bound to a user account, the target device can receive control instructions forwarded by the bound device through a non-temporary secure connection channel. In addition, after the target device is bound to the user account, the control of the target device is not limited to the LAN. The control of the target device can also be achieved in the WAN. From the above analysis, it can be seen that in LAN control, the time required to establish a temporary secure connection channel is shorter than the time required for a non-temporary secure connection channel, so rapid control of the target device can be achieved.
[0091] In addition, in some embodiments, after the target device is bound to the user account, the target device can connect to the basic wireless network where the bound device is located. The connection can be initiated by configuring the configuration information of the basic wireless network in the binding message. When the basic wireless network is successfully connected, the target device can receive the control instructions of the terminal device forwarded by the basic wireless network, or receive the control instructions of the cloud server forwarded through the basic wireless network, or the control instructions received by the cloud server. There is no need to forward through the bound device.
[0092] Combination Figure 7 As shown, the embodiment of the present disclosure provides another method for controlling a device, which is applied to a device to be bound, and includes:
[0093] S701, the device to be bound receives a configuration binding message, where the configuration binding message carries target device information and key information for establishing a temporary secure connection channel.
[0094] S702: The device to be bound parses the configuration binding message to obtain a target device identifier.
[0095] S703, when the target device identifier matches the identifier of the device, the device to be bound sends a confirmation message to the bound device, so that the bound device establishes a temporary secure connection channel with the target device based on the key information.
[0096] S704, when the bound device triggers the operation of sending a LAN declaration to the target device and the target device has not established an association with the user account, the device to be bound receives the control instruction of the target device based on the online declaration trigger and forwarded by the bound device through a temporary secure connection channel.
[0097] S705, after the bound device triggers the local area network announcement of the target device, the device to be bound sends a connection request to the basic wireless network according to the configuration binding message.
[0098] S706, when successfully accessing the basic wireless network, the device to be bound sends a configuration binding message to the cloud server, so that the cloud server establishes an association relationship between the target device and the user account.
[0099] Here, after the bound device initiates the LAN announcement, the device to be bound can initiate a connection request to access the basic wireless network based on the configuration information of the basic wireless network in the configuration binding message. After successfully accessing the basic wireless network, a configuration message is sent to the cloud server so that the cloud server establishes an association between the target device and the user account. After the association is successfully established, the target device can receive control instructions forwarded by the cloud server through the basic wireless network, or control instructions received by the cloud server. At the same time, the temporary secure connection channel is destroyed.
[0100] Optionally, it also includes: after the bound device triggers the sending of a LAN announcement of the target device and the cloud server fails to successfully establish an association relationship between the target device and the user account, the target device receives a message of unsuccessful association establishment forwarded by the bound device.
[0101] Here, as mentioned above, when the target device fails to bind to the user account, the target device cannot connect to the cloud server and cannot receive messages from the cloud server. Therefore, the notification message of binding failure is forwarded from the bound device to the target device.
[0102] like Figure 8 As shown, an embodiment of the present disclosure provides a smart home system 80, including: a bound device 81 and a device to be bound 82.
[0103] Among them, the bound device is configured to send a configuration binding message, which carries the target device information and the key information for establishing a temporary secure connection. After receiving the confirmation message from the target device, a temporary secure connection channel is established with the target device based on the key information. The operation of sending the online declaration of the target device is triggered. And when the target device has not established an association relationship with the user account, the control instruction is sent to the target device through the temporary secure connection channel to achieve control of the target device.
[0104] The device to be bound is configured to receive a configuration binding message; parse the binding message to obtain the target device identifier. When the target device identifier matches the identifier of the device, a confirmation message is sent to the bound device so that the bound device establishes a temporary secure connection channel with the target device based on the key information. When the bound device triggers the operation of sending an online declaration of the target device, and the target device has not established an association with the user account binding, the control instruction of the target device forwarded by the bound device based on the online declaration is received through the temporary secure connection channel.
[0105] Optionally, the bound device triggers an operation of sending an online announcement of the target device, including triggering the sending of a local area network announcement and / or a cloud announcement.
[0106] The operation of triggering the cloud declaration of the target device by the bound device includes: sending a configuration binding message to the cloud server, so that the cloud server establishes an association relationship between the target device and the user account according to the configuration binding message.
[0107] The operation of the bound device triggering the sending of the local area network announcement of the target device includes sending a message that the target device has successfully established an association relationship with the bound device.
[0108] Optionally, after the bound device triggers the sending of the LAN announcement, if it receives a message that the association between the target device and the user account has been successfully established, it triggers the operation of changing the association between the target device and the bound device to the association between the target device and the user account. In addition, the established temporary secure connection channel is destroyed, and the key information of the non-temporary secure connection channel sent by the cloud server is received, and the control instruction is sent to the target device through the non-temporary secure connection channel established based on the key information.
[0109] Optionally, after the bound device triggers the LAN announcement, the device to be bound sends a configuration binding message to the basic wireless network, and when successfully accessing the basic wireless network, sends a configuration binding message to the cloud server so that the cloud server establishes an association between the target device and the user account.
[0110] In a practical application, Figure 9-1 As shown, this application scenario is suitable for the control of unbound devices by terminal devices in a local area network, as follows:
[0111] S901, the terminal device sends a configuration binding instruction to the bound device;
[0112] S902, the bound device sends a configuration binding instruction;
[0113] S903, the unbound device receives the configuration binding instruction and decrypts it to obtain the target MAC address;
[0114] S904, the unbound device determines that the target MAC address is consistent with the MAC address of the device;
[0115] S905, the unbound device sends a confirmation message to the bound device;
[0116] S906, the bound device establishes a temporary secure connection channel;
[0117] S907, the bound device sends a LAN announcement;
[0118] S908, the router forwards the LAN announcement to the terminal device;
[0119] S909, the terminal device is online on the LAN;
[0120] S910, the terminal device sends a control instruction;
[0121] S911, the router forwards the control command to the bound device;
[0122] S912, the bound device encapsulates the control instruction in the form of a management frame;
[0123] S919, the bound device sends a control instruction encapsulated in a management frame to the unbound device through a temporary secure connection channel.
[0124] In another practical application, Figure 9-2 As shown in the figure, this application scenario is suitable for the control of unbound devices by terminal devices in local area networks and wide area networks, as follows:
[0125] S1001, the terminal device sends a configuration binding instruction to the bound device;
[0126] S1002, the bound device sends a configuration binding instruction;
[0127] S1003, the unbound device receives the configuration binding instruction and decrypts it to obtain the target MAC address;
[0128] S1004, the unbound device determines that the target MAC address is consistent with the MAC address of the device;
[0129] S1005, the unbound device sends a confirmation message to the bound device;
[0130] S1006, the bound device establishes a temporary secure connection channel;
[0131] S1007, the bound device sends a LAN announcement; then executes S1008 and S1014;
[0132] S1008, the router forwards the LAN announcement to the terminal device;
[0133] S1009, the terminal device is online on the LAN;
[0134] S1010, the terminal device sends a control instruction;
[0135] S1011, the router forwards the control instruction to the bound device;
[0136] S1012, the bound device encapsulates the control instruction in the form of a management frame;
[0137] S1013, the bound device sends a control instruction encapsulated in a management frame to the unbound device through a temporary secure connection channel;
[0138] S1014, the bound device sends a cloud announcement;
[0139] S1015, the router forwards the cloud announcement to the cloud server;
[0140] S1016, the cloud server binds the unbound device to the user account;
[0141] S1017, the cloud server sends key information for establishing a non-temporary secure connection channel to the bound device (the key information is forwarded by the router);
[0142] S1018: The bound device destroys the temporary secure connection channel and establishes a non-temporary secure connection channel;
[0143] S1019, the terminal device is online in the cloud;
[0144] S1020, the terminal device sends a control instruction;
[0145] S1021, cloud server forwarding control instruction;
[0146] S1022, the router forwards the control instruction to the bound device;
[0147] S1023, the bound device encapsulates the control instruction in the form of a management frame;
[0148] S1024, the bound device sends a control instruction encapsulated in a management frame to the unbound device through a non-temporary secure connection channel.
[0149] Combination Fig.10 As shown, the present disclosure provides an apparatus (electronic device) for controlling a device.
[0150] 300, including a processor 11 and a memory 12. Optionally, the device may also include a communication interface 13 and a bus 14. The processor 11, the communication interface 13, and the memory 12 may communicate with each other through the bus 14. The communication interface 13 may be used for information transmission. The processor 11 may call the logic instructions in the memory 12 to execute the method for controlling the device of the above embodiment.
[0151] In addition, the logic instructions in the memory 12 can be implemented in the form of software functional units and can be stored in a computer-readable storage medium when sold or used as an independent product.
[0152] The memory 12 is a computer-readable storage medium that can be used to store software programs and computer executable programs, such as program instructions / modules corresponding to the method in the embodiment of the present disclosure. The processor 11 executes the function application and data processing by running the program instructions / modules stored in the memory 12, that is, implements the method for controlling the device in the above embodiment.
[0153] The memory 12 may include a program storage area and a data storage area, wherein the program storage area may store an operating system and an application required for at least one function; the data storage area may store data created according to the use of the terminal device, etc. In addition, the memory 12 may include a high-speed random access memory and may also include a non-volatile memory.
[0154] An embodiment of the present disclosure provides a computer-readable storage medium storing computer-executable instructions, wherein the computer-executable instructions are configured to execute the above method for controlling a device.
[0155] The computer-readable storage medium mentioned above may be a transient computer-readable storage medium or a non-transitory computer-readable storage medium.
[0156] The technical solution of the embodiment of the present disclosure can be embodied in the form of a software product, which is stored in a storage medium and includes one or more instructions for enabling a computer device (which may be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the method described in the embodiment of the present disclosure. The aforementioned storage medium may be a non-transient storage medium, including: a USB flash drive, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk, and other media that can store program codes, or a transient storage medium.
[0157] The above description and the accompanying drawings fully illustrate the embodiments of the present disclosure so that those skilled in the art can practice them. Other embodiments may include structural, logical, electrical, process and other changes. The embodiments represent only possible changes. Unless explicitly required, separate components and functions are optional, and the order of operation may vary. The parts and features of some embodiments may be included in or replace the parts and features of other embodiments. Moreover, the words used in this application are only used to describe the embodiments and are not used to limit the claims. As used in the description of the embodiments and the claims, unless the context clearly indicates, the singular forms of "a", "an" and "the" are intended to include plural forms as well. Similarly, the term "and / or" as used in this application refers to any and all possible combinations of listings containing one or more associated ones. In addition, when used in the present application, the term "comprise" and its variants "comprises" and / or comprising refer to the presence of stated features, wholes, steps, operations, elements, and / or components, but do not exclude the presence or addition of one or more other features, wholes, steps, operations, elements, components and / or groups thereof. In the absence of further restrictions, the elements defined by the sentence "comprising a ..." do not exclude the presence of other identical elements in the process, method or device comprising the elements. In this article, each embodiment may focus on the differences from other embodiments, and the same and similar parts between the various embodiments may refer to each other. For the methods, products, etc. disclosed in the embodiments, if they correspond to the method part disclosed in the embodiments, then the relevant parts can refer to the description of the method part.
[0158] Those skilled in the art will appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are performed in hardware or software may depend on the specific application and design constraints of the technical solution. The technicians may use different methods for each specific application to implement the described functions, but such implementations should not be considered to exceed the scope of the embodiments of the present disclosure. The technicians may clearly understand that, for the convenience and simplicity of description, the specific working processes of the systems, devices and units described above may refer to the corresponding processes in the aforementioned method embodiments, and will not be repeated here.
[0159] In the embodiments disclosed herein, the disclosed methods and products (including but not limited to devices, equipment, etc.) can be implemented in other ways. For example, the device embodiments described above are only schematic. For example, the division of the units can be only a logical function division. There may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. In addition, the coupling or direct coupling or communication connection between each other shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or units, which can be electrical, mechanical or other forms. The units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, they may be located in one place, or they may be distributed on multiple network units. Some or all of the units may be selected according to actual needs to implement this embodiment. In addition, each functional unit in the embodiment of the present disclosure may be integrated in a processing unit, or each unit may exist physically alone, or two or more units may be integrated in one unit.
[0160] The flowchart and block diagram in the accompanying drawings show the possible architecture, function and operation of the system, method and computer program product according to the embodiment of the present disclosure. In this regard, each box in the flowchart or block diagram can represent a module, a program segment or a part of the code, and the module, the program segment or a part of the code contains one or more executable instructions for realizing the specified logical function. In some alternative implementations, the functions marked in the box can also occur in a different order from the order marked in the accompanying drawings. For example, two consecutive boxes can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, which can depend on the functions involved. In the description corresponding to the flowchart and the block diagram in the accompanying drawings, the operations or steps corresponding to different boxes can also occur in a different order from the order disclosed in the description, and sometimes there is no specific order between different operations or steps. For example, two consecutive operations or steps can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, which can depend on the functions involved. Each block in the block diagrams and / or flowcharts, and combinations of blocks in the block diagrams and / or flowcharts, may be implemented by a dedicated hardware-based system that performs the specified functions or actions, or may be implemented by a combination of dedicated hardware and computer instructions.
[0161] 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 method for controlling a device, applied to a bound device, characterized in that: The method comprises: Sending a configuration binding message, wherein the configuration binding message carries target device information and key information for establishing a temporary secure connection channel; Receiving a confirmation message from the target device, and establishing the temporary secure connection channel with the target device based on the key information; Triggering an operation of sending an online announcement of the target device; receiving a control instruction of the target device triggered by the online announcement; If the target device has not established an association relationship with the user account, the control instruction is sent to the target device through the temporary secure connection channel to achieve control over the target device.
2. The method according to claim 1, characterized in that The online announcement includes: local area network announcement and / or cloud announcement; The operation of triggering the sending of the cloud declaration of the target device includes: sending the configuration binding message to the cloud server, so that the cloud server establishes an association relationship between the target device and the user account according to the configuration binding message; The operation of triggering the sending of the local area network announcement of the target device includes: sending a message that the target device has successfully established an association relationship with the bound device.
3. The method according to claim 2, characterized in that The online announcement includes a local area network announcement and a cloud announcement; after first triggering the sending of the local area network announcement of the target device and then triggering the sending of the cloud announcement of the target device; further comprising: If a message is received that the association between the target device and the user account has been successfully established, an operation is triggered to change the association between the target device and the bound device to the association between the target device and the user account; and the established temporary secure connection channel is destroyed.
4. The method according to claim 3, characterized in that While destroying the established temporary secure connection channel, it also includes: Receiving key information sent by the cloud server for establishing a non-temporary secure connection channel; The control instruction is forwarded to the target device through a non-temporary secure connection channel established based on the key information.
5. The method according to any one of claims 1 to 4, characterized in that: The online announcement includes a local area network announcement, and after triggering the operation of sending the local area network announcement, it also includes: If a message is received that the target device has accessed the basic wireless network, an operation of sending the configuration binding message to the cloud server is triggered, so that the cloud server establishes an association relationship between the target device and the user account; The basic wireless network is the network where the bound device is located.
6. The method according to claim 5, characterized in that After the triggering operation of sending the configuration binding message to the cloud server, the method further includes: If the operation of sending the configured binding message to the cloud server is generated by the device, and a message is received that the association relationship between the target device and the user account cannot be established, the operation of sending the configured binding message to the cloud server is triggered again; If the operation of sending the configuration binding message to the cloud server is generated for the target device, when a message is received indicating that an association relationship between the target device and the user account cannot be established, the message is forwarded to the target device.
7. A method for controlling a device, applied to a device to be bound, characterized in that: The method comprises: Receiving a configuration binding message, wherein the configuration binding message carries target device information and key information for establishing a temporary secure connection channel; Parse the binding message and obtain the target device ID; When the target device identifier matches the identifier of the current device, a confirmation message is sent to the bound device, so that the bound device establishes the temporary secure connection channel with the target device based on the key information; When the bound device triggers the operation of sending an online declaration of the target device and the target device has not established an association with a user account, a control instruction of the target device triggered by the online declaration and forwarded by the bound device is received through the temporary secure connection channel.
8. The method according to claim 7, characterized in that The online announcement includes a local area network announcement and a cloud announcement; the method further includes: After the bound device triggers sending the local area network announcement of the target device and receives a message that the association relationship between the target device and the user account has been successfully established, the method further includes: Receiving, through a non-temporary secure connection channel, a control instruction of the target device triggered based on a cloud announcement forwarded by the bound device; The non-temporary secure connection channel is established by the bound device based on the key information of the non-temporary secure connection channel sent by the cloud server after triggering the cloud announcement.
9. The method according to claim 7, characterized in that: The online announcement includes a local area network announcement; after the bound device triggers the operation of sending the local area network announcement, the method further includes: Sending a connection request to the basic wireless network according to the configuration binding message; In case of successful access to the basic wireless network, sending the configuration binding message to the cloud server so that the cloud server establishes an association relationship between the target device and the user account; The basic wireless network is the network where the bound device is located.
10. The method according to claim 9, characterized in that Also includes: In the case that the cloud server fails to successfully establish an association relationship between the target device and the user account, a message forwarded by the bound device indicating that an association relationship cannot be established is received.
11. A smart home system, characterized in that: include: The bound device is configured to send a configuration binding message, the configuration binding message carries target device information and key information for establishing a temporary secure connection; after receiving a confirmation message from the target device, establish a temporary secure connection channel with the target device based on the key information; and trigger an operation of sending an online announcement of the target device; Furthermore, when the target device is not associated with the user account, the control instruction is sent to the target device through the temporary secure connection channel to control the target device; The device to be bound is configured to receive a configuration binding message; Parse the binding message and obtain the target device ID; When the target device identifier matches the identifier of the current device, a confirmation message is sent to the bound device, so that the bound device establishes the temporary secure connection channel with the target device based on the key information; When the bound device triggers the operation of sending the online declaration of the target device, and no association is established between the target device and the user account binding, the control instruction of the target device triggered by the online declaration and forwarded by the bound device is received through the temporary secure connection channel.
12. The smart home system according to claim 11, characterized in that: The bound device triggers an operation of sending an online announcement of the target device, including triggering sending a local area network announcement and / or a cloud announcement; The triggering of sending the cloud announcement of the target device by the bound device includes: sending the configuration binding message to the cloud server, so that the cloud server establishes an association relationship between the target device and the user account according to the configuration binding message; The bound device triggering the sending of the local area network announcement of the target device includes sending a message that the target device and the bound device have successfully established an association relationship.
13. The smart home system according to claim 12, characterized in that: After the bound device triggers sending the LAN announcement, if it receives a message that the association relationship between the target device and the user account has been successfully established, it triggers an operation of changing the association relationship between the target device and the bound device to the association relationship between the target device and the user account; and, The established temporary secure connection channel is destroyed, and the key information of the non-temporary secure connection channel sent by the cloud server is received at the same time, and the control instruction is sent to the target device through the non-temporary secure connection channel established based on the key information.
14. A computer-readable storage medium, characterized in that: The computer-readable storage medium includes a stored program, wherein the program executes the method according to any one of claims 1 to 10 when executed.
15. 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 10 through the computer program.
Citation Information
Patent Citations
Automatic WIFI accessing method and system of device
CN105101206A
Bluetooth authentication and authorization method and authorization system for BLE equipment
CN109561413A