Search

CN-122001601-A - Remote control method and device for Matter equipment, storage medium, equipment and product

CN122001601ACN 122001601 ACN122001601 ACN 122001601ACN-122001601-A

Abstract

The disclosure provides a remote control method, a remote control device, a storage medium, equipment and a product of the Matter equipment. The method comprises the steps of acquiring a device identifier in a remote control message reported by a terminal under the condition that the cloud platform receives the remote control message, wherein the remote control message is obtained by encapsulating the remote control command and the device identifier according to a preset protocol under the condition that the terminal receives the remote control command to the Matter device, acquiring a gateway identifier associated with the device identifier, forwarding the remote control command to a gateway indicated by the gateway identifier, enabling the gateway to convert the remote control command based on the preset protocol into a local control command based on the Matter protocol, and sending the local control command to the Matter device indicated by the device identifier. The remote control instruction sent to the water equipment by the cloud platform through the gateway forwarding terminal realizes the remote control of the water equipment by the cloud platform conforming to the own protocol, and the transformation of a platform frame is avoided.

Inventors

  • CHEN YUXUAN

Assignees

  • 北京小米移动软件有限公司

Dates

Publication Date
20260508
Application Date
20241106

Claims (16)

  1. 1. A remote control method of a Matter device, the method comprising: acquiring a device identifier in a remote control message when a cloud platform receives the remote control message sent by a terminal, wherein the remote control message is obtained by encapsulating the remote control instruction and the device identifier of the Matter device according to a preset protocol when the terminal receives the remote control instruction to the Matter device, and the preset protocol is a protocol applied by the cloud platform; and acquiring a gateway identifier associated with the equipment identifier, forwarding the remote control instruction to a gateway indicated by the gateway identifier, converting the remote control instruction based on a preset protocol into a local control instruction based on a Matter protocol by the gateway, and sending the local control instruction to the Matter equipment indicated by the equipment identifier.
  2. 2. The method according to claim 1, wherein the method further comprises: Acquiring equipment identification associated with equipment state information under the condition that the cloud platform receives the equipment state information reported by a gateway, wherein the equipment state information is obtained by converting the information based on the Matter protocol into the information based on a preset protocol after the gateway receives the information based on the Matter protocol sent by the Matter equipment; And synchronizing the equipment attribute in the equipment state information to the terminal associated with the equipment identifier.
  3. 3. The method according to claim 1, wherein the method further comprises: under the condition that a cloud platform receives login user information corresponding to a terminal and equipment information corresponding to a Matter equipment, which are sent by the terminal, a binding relation between the user and the Matter equipment is established based on the login user information and equipment identification in the equipment information, wherein the equipment information is obtained after the terminal is connected with the Matter equipment; Distributing a pre-created data model for the water equipment according to the equipment information, and associating a model identifier of the data model with the equipment identifier; The method comprises the steps of sending the target equipment type and the target equipment function to the terminal, enabling the terminal to display control options corresponding to the target equipment type and the target equipment function on a carried user interface, and pulling equipment plug-ins corresponding to the control options, wherein the control options are used for adjusting parameter information corresponding to the service function of the Matter equipment, and the equipment plug-ins are plug-ins matched with the preset protocol and are used for supporting the functions corresponding to the control options.
  4. 4. The method of claim 3, wherein the device information further comprises a vendor identification, a product identification, and a public key of the Matter device, the device identification generated by: Splicing the supplier identifier, the product identifier and the public key to obtain a spliced character string; Inputting the spliced character strings into a password hash function to obtain an operation result; And extracting characters at the designated positions from the operation result to serve as the equipment identifier of the Matter equipment.
  5. 5. The method of claim 3, wherein before the cloud platform receives the login user information corresponding to the terminal and the device information corresponding to the Matter device, which are sent by the terminal, the method further comprises: Under the condition that a cloud platform receives a certificate application sent by a gateway and a terminal, the cloud platform utilizes a root certificate of the cloud platform to issue a secondary certificate for the gateway and the terminal respectively, so that when the terminal establishes connection with the Matter device, the terminal utilizes the secondary certificate to issue a tertiary certificate for the Matter device, and writes a gateway identification of the gateway into a control authority list of the Matter device.
  6. 6. A method according to claim 3, wherein after the cloud platform associates the model identity of the data model with the device identity, the method further comprises: Issuing an instruction containing a list of devices to the gateway, or Under the condition that a request for pulling the equipment list sent by the gateway is received, a response containing the equipment list is issued to the gateway; the device list comprises a model identifier associated with a device identifier, so that the gateway adds the water device indicated by the device identifier, and converts the information based on the water protocol and the information based on a preset protocol according to the mapping relation associated with the model identifier.
  7. 7. A remote control method of a Matter device, the method comprising: Under the condition that a terminal receives a remote control instruction to the water equipment, packaging the remote control instruction and the equipment identifier of the water equipment according to a preset protocol; And sending the packaged remote control message to a cloud platform, so that the cloud platform forwards the remote control instruction to a gateway indicated by the gateway identifier under the condition that the gateway identifier associated with the equipment identifier is acquired, converts the remote control instruction based on a preset protocol into a local control instruction based on a Matter protocol through the gateway, and sends the local control instruction to the Matter equipment indicated by the equipment identifier, wherein the preset protocol is a protocol applied by the cloud platform.
  8. 8. The method of claim 7, wherein the method further comprises: acquiring equipment state information associated with the equipment identifier from a cloud platform and displaying equipment attributes in the equipment state information to a user, or And receiving equipment state information pushed by the cloud platform and associated with the equipment identifier, and displaying equipment attributes in the equipment state information to a user.
  9. 9. The method of claim 7, wherein the method further comprises: Generating a device identifier for the Matter device based on the device information of the Matter device under the condition that the terminal is connected with the Matter device; Sending login user information corresponding to the terminal and equipment information comprising equipment identification to a cloud platform, enabling the cloud platform to establish a binding relation between the user and the Matter equipment based on the login user information and the equipment identification, distributing a pre-established data model for the Matter equipment according to the equipment information, and converting equipment types and equipment functions contained in the equipment information into target equipment types and target equipment functions according to the data model; the method comprises the steps of receiving the target equipment type and the target equipment function sent by a cloud platform, displaying control options corresponding to the target equipment type and the target equipment function on a carried user interface, and pulling equipment plug-ins corresponding to the control options, wherein the control options are used for adjusting parameter information corresponding to the service function of the Matter equipment, and the equipment plug-ins are plug-ins matched with the preset protocol and are used for supporting the functions corresponding to the control options.
  10. 10. The method of claim 9, wherein the device information includes a vendor identification, a product identification, and a public key of the Matter device; The device identification generation method based on the device information of the Matter device comprises the following steps: Splicing the supplier identifier, the product identifier and the public key to obtain a spliced character string; Inputting the spliced character strings into a password hash function to obtain an operation result; And extracting characters at the designated positions from the operation result to serve as the equipment identifier of the Matter equipment.
  11. 11. The method according to claim 9, wherein the method further comprises: Sending a certificate application to a cloud platform, and receiving the cloud platform to issue a secondary certificate for the terminal by utilizing a root certificate of the cloud platform; When connection is established with the Matter equipment, the secondary certificate is utilized to issue a tertiary certificate for the Matter equipment, and a gateway identification of a designated gateway is written into a control authority list of the Matter equipment.
  12. 12. A remote control device for a Matter machine, the device comprising: The cloud platform comprises a receiving unit, a control unit and a control unit, wherein the receiving unit is used for acquiring equipment identification in a remote control message when the cloud platform receives the remote control message sent by a terminal, the remote control message is obtained by encapsulating the remote control command and the equipment identification of the Matter equipment according to a preset protocol when the terminal receives the remote control command to the Matter equipment, and the preset protocol is a protocol applied by the cloud platform; The processing unit is used for acquiring the gateway identification associated with the equipment identification, forwarding the remote control instruction to the gateway indicated by the gateway identification, enabling the gateway to convert the remote control instruction based on a preset protocol into a local control instruction based on a Matter protocol, and sending the local control instruction to the Matter equipment indicated by the equipment identification.
  13. 13. A remote control device for a Matter machine, the device comprising: The receiving unit is used for packaging the remote control instruction and the equipment identifier of the Matter equipment according to a preset protocol under the condition that the terminal receives the remote control instruction of the Matter equipment; The processing unit is used for sending the packaged remote control message to a cloud platform, enabling the cloud platform to forward the remote control instruction to a gateway indicated by the gateway identifier under the condition that the gateway identifier associated with the equipment identifier is obtained, converting the remote control instruction based on a preset protocol into a local control instruction based on a Matter protocol through the gateway, and sending the local control instruction to the Matter equipment indicated by the equipment identifier, wherein the preset protocol is a protocol applied by the cloud platform.
  14. 14. A computer readable storage medium having stored thereon a computer program, characterized in that the program, when executed by a processor, implements the method of any of claims 1 to 6 or the method of any of claims 7 to 11.
  15. 15. An electronic device, comprising: A processor; A memory for storing processor-executable instructions; Wherein the processor is configured to perform the method of any one of claims 1 to 6 or the method of any one of claims 7 to 11.
  16. 16. A computer program product comprising a computer program and instructions which, when executed by a processor, implement the method of any one of claims 1 to 6 or the method of any one of claims 7 to 11.

Description

Remote control method and device for Matter equipment, storage medium, equipment and product Technical Field The technical scheme of the disclosure relates to the technical field of communication, in particular to a remote control method, a device, a storage medium, equipment and a product of Matter equipment. Background The Matter protocol is an open-source local internet of things protocol, and internet of things equipment supporting the Matter protocol is called Matter equipment. Currently, cloud platforms capable of remotely controlling a Matter device need to follow the Matter protocol. However, for the platform service provider established with the own protocol system, to realize the control of the Matter device, the platform framework, the application end and the possible device interaction protocol need to be rewritten to follow the Matter protocol, so that the transformation cost is high, and two sets of protocols need to be maintained at the same time, thereby increasing the operation complexity and the resource consumption. Disclosure of Invention In view of the above, the present disclosure provides a remote control method, apparatus, storage medium, device and product of a Matter device. According to a first aspect of the embodiment of the disclosure, a remote control method of a Matter device is provided, and the method comprises the steps of acquiring a device identifier in a remote control message when a cloud platform receives the remote control message sent by a terminal, wherein the remote control message is obtained by encapsulating the remote control command and the device identifier of the Matter device according to a preset protocol when the terminal receives the remote control command of the Matter device, the preset protocol is a protocol applied by the cloud platform, acquiring a gateway identifier associated with the device identifier, forwarding the remote control command to a gateway indicated by the gateway identifier, enabling the gateway to convert the remote control command based on the preset protocol into a local control command based on the Matter protocol, and sending the local control command to the Matter device indicated by the device identifier. In some embodiments, the method further comprises the steps of acquiring equipment identification associated with equipment state information under the condition that the cloud platform receives the equipment state information reported by the gateway, wherein the equipment state information is obtained by converting the information based on the Matter protocol into the information based on a preset protocol after the gateway receives the information based on the Matter protocol sent by the Matter equipment, and synchronizing equipment attributes in the equipment state information to a terminal associated with the equipment identification. In some embodiments, the method further comprises the steps of establishing a binding relation between the user and the Matter equipment based on the login user information and equipment identification in the equipment information under the condition that the cloud platform receives login user information corresponding to the terminal and equipment information corresponding to the Matter equipment sent by the terminal, wherein the equipment information is obtained after the terminal is connected with the Matter equipment, distributing a pre-established data model for the Matter equipment according to the equipment information, associating the model identification of the data model with the equipment identification, converting equipment types and equipment functions contained in the equipment information into target equipment types and target equipment functions according to the data model, sending the target equipment types and the target equipment functions to the terminal so that the terminal displays control options corresponding to the target equipment types and the target equipment functions on a carried user interface, and pulling equipment plug-ins corresponding to the control plug-ins, wherein the control options are used for adjusting parameter information corresponding to the functions of the Matter equipment, and the preset parameter information corresponding to the functions of the Matter equipment is used for adjusting the equipment corresponding to the protocol and the control plug-in function. In some embodiments, the device information further comprises a provider identifier, a product identifier and a public key of the Matter device, wherein the device identifier is generated by splicing the provider identifier, the product identifier and the public key to obtain a spliced character string, inputting the spliced character string into a password hash function to obtain an operation result, and extracting characters at a designated position from the operation result to serve as the device identifier of the Matter device. In some embodiments, before the cloud platform receives