Control method, remote controller, intelligent gateway and storage medium for IoT device

By combining the remote control with a multi-protocol intelligent gateway, the problems of increasing the number of remote controls and poor security are solved, and multi-device control and security improvement are achieved.

CN114745663BActive Publication Date: 2025-08-15BEIJING SPREADTRUM HI TECH COMM TECH CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202210493164.7
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-05-07
Publication Date
2025-08-15
Estimated Expiration
2042-05-07

AI Technical Summary

Technical Problem

In the prior art, smart home remote control is a one-to-one control method, resulting in an increase in the number of remote controls and poor security.

Method used

Through the remote control, the intelligent gateway that supports multiple communication protocols is connected, and the effective connection is ensured through the switching of different communication protocols.

Benefits of technology

One remote control controls multiple IOT devices, improving user convenience and device security, and avoiding the control of other remote controls.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114745663B_ABST
    Figure CN114745663B_ABST
Patent Text Reader

Abstract

The present application provides a control method, remote control, intelligent gateway and storage medium for an Internet of Things device. The data acquisition unit of the remote control collects control information input by the user and sends the control information to the control unit. The control unit sends the control information to the radio frequency unit, so that the radio frequency unit sends the control information to the intelligent gateway through a first connection. After the intelligent gateway receives the control message sent by the remote control, it converts the execution instruction in the control message into a format and sends it to the target IOT device to achieve control of the target IOT device. The intelligent gateway can connect and communicate with multiple IOT devices through a variety of communication protocols, so that one remote control can control multiple IOT devices, which is convenient for users. The communication between the remote control and the intelligent gateway is through the first connection, which also improves the security of the IOT device and can avoid control by other remote controls.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of remote control technology, and in particular to a control method, remote control, intelligent gateway and storage medium for an Internet of Things device. Background Art

[0002] A smart home remote control is a device used to remotely control machinery, such as smart refrigerators, smart washing machines, and smart clothes hangers. Users can control them through the remote control.

[0003] In the prior art, users control smart home devices through remote controls, usually in a one-to-one remote control manner, that is, each smart home device corresponds to one remote control.

[0004] However, the above remote control cannot control all smart devices, so the number of remote controls in the user's home also increases with the increase of smart home appliances, which is inconvenient for users to use and easily causes a device to be controlled by the remote control of other nearby users, resulting in poor security. Summary of the Invention

[0005] The present application provides a control method, remote controller, intelligent gateway and storage medium for an Internet of Things device, which are used to solve the problem in the prior art that the one-to-one remote control method causes an increase in the number of remote controllers, making it inconvenient for users to use.

[0006] In a first aspect, the present application provides a control method for an IoT device, which is applied to a remote controller, and the method includes:

[0007] Collecting control information input by the user, wherein the control information includes an identifier of a target IoT device to be controlled and an execution instruction of the target IoT device;

[0008] The control information is sent to the smart gateway through a first connection, where the first connection is a connection between the remote control and the smart gateway, and the smart gateway is connected and communicates with multiple IOT devices through multiple communication protocols.

[0009] Optionally, before sending the control information to the intelligent gateway through the first connection, the method further includes:

[0010] Obtaining a first distance between the target IoT device and the smart gateway;

[0011] Sending the control information to the intelligent gateway through the first connection includes:

[0012] When the first distance is less than or equal to a preset distance, the control information is sent to the smart gateway through the first connection.

[0013] Optionally, also include:

[0014] When the first distance is greater than the preset distance, the control information is sent to the target IoT device through a second connection, where the second connection is a connection between the remote control and the target IoT device, wherein the second connection uses a different communication protocol from the first connection.

[0015] Optionally, the first connection is a WIFI connection.

[0016] Optionally, after sending the control information to the intelligent gateway through the first connection, the method further includes:

[0017] Receiving a connection failure message sent by the intelligent gateway;

[0018] The control information is sent to the target IoT device through a second connection, where the second connection is a connection between the remote controller and the target IoT device, wherein the second connection uses a different communication protocol from the first connection.

[0019] Optionally, also include:

[0020] receiving an alarm message sent by the smart gateway through the first connection, where the alarm message is sent to the smart gateway when an abnormality occurs in the target IoT device;

[0021] Output the alarm information.

[0022] Optionally, collecting control information input by the user includes:

[0023] collecting the control information input by the user in the display interface of the remote controller;

[0024] Alternatively, receiving an electrical signal input by a user through a key on the remote controller, and generating the control information according to the electrical signal;

[0025] Alternatively, voice data input by the user is collected, and the control information is generated according to the voice data, where the voice data is used to describe the control information.

[0026] In a second aspect, the present application provides a control method for an Internet of Things device, which is applied to a smart gateway, and the method includes:

[0027] Receive control information sent by the remote control through a first connection, where the first connection is a connection between the remote control and the smart gateway, the control information including an identifier of a target IoT device to be controlled and an execution instruction for the target IoT device;

[0028] Converting the format of the execution instruction into a format corresponding to the communication protocol supported by the target IoT device;

[0029] The execution instruction after format conversion is sent to the target IOT device.

[0030] Optionally, before receiving the control information sent by the remote controller through the first connection, the method further includes:

[0031] Measuring a first distance between the smart gateway and the target IoT device;

[0032] The first distance is sent to the remote controller through the first connection.

[0033] Optionally, before sending the execution instruction after format conversion to the target IoT device, the method further includes:

[0034] Measuring a first distance between the smart gateway and the target IoT device;

[0035] The step of sending the format-converted execution instruction to the target IoT device includes:

[0036] When the first distance is less than or equal to a preset threshold, the execution instruction after format conversion is sent to the target IOT device.

[0037] Optionally, also include:

[0038] When the first distance is greater than the preset threshold, a connection failure message is sent to the remote controller through the first connection.

[0039] Optionally, also include:

[0040] Obtaining the alarm information sent when the target IoT device has an abnormality;

[0041] Converting the alarm information into a format corresponding to the network protocol used by the first connection;

[0042] The format-converted alarm information is sent to the remote controller via the first connection.

[0043] In a third aspect, the present application provides a remote controller, comprising:

[0044] An acquisition module is used to acquire control information input by a user, wherein the control information includes an identifier of a target IoT device to be controlled and an execution instruction of the target IoT device;

[0045] The sending module is used to send the control information to the smart gateway through the first connection, where the first connection is the connection between the remote control and the smart gateway, and the smart gateway is connected and communicated with multiple IOT devices through multiple communication protocols.

[0046] In a fourth aspect, the present application provides an intelligent gateway, comprising:

[0047] A receiving module, configured to receive control information sent by a remote control through a first connection, where the first connection is a connection between the remote control and the smart gateway, the control information including an identifier of a target IoT device to be controlled and an execution instruction for the target IoT device;

[0048] A protocol conversion module, configured to convert the format of the execution instruction into a format corresponding to the communication protocol supported by the target IoT device;

[0049] The sending module is used to send the execution instruction after format conversion to the target IOT device.

[0050] In a fifth aspect, the present application provides a remote controller, comprising: a radio frequency unit, a control unit, and a data acquisition unit, wherein the radio frequency unit and the data acquisition unit are electrically connected to the control unit respectively;

[0051] The data acquisition unit is used to collect control information input by the user and send the control information to the control unit, wherein the control information includes the identification of the target IoT device and the execution instruction of the target IoT device;

[0052] The control unit is configured to send the control information to the radio frequency unit;

[0053] The radio frequency unit is used to send the control information to the intelligent gateway through a first connection. The first connection is a connection between the remote control and the intelligent gateway established by the radio frequency unit. The intelligent gateway communicates with multiple IOT devices through multiple communication protocols.

[0054] Optionally, the control unit is further configured to:

[0055] Obtaining a first distance between the target IoT device and the smart gateway;

[0056] When the first distance is less than or equal to a preset distance, the control information is sent to the radio frequency unit, and the radio frequency unit is instructing to send the control information through the first connection.

[0057] Optionally, the control unit is further configured to:

[0058] When the first distance is greater than the preset distance, the control information is sent to the radio frequency unit, and the radio frequency unit is instructed to send the control information through a second connection, where the second connection is a connection between the remote control and the target IoT device, wherein the second connection uses a different communication protocol from the first connection;

[0059] The radio frequency unit is further configured to send the control information to the target IoT device through the second connection.

[0060] Optionally, the radio frequency unit is further configured to:

[0061] Receive an alarm message sent by the smart gateway, where the alarm message is sent to the smart gateway when an abnormality occurs in the target IoT device;

[0062] Sending the alarm information to the control unit;

[0063] The control unit is further configured to send the alarm information to the data acquisition unit, and the data acquisition unit is further configured to output the alarm information.

[0064] Optionally, the data acquisition unit includes at least two of the following units: a display unit, a voice interaction unit, and a key control unit;

[0065] The display unit is used to collect control information input by the user in the display interface and send the control information to the control unit;

[0066] The voice interaction unit is used to collect voice data input by the user, generate the control information according to the voice data, and send the control information to the control unit;

[0067] The key control unit is used to receive the electrical signal input by the user through the key, generate control information according to the electrical signal, and send the control information to the control unit.

[0068] In a sixth aspect, the present application provides an intelligent gateway, comprising: a processor, and a memory communicatively connected to the processor;

[0069] The memory stores computer-executable instructions;

[0070] The processor executes the computer-executable instructions stored in the memory to implement the method according to the second aspect.

[0071] In a seventh aspect, the present application provides a computer-readable storage medium, which stores computer-executable instructions. When the computer-executable instructions are executed by a processor, they are used to implement a control method for an Internet of Things device as described in the first aspect or the second aspect.

[0072] The present application provides a control method, remote control, intelligent gateway and storage medium for an Internet of Things device, wherein the remote control includes a radio frequency unit, a control unit and a data acquisition unit. The data acquisition unit of the remote control collects the control information input by the user and sends the control information to the control unit. The control unit sends the control information to the radio frequency unit, so that the radio frequency unit sends the control information to the intelligent gateway through a first connection. After the intelligent gateway receives the control message sent by the remote control, it converts the execution instruction in the control message into a format and sends it to the target IOT device to achieve control of the target IOT device. The intelligent gateway can connect and communicate with multiple IOT devices through a variety of communication protocols, so that one remote control can control multiple IOT devices, which is convenient for users. The communication between the remote control and the intelligent gateway is through the first connection, which also improves the security of the IOT device and can avoid control by other remote controls. BRIEF DESCRIPTION OF THE DRAWINGS

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

[0074] Figure 1 A schematic diagram of an application scenario applicable to this application;

[0075] Figure 2 A flowchart of a method for controlling an Internet of Things device provided in Example 1 of the present application;

[0076] Figure 3 A schematic diagram of the display interface and buttons of a remote control provided in this application;

[0077] Figure 4 A schematic diagram of the locations of the remote control, smart gateway, and target IoT device;

[0078] Figure 5 A flowchart of a method for controlling an Internet of Things device provided in Example 1 of the present application;

[0079] Figure 6 This is a signaling flow chart of a control method for an Internet of Things device provided in Example 3 of the present application;

[0080] Figure 7 A schematic diagram of the structure of a remote control provided in Example 4 of the present application;

[0081] Figure 8 A schematic diagram of the structure of another remote control provided in Example 5 of the present application;

[0082] Figure 9 A schematic diagram of the structure of an intelligent gateway provided in Example 6 of the present application;

[0083] Figure 10 This is a structural diagram of another intelligent gateway provided in Example 7 of the present invention.

[0084] The above drawings illustrate specific embodiments of the present application, which will be described in more detail below. These drawings and the textual description are not intended to limit the scope of the present application in any way, but rather to illustrate the concepts of the present application to those skilled in the art by reference to specific embodiments. DETAILED DESCRIPTION

[0085] Exemplary embodiments will be described in detail herein, with examples illustrated in the accompanying drawings. In the following description, when referring to the drawings, identical numerals in different figures represent identical or similar elements, unless otherwise indicated. The embodiments described in the following exemplary embodiments are not intended to represent all embodiments consistent with the present application. Rather, they are merely examples of apparatus and methods consistent with certain aspects of the present application, as detailed in the appended claims.

[0086] In the prior art, users control smart home devices through remote controls, usually in a one-to-one remote control manner, that is, each smart home device corresponds to one remote control.

[0087] However, because each smart home device supports different communication protocols, and communication with a smart home device requires the use of the communication protocol supported by the device to control the smart home device, the aforementioned remote control only supports the communication protocol of its corresponding smart home device, making it impossible to control all smart devices. Consequently, the one-to-one remote control approach results in the number of remote controls in a user's home increasing with the number of smart home appliances, making it inconvenient for users and easily leading to a device being controlled by a remote control of another nearby user, resulting in poor security.

[0088] Therefore, the present application provides a control method, remote control, intelligent gateway and storage medium for an IoT device. The remote control can establish a connection with an intelligent gateway that supports multiple communication protocols, and can send execution instructions to multiple IoT devices through the intelligent gateway, thereby realizing control of the IoT devices and facilitating user use. The connection established between the remote control and the intelligent gateway also improves the security of the IoT device and can avoid control by other remote controls.

[0089] refer to Figure 1 , Figure 1This is a schematic diagram of an application scenario applicable to the present application. The remote control 101 and the smart gateway 103 establish a first connection through the router 102. The connection can be a WIFI (Wireless Fidelity, referred to as WIFI) connection. Data is transmitted between the remote control 101 and the smart gateway 103 through the first connection. The smart gateway 103 sends the execution instruction in the control information to the Internet of Things (IoT) device 104 through the network protocol supported by the IoT device 104. After receiving the execution instruction, the IoT device 104 executes the instruction. Exemplarily, the network protocol supported by the IoT device 104 can be an infrared (IR) communication protocol, a Bluetooth (BI) communication protocol, or a Zigebee communication protocol.

[0090] The remote control 101 can also communicate directly with the IoT device 104 through a second connection, which can be an IR or BI connection, etc., to avoid the situation where the remote control cannot control the IoT device through the first connection when the distance between the smart gateway 103 and the IoT device 104 is far. The IoT device 104 can also be controlled through the second connection. It is understood that there can be multiple IoT devices 104, which are not shown in the figure.

[0091] Figure 1 In the illustrated scenario, the smart gateway 103 is an electronic device independent of the router 102, such as a smart speaker, a smart phone, etc., and the functions of the smart gateway 103 are configured on the smart speaker or smart phone. Of course, the smart gateway 103 can also be a router, that is, the router not only has the existing functions, but also has the functions of the smart gateway 103 in the present invention.

[0092] It should be noted that the above-mentioned IOT device 104 can be a smart home device such as an air conditioner, a washing machine, a TV or a smart fan. This application does not limit the type of IOT device 104. The IOT device 104 can be any device that supports a certain communication protocol. Figure 1 The appearance and shape of the remote control 101 are only examples, and this application does not limit the appearance and shape of the remote control 101.

[0093] The following specific embodiments describe in detail the technical solution of the present application and how the technical solution of the present application solves the above-mentioned technical problems. The following specific embodiments can exist independently or in combination with each other. For the same or similar concepts or processes, they may not be repeated in some embodiments. The embodiments of the present application will be described below in conjunction with the accompanying drawings.

[0094] refer to Figure 2 , Figure 2This is a flow chart of a control method for an Internet of Things device provided in Example 1 of the present application. The method can be performed by Figure 1 The method may be executed by the remote control in the embodiment, or may be executed by an electronic device integrated with the remote control, the electronic device may be a terminal, and the remote control is used as an example for description below. The method includes the following steps.

[0095] S201: Collect control information input by a user, where the control information includes an identifier of a target IoT device to be controlled and an execution instruction of the target IoT device.

[0096] When the user needs to control the target IoT device, the remote control can collect the control information input by the user. The control information includes the identification of the target IoT device to be controlled and the execution instructions of the target IoT device. The identification can be used to find the target IoT device.

[0097] Optionally, the control information can be input by the user in the display interface of the remote control. Specifically, the user can select the target IOT device from the multiple IOT device icons displayed in the display interface, enter the instruction interface corresponding to the target IOT device, and select the instruction to be executed by the target IOT device to generate the corresponding control information. For example, the display interface can be as follows: Figure 3 The interface displayed on the display screen 301 of the remote control 30.

[0098] Alternatively, the control information may also be a corresponding electrical signal input by the user through the remote control button, that is, the user selects the target IOT device and the corresponding execution instruction through the button, and the remote control generates the control information according to the electrical signal. For example, the button can be as follows Figure 3 The key 302 shown in FIG.

[0099] Alternatively, the remote control can also collect voice data entered by the user and then generate control information based on the voice data. The voice data is used to describe the control information. Specifically, the voice interaction unit of the remote control can perform voice recognition and other processing on the collected voice data to obtain control information. The user can interact with the remote control through voice at close range, so that the target IoT device can be accurately controlled even in complex environments such as noisy ones.

[0100] It can be understood that the above-mentioned execution instructions are instructions that the user needs to control the execution of the target IOT device. They can be basic instructions such as opening instructions or closing instructions, or they can be control instructions for the functions of the target IOT device, such as increasing or decreasing the temperature of the air conditioner, or increasing or decreasing the humidity of the air purifier.

[0101] S202: Send the control information to the smart gateway via a first connection, where the first connection is a connection between the remote control and the smart gateway. The smart gateway communicates with multiple IoT devices via multiple communication protocols.

[0102] After the remote control collects the control information input by the user, it sends the control information to the smart gateway through the first connection. The smart gateway can connect and communicate with multiple IOT devices through multiple communication protocols. The first connection is the connection between the remote control and the smart gateway. Optionally, the first connection can be a WIFI connection. The WIFI technology can be the sixth-generation wireless network technology WIFI6, which can enable the remote control to achieve low power consumption and long standby time.

[0103] After receiving the control information, the smart gateway can send an execution instruction to the target IOT device according to the network protocol supported by the target IOT device, so that the target IOT device executes the instruction and realizes control over it.

[0104] In one possible implementation, before the remote control sends the control information to the smart gateway, the remote control can obtain the first distance between the target IOT device and the smart gateway, and determine the size of the first distance and the preset distance. When the first distance is less than or equal to the preset distance, it means that the distance between the smart gateway and the target IOT device is within the communicative range. After determining that the smart gateway can communicate with the target IOT device, the remote control sends the control information to the smart gateway to control the target IOT device through the smart gateway.

[0105] When the first distance is greater than the preset distance, it means that the distance between the smart gateway and the target IOT device is not within the communicable range, and the target IOT device cannot be controlled through the smart gateway. Then the remote control can send the control information to the target IOT device through the second connection. The second connection is the connection between the remote control and the target IOT device. Among them, the communication protocol used by the second connection is different from that used by the first connection. For example, when the first connection is a WIFI connection, the second connection can be an IR connection or a BI connection, etc., so that the remote control can control the target IOT device in a variety of ways, avoiding a single control method affecting the communication between the remote control and the target IOT device when the above-mentioned distance problem occurs, thereby affecting user use.

[0106] Specifically, the first distance may be calculated by the remote controller based on the measured distance between the remote controller and the smart gateway, and the distance between the remote controller and the target IOT device, or the first distance may be measured by the smart gateway.

[0107] The following describes how the remote control obtains the first distance between the target IoT device and the smart gateway through an example.

[0108] For example, Figure 4 As shown, the straight lines between the remote control, the smart gateway, and the target IoT device form a triangle. The remote control can measure the straight-line distance a between the remote control and the smart gateway, the straight-line distance b between the remote control and the target IoT device, and the angle β between a and b. According to the following cosine theorem formula:

[0109]

[0110] The straight-line distance c between the smart gateway and the target IOT device can be obtained.

[0111] In another possible implementation, the remote control does not need to consider the first distance between the smart gateway and the target IOT device, and can preferentially control the target IOT device through the first connection, that is, after sending the control information to the smart gateway, when the connection failure message sent by the smart gateway is received, it means that the remote control has failed to control the target IOT device through the smart gateway. The remote control can send the control information to the target IOT device through the second connection to achieve direct control of the target IOT device.

[0112] When an abnormality occurs in the operation of the target IoT device, the remote control can also receive an alarm message sent by the intelligent gateway via the first connection. This alarm message is used to describe the abnormality of the target IoT device. This alarm message is sent to the intelligent gateway via the communication protocol supported by the target IoT device when the abnormality occurs. Alternatively, the alarm message can be sent to the remote control via the second connection. After receiving the alarm message, the remote control can output the alarm message to inform the user that the target IoT device has an abnormality, so that the user can promptly handle the target IoT device.

[0113] In this embodiment, after the remote control collects the control information input by the user, it sends the control information to the smart gateway through the first connection. The first connection is the connection between the remote control and the smart gateway. The smart gateway can connect and communicate with multiple IOT devices through multiple communication protocols, so that the smart gateway can send the execution instructions in the control information to the target IOT device through the communication protocol supported by the target IOT device, thereby achieving the purpose of one remote control controlling multiple IOT devices and facilitating user use. The communication between the remote control and the smart gateway is through the first connection, which also improves the security of the IOT device and can avoid control by other remote controls.

[0114] The above-mentioned embodiment 1 is an explanation of the control method of the Internet of Things device provided by this application with a remote control as the execution body. The following embodiment 2 is an explanation of the control method of the Internet of Things device provided by this application with an intelligent gateway as the execution body.

[0115] refer to Figure 5 , Figure 5 This is a flow chart of a control method for an Internet of Things device provided in Example 1 of the present application. The method can be executed by a smart speaker configured with a smart gateway function, and the method includes the following steps.

[0116] S501: Receive control information sent by a remote controller through a first connection.

[0117] After the remote control collects the control information input by the user, the smart speaker can receive the control information sent by the remote control through the first connection. The control information includes the identifier of the target IOT device to be controlled and the execution instruction of the target IOT device. The identifier can be used by the smart speaker to find the target IOT device. The execution instruction is the instruction that the user needs to control the target IOT device to execute. The first connection is the connection between the remote control and the smart speaker, such as a WIFI connection.

[0118] As a possible implementation, before receiving the control information sent by the remote control, the smart speaker can measure a first distance between the smart speaker and the target IoT device. For example, the smart speaker can obtain the first distance through infrared measurement. The smart speaker then sends the first distance to the remote control via a first connection, so that the remote control can determine whether the smart speaker and the target IoT device can communicate based on the first distance. If communication is confirmed, the smart speaker can receive the control information sent by the remote control to control the target IoT device.

[0119] S502: Convert the format of the execution instruction into a format corresponding to the communication protocol supported by the target IoT device.

[0120] After receiving the control information, the smart speaker can search for the target IOT device and the communication protocol it supports based on the identifier of the target IOT device in the control information, and then convert the format of the execution instruction in the control information into the format corresponding to the communication protocol supported by the target IOT device to send the execution instruction to the target IOT device.

[0121] It is understandable that when the communication protocol supported by the target IOT device is the same as the communication protocol used by the first connection, no protocol format conversion may be performed.

[0122] S503: Send the format-converted execution instruction to the target IoT device.

[0123] After the smart speaker performs protocol format conversion, it can send the converted execution instruction to the target IoT device via the network protocol supported by the target IoT device, allowing the target IoT device to perform corresponding operations based on the execution instruction, such as turning on or off. The network protocol supported by the target IoT device can be IR, BI, WIFI, or Zigebee communication protocols.

[0124] In another possible implementation, the smart speaker can measure a first distance between the smart speaker and the target IoT device before sending the converted execution instruction to the target IoT device. After receiving the control information, the smart speaker can then determine the difference between the first distance and a preset distance. If the first distance is less than or equal to a preset threshold, the smart speaker is deemed to be able to communicate with the target IoT device. The smart speaker can then send the converted execution instruction to the target IoT device to control the target IoT device.

[0125] When the first distance is greater than the preset threshold, it means that the smart speaker is far away from the target IOT device and communication cannot be achieved. The smart speaker can send a connection failure message to the remote control, so that the remote control can directly control the target IOT device through the second connection.

[0126] When an abnormality occurs in the target IoT device, the smart speaker can also receive an alarm message sent by the target IoT device. The smart speaker can convert the alarm message into a format corresponding to the network protocol used by the first connection and send the converted alarm message to the remote control via the first connection to alert the user that the abnormality has occurred in the target IoT device. Alternatively, if the smart speaker has a voice function, the smart speaker can also output the alarm message through its voice function, allowing the user to promptly understand the abnormality of the target IoT device.

[0127] In this embodiment, the smart speaker can receive control information sent by the remote control via the first connection, convert the format of the execution instruction in the control information into a format corresponding to the communication protocol supported by the target IoT device, and then send the converted execution instruction to the target IoT device, so that the target IoT device can perform the corresponding operation according to the execution instruction to achieve control of the target IoT device. The smart speaker can connect and communicate with multiple IoT devices through multiple communication protocols, allowing one remote control to control multiple IoT devices, which is convenient for users. The communication between the remote control and the smart speaker through the first connection also improves the security of the IoT device and can prevent control by other remote controls.

[0128] The following describes the interaction between devices through Example 3, taking a smart speaker configured with a smart gateway function as an example.

[0129] refer to Figure 6 , Figure 6 This is a signaling flow chart of a control method for an IoT device provided in Example 3 of the present application. Based on Examples 1 and 2, this embodiment takes the example of a remote control measuring a first distance between a smart speaker and a target IoT device, and determining whether to send control information to the smart speaker based on the first distance, to describe in detail the interaction process between devices. The method provided in this embodiment includes the following steps.

[0130] S601: The remote controller collects control information input by the user.

[0131] The control information includes the identification of the target IoT device to be controlled and the execution instructions of the target IoT device.

[0132] S602: The remote controller measures a first distance between the smart speaker and the target IoT device.

[0133] S603: The remote controller determines whether the first distance is less than or equal to a preset threshold.

[0134] When the first distance is less than or equal to the preset threshold, step S604 is executed; when the first distance is greater than the preset threshold, step S607 is executed.

[0135] S604. The remote controller sends control information to the smart speaker through the first connection.

[0136] The first connection is the connection between the remote control and the smart speaker, such as a WIFI connection.

[0137] S605: The smart speaker converts the execution instruction into a format corresponding to the network protocol supported by the target IoT device.

[0138] S606: The smart speaker sends the format-converted execution instruction to the target IoT device.

[0139] S607: The remote controller sends the control information to the target IoT device through the second connection.

[0140] The second connection is a connection between the remote controller and the target IoT device, and the second connection uses a different communication protocol from the first connection.

[0141] S608: The target IoT device executes the instruction.

[0142] S609: The target IoT device sends an alarm message to the smart speaker.

[0143] S610: The smart speaker converts the alarm information into a format corresponding to the network protocol used by the first connection.

[0144] S611. The smart speaker sends the alarm information after format conversion to the remote control through the first connection.

[0145] S612: The remote controller outputs an alarm message.

[0146] In this embodiment, the remote control collects the control information input by the user, and then measures the first distance between the smart speaker and the target IoT device. When the first distance is less than or equal to the preset threshold, the remote control sends the control information to the smart speaker through the first connection. The smart speaker converts the execution instructions in the received control message into a format corresponding to the network protocol supported by the target IoT device, and then sends the execution instructions after format conversion to the target IoT device, thereby achieving control of the target IoT device. The smart speaker can connect and communicate with multiple IoT devices through a variety of communication protocols, so that one remote control can control multiple IoT devices, which is convenient for users. The communication between the remote control and the smart speaker is through the first connection, which also improves the security of the IoT device and can avoid control by other remote controls. Alternatively, when the first distance is greater than the preset distance threshold, the remote control can control the target IoT device through the second connection, avoiding the situation where a single control method affects the communication between the remote control and the target IoT device when the above-mentioned distance problem occurs, thereby affecting user use.

[0147] The structure of the remote controller is described below through the fourth embodiment.

[0148] refer to Figure 7 , Figure 7 This is a schematic diagram of the structure of a remote control provided in Example 4 of the present application. The remote control 70 includes: a radio frequency unit 701, a control unit 702, and a data acquisition unit 703. The radio frequency unit 701 and the data acquisition unit 703 are respectively electrically connected to the control unit 702 to realize data transmission. In addition, the radio frequency unit 701 is an all-in-one radio frequency unit that supports multiple communication protocols and is compatible with IoT devices and smart gateways with different communication protocols.

[0149] The data collection unit 703 is used to collect control information input by the user and send the control information to the control unit 702. The control information includes the identification of the target IoT device and the execution instruction of the target IoT device.

[0150] The control unit 702 is configured to send control information to the radio frequency unit 801 .

[0151] The radio frequency unit 701 is used to send control information to the smart gateway through the first connection. The first connection is a connection between the remote control and the smart gateway established by the radio frequency unit. The smart gateway communicates with multiple IoT devices through multiple communication protocols.

[0152] Optionally, the data acquisition unit 703 may include at least two of the following units: a display unit, a voice interaction unit, and a button control unit.

[0153] The display unit may be used to collect control information input by the user in the display interface and send the control information to the control unit 702 .

[0154] The voice interaction unit can be used to collect voice data entered by the user, generate control information based on the voice data, and send the control information to the control unit 702.

[0155] The key control unit may be configured to receive electrical signals input by the user through keys, generate control information according to the electrical signals, and send the control information to the control unit 702 .

[0156] Optionally, the control unit 702 is further configured to: obtain a first distance between the target IOT device and the smart gateway.

[0157] When the first distance is less than or equal to the preset distance, the control information is sent to the radio frequency unit, and the radio frequency unit 701 is instructed to send the control information through the first connection.

[0158] Optionally, the control unit 702 is also used to: when the first distance is greater than a preset distance, send control information to the radio frequency unit, and instruct the radio frequency unit 701 to send control information through a second connection, where the second connection is a connection between the remote control and the target IOT device, wherein the second connection uses a different communication protocol from the first connection.

[0159] Optionally, the radio frequency unit 701 is further configured to: send the control information to the target IoT device through the second connection.

[0160] Optionally, the radio frequency unit 701 is further configured to:

[0161] Receive alarm information sent by the smart gateway. The alarm information is sent to the smart gateway when an abnormality occurs in the target IOT device.

[0162] The alarm information is sent to the control unit 702.

[0163] The control unit 702 is also used to send the alarm information to the data acquisition unit 703, and the data acquisition unit 703 is also used to output the alarm information. Specifically, the data acquisition unit 703 can display the alarm information through the display unit, and / or output the alarm information through the voice interaction unit, so that the user can promptly understand the abnormal situation of the target IOT device.

[0164] In this embodiment, the remote control includes a radio frequency unit 701, a control unit 702 and a data acquisition unit 703. The data acquisition unit 703 can send the collected control information to the control unit 702, and the control unit 702 sends the control information to the radio frequency unit 701, so that the radio frequency unit 701 can send the control information to the intelligent gateway through the first connection, so that the intelligent gateway can send the execution instruction in the control information to the target IoT device through the communication protocol supported by the target IoT device, thereby achieving the purpose of one remote control controlling multiple IoT devices and facilitating user use. The communication between the remote control and the intelligent gateway is through the first connection, which also improves the security of the IoT device and can avoid control by other remote controls.

[0165] refer to Figure 8 , Figure 8 This is a schematic diagram of the structure of another remote controller provided in Example 5 of the present application. The remote controller 80 includes: an acquisition module 801 and a sending module 802.

[0166] The acquisition module 801 is used to acquire control information input by the user, where the control information includes the identifier of the target IoT device to be controlled and the execution instruction of the target IoT device.

[0167] The sending module 802 is used to send the control information to the smart gateway through the first connection. The first connection is the connection between the remote control and the smart gateway. The smart gateway communicates with multiple IOT devices through multiple communication protocols.

[0168] Optionally, the acquisition module 801 is specifically configured to:

[0169] Collect the control information entered by the user in the display interface of the remote control.

[0170] Alternatively, an electrical signal input by a user through a key on a remote controller is received, and control information is generated according to the electrical signal.

[0171] Alternatively, voice data input by the user is collected, and control information is generated based on the voice data, and the voice data is used to describe the control information.

[0172] Optionally, before sending the control information to the smart gateway through the first connection, the method further includes:

[0173] Get the first distance between the target IoT device and the smart gateway.

[0174] The sending module 802 is specifically configured to: when the first distance is less than or equal to the preset distance, send the control information to the smart gateway through the first connection.

[0175] Optionally, it also includes: when the first distance is greater than a preset distance, sending the control information to the target IOT device through a second connection, the second connection is a connection between the remote control and the target IOT device, wherein the second connection uses a different communication protocol from the first connection.

[0176] Optionally, the first connection is a WIFI connection.

[0177] Optionally, after sending the control information to the intelligent gateway through the first connection, the method further includes:

[0178] Receive connection failure messages from the smart gateway.

[0179] The control information is sent to the target IoT device through a second connection, where the second connection is a connection between the remote control and the target IoT device, wherein the second connection uses a different communication protocol from the first connection.

[0180] Optionally, also include:

[0181] Receive alarm information sent by the smart gateway through the first connection, where the alarm information is sent to the smart gateway when an abnormality occurs in the target IoT device.

[0182] Output alarm information.

[0183] The remote control of this embodiment can be used to execute the steps of the control method of an Internet of Things device in Example 1. The specific implementation method and technical effects are similar and will not be repeated here.

[0184] refer to Figure 9 , Figure 9 This is a schematic diagram of the structure of an intelligent gateway provided in Example 6 of the present application. The intelligent gateway 90 includes: a receiving module 901, a protocol conversion module 902 and a sending module 903.

[0185] The receiving module 901 is used to receive control information sent by the remote control through the first connection. The first connection is the connection between the remote control and the smart gateway. The control information includes the identification of the target IoT device to be controlled and the execution instruction of the target IoT device.

[0186] The protocol conversion module 902 is used to convert the format of the execution instruction into a format corresponding to the communication protocol supported by the target IoT device.

[0187] The sending module 903 is used to send the execution instruction after format conversion to the target IoT device.

[0188] Optionally, before receiving the control information sent by the remote controller through the first connection, the method further includes:

[0189] Measure the first distance between the smart gateway and the target IoT device.

[0190] The first distance is sent to the remote controller through the first connection.

[0191] Optionally, before sending the format-converted execution instruction to the target IoT device, the following steps are further included:

[0192] Measure the first distance between the smart gateway and the target IoT device.

[0193] The sending module 903 is specifically configured to: when the first distance is less than or equal to a preset threshold, send the execution instruction after format conversion to the target IoT device.

[0194] Optionally, also include:

[0195] When the first distance is greater than a preset threshold, a connection failure message is sent to the remote controller via the first connection.

[0196] Optionally, also include:

[0197] Get the alarm information sent when the target IoT device has an abnormality.

[0198] The alarm information is converted into a format corresponding to the network protocol used by the first connection.

[0199] The format-converted alarm information is sent to the remote controller via the first connection.

[0200] The intelligent gateway of this embodiment can be used to execute the steps of a control method for an Internet of Things device in Example 2. The specific implementation method and technical effects are similar and will not be repeated here.

[0201] Figure 10 A structural diagram of another intelligent gateway provided in the seventh embodiment of the present invention is shown as follows: Figure 10 As shown, the smart gateway 100 includes: a processor 1001, a memory 1002, and a transceiver 1003. The memory 1002 is used to store instructions, the transceiver 1003 is used to communicate with other devices, and the processor 1001 is used to execute the instructions stored in the memory so that the smart gateway 100 performs the control method steps of an Internet of Things device as in Example 2. The specific implementation method and technical effect are similar and will not be repeated here.

[0202] Embodiment 8 of the present invention provides a computer-readable storage medium, which stores a computer program. When the computer program is executed by a processor, it is used to implement the control method steps of an Internet of Things device as in the above-mentioned embodiment 1 or embodiment 2. The specific implementation method and technical effect are similar and will not be repeated here.

[0203] Embodiment 9 of the present invention provides a computer program product, including a computer program. When the computer program is executed by a processor, it implements the steps of a control method for an Internet of Things device as described in the above-mentioned embodiment 1 or embodiment 2. The specific implementation method and technical effects are similar and will not be repeated here.

[0204] Those skilled in the art will readily appreciate other embodiments of the present application after considering the specification and practicing the invention disclosed herein. This application is intended to cover any variations, uses, or adaptations of the present application that follow the general principles of the present application and include common knowledge or customary techniques in the art not disclosed herein. The description and examples are to be considered as exemplary only, and the true scope and spirit of the present application are indicated by the following claims.

[0205] It should be understood that the present application is not limited to the exact structure described above and shown in the drawings, and that various modifications and changes may be made without departing from the scope thereof. The scope of the present application is limited only by the appended claims.

Claims

1. A control method for an Internet of Things device, applied to a remote controller, characterized in that: The method comprises: Collecting control information input by the user, wherein the control information includes an identifier of a target IoT device to be controlled and an execution instruction of the target IoT device; Sending the control information to a smart gateway via a first connection, where the first connection is a connection between the remote control and the smart gateway, and the smart gateway communicates with multiple IoT devices via multiple communication protocols; Before sending the control information to the intelligent gateway through the first connection, the method further includes: Obtaining a first distance between the target IoT device and the smart gateway; wherein the first distance is obtained by the smart gateway through infrared measurement; Sending the control information to the intelligent gateway through the first connection includes: When the first distance is less than or equal to a preset distance, sending the control information to the smart gateway through the first connection; When the first distance is greater than the preset distance, the control information is sent to the target IoT device through a second connection, where the second connection is a connection between the remote control and the target IoT device, wherein the second connection uses a different communication protocol from the first connection.

2. The method according to claim 1, characterized in that The first connection is a Wireless Fidelity (WIFI) connection.

3. The method according to claim 1, characterized in that After sending the control information to the intelligent gateway through the first connection, the method further includes: Receiving a connection failure message sent by the intelligent gateway; The control information is sent to the target IoT device through a second connection, where the second connection is a connection between the remote controller and the target IoT device, wherein the second connection uses a different communication protocol from the first connection.

4. The method according to claim 1 or 3, characterized in that Also includes: receiving an alarm message sent by the smart gateway through the first connection, where the alarm message is sent to the smart gateway when an abnormality occurs in the target IoT device; Output the alarm information.

5. The method according to claim 4, characterized in that The collecting of control information input by the user includes: collecting the control information input by the user in the display interface of the remote controller; Alternatively, receiving an electrical signal input by a user through a key on the remote controller, and generating the control information according to the electrical signal; Alternatively, voice data input by the user is collected, and the control information is generated according to the voice data, where the voice data is used to describe the control information.

6. A control method for an Internet of Things device, applied to an intelligent gateway, characterized in that: The method comprises: Receive control information sent by the remote control through a first connection, where the first connection is a connection between the remote control and the smart gateway, the control information including an identifier of a target IoT device to be controlled and an execution instruction for the target IoT device; Converting the format of the execution instruction into a format corresponding to the communication protocol supported by the target IoT device; Sending the format-converted execution instruction to the target IOT device; Before sending the execution instruction after format conversion to the target IOT device, the method further includes: Measuring a first distance between the smart gateway and the target IoT device; The step of sending the format-converted execution instruction to the target IoT device includes: When the first distance is less than or equal to a preset threshold, sending the execution instruction after format conversion to the target IoT device; When the first distance is greater than the preset threshold, a connection failure message is sent to the remote controller through the first connection, so that the remote controller sends the control information to the target IoT device through the second connection.

7. The method according to claim 6, characterized in that Before receiving the control information sent by the remote controller through the first connection, the method further includes: Measuring a first distance between the smart gateway and the target IoT device; The first distance is sent to the remote controller through the first connection.

8. The method according to claim 6 or 7, characterized in that Also includes: Obtaining the alarm information sent when the target IoT device has an abnormality; Converting the alarm information into a format corresponding to the network protocol used by the first connection; The format-converted alarm information is sent to the remote controller via the first connection.

9. A remote controller, characterized in that: include: An acquisition module is used to acquire control information input by a user, wherein the control information includes an identifier of a target IoT device to be controlled and an execution instruction of the target IoT device; A sending module, configured to send the control information to a smart gateway via a first connection, wherein the first connection is a connection between the remote control and the smart gateway, and the smart gateway communicates with multiple IoT devices via multiple communication protocols; The sending module is further used to obtain a first distance between the target IOT device and the smart gateway; wherein the first distance is obtained by the smart gateway through infrared measurement; when the first distance is less than or equal to a preset distance, the control information is sent to the smart gateway through the first connection; when the first distance is greater than the preset distance, the control information is sent to the target IOT device through a second connection, and the second connection is a connection between the remote control and the target IOT device, wherein the second connection uses a different communication protocol from the first connection.

10. An intelligent gateway, characterized in that: include: A receiving module, configured to receive control information sent by a remote control through a first connection, where the first connection is a connection between the remote control and the smart gateway, the control information including an identifier of a target IoT device to be controlled and an execution instruction for the target IoT device; A protocol conversion module, configured to convert the format of the execution instruction into a format corresponding to the communication protocol supported by the target IoT device; A sending module, configured to measure a first distance between the smart gateway and the target IoT device; when the first distance is less than or equal to a preset threshold, sending the format-converted execution instruction to the target IoT device; When the first distance is greater than the preset threshold, a connection failure message is sent to the remote controller through the first connection, so that the remote controller sends the control information to the target IoT device through the second connection.

11. A remote controller, characterized in that: include: A radio frequency unit, a control unit and a data acquisition unit, wherein the radio frequency unit and the data acquisition unit are electrically connected to the control unit respectively; The data acquisition unit is used to collect control information input by the user and send the control information to the control unit, wherein the control information includes the identification of the target IoT device and the execution instruction of the target IoT device; The control unit is configured to send the control information to the radio frequency unit; The radio frequency unit is configured to send the control information to the intelligent gateway via a first connection, where the first connection is a connection established by the radio frequency unit between the remote control and the intelligent gateway, and the intelligent gateway communicates with multiple IoT devices via multiple communication protocols; The control unit is further configured to: Obtaining a first distance between the target IoT device and the smart gateway; wherein the first distance is obtained by the smart gateway through infrared measurement; When the first distance is less than or equal to a preset distance, sending the control information to the radio frequency unit, and instructing the radio frequency unit to send the control information through the first connection; The control unit is further configured to: When the first distance is greater than the preset distance, the control information is sent to the radio frequency unit, and the radio frequency unit is instructed to send the control information through a second connection, where the second connection is a connection between the remote control and the target IoT device, wherein the second connection uses a different communication protocol from the first connection; The radio frequency unit is further configured to send the control information to the target IoT device through the second connection.

12. The remote controller according to claim 11, wherein: The radio frequency unit is further configured to: Receive an alarm message sent by the smart gateway, where the alarm message is sent to the smart gateway when an abnormality occurs in the target IoT device; Sending the alarm information to the control unit; The control unit is further configured to send the alarm information to the data acquisition unit, and the data acquisition unit is further configured to output the alarm information.

13. The remote controller according to claim 12, wherein: The data acquisition unit includes at least two units: a display unit, a voice interaction unit and a key control unit; The display unit is used to collect control information input by the user in the display interface and send the control information to the control unit; The voice interaction unit is used to collect voice data input by the user, generate the control information according to the voice data, and send the control information to the control unit; The key control unit is used to receive the electrical signal input by the user through the key, generate control information according to the electrical signal, and send the control information to the control unit.

14. An intelligent gateway, characterized in that: include: a processor, and a memory communicatively connected to the processor; The memory stores computer-executable instructions; The processor executes the computer-executable instructions stored in the memory to implement the method according to any one of claims 4 to 6.

15. A computer-readable storage medium, characterized in that The computer-readable storage medium stores computer-executable instructions, which, when executed by a processor, are used to implement a control method for an Internet of Things device according to any one of claims 1 to 8.

Citation Information

Patent Citations

  • Intelligent household control system based on network technology

    CN107255933A

  • Smart home system

    CN109991870A