Remote control method and device, user equipment and machine readable storage medium
By using a relay device to convert remote control messages into local control messages when the target smart device is not running the first communication protocol, the problem of not being able to remotely control smart devices in the prior art is solved, the function of remote control is realized, and the user experience is improved.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- BEIJING XIAOMI MOBILE SOFTWARE CO LTD
- Filing Date
- 2024-11-06
- Publication Date
- 2026-05-08
AI Technical Summary
Existing communication protocols only support local communication and not remote communication, which prevents users from remotely controlling smart devices and affects user experience.
Remote control is achieved by receiving remote control messages through a relay device based on a first communication protocol, converting them into local control messages using a mapping relationship, and then sending them to the target smart device through a second communication protocol.
Even when the target smart device is not running the first communication protocol, remote control of it by the terminal is achieved, improving the user experience.
Smart Images

Figure CN122001918A_ABST
Abstract
Description
Technical Field
[0001] This disclosure relates to the field of communication technology, and in particular to a remote control method, apparatus, user equipment, and machine-readable storage medium. Background Technology
[0002] In order to enable smart devices produced by well-known domestic and foreign manufacturers to work together, these manufacturers can usually jointly develop some communication protocols and configure these protocols in their respective smart devices. This allows the smart devices to work together and create a unified and secure smart home ecosystem.
[0003] As a result, this communication protocol only supports local communication and not remote communication, which prevents users from remotely controlling smart devices configured with this local communication protocol, thus affecting the user experience. Summary of the Invention
[0004] This disclosure provides a remote control method applied to relay equipment; the method includes:
[0005] Based on a first communication protocol, a remote control message for a remote target smart device is sent by a receiving terminal; wherein the remote control message is a message defined based on the data model of the first communication protocol.
[0006] Based on the mapping relationship between the data models of the first communication protocol and the second communication protocol running on the target intelligent device, the remote control message is converted into a local control message;
[0007] Based on the second communication protocol, the local control message is sent to the target smart device to enable the terminal to remotely control the target smart device.
[0008] Optionally, the mapping relationship is configured based on the correspondence between the data model of the first communication protocol and the data model of the second communication protocol; wherein, the data model contains data for indicating the device type and device function of the target smart device.
[0009] Optionally, the data model of the first communication protocol includes Model data and Module data; wherein, the Model data is predefined and is used to indicate the device type of the smart device running the second communication protocol; the Module data includes a module name and a module identifier, and is used to indicate the device functions included in the smart device.
[0010] Optionally, the data model of the second communication protocol includes a device type, a device type identifier, a functional cluster, and feature map data in the functional cluster; wherein, the functional cluster and the feature map data in the functional cluster are used to indicate the device functions included in the smart device;
[0011] The Model data in the data model of the first communication protocol corresponds to the device type and device type identifier in the data model of the second communication protocol; the Module data in the data model of the first communication protocol corresponds to the functional cluster and Feature map data in the functional cluster in the data model of the second communication protocol.
[0012] Optionally, the method further includes:
[0013] Receive a local status message reported by the target intelligent device based on the running second communication protocol; wherein the local status message is a message defined based on the data model of the second communication protocol;
[0014] Based on the mapping relationship between the data models of the first communication protocol and the second communication protocol, the local status message is converted into a remote status message; wherein, the remote status message is a message defined based on the data model of the first communication protocol.
[0015] Based on the first communication protocol, remote communication is conducted with the terminal, and the remote status message is sent to the terminal to enable the target intelligent device to respond to the remote control.
[0016] This disclosure also provides a remote control method, the method comprising:
[0017] The terminal receives login user information and device information corresponding to the target smart device; wherein, the login user information is the login information of the user who logged into the terminal; the device information includes a device identifier; the device information is obtained by the terminal from the target smart device when the terminal establishes local communication with the target smart device based on the second communication protocol of the target smart device.
[0018] Based on the logged-in user information and the device identifier, a binding relationship is established between the user and the target smart device.
[0019] Optionally, the device information may include device type and device function; the device information is information corresponding to the data model of the second communication protocol;
[0020] The method further includes:
[0021] Based on the mapping relationship between the data models of the first communication protocol and the second communication protocol running on the terminal, the device type and device function contained in the device information are converted into target device type and target device function; wherein, the target device type information and the target device function information are information corresponding to the data model of the first communication protocol;
[0022] The target device type and target device function are sent to the terminal, so that the terminal can pull the device plugin according to the target device type and target device function, and display the control options provided by the device plugin on the user interface; wherein, the target device type and the target device function are information corresponding to the data model of the first communication protocol; the device plugin is adapted to the first communication protocol.
[0023] Optionally, the target intelligent device is one of the sub-devices included in the target agent device;
[0024] The receiving terminal sends login user information and device information corresponding to the target smart device, including:
[0025] The receiving terminal sends login user information and device information corresponding to the target proxy device; the device information includes the proxy device identifier of the target proxy device and sub-device information of the sub-devices included in the target proxy device; the sub-device information includes the sub-device information of the target smart device.
[0026] Optionally, based on the logged-in user information and the device identifier, a binding relationship is established between the user and the target smart device, including:
[0027] Based on the logged-in user information, the preset proxy identifier, and the proxy device identifier, a binding relationship is established between the user and the target proxy device; and,
[0028] Based on the logged-in user information, the preset agent identifier, the agent device identifier, and the sub-device information, a binding relationship is established between the user and the sub-device; wherein, the binding relationship includes the binding relationship between the user and the target smart device.
[0029] This disclosure also provides a remote control device, the device comprising:
[0030] A receiving unit is configured to receive a remote control message for a remote target smart device sent by a terminal, based on a first communication protocol; wherein the remote control message is a message defined based on a data model of the first communication protocol.
[0031] The conversion unit is used to convert the remote control message into a local control message according to the mapping relationship between the data model of the first communication protocol and the second communication protocol running by the target smart device;
[0032] The sending unit is used to send the local control message to the target smart device based on the second communication protocol, so as to realize the terminal's remote control of the target smart device.
[0033] This disclosure also provides a remote control device, the device comprising:
[0034] A receiving unit is configured to receive login user information sent by a terminal, and device information corresponding to a target smart device; wherein, the login user information is the login information of a user who logs into the terminal; the device information includes a device identifier; the device information is obtained by the terminal from the target smart device when the terminal establishes local communication with the target smart device based on the second communication protocol of the target smart device.
[0035] An establishment unit is configured to establish a binding relationship between the user and the target smart device based on the logged-in user information and the device identifier. This disclosure also provides a user device, including a communication interface, a processor, a memory, and a bus, wherein the communication interface, the processor, and the memory are interconnected via the bus.
[0036] The memory stores machine-readable instructions, and the processor executes the remote control method by invoking the machine-readable instructions.
[0037] This disclosure also provides a machine-readable storage medium storing machine-readable instructions, which, when invoked and executed by a processor, implement the remote control method.
[0038] The technical solution provided in this disclosure can include at least the following beneficial effects:
[0039] Through the above embodiments, when the target smart device is running the second communication protocol instead of the first communication protocol, since the first communication protocol supports remote data transmission while the second communication protocol does not, the relay device can receive remote control messages sent by the terminal for the remote target smart device based on the first communication protocol. These remote control messages can be messages defined based on the data model of the first communication protocol. The relay device can convert the remote control messages into local control messages based on the mapping relationship between the data models of the first communication protocol and the second communication protocol running on the target smart device. Furthermore, it can send the local control messages to the target smart device based on the second communication protocol. This enables remote control of the target smart device by the terminal even when the target smart device is running the second communication protocol instead of the first, thus improving the user experience. Attached Figure Description
[0040] To more clearly illustrate the technical solutions in the embodiments of this application or the prior art, the drawings used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments recorded in this application. For those skilled in the art, other drawings can be obtained based on these drawings.
[0041] Figure 1 This is a system interaction diagram illustrating a remote control method according to an exemplary embodiment.
[0042] Figure 2 This is a flowchart illustrating a remote control method according to an exemplary embodiment.
[0043] Figure 3 This is a flowchart illustrating another remote control method according to an exemplary embodiment.
[0044] Figure 4 This is a block diagram illustrating a remote control device according to an exemplary embodiment.
[0045] Figure 5 This is a block diagram illustrating another remote control device according to an exemplary embodiment.
[0046] Figure 6 This is a hardware structure diagram of a user equipment containing a remote control device, according to an exemplary embodiment. Detailed Implementation
[0047] Exemplary embodiments will now be described in detail, examples of which are illustrated in the accompanying drawings. When the following description relates to the drawings, unless otherwise indicated, the same numbers in different drawings denote the same or similar elements. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with this disclosure.
[0048] It should be noted that in other embodiments, the steps of the corresponding methods are not necessarily performed in the order shown and described in this disclosure. In some other embodiments, the methods may include more or fewer steps than those described in this disclosure.
[0049] The remote control method provided in this disclosure is described below through specific embodiments and application scenarios. This method enables remote control of the target intelligent device by converting remote control messages sent by the terminal based on a data model defined by a first communication protocol into local control messages based on a data model defined by a second communication protocol running on the target intelligent device.
[0050] In implementation, the relay device can receive remote control messages sent by the terminal for a remote target smart device based on the first communication protocol; wherein, the remote control message is a message defined based on the data model of the first communication protocol;
[0051] Based on the mapping relationship between the data models of the first communication protocol and the second communication protocol running on the target intelligent device, the remote control message is converted into a local control message;
[0052] Based on the second communication protocol, the local control message is sent to the target smart device to enable the terminal to remotely control the target smart device.
[0053] Through the above embodiments, when the target smart device is running the second communication protocol instead of the first communication protocol, since the first communication protocol supports remote data transmission while the second communication protocol does not, the relay device can receive remote control messages sent by the terminal for the remote target smart device based on the first communication protocol. These remote control messages can be messages defined based on the data model of the first communication protocol. The relay device can convert the remote control messages into local control messages based on the mapping relationship between the data models of the first communication protocol and the second communication protocol running on the target smart device. Furthermore, it can send the local control messages to the target smart device based on the second communication protocol. This enables remote control of the target smart device by the terminal even when the target smart device is running the second communication protocol instead of the first, thus improving the user experience.
[0054] The present disclosure will now be described through specific embodiments and in conjunction with specific application scenarios.
[0055] Please see Figure 1 , Figure 1 This is a system interaction diagram illustrating a remote control method according to an exemplary embodiment. (See diagram below.) Figure 1 As shown, since the second communication protocol running on the target smart device does not support remote communication, the terminal can establish remote communication with the cloud based on the first communication protocol running on the terminal. The cloud can establish remote communication with the relay device based on the first communication protocol. The relay device can establish local communication with the target smart device based on the second communication protocol running on the target smart device.
[0056] Based on this, the terminal can send remote control messages to the cloud for remote target smart devices. Since sending these remote control messages requires remote communication, the remote control messages can be messages defined based on the data model of the first communication protocol.
[0057] The cloud can receive the remote control message and forward it to the relay device, which can then receive the remote control message from the terminal. Since the remote control message is based on the data model of the first communication protocol, and the target smart device only supports the second communication protocol, it cannot parse and recognize the remote control message. In this case, the relay device can convert the remote control message according to the mapping relationship between the data models of the first and second communication protocols, transforming it into a local control message that the target smart device can parse and recognize; this local control message is based on the data model of the second communication protocol.
[0058] The relay device can communicate locally with the target smart device based on a second communication protocol, sending the local control message to the target smart device. Since the target smart device can parse and recognize this local control message, it can control the target smart device. This enables remote control of the target smart device by the terminal, improving the user experience.
[0059] The mapping relationship can be configured based on the correspondence between the data model of the first communication protocol and the data model of the second communication protocol; the data model can contain data for indicating the device type and device function of the target smart device.
[0060] The data model of the first communication protocol may include Model data and Module data; the Model data may be predefined and used to indicate the device type of the smart device running the second communication protocol; the Module data may include a module name and a module identifier and used to indicate the device functions included in the smart device.
[0061] The data model of the second communication protocol may include device type, device type identifier, functional cluster, and feature map data in the functional cluster; wherein, the functional cluster and the feature map data in the functional cluster can be used to indicate the device functions included in the smart device;
[0062] The Model data in the data model of the first communication protocol can correspond to the device type and device type identifier in the data model of the second communication protocol; the Module data in the data model of the first communication protocol can correspond to the functional cluster and Feature map data in the functional cluster in the data model of the second communication protocol.
[0063] The relay device can also receive local status messages reported by the target intelligent device based on the second communication protocol. The local status message can be a message defined by the data model of the second communication protocol. The relay device can convert the local status message into a remote status message according to the mapping relationship between the data models of the first and second communication protocols. The remote status message can be a message defined by the data model of the first communication protocol. The relay device can communicate remotely with the terminal based on the first communication protocol and send the remote status message to the terminal to realize the response of the target intelligent device to remote control.
[0064] The cloud can receive login user information sent by the terminal, as well as device information corresponding to the target smart device. The login user information is the login information of the user who logged into the terminal. The device information includes a device identifier. The device information is obtained by the terminal from the target smart device after establishing local communication with the target smart device based on the second communication protocol of the target smart device. Based on the login user information and the device identifier, a binding relationship between the user and the target smart device is established.
[0065] The device information may include device type and device function; the device information may be information corresponding to the data model of the second communication protocol; based on this, the cloud can also convert the device type and device function contained in the device information into target device type and target device function according to the mapping relationship between the data models of the first and second communication protocols running on the terminal; the target device type information and target device function information may be information corresponding to the data model of the first communication protocol.
[0066] The aforementioned cloud can send the target device type and target device function to the terminal, so that the terminal can pull the device plugin according to the target device type and target device function, and display the control options provided by the device plugin on the user interface; wherein, the target device type and target device function can be information corresponding to the data model of the first communication protocol; the device plugin can be adapted to the first communication protocol.
[0067] The target smart device can be one of the sub-devices included in the target agent device. Based on this, the cloud can receive login user information sent by the terminal, as well as device information corresponding to the target agent device. The device information includes the agent device identifier of the target agent device, and sub-device information of the sub-devices included in the target agent device. The sub-device information includes the sub-device information of the target smart device.
[0068] Specifically, the cloud platform can establish a binding relationship between a user and a target agent device based on the logged-in user information, a preset agent identifier, and an agent device identifier; and can establish a binding relationship between a user and a sub-device based on the logged-in user information, a preset agent identifier, an agent device identifier, and sub-device information; wherein the binding relationship includes the binding relationship between the user and the target smart device.
[0069] Please see Figure 2 , Figure 2 This is a flowchart illustrating a remote control method according to an exemplary embodiment.
[0070] like Figure 2 As shown, based on the first and second communication protocols in operation, the aforementioned relay equipment can perform the following steps:
[0071] Step 202: Based on the first communication protocol, receive a remote control message sent by the terminal for a remote target smart device; wherein the remote control message is a message defined based on the data model of the first communication protocol.
[0072] The relay device can be a gateway. This gateway can connect different devices on a local network (exemplarily, smart home devices, sensors, and control systems) to an external network or the Internet. In this disclosure, it can be used to process the conversion of control messages, ensuring that data can be correctly transmitted and processed.
[0073] The first communication protocol can be the Mi protocol, which supports remote communication. The second communication protocol can be the Matter protocol, and the target smart device can be a Matter device configured with the Matter protocol. The Matter protocol is an open standard developed by the CSA (Connectivity Standards Alliance) to unify the interoperability of smart home devices. Its goal is to improve the compatibility, reliability, and security of smart home devices, enabling smart devices from different manufacturers to work together.
[0074] Since the terminal establishes remote communication with the cloud based on the first communication protocol, and the cloud can establish remote communication with the relay device based on the first communication protocol, the terminal can generate a remote control message based on the first communication protocol. Based on the first communication protocol, the terminal can remotely send the remote control message for the remote target smart device to the cloud, and then send the remote control message to the relay device through the cloud. The relay device can receive the remote control message.
[0075] Step 204: Based on the mapping relationship between the data models of the first communication protocol and the second communication protocol running on the target smart device, the remote control message is converted into a local control message.
[0076] The data model of a protocol can refer to a standard that defines the structure, attributes, and relationships of data. It typically describes how data is represented and organized so that different systems or devices can understand and process it, thereby achieving interoperability. In this disclosure, the data model can refer to a standard that defines the structure, attributes, and relationships of control messages.
[0077] The specific details of this mapping relationship can be set according to actual needs, and this disclosure does not limit it.
[0078] In one embodiment shown, the mapping relationship is configured based on the correspondence between the data model of the first communication protocol and the data model of the second communication protocol; wherein the data model contains data for indicating the device type and device function of the target smart device.
[0079] Since the data model of the first communication protocol cannot be mapped one-to-one with the data model of the second communication protocol, the mapping relationship can be configured based on the relationship between the data models of the first communication protocol and the second communication protocol.
[0080] The specific mapping form of this mapping relationship may include one-to-one mapping, one-to-many mapping, many-to-one mapping, and many-to-many mapping, but this disclosure does not limit it.
[0081] The data model of the second communication protocol can include multiple device types and multiple device functions, while the first communication protocol can include at least one device type corresponding to the multiple device types and at least some of the device functions. In this case, the mapping relationship can be a many-to-one mapping, where the multiple device types in the data model of the second communication protocol can be mapped to at least some of the device types in the first communication protocol, and at least some of the device functions in the data model of the second communication protocol can be mapped to at least some of the device functions in the first communication protocol.
[0082] For example, the data model of the second communication protocol can include multiple device types, such as device type_1, device type_2, and device type_3. The data model of the first communication protocol can include device type_11, which corresponds to these multiple device types. Based on this, device type_11 in the data model of the first communication protocol can correspond to device type_1, device type_2, and device type_3 in the data model of the second communication protocol.
[0083] For example, the data model of the second communication protocol can include multiple device functions, such as device function_1, device function_2, and device function_3. The data model of the first communication protocol can include device function_2 and device function_3. Therefore, device function_2 and device function_3 in the data model of the first communication protocol can correspond to device function_2 and device function_3 in the data model of the second communication protocol, while device function_1 in the data model of the second communication protocol is not mapped.
[0084] The specific content of the data model of the first communication protocol can be set according to actual needs, and this disclosure does not limit it.
[0085] In one embodiment shown, the data model of the first communication protocol may include Model data and Module data; wherein, the Model data may be predefined and used to indicate the device type of the smart device running the second communication protocol; the Module data includes a module name and a module identifier and is used to indicate the device functions included in the smart device.
[0086] In order to distinguish different types of smart devices produced by different manufacturers, Model data for indicating the device type of smart devices running the second communication protocol can be predefined based on the data model of the first communication protocol.
[0087] For example, the data model of the second communication protocol can include multiple device types, such as on / off lights, dimming lights, and color-changing lights. Based on this, a light model can be predefined as model data based on the first communication protocol to indicate the device types of the three types of smart devices running the second communication protocol. Therefore, the light model included in the data model of the first communication protocol can correspond to the on / off lights, dimming lights, and color-changing lights included in the data model of the second communication protocol.
[0088] The data model of the first communication protocol may also include Module data, which may contain module name and module identifier to indicate the device functions included in the smart device.
[0089] For example, the data model of the second communication protocol can include multiple device functions, such as switching, dimming, and color adjustment. For smart device 1, if its device type is a light switch and its auxiliary function includes dimming, then the data model of the first communication protocol can include Module data. This Module data can include a lamp module as the module name and a module identifier (2) to indicate a lamp module that includes both switching and dimming functions. Therefore, the lamp module and module identifier (2) in the data model of the first communication protocol can correspond to a light switch with dimming functionality included in the data model of the second communication protocol.
[0090] In this way, the device information contained in the data model of the second communication protocol can be accurately mapped.
[0091] In one embodiment shown, the data model of the second communication protocol may include a device type, a device type identifier, a function cluster, and feature map data within the function cluster; wherein, the function cluster and the feature map data within the function cluster are used to indicate the device functions included in the smart device; the Model data in the data model of the first communication protocol may correspond to the device type and device type identifier in the data model of the second communication protocol; the Module data in the data model of the first communication protocol may correspond to the function cluster and feature map data within the function cluster in the data model of the second communication protocol.
[0092] The functional cluster and the feature map data within the functional cluster can be used to indicate the device functions included in the smart device, and the module data in the data model of the first communication protocol can correspond to the functional cluster and the feature map data within the functional cluster.
[0093] For example, please refer to Table 1, which is a mapping table between a data model of a first communication protocol and a second communication protocol, as shown in an exemplary embodiment.
[0094]
[0095]
[0096] As shown in Table 1, the data model of the second communication protocol can include information on device type and device function. The device type can include a device type name and a device type identifier. The device function can include a function cluster and feature map data within the function cluster. The function cluster can be used to indicate the basic functions of the smart device, and the feature map data within the function cluster can be used to indicate the additional functions of the smart device. Specifically, the device type can include a switch light, a dimming light, and a color-changing light. The device type identifiers corresponding to the switch light, dimming light, and color-changing light can be id_1, id_2, and id_3, respectively. The switch light can include two types: one with basic functions and the other with both switching and dimming functions. The device function of the dimming light can include both switching and dimming functions. The color-changing light can have switching, color temperature adjustment, and multiple selectable color temperature adjustment methods.
[0097] The data model of the first communication protocol may include target device type and target device function. The target device type may include Model data, and the target device function may include Module data. The Module data may include module name and module identifier. The Model data may include light.matter, and the module name may include module_light. In the data model of the first communication protocol, if the module identifier is 1, it can indicate that the smart device with the module name module_light supports the on / off function. If the module identifier is 2, it can indicate that the smart device with the module name module_light supports the on / off function and dimming function. If the module identifier is 3, it can indicate that the smart device with the module name module_light supports the on / off function, dimming function, and color temperature adjustment function.
[0098] Specifically, the mapping relationship between the three device types in the second communication protocol and the target device type in the first communication protocol can be configured, as well as the mapping relationship between the four device functions in the second communication protocol and the three target device functions in the first communication protocol, so as to construct an accurate mapping relationship between the data models of the second communication protocol and the first communication protocol.
[0099] For example, a smart device with a switch light type, device type identifier id_1, and switch function can be mapped to a smart device with Model data light.matter, module name module_light, and module identifier 1; a smart device with a switch light type, device type identifier id_1, and switch and dimming functions can be mapped to a smart device with Model data light.matter, module name module_light, and module identifier 2; a smart device with a dimming light type, device type identifier id_2, and switch and dimming functions can be mapped to a smart device with Model data light.matter, module name module_light, and module identifier 2; a smart device with a color temperature adjustment light type, device type identifier id_3, and switch and color temperature adjustment functions can be mapped to a smart device with Model data light.matter, module name module_light, and module identifier 3.
[0100] It should be noted that this mapping relationship can also include mapping relationships between other information in the data model, which can be set according to actual needs, and this disclosure does not limit it.
[0101] In this way, protocols that cannot be mapped one-to-one with data models can be configured according to actual needs, thereby improving the flexibility of protocol conversion.
[0102] Step 206: Based on the second communication protocol, the local control message is sent to the target smart device to enable the terminal to remotely control the target smart device.
[0103] Since the relay device and the smart device establish local communication based on the second communication protocol running on the smart device, the local control message can be sent to the target smart device based on the established second communication. Since the local control message is a message defined based on the second communication protocol, the target smart device can parse and identify the local control message, thereby realizing remote control of the target smart device by the terminal.
[0104] The specific content of the control message can be set according to actual needs, and this disclosure does not limit it.
[0105] In one embodiment shown, the relay device can receive local status messages reported by the target intelligent device based on a second communication protocol; wherein the local status message is a message defined by a data model based on the second communication protocol; the local status message is converted into a remote status message according to the mapping relationship between the data models of the first and second communication protocols; wherein the remote status message is a message defined by a data model based on the first communication protocol; and remote communication is performed with the terminal based on the first communication protocol to send the remote status message to the terminal, so as to realize the response of the target intelligent device to remote control.
[0106] The terminal can remotely control the target smart device, and the target smart device can respond to the remote control. The relay device can receive local status messages reported by the target smart device and send these messages to the terminal. Since these local status messages are based on a data model defined by the second communication protocol, the terminal cannot parse and recognize them. Therefore, the relay device can map and convert these local status messages before sending them to the terminal.
[0107] For example, the relay device can receive local status messages reported by the target smart device, query mapping relationships, determine the target device type and target device function that match the device type and device function in the local status message, generate remote status messages based on the target device type and target device function, and communicate remotely with the terminal based on the first communication protocol to send the target status messages to the terminal.
[0108] In this way, the terminal can receive the target smart device's response to remote control, thereby improving the user experience.
[0109] The specific content of this status message can be set according to actual needs, and this disclosure does not limit it.
[0110] Please see Figure 3 , Figure 3 This is a flowchart illustrating a remote control method according to an exemplary embodiment.
[0111] like Figure 3 As shown, based on the established remote and local communication, the cloud can perform the following steps:
[0112] Step 302: Receive login user information and device information corresponding to the target smart device sent by the terminal; wherein, the login user information is the login information of the user who logged into the terminal; the device information includes a device identifier; the device information is obtained by the terminal from the target smart device when the terminal establishes local communication with the target smart device based on the second communication protocol of the target smart device.
[0113] Step 304: Based on the logged-in user information and the device identifier, establish a binding relationship between the user and the target smart device.
[0114] Based on the first communication protocol running on the terminal, the cloud can establish remote communication with the terminal. Based on this remote communication, the cloud can receive remote control messages sent by the terminal for the target smart device, and can send the remote control messages to the relay device, which will then perform protocol mapping, thereby enabling the terminal to remotely control the target smart device.
[0115] The cloud can store the binding relationship between the user who logged into the terminal and the target smart device, as well as the correspondence between the target smart device and the relay device. Based on the binding relationship and the correspondence, the remote control message sent by the terminal can be accurately sent to the relay device that has established local communication with the target smart device remotely controlled by the terminal.
[0116] When the cloud receives a remote control message sent by the terminal, the remote control message may contain the login user information of the user who logged into the terminal. The cloud may verify the identity of the user who logged into the terminal based on the login user information, and may also query the target smart device bound to the user who logged into the terminal based on the login user information, and further query the relay device corresponding to the target smart device, thereby sending the remote control message to the relay device.
[0117] It should be noted that the binding relationship can also be a binding relationship between the terminal and the target smart device, which can be set according to actual needs, and this disclosure does not limit it.
[0118] The method for obtaining this binding relationship can be set according to actual needs, and this disclosure does not impose any restrictions on it.
[0119] Before remote control, the terminal can perform a network configuration operation on the target smart device to connect it to the local communication network. During this network configuration process, the terminal can obtain the device information of the target smart device and report this device information and the login user information of the terminal to the cloud to establish a binding relationship in the cloud.
[0120] For example, the terminal can establish local communication with the target smart device based on the second communication protocol running on the target smart device, and can obtain device information corresponding to the target smart device from the target smart device based on the local communication. It can also upload the device information and the login user information of the terminal to the cloud, so that the cloud can establish a binding relationship between the user and the target smart device based on the login user information and the device identifier contained in the device information.
[0121] In this way, a binding relationship can be established between the user logging into the terminal and the target smart device in the cloud, which makes it easier for the user to switch terminals for remote control and improves the flexibility of remote control.
[0122] In one embodiment shown, the device information may include device type and device function; the device information may be information corresponding to the data model of the second communication protocol; the cloud may convert the device type and device function contained in the device information into target device type and target device function according to the mapping relationship between the data models of the first and second communication protocols running on the terminal; wherein, the target device type information and target device function information may be information corresponding to the data model of the first communication protocol; the target device type and target device function are sent to the terminal so that the terminal can pull the device plugin according to the target device type and target device function, and display the control options provided by the device plugin on the onboard user interface; wherein, the target device type and target device function are information corresponding to the data model of the first communication protocol; the device plugin is adapted to the first communication protocol.
[0123] Once the aforementioned binding relationship is established in the cloud, control options for controlling the target smart device can be displayed on the user interface on the terminal, allowing users to remotely control the target smart device using the terminal.
[0124] Since the communication between the terminal and the cloud is a remote communication established based on the first communication protocol, and the subsequently generated remote control information requires remote communication, the terminal can retrieve a device plugin adapted to the first communication protocol to display the control options provided by the device plugin on the terminal's user interface. Therefore, because the device information of the target smart device obtained by the terminal is defined based on the second communication protocol, it is not possible to directly retrieve the aforementioned device plugin based on this device information.
[0125] In this scenario, the cloud can, based on the mapping relationship between the data models of the first and second communication protocols, convert the device type and function contained in the received device information corresponding to the data model of the second communication protocol into the target device type and target device function corresponding to the data model of the first communication protocol. This allows the terminal to retrieve the device plugin based on the target device type and target device function and display the control options provided by the device plugin on the onboard user interface. Based on these control options, the terminal can respond to the user's control operations on the remote target smart device and generate a remote control message for that target smart device.
[0126] For example, the cloud can receive device information of the target smart device reported by the terminal. This device information may include device type_1 and device function_1. Based on the above mapping relationship, the cloud can convert the device information into target device information, which includes target device type_1 and target device function_1. The cloud can then send the target device type_1 and target device function_1 to the terminal. The terminal can then retrieve the corresponding device plugin based on the target device type_1 and target device function_1, and display the control options provided by the device plugin on the user interface.
[0127] In this way, users can trigger remote control through the user interface provided on the terminal, thereby improving the user's control experience.
[0128] In one embodiment shown, the target smart device can be one of the sub-devices included in the target agent device; the cloud can receive login user information corresponding to the terminal sent by the terminal, and device information corresponding to the target agent device; the device information includes the agent device identifier of the target agent device, and sub-device information of the sub-devices included in the target agent device; the sub-device information includes the sub-device information of the target smart device.
[0129] Based on this, in one embodiment shown, the cloud can establish a binding relationship between a user and a target agent device based on login user information, a preset agent identifier, and an agent device identifier; and establish binding relationships between a user and a sub-device based on login user information, an agent device identifier, a preset agent identifier, and sub-device information; wherein, the binding relationship includes the binding relationship between the user and the target smart device.
[0130] Since smart devices include smart devices with multiple functional modules, in order to facilitate precise control, the smart device can be used as a target agent device, and the functional modules contained in the agent device can be used as sub-devices of the target agent device. The terminal can establish a binding relationship with the sub-device, thereby enabling precise control of the sub-device.
[0131] The cloud can assign a dedicated proxy identifier to smart devices, making it easier to identify the smart device as a proxy device.
[0132] For example, the target proxy device can be a fan light, which may include fan sub-devices and light sub-devices. The cloud can receive login user information corresponding to the terminal and device information corresponding to the fan light, sent by the terminal. The device information may include the fan light identifier of the fan light, as well as the sub-device information of the fan sub-device and the light sub-device included in the fan light. Based on this, the cloud can establish a binding relationship between the user and the fan light based on the login user information, the fan light identifier, and the assigned proxy identifier. Furthermore, it can establish binding relationships between the user and the fan sub-device, and between the user and the light device, respectively, based on the login user information, the fan light identifier, and the sub-device information.
[0133] In this way, the accuracy of remote control can be improved for smart devices that contain multiple functional modules.
[0134] It should be noted that the binding process may also include, in the case of establishing a binding relationship between the user and the target agent device, converting the device information of the target agent device into target device information and sending the target device information to the terminal, so that the terminal can display the target device information of multiple sub-devices contained in the target agent device on the user interface, thereby making it convenient for the user to selectively bind the multiple sub-devices.
[0135] Furthermore, since a binding relationship has been established between the user and the multiple sub-devices, subsequent unbinding can be performed on all of the target proxy devices or selectively on the multiple sub-devices included in the target proxy device. This disclosure does not limit this.
[0136] In addition to the aforementioned embodiments of the remote control method, this disclosure also provides embodiments of a remote control device. See also Figure 4 The device is applied to transfer equipment; the device may include:
[0137] The receiving unit 402 is configured to receive a remote control message for a remote target smart device sent by a terminal based on a first communication protocol; wherein the remote control message is a message defined based on the data model of the first communication protocol.
[0138] The conversion unit 404 is used to convert the remote control message into a local control message according to the mapping relationship between the data model of the first communication protocol and the second communication protocol running by the target smart device;
[0139] The sending unit 406 is used to send the local control message to the target smart device based on the second communication protocol, so as to realize the terminal's remote control of the target smart device.
[0140] In this embodiment, the mapping relationship is configured based on the correspondence between the data model of the first communication protocol and the data model of the second communication protocol; wherein, the data model contains data for indicating the device type and device function of the target smart device.
[0141] In this embodiment, the data model of the first communication protocol may include Model data and Module data; wherein, the Model data may be predefined and used to indicate the device type of the smart device running the second communication protocol; the Module data may include a module name and a module identifier and used to indicate the device functions included in the smart device.
[0142] In this embodiment, the data model of the second communication protocol may include device type, device type identifier, functional cluster, and feature map data in the functional cluster; wherein, the functional cluster and the feature map data in the functional cluster can be used to indicate the device functions included in the smart device;
[0143] The Model data in the data model of the first communication protocol can correspond to the device type and device type identifier in the data model of the second communication protocol; the Module data in the data model of the first communication protocol can correspond to the functional cluster and Feature map data in the functional cluster in the data model of the second communication protocol.
[0144] In this embodiment, the conversion unit 404 can also be used for:
[0145] Receive local status messages reported by the target intelligent device based on the running second communication protocol; wherein, the local status message is a message defined by the data model of the second communication protocol;
[0146] Based on the mapping relationship between the data models of the first and second communication protocols, local status messages are converted into remote status messages; wherein, the remote status message is a message defined based on the data model of the first communication protocol.
[0147] Based on the first communication protocol, remote communication is conducted with the terminal, and remote status messages are sent to the terminal to enable the target intelligent device to respond to remote control.
[0148] This disclosure also provides another embodiment of a remote control device. See [link to relevant documentation]. Figure 5 The device is used in the cloud; the device may include:
[0149] The receiving unit 502 is used to receive login user information sent by the terminal and device information corresponding to the target smart device; wherein, the login user information is the login information of the user who logs into the terminal; the device information includes a device identifier; the device information is obtained by the terminal from the target smart device when the terminal establishes local communication with the target smart device based on the second communication protocol of the target smart device.
[0150] Establishment unit 504 is used to establish a binding relationship between a user and a target smart device based on the logged-in user information and device identifier.
[0151] In this embodiment, the device information may include device type and device function; the device information may be information corresponding to the data model of the second communication protocol.
[0152] The above-mentioned apparatus may further include a transmitting unit for:
[0153] Based on the mapping relationship between the data models of the first and second communication protocols running on the terminal, the device type and device function contained in the device information are converted into the target device type and target device function; wherein, the target device type information and target device function information are information corresponding to the data model of the first communication protocol;
[0154] The target device type and target device function are sent to the terminal, so that the terminal can pull the device plugin according to the target device type and target device function, and display the control options provided by the device plugin on the user interface; wherein, the target device type and target device function are information corresponding to the data model of the first communication protocol; the device plugin is adapted to the first communication protocol.
[0155] In this embodiment, the target intelligent device can be one of the sub-devices included in the target agent device;
[0156] The aforementioned receiving unit 502 can be specifically used for:
[0157] The receiving terminal sends login user information corresponding to the terminal, as well as device information corresponding to the target agent device; the device information includes the agent device identifier of the target agent device, and sub-device information of the sub-devices contained in the target agent device; the sub-device information includes the sub-device information of the target smart device.
[0158] In this embodiment, the above-mentioned establishing unit can also be used for:
[0159] Based on logged-in user information, preset proxy identifiers, and proxy device identifiers, a binding relationship is established between the user and the target proxy device; and,
[0160] Based on the logged-in user information, the agent device identifier, the preset agent identifier, and the sub-device information, a binding relationship is established between the user and the sub-device; among which, the binding relationship includes the binding relationship between the user and the target smart device.
[0161] The specific implementation process of the functions and roles of each module in the device is detailed in the implementation process of the corresponding steps in the method, and will not be repeated here.
[0162] For the device embodiments, since they basically correspond to the method embodiments, the relevant parts can be referred to in the description of the method embodiments. The device embodiments described above are merely illustrative. The modules described as separate components may or may not be physically separate, and the components shown as modules may or may not be physical modules, that is, they may be located in one place or distributed across multiple network units. Some or all of the modules can be selected to achieve the purpose of this disclosure according to actual needs. Those skilled in the art can understand and implement this without creative effort.
[0163] The systems, devices, or modules described in the embodiments can be implemented by computer chips or entities, or by products with certain functions. A typical implementation device is a computer, which can take the form of a personal computer, laptop computer, cellular phone, camera phone, smartphone, personal digital assistant, media player, navigation device, email sending and receiving device, game console, tablet computer, wearable device, or any combination of these devices.
[0164] Embodiments of this disclosure also provide a user equipment, including: a processor; a memory for storing processor-executable instructions; wherein the processor is configured to implement the method described in any of the above embodiments.
[0165] Figure 6 This is a block diagram illustrating a user device according to an exemplary embodiment. For example, user device 600 may be a mobile phone, computer, digital broadcasting terminal, messaging device, game console, tablet device, medical device, fitness equipment, personal digital assistant, etc.
[0166] Reference Figure 6 User equipment 600 may include one or more of the following components: processing component 602, memory 604, power supply component 606, multimedia component 608, audio component 610, input / output (I / O) interface 612, sensor component 614, and communication component 616.
[0167] Processing component 602 typically controls the overall operation of user equipment 600, such as operations associated with display, telephone calls, data communication, camera operation, and recording. Processing component 602 may include one or more processors 620 to execute instructions to perform all or part of the steps of the methods described above. Furthermore, processing component 602 may include one or more modules to facilitate interaction between processing component 602 and other components. For example, processing component 602 may include a multimedia module to facilitate interaction between multimedia component 608 and processing component 602.
[0168] Memory 604 is configured to store various types of data to support operation on user equipment 600. Examples of this data include instructions for any application or method operating on user equipment 600, contact data, phonebook data, messages, pictures, videos, etc. Memory 604 can be implemented by any type of volatile or non-volatile storage device or a combination thereof, such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic storage, flash memory, magnetic disk, or optical disk.
[0169] Power supply component 606 provides power to various components of user equipment 600. Power supply component 606 may include a power management system, one or more power supplies, and other components associated with generating, managing, and distributing power to user equipment 600.
[0170] Multimedia component 608 includes a screen that provides an output interface between the user equipment 600 and the user. In some embodiments, the screen may include a liquid crystal display (LCD) and a touch panel (TP). If the screen includes a touch panel, the screen may be implemented as a touchscreen to receive input signals from the user. The touch panel includes one or more touch sensors to sense touches, swipes, and gestures on the touch panel. The touch sensors may sense not only the boundaries of the touch or swipe action but also the duration and pressure associated with the touch or swipe operation. In some embodiments, multimedia component 608 includes a front-facing camera and / or a rear-facing camera. When the user equipment 600 is in an operating mode, such as a shooting mode or a video mode, the front-facing camera and / or the rear-facing camera may receive external multimedia data. Each front-facing camera and rear-facing camera may be a fixed optical lens system or have focal length and optical zoom capabilities.
[0171] Audio component 610 is configured to output and / or input audio signals. For example, audio component 610 includes a microphone (MIC) configured to receive external audio signals when user equipment 600 is in an operating mode, such as call mode, recording mode, and voice recognition mode. The received audio signals may be further stored in memory 604 or transmitted via communication component 616. In some embodiments, audio component 610 also includes a speaker for outputting audio signals.
[0172] I / O interface 612 provides an interface between processing component 602 and peripheral interface modules, such as keyboards, click wheels, buttons, etc. These buttons may include, but are not limited to, home buttons, volume buttons, power buttons, and lock buttons.
[0173] Sensor assembly 614 includes one or more sensors for providing status assessments of various aspects of user equipment 600. For example, sensor assembly 614 may detect the on / off state of user equipment 600, the relative positioning of components such as the display and keypad of user equipment 600, changes in position of user equipment 600 or a component of user equipment 600, the presence or absence of user contact with user equipment 600, the orientation or acceleration / deceleration of user equipment 600, and temperature changes of user equipment 600. Sensor assembly 614 may include a proximity sensor configured to detect the presence of nearby objects without any physical contact. Sensor assembly 614 may also include a light sensor, such as a CMOS or CCD image sensor, for use in imaging applications. In some embodiments, sensor assembly 614 may also include an accelerometer, a gyroscope, a magnetometer, a pressure sensor, or a temperature sensor.
[0174] Communication component 616 is configured to facilitate wired or wireless communication between user equipment 600 and other devices. User equipment 600 can access wireless networks based on communication standards, such as WiFi, 2G or 3G, 4G LTE, 6G NR, or combinations thereof. In one exemplary embodiment, communication component 616 receives broadcast signals or broadcast-related information from an external broadcast management system via a broadcast channel. In one exemplary embodiment, communication component 616 also includes a near-field communication (NFC) module to facilitate short-range communication. For example, the NFC module may be implemented based on radio frequency identification (RFID) technology, Infrared Data Association (IrDA) technology, ultra-wideband (UWB) technology, Bluetooth (BT) technology, and other technologies.
[0175] In an exemplary embodiment, user equipment 600 may be implemented by one or more application-specific integrated circuits (ASICs), digital signal processors (DSPs), digital signal processing devices (DSPDs), programmable logic devices (PLDs), field-programmable gate arrays (FPGAs), controllers, microcontrollers, microprocessors, or other electronic components to perform the methods described in any of the above embodiments.
[0176] In an exemplary embodiment, a non-transitory computer-readable storage medium including instructions is also provided, such as a memory 604 including instructions, which can be executed by a processor 620 of a user device 600 to perform the above-described method. For example, the non-transitory computer-readable storage medium may be a ROM, random access memory (RAM), CD-ROM, magnetic tape, floppy disk, and optical data storage device, etc.
[0177] Embodiments of this disclosure also provide a computer-readable storage medium having a computer program stored thereon that, when executed by a processor, implements the steps of the method described in any of the above embodiments.
[0178] Embodiments of this disclosure also provide a computer program product configured to perform the wireless charging foreign object detection method described in any of the above embodiments.
[0179] Other embodiments of this disclosure will readily occur to those skilled in the art upon consideration of the specification and practice of the disclosure herein. This disclosure is intended to cover any variations, uses, or adaptations of this disclosure that follow the general principles of this disclosure and include common knowledge or customary techniques in the art not disclosed herein. The specification and examples are to be considered exemplary only, and the true scope and spirit of this disclosure are indicated by the following claims.
[0180] It should be understood that this disclosure is not limited to the precise structures described above and shown in the accompanying drawings, and various modifications and changes can be made without departing from its scope. The scope of this disclosure is limited only by the appended claims.
[0181] The user information (including but not limited to user device information, user personal information, etc.) and data (including but not limited to data used for analysis, data stored, data displayed, etc.) involved in this disclosure are all information and data authorized by the user or fully authorized by all parties. Furthermore, the collection, use and processing of the relevant data shall comply with the relevant laws, regulations and standards of the relevant countries and regions, and corresponding operation entry points shall be provided for users to choose to authorize or refuse.
Claims
1. A remote control method, characterized in that, The method includes: Based on a first communication protocol, a remote control message for a remote target smart device is sent by a receiving terminal; wherein the remote control message is a message defined based on the data model of the first communication protocol. Based on the mapping relationship between the data models of the first communication protocol and the second communication protocol running on the target intelligent device, the remote control message is converted into a local control message; Based on the second communication protocol, the local control message is sent to the target smart device to enable the terminal to remotely control the target smart device.
2. The method according to claim 1, characterized in that, The mapping relationship is configured based on the correspondence between the data model of the first communication protocol and the data model of the second communication protocol; wherein, the data model contains data for indicating the device type and device function of the target smart device.
3. The method according to claim 2, characterized in that, The data model of the first communication protocol includes Model data and Module data; wherein, the Model data is predefined and is used to indicate the device type of the smart device running the second communication protocol; the Module data includes a module name and a module identifier and is used to indicate the device functions included in the smart device.
4. The method according to claim 3, characterized in that, The data model of the second communication protocol includes device type, device type identifier, function cluster, and feature map data in the function cluster; wherein, the function cluster and the feature map data in the function cluster are used to indicate the device functions included in the smart device; The Model data in the data model of the first communication protocol corresponds to the device type and device type identifier in the data model of the second communication protocol; the Module data in the data model of the first communication protocol corresponds to the functional cluster and Feature map data in the functional cluster in the data model of the second communication protocol.
5. The method according to claim 1, characterized in that, The method further includes: Receive a local status message reported by the target intelligent device based on the running second communication protocol; wherein the local status message is a message defined based on the data model of the second communication protocol; Based on the mapping relationship between the data models of the first communication protocol and the second communication protocol, the local status message is converted into a remote status message; wherein, the remote status message is a message defined based on the data model of the first communication protocol. Based on the first communication protocol, remote communication is conducted with the terminal, and the remote status message is sent to the terminal to enable the target intelligent device to respond to the remote control.
6. A remote control method, characterized in that, The method includes: The terminal receives login user information and device information corresponding to the target smart device; wherein, the login user information is the login information of the user who logged into the terminal; the device information includes a device identifier; the device information is obtained by the terminal from the target smart device when the terminal establishes local communication with the target smart device based on the second communication protocol of the target smart device. Based on the logged-in user information and the device identifier, a binding relationship is established between the user and the target smart device.
7. The method according to claim 1, characterized in that, The device information includes device type and device function; the device information is information corresponding to the data model of the second communication protocol. The method further includes: Based on the mapping relationship between the data models of the first communication protocol and the second communication protocol running on the terminal, the device type and device function contained in the device information are converted into target device type and target device function; wherein, the target device type information and the target device function information are information corresponding to the data model of the first communication protocol; The target device type and target device function are sent to the terminal, so that the terminal can pull the device plugin according to the target device type and target device function, and display the control options provided by the device plugin on the user interface; wherein, the target device type and the target device function are information corresponding to the data model of the first communication protocol; the device plugin is adapted to the first communication protocol.
8. The method according to claim 6, characterized in that, The target intelligent device is one of the sub-devices included in the target agent device; The receiving terminal sends login user information and device information corresponding to the target smart device, including: The terminal receives login user information and device information corresponding to the target proxy device. The device information includes the proxy device identifier of the target proxy device, and sub-device information of the sub-devices included in the target proxy device; the sub-device information includes the sub-device information of the target smart device.
9. The method according to claim 8, characterized in that, Based on the logged-in user information and the device identifier, a binding relationship is established between the user and the target smart device, including: Based on the logged-in user information, the preset proxy identifier, and the proxy device identifier, a binding relationship is established between the user and the target proxy device; and, Based on the logged-in user information, the preset agent identifier, the agent device identifier, and the sub-device information, a binding relationship is established between the user and the sub-device; wherein, the binding relationship includes the binding relationship between the user and the target smart device.
10. A remote control device, characterized in that, The device includes: A receiving unit is configured to receive a remote control message for a remote target smart device sent by a terminal, based on a first communication protocol; wherein the remote control message is a message defined based on a data model of the first communication protocol. The conversion unit is used to convert the remote control message into a local control message according to the mapping relationship between the data model of the first communication protocol and the second communication protocol running by the target smart device; The sending unit is used to send the local control message to the target smart device based on the second communication protocol, so as to realize the terminal's remote control of the target smart device.
11. A remote control device, characterized in that, The device includes: A receiving unit is configured to receive login user information sent by a terminal, and device information corresponding to a target smart device; wherein, the login user information is the login information of a user who logs into the terminal; the device information includes a device identifier; the device information is obtained by the terminal from the target smart device when the terminal establishes local communication with the target smart device based on the second communication protocol of the target smart device. The establishment unit is used to establish a binding relationship between the user and the target smart device based on the logged-in user information and the device identifier.
12. A user equipment, characterized in that, include: processor; Memory used to store processor-executable instructions; The processor is used to implement the method according to any one of claims 1 to 9.
13. A machine-readable storage medium, characterized in that, The machine-readable storage medium stores machine-readable instructions, which, when invoked and executed by a processor, implement the method described in any one of claims 1 to 9.