CN-122001918-A - Remote control method, remote control device, user equipment and machine-readable storage medium
Abstract
The present disclosure provides a remote control method, apparatus, user equipment, and machine readable storage medium. According to one example of the disclosure, the method is applied to a transfer device, the method comprises the steps of receiving a remote control message sent by a terminal and aiming at a remote target intelligent device based on a first communication protocol, wherein the remote control message is defined based on a data model of the first communication protocol, converting the remote control message into a local control message according to a mapping relation between the first communication protocol and a data model of a second communication protocol operated by the target intelligent device, and sending the local control message to the target intelligent device based on the second communication protocol so as to realize remote control of the target intelligent device by the terminal. According to the present disclosure, a smart device that does not run a first communication protocol but runs a second communication protocol may be remotely controlled.
Inventors
- BAO YONGMING
Assignees
- 北京小米移动软件有限公司
Dates
- Publication Date
- 20260508
- Application Date
- 20241106
Claims (13)
- 1. A remote control method, the method comprising: Receiving a remote control message sent by a terminal aiming at a remote target intelligent device based on a first communication protocol, wherein the remote control message is defined based on a data model of the first communication protocol; According to the mapping relation between the first communication protocol and the data model of the second communication protocol operated by the target intelligent equipment, converting the remote control message into a local control message; And based on the second communication protocol, sending the local control message to the target intelligent device so as to realize remote control of the terminal on the target intelligent device.
- 2. The method of claim 1, wherein the mapping relationship is configured based on a correspondence between a data model of the first communication protocol and a data model of the second communication protocol, wherein the data model contains data indicating a device type and a device function of the target smart device.
- 3. The method of claim 2, wherein the data Model of the first communication protocol includes Model data and Module data, wherein the Model data is predefined for indicating a device type of the smart device running the second communication protocol, and wherein the Module data includes a Module name and a Module identifier for indicating a device function included in the smart device.
- 4. The method of claim 3, wherein the data model of the second communication protocol comprises a device type, a device type identification, a 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 device functions included in the smart device; The Model data in the data Model of the first communication protocol corresponds to the equipment type and equipment type identification in the data Model of the second communication protocol, and the Model data in the data Model of the first communication protocol corresponds to the function cluster and the Feature map data in the function cluster in the data Model of the second communication protocol.
- 5. The method according to claim 1, wherein the method further comprises: Receiving a local state message reported by the target intelligent device based on the running second communication protocol, wherein the local state message is a message defined based on a data model of the second communication protocol; Converting the local state message into a remote state message according to the mapping relation between the data model of the first communication protocol and the data model of the second communication protocol, wherein the remote state message is defined based on the data model of the first communication protocol; And carrying out remote communication with the terminal based on the first communication protocol, and sending the remote status message to the terminal so as to realize the response of the target intelligent equipment to the remote control.
- 6. A remote control method, the method comprising: Receiving login user information sent by a terminal and equipment information corresponding to target intelligent equipment, wherein the login user information is login information of a user logged in the terminal, the equipment information comprises equipment identification, and the equipment information is acquired from the target intelligent equipment when the terminal establishes local communication with the target intelligent equipment based on a second communication protocol operated by the target intelligent equipment; and establishing a binding relationship between the user and the target intelligent device based on the login user information and the device identifier.
- 7. The method of claim 1, wherein the device information comprises a device type and a device function, wherein the device information is information corresponding to a data model of the second communication protocol; The method further comprises the steps of: Converting the equipment type and the equipment function contained in the equipment information into a target equipment type and a target equipment function according to a mapping relation between a first communication protocol operated by the terminal and a data model of the second communication protocol, wherein the target equipment type information and the target equipment function information are information corresponding to the data model of the first communication protocol; And sending the target equipment type and the target equipment function to the terminal so that the terminal pulls the equipment plug-in according to the target equipment type and the target equipment function, and displaying control options provided by the equipment plug-in on an onboard user interface, wherein the target equipment type and the target equipment function are information corresponding to a data model of the first communication protocol, and the equipment plug-in is adapted to the first communication protocol.
- 8. The method of claim 6, wherein the target intelligent device is one of the sub-devices comprised by the target proxy device; Receiving login user information sent by a terminal and equipment information corresponding to target intelligent equipment, wherein the login user information comprises: The method comprises the steps of receiving login user information sent by a terminal and equipment information corresponding to target proxy equipment, wherein the equipment information comprises proxy equipment identification of the target proxy equipment and sub-equipment information of sub-equipment contained in the target proxy equipment, and the sub-equipment information comprises the sub-equipment information of the target intelligent equipment.
- 9. The method of claim 8, wherein establishing a binding relationship between the user and the target smart device based on the login user information and the device identification comprises: establishing a binding relationship between the user and the target proxy device based on the login user information, a preset proxy identifier and the proxy device identifier, and And respectively establishing a binding relation between the user and the sub-equipment based on the login user information, a preset proxy identifier, the proxy equipment identifier and the sub-equipment information, wherein the binding relation comprises the binding relation between the user and the target intelligent equipment.
- 10. A remote control device, the device comprising: The remote control system comprises a receiving unit, a receiving unit and a control unit, wherein the receiving unit is used for receiving a remote control message which is sent by a terminal and aims at a remote target intelligent device based on a first communication protocol, and the remote control message is defined based on a data model of the first communication protocol; The conversion unit is used for converting the remote control message into a local control message according to the mapping relation between the first communication protocol and the data model of the second communication protocol operated by the target intelligent equipment; and the sending unit is used for sending the local control message to the target intelligent equipment based on the second communication protocol so as to realize remote control of the terminal on the target intelligent equipment.
- 11. A remote control device, the device comprising: The system comprises a receiving unit, a target intelligent device and a target intelligent device, wherein the receiving unit is used for receiving login user information sent by the terminal and device information corresponding to the target intelligent device, wherein the login user information is login information of a user logged in the terminal, the device information comprises a device identifier, and the device information is acquired from the target intelligent device when the terminal establishes local communication with the target intelligent device based on a second communication protocol operated by the target intelligent device; and the establishing unit is used for establishing a binding relation between the user and the target intelligent device based on the login user information and the device identifier.
- 12. A user device, comprising: A processor; A memory for storing processor-executable instructions; Wherein the processor is adapted to implement the method of any one of claims 1 to 9.
- 13. A machine-readable storage medium storing machine-readable instructions which, when invoked and executed by a processor, implement the method of any one of claims 1 to 9.
Description
Remote control method, remote control device, user equipment and machine-readable storage medium Technical Field The present disclosure relates to the field of communications technologies, and in particular, to a remote control method, a remote control device, a user equipment, and a machine-readable storage medium. Background In order to enable intelligent devices produced by known manufacturers at home and abroad to cooperatively work, the known manufacturers at home and abroad can commonly jointly formulate some communication protocols and configure the communication protocols in the intelligent devices produced by the known manufacturers at home and abroad, so that the intelligent devices can cooperatively work, and a unified and safe intelligent home ecological system is created. Based on this, the communication protocol has a case of supporting only local communication but not remote communication, so that a user cannot remotely control the smart device configured with the local communication protocol, thereby affecting the use experience of the user. Disclosure of Invention The disclosure provides a remote control method applied to transfer equipment, comprising the following steps: Receiving a remote control message sent by a terminal aiming at a remote target intelligent device based on a first communication protocol, wherein the remote control message is defined based on a data model of the first communication protocol; According to the mapping relation between the first communication protocol and the data model of the second communication protocol operated by the target intelligent equipment, converting the remote control message into a local control message; And based on the second communication protocol, sending the local control message to the target intelligent device so as to realize remote control of the terminal on the target intelligent device. Optionally, the mapping relationship is configured based on a correspondence relationship between a data model of the first communication protocol and a data model of the second communication protocol, wherein the data model contains data for indicating a device type and a device function of the target intelligent device. Optionally, the data Model of the first communication protocol includes Model data and Module data, where the Model data is predefined and is used to indicate a device type of the intelligent device running the second communication protocol, and the Module data includes a Module name and a Module identifier and is used to indicate a device function included in the intelligent device. Optionally, the data model of the second communication protocol comprises a device type, a device type identifier, a function cluster and Feature map data in the function cluster, wherein the Feature map data in the function cluster is used for indicating device functions contained in the intelligent device; The Model data in the data Model of the first communication protocol corresponds to the equipment type and equipment type identification in the data Model of the second communication protocol, and the Model data in the data Model of the first communication protocol corresponds to the function cluster and the Feature map data in the function cluster in the data Model of the second communication protocol. Optionally, the method further comprises: Receiving a local state message reported by the target intelligent device based on the running second communication protocol, wherein the local state message is a message defined based on a data model of the second communication protocol; Converting the local state message into a remote state message according to the mapping relation between the data model of the first communication protocol and the data model of the second communication protocol, wherein the remote state message is defined based on the data model of the first communication protocol; And carrying out remote communication with the terminal based on the first communication protocol, and sending the remote status message to the terminal so as to realize the response of the target intelligent equipment to the remote control. The present disclosure also provides a remote control method, the method comprising: Receiving login user information sent by a terminal and equipment information corresponding to target intelligent equipment, wherein the login user information is login information of a user logged in the terminal, the equipment information comprises equipment identification, and the equipment information is acquired from the target intelligent equipment when the terminal establishes local communication with the target intelligent equipment based on a second communication protocol operated by the target intelligent equipment; and establishing a binding relationship between the user and the target intelligent device based on the login user information and the device identifier. Optionally, the device information may include a device type and