Device control method and apparatus, server, and storage medium
AssigneeHuawei Cloud Computing Technologies Co., Ltd.
InventorWenqing Wu
Life of this patent
Estimating the term…
Abstract
A device control method includes performing format conversion on a control entity of a control command sent by a control device, based on a correspondence that is recorded in a digital twin model of a network device with any model number of the type and that is between a standard data format of the network device of the type and a data format supported by the network device with the model number. According to the method, the control device can control the network devices with different model numbers using a control entity of a control command in a unified standard data format, and enable the network device to identify the control entity of the control command sent by the control device without adapting data formats supported by the network devices with different model numbers.
Claims18
A method implemented by a server, wherein the method comprises:
- obtaining a standard model corresponding to a first upper device type of a first network device, wherein the standard model comprises standard metamodels or submodels;
- receiving, from a control device, a first control command carrying a first device identifier of the first network device and carrying a first control entity, wherein the first control command instructs the first network device to perform a first operation corresponding to the first control entity, wherein the first control entity complies with a standard data format, and wherein the standard data format is described by the standard model;
- determining, based on the first device identifier, a first digital twin model corresponding to the first network device, wherein the first digital twin model describes a first data format supported by the first network device and records a first correspondence between the standard data format and the first data format;
- converting, based on the first correspondence, the first control entity into the first data format to obtain a converted first control entity;
- and
- sending, to the first network device, the converted first control entity.
A server comprising:
- a memory configured to store instructions;
- and
- at least one processor coupled to the memory and configured to execute the instructions to cause the server to:
- obtain a standard model corresponding to a first upper device type of a first network device, wherein the standard model comprises standard metamodels or submodels;
- receive, from a control device, a first control command carrying a first device identifier of the first network device and carrying a first control entity, wherein the first control command instructs the first network device to perform a first operation corresponding to the first control entity, wherein the first control entity complies with a standard data format, and wherein the standard data format is described by the standard model;
- determine, based on the first device identifier, a first digital twin model corresponding to the first network device, wherein the first digital twin model describes a first data format supported by the first network device and records a first correspondence between the standard data format and the first data format;
- convert, based on the first correspondence, the first control entity into the first data format to obtain a converted first control entity;
- and
- send, to the first network device, the converted first control entity.
A computer program product comprising computer-executable instructions that are stored on a non-transitory computer-readable medium and that, when executed by at least one processor, cause a server to:
- obtain a standard model corresponding to a first upper device type of a first network device, wherein the standard model comprises standard metamodels or submodels;
- receive, from a control device, a first control command carrying a first device identifier of the first network device and carrying a first control entity, wherein the first control command instructs the first network device to perform a first operation corresponding to the first control entity, wherein the first control entity complies with a standard data format, and wherein the standard data format is described by the standard model;
- determine, based on the first device identifier, a first digital twin model corresponding to the first network device, wherein the first digital twin model describes a first data format supported by the first network device and records a first correspondence between the standard data format and the first data format;
- convert, based on the first correspondence, the first control entity into the first data format to obtain a converted first control entity;
- and
- send, to the first network device, the converted first control entity.
Dependencies are inferred from the claim text.