CN115866003A - Device control method, device, computer device and storage medium - Google Patents

Device control method, device, computer device and storage medium Download PDF

Info

Publication number
CN115866003A
CN115866003A CN202211499150.2A CN202211499150A CN115866003A CN 115866003 A CN115866003 A CN 115866003A CN 202211499150 A CN202211499150 A CN 202211499150A CN 115866003 A CN115866003 A CN 115866003A
Authority
CN
China
Prior art keywords
equipment
model file
parameter
controlled
network management
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202211499150.2A
Other languages
Chinese (zh)
Inventor
陈威宇
李军
俞旭波
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Sunwave Communications Co Ltd
Original Assignee
Sunwave Communications Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Sunwave Communications Co Ltd filed Critical Sunwave Communications Co Ltd
Priority to CN202211499150.2A priority Critical patent/CN115866003A/en
Publication of CN115866003A publication Critical patent/CN115866003A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Computer And Data Communications (AREA)

Abstract

The application relates to a device control method, an apparatus, a computer device, a storage medium, and a computer program product. The method comprises the following steps: receiving a remote control instruction; the remote control instruction carries a network management protocol identifier of the equipment to be controlled; determining a matched target equipment model file from a preset equipment model file library based on the network management protocol identifier; and remotely controlling the equipment to be controlled based on the target equipment model file. By adopting the method, the research and development cost can be reduced, and the compatibility of the network management protocol can be improved.

Description

Device control method, device, computer device and storage medium
Technical Field
The present application relates to the field of computer communications, and in particular, to a device control method, apparatus, computer device, storage medium, and computer program product.
Background
With the development of computer communication technology, various large-scale network applications realize information interaction or control of enterprises or other organizations. With the development of services, different operator customers have different requirements on device network control protocols, and some remote configuration control protocols appear in succession, so as to realize remote control on devices with different protocols in a large network.
In the single-device multi-protocol or multi-device multi-protocol scenario, the conventional network device control method realizes control over multi-protocol devices by adopting a mode of coexistence of a plurality of access subsystems and a plurality of data control modes, and has the problems of high research and development cost and poor compatibility.
Disclosure of Invention
In view of the above, it is necessary to provide a device control method, apparatus, computer device, computer readable storage medium, and computer program product capable of reducing development cost and improving compatibility.
In a first aspect, the present application provides a device control method. The method comprises the following steps:
receiving a remote control instruction; the remote control instruction carries a network management protocol identifier of the equipment to be controlled;
determining a matched target equipment model file from a preset equipment model file library based on the network management protocol identifier;
and remotely controlling the equipment to be controlled based on the target equipment model file.
In one embodiment, before the receiving the remote control instruction, the method further comprises:
acquiring description files of different network management protocols;
converting the description files of different network management protocols into equipment model files with preset formats to obtain a preset equipment model file library; the equipment model file comprises parameter identification, protocol identification, description information, classification information and format definition information of equipment parameters.
In one embodiment, the remotely controlling the device to be controlled based on the device model file includes:
acquiring configuration information of equipment parameters based on the equipment model file;
and generating a protocol message carrying the configuration information, and issuing the protocol to the equipment to be controlled so that the equipment to be controlled analyzes the protocol message according to the protocol identifier to complete the information configuration of the equipment to be controlled.
In one embodiment, the remotely controlling the device to be controlled based on the device model file includes:
receiving reported alarm information of the equipment to be controlled; the alarm information comprises an alarm value and a fault state;
determining a parameter identifier corresponding to the alarm value from the equipment model file, and acquiring a parameter value corresponding to the parameter identifier;
and sending the fault state and the parameter value to an interactive client for displaying.
In one embodiment, the remotely controlling the device to be controlled based on the device model file includes:
and sending the equipment model file to an interactive client so that the interactive client displays a configuration control interface of the equipment to be controlled based on the equipment model file.
In one embodiment, the method further comprises:
responding to a parameter updating instruction triggered by the configuration control interface, and acquiring corresponding parameter data according to a parameter identifier carried by the parameter updating instruction;
generating an updating protocol message carrying the parameter data based on the equipment model file;
and sending the update protocol message to the equipment to be controlled so that the equipment to be controlled analyzes the update protocol message according to the protocol identifier in the equipment model file to complete the parameter update of the equipment to be controlled.
In a second aspect, the application also provides a device control apparatus. The device comprises:
the communication module is used for receiving a remote control instruction; the remote control instruction carries a network control protocol identifier of the equipment to be controlled;
the model matching module is used for determining a matched target equipment model file from a preset equipment model file library based on the network management protocol identifier;
and the equipment control module is used for remotely controlling the equipment to be controlled based on the target equipment model file.
In a third aspect, the present application also provides a computer device. The computer device comprises a memory storing a computer program and a processor implementing the following steps when executing the computer program:
receiving a remote control instruction; the remote control instruction carries a network management protocol identifier of the equipment to be controlled;
determining a matched target equipment model file from a preset equipment model file library based on the network management protocol identifier;
and remotely controlling the equipment to be controlled based on the target equipment model file.
In a fourth aspect, the present application further provides a computer-readable storage medium. The computer-readable storage medium, on which a computer program is stored which, when executed by a processor, carries out the steps of:
receiving a remote control instruction; the remote control instruction carries a network management protocol identifier of the equipment to be controlled;
determining a matched target equipment model file from a preset equipment model file library based on the network management protocol identifier;
and remotely controlling the equipment to be controlled based on the target equipment model file.
In a fifth aspect, the present application further provides a computer program product. The computer program product comprising a computer program which when executed by a processor performs the steps of:
receiving a remote control instruction; the remote control instruction carries a network management protocol identifier of the equipment to be controlled;
determining a matched target equipment model file from a preset equipment model file library based on the network management protocol identifier;
and remotely controlling the equipment to be controlled based on the target equipment model file.
According to the equipment control method, the device, the computer equipment, the storage medium and the computer program product, the equipment model file matched with the network management protocol identifier is determined from the preset equipment model file library according to the network management protocol identifier of the equipment to be controlled; and carrying out remote control on the equipment to be controlled based on the equipment model file. When the equipment network control platform manages equipment with different network management protocols, the corresponding equipment model file is obtained according to the network management protocol identification of the equipment to be controlled, remote control is realized, a plurality of control systems do not need to be deployed on the equipment network control platform, research and development cost is reduced, and the compatibility of the equipment network control platform is improved.
Drawings
FIG. 1 is a diagram showing an application environment of a device control method according to an embodiment;
FIG. 2 is a schematic flow chart diagram illustrating a method for controlling a device according to an embodiment;
FIG. 3 is a flowchart illustrating a method for generating a device model file according to an embodiment;
FIG. 4 is a diagram illustrating conversion of a network protocol description file into an equipment model file, according to an embodiment;
FIG. 5 is a flowchart showing an apparatus control method in another embodiment;
FIG. 6 is a flowchart showing an apparatus control method in another embodiment;
FIG. 7 is a flowchart showing an apparatus control method in another embodiment;
FIG. 8 is a block diagram showing the construction of an apparatus control system according to an embodiment;
FIG. 9 is a block diagram showing the construction of an apparatus control device according to an embodiment;
FIG. 10 is a diagram showing an internal structure of a computer device according to an embodiment.
Detailed Description
In order to make the objects, technical solutions and advantages of the present application more apparent, the present application is described in further detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative of the present application and are not intended to limit the present application.
The device control method provided by the embodiment of the application can be applied to the application environment shown in fig. 1. The application environment shown in FIG. 1 includes a device 102, a device network control platform 104, and an interaction client 106. Wherein, the device 102, the device network control platform 104 and the interactive client 106 communicate with each other via a network. The data storage system may store data that the device network control platform 104 needs to process. The data storage system may be integrated on the device network control platform 104, or may be placed on a cloud server or other network server. The equipment network control platform receives a remote control instruction; the remote control instruction carries a network management protocol identifier of the equipment to be controlled; determining a matched target equipment model file from a preset equipment model file library based on the network management protocol identifier; and remotely controlling the equipment to be controlled based on the target equipment model file. The device 102 may be, but not limited to, various personal computers, notebook computers, smart phones, tablet computers, internet of things devices, portable wearable devices, and the like supporting different communication protocols, and the internet of things devices may be smart speakers, smart televisions, smart air conditioners, smart car-mounted devices, and the like. The portable wearable device can be a smart watch, a smart bracelet, a head-mounted device, and the like. The server 104 may be implemented as a stand-alone server or as a server cluster comprised of multiple servers.
In one embodiment, as shown in fig. 2, a device control method is provided, which is described by taking an example of the method applied to the device network control platform in fig. 1, and includes the following steps:
step S202, receiving a remote control instruction; the remote control instruction carries the network management protocol identifier of the equipment to be controlled.
The remote control instruction is generated by triggering when the access to the device to be controlled is detected. The device network control platform can be used for remotely controlling the device, for example, remotely configuring the device, remotely operating and maintaining the device, and the like. By using the equipment network control platform, interactive communication can be carried out with equipment based on different network management protocols. The device to be controlled can be understood as a network device to be controlled.
It can be understood that the device network control platform only supports a single network management protocol, and as services are continuously developed, the device network control platform only supporting the single network management protocol cannot meet the scene requirements of multiple devices and multiple protocols, and therefore, the device network control platform is required to be compatible with different network management protocols. For example, with the development of services, different operator clients across regions have different requirements on device network management protocols, and it is necessary that a device network control platform is compatible with different network management protocols, so as to implement remote management or remote centralized maintenance and management on devices. The network management protocol comprises an SNMP (simple network management protocol), a NetConf protocol, a CWMP (CWMP) and the like. The device network control platform of the embodiment configures different types of network management protocols according to a preset file format, so that different network management protocols are compatible, and corresponding network devices are remotely controlled.
And step S204, determining a matched target equipment model file from a preset equipment model file library based on the network management protocol identifier.
The device model file formats in the preset device model file library may be the same, and are preset file formats. For example, the preset file format may be, but is not limited to, JSON, XML, CSV text format. For another example, the model file of the SNMP protocol is an MIB library file, an XSD file used by the TR069 protocol, and an XML file used by the enterprise standard protocol. Different network management protocols all adopt preset file formats to generate equipment model files corresponding to the network management protocols. Further, it can be appreciated that there are corresponding matching device model files for different types of network management protocols of the same device type. The single device model file is used for describing device parameter definition information of a single device type and is a device parameter definition set. The device parameter self-defining information in the device model file comprises parameter identification of device parameters, protocol identification of the device parameters, description information of the device parameters, classification information of the device parameters, format definition information of the device parameters and the like.
Specifically, based on the network management protocol identifier, a matched target device model file is determined from a preset device model file library. And further, determining a matched target equipment model file from preset equipment model files according to the network management protocol identifier and the equipment identifier of the equipment to be controlled carried by the remote control instruction.
And step S206, remotely controlling the equipment to be controlled based on the target equipment model file.
The remote control may be understood as that the device network control platform performs remote control on the device through a device network management communication protocol, where the specific remote control includes configuration parameter reading and setting, alarm reporting, performance parameter acquisition, remote upgrading, a remote command, and the like, and the remote command may be, but is not limited to, restarting the device, restoring factory settings, and controlling the device. The corresponding network management protocol data can be analyzed and the message can be analyzed based on the equipment model file, so that the normalization of the equipment network control platform is realized.
Specifically, when the device to be controlled is remotely controlled based on the target device model file, it can be understood that the specific behaviors of different network management protocols are firstly classified to be summarized into abstract behaviors which can be processed uniformly, and the association relationship between the specific behaviors and the abstract behaviors can be set through a protocol parameter mapping mode based on the device model file, so that the device to be controlled is remotely controlled. Further, it can be understood that, when a remote control instruction carrying different network management protocol identifiers is received, a matched target device model file can be determined from a preset device model file library according to the different network management protocol identifiers, and the corresponding device to be controlled is remotely controlled based on the corresponding target device model file.
In the equipment control method, according to the network management protocol identification of the equipment to be controlled, an equipment model file matched with the network management protocol identification is determined from a preset equipment model file library; and remotely controlling the equipment to be controlled based on the equipment model file. When the equipment network control platform manages equipment with different network management protocols, the corresponding equipment model file is obtained according to the network management protocol identification of the equipment to be controlled, remote control is realized, a plurality of control systems do not need to be deployed on the equipment network control platform, research and development cost is reduced, and the compatibility of the equipment network control platform is improved.
Under the condition of single-device multi-protocol or multi-device multi-protocol, the device network control platform needs to generate device model files of different network management protocols in order to be compatible with network devices of different protocols. In one embodiment, a method for generating an equipment model file is provided, as shown in fig. 3, and includes the following steps:
step S302, obtaining the description files of different network management protocols.
The description file is used for describing the device parameter definition information of a single device type and is a device parameter definition set.
Step S304, converting the description files of different network management protocols into equipment model files with preset formats to obtain a preset equipment model file library.
The method comprises the steps of describing equipment parameter definition of equipment through an equipment model file, describing unique object codes (OID), description information, classification information, format definition information and other information of the parameters in different network management protocols in the parameter definition, realizing data interaction, equipment parameter control and the like of equipment protocol messages, wherein the unique object codes (OID) comprise unique parameter identification and unique protocol identification. Namely, the device model file includes parameter identification, protocol identification, description information, classification information and format definition information of the device parameters. It is to be understood that each device model file is device parameter definition information describing a single device type, and is a set of device parameter definitions. Different device types use different device model files. The single device type refers to a device classification with the same hardware version, software version, network management protocol and device parameters.
The parameter identification of the device parameter is used for representing that the parameter uniquely identifies a code which cannot be repeated in the same model. The protocol code of the equipment parameter is used for describing the unique code of the parameter in different network management protocols; the protocol code definition supports both the international standard network management protocol and the industry standard or enterprise private network management protocol code; the international standard network management protocol relates to but is not limited to codes including SNMP protocol object unique code (OID) and CWMP protocol object unique parameter name (ParameterName).
The description information of the equipment parameter comprises a parameter name, a parameter description, a parameter value unit name and a parameter value unit symbol. Further, the parameter name is a description parameter display name, and is used for displaying the parameter name in a user interaction interface or derived data, so that the human-computer interaction requirement is met. The parameter description refers to a detailed information supplement description for describing the parameters, and is used for providing help information of the parameters and meeting the human-computer interaction requirements. The parameter value unit name is used to describe the name (e.g., degrees celsius) of the value unit to which the parameter corresponds. Parameter value unit notation is used to describe the notation (e.g., c) of the value unit to which the parameter corresponds.
The classification information of the device parameters includes a group name and a tag list. Further, the group name is used to describe the classification information of the parameter, which is used to perform classification presentation and management on all parameters based on the usage scenario (such as the pagination display of the user interface). The tag list is used to describe a specific category of the parameter, and multiple service definition characteristic filtering is performed on the parameter based on service application requirements, for example, a PM tag indicates that the parameter is a performance parameter, and can be used to filter the parameter when performance data is collected.
The format definition information of the device parameters comprises access modes, data types, byte lengths, numerical ratios, numerical steps, numerical maximum values, numerical minimum values, enumeration ranges and regular expressions. The format definition information can be used for message analysis during equipment protocol interaction and can also be used for legally checking input of user interaction interface parameter values. The format definition information of the device parameters comprises mandatory information and optional information, wherein the mandatory information comprises: access mode, data type, byte length, etc.; optional information includes numerical ratios, numerical steps, numerical maximums, numerical minimums, enumerated ranges, regular expressions, and the like. Further, when the format definition information of the device parameter further includes a plurality of parameter value limit definitions, the value of the required parameter value needs to satisfy all the constraint conditions at the same time, and the value is represented illegally when any constraint condition is not satisfied. The access mode is used for describing an access mode supported by the parameters, and specifically comprises a read-write mode, a read-only mode, a write-only mode, a notification mode and an inaccessible mode, namely is used for limiting the range of equipment interaction parameter management and is also used for correctly displaying parameter access permission during user interaction. The data type is used for describing the data type of the parameter value, and specifically comprises a binary type, a character string type, a Boolean type, a signed 8-bit integer type, an unsigned 8-bit integer type, a signed 16-bit integer type, an unsigned 16-bit integer type, a signed 32-bit integer type, an unsigned 32-bit integer type, a signed 64-bit integer type, an unsigned 64-bit integer type, a timestamp type, an IPv4 address type and an IPv6 address type.
The byte length is used for describing the number of bytes occupied by the parameter value; numerical magnification: the ratio value per unit value of a parameter value describing a numerical data type is used for an integer that includes a fractional parameter value, such as a ratio of 1000, where the actual value of the parameter is equal to the parameter value divided by the ratio. The numerical stepping is used for describing the minimum stepping number of parameter values of numerical data types and is used for limiting stepping limitation of parameter values. The numerical maximum value is used for describing the maximum limit value of the parameter value of the numerical data type and is used for limiting the range of parameter value input. The numerical minimum value is used for describing a parameter value minimum limit value of the numerical data type and is used for limiting the range of parameter value input. The enumerated range is used for describing the enumerated range of the parameter value and is used for limiting the range of the parameter value input. The regular expression is used for describing the regular format limitation of the parameter values of the data types of the character strings and is used for adapting to the requirements of the content formats of the rich character strings.
Furthermore, the device model file also includes display mode information of the device parameters, including whether to hide the parameters, the ranking value, and the display mode. Whether the hidden representation parameter is a hidden parameter or not is used for controlling whether a user interaction interface is displayed or not, and part of special parameters can be hidden and not read and written, such as parameters used for transmitting commands. The ranking value describes the sequence relation among the parameters and is used for controlling the sequence of the parameters during user interaction. The display mode describes a special mark when the parameter is displayed, and is used for controlling the special display effect of the parameter on the user interaction interface according to the service requirement.
Specifically, when obtaining description files of different network management protocols, converting the description files to obtain device model files in a preset format, and determining a preset device model file library according to the device model files. The description file of the network management protocol is converted into the device model file in the preset format, and the conversion can be realized in the existing manner, which is not repeated herein. As shown in fig. 4, which is a schematic diagram of converting a description file into a device model file with a preset format in one embodiment, description files of different network management protocols are input to a device model file generation tool for conversion, so as to obtain a corresponding device model file.
In the above embodiment, the description files of different network management protocols are converted into the device model file with the preset format to obtain the preset device model file library, so that the device network control platform can be compatible with multiple communication protocols.
In another embodiment, as shown in fig. 5, a device control method is provided, which is described by taking the application of the method to the device network control platform in fig. 1 as an example, and includes the following steps:
step S502, receiving a remote control instruction; the remote control instruction carries the network management protocol identification of the equipment to be controlled.
Step S504, based on the network management protocol identification, determining a matched target device model file from a preset device model file library.
Step S506, based on the device model file, obtaining the configuration information of the device parameters.
Specifically, when the device to be controlled is controlled, the configuration information of the device parameter of the device to be controlled is obtained according to the device parameter definition information in the device model file.
Step S508, generating a protocol packet carrying the configuration information, and sending the protocol packet to the device to be controlled, so that the device to be controlled analyzes the protocol packet according to the protocol identifier, thereby completing the information configuration of the device to be controlled.
Specifically, the protocol message carrying the configuration information is sent to the device to be controlled, the protocol message is analyzed based on the protocol identifier in the target device model file, the message content obtained through analysis is mapped with the parameter identifier in the target device model file, and the information configuration of the device to be controlled is completed. For example, in the data packet of the private network management protocol, the protocol packet is parsed by using the "private protocol code" defined in the model file, and the mapping with the parameter identifier of the device parameter of the target device model file is completed. In the data message of SNMP, using the SNMP object code defined in the model file to analyze the message content and complete the coding mapping with the unified model parameter; in the data message of the CWMP network management protocol, the message content is analyzed by using the CWMP parameter name defined in the target model file, and the coding mapping with the uniform model parameter is completed.
Furthermore, when the device to be controlled is remotely controlled based on the target device model file, the control can be performed according to actual service requirements. Including reading parameters, setting parameters, issuing command operations, and the like. For example, in a data packet based on a variable length binary network management protocol, "data type", "byte length" defined in the object model file is used. And dynamically analyzing the message content to obtain parameter object data. When reading parameters, setting parameters and issuing command operation, the 'access mode' defined in the model file is used to control the read-write access authority of the parameter object. And when the parameter is read, checking the legality of the parameter value reported by the equipment by using the numerical magnification, the numerical stepping, the numerical maximum, the numerical minimum and the regular expression defined in the target equipment model file. When setting parameters and issuing command operation, the validity of parameter values issued by the platform is checked by using 'numerical magnification', 'numerical stepping', 'numerical maximum', 'numerical minimum', 'regular expression' defined in a target equipment model file.
In the equipment control method, an equipment model file matched with a network management protocol identifier is determined from a preset equipment model file library according to the network management protocol identifier of equipment to be controlled; and performing information configuration on the equipment to be controlled based on the equipment model file. The information configuration can be realized according to the equipment model file, and on the basis of decoupling of the equipment network management platform and the network management protocol, the remote control of the equipment to be controlled can be realized based on the preset equipment model file library, so that the research and development cost is reduced, and the compatibility of the equipment network control platform is improved.
In another embodiment, as shown in fig. 6, a device control method is provided, which is described by taking the application of the method to the device network control platform in fig. 1 as an example, and includes the following steps:
step S602, receiving a remote control instruction; the remote control instruction carries the network management protocol identifier of the equipment to be controlled.
Step S604, based on the network management protocol identification, determining a matched target device model file from a preset device model file library.
Step S606, receiving reported alarm information of equipment to be controlled; the alarm information includes an alarm value and a fault state.
Step S608, determining a parameter identifier corresponding to the alarm value from the device model file, and obtaining a parameter value corresponding to the parameter identifier.
Specifically, on the basis that the device network control platform can be compatible with different network management protocols, when receiving alarm information reported by a device to be controlled, the device network control platform finds a corresponding parameter identifier according to an alarm value, determines that a parameter corresponding to the parameter identifier is in a fault state, and acquires a parameter value of the parameter identifier pair.
And step S610, sending the fault state and the parameter value to the interactive client for displaying.
The interactive client can automatically load all different equipment model files supporting the type of the access equipment from the preset equipment model files, present a configuration management interface of the response equipment, dynamically generate a user interactive interface by using the equipment model files, and generate the user interactive interface according to the definition in the equipment model files, wherein the method comprises the following steps: dividing the device configuration management paging interface by using a grouping name; displaying the device parameter name using the "parameter name"; displaying the specification and help information of the device parameters by using the parameter description; displaying a parameter list in the order from small to large by using the sorting value; controlling the read-write attribute effect input by the parameter by using an 'access mode'; whether the control parameter of 'hidden or not' is used for displaying or not; and controlling the display requirements of the special user interface of the parameters by using a display mode.
Specifically, the fault state and the parameter value are sent to the interactive client, so that the interactive client determines a corresponding user interactive interface and a corresponding display mode according to a corresponding target device model file, and displays the fault state and the parameter value. It can be understood that the interface displayed by the interactive client may be set according to actual requirements, and is not limited herein.
In the equipment control method, an equipment model file matched with a network management protocol identifier is determined from a preset equipment model file library according to the network management protocol identifier of equipment to be controlled; and based on the equipment model file, carrying out alarm information acquisition on equipment to be controlled of different protocol types, and acquiring information of the control equipment in real time. The method can realize alarm information acquisition according to the equipment model file, and can realize real-time information acquisition on the equipment to be controlled based on a preset equipment model file library on the basis of decoupling of an equipment network management platform and a network management protocol, thereby reducing research and development cost and improving the compatibility of the equipment network control platform.
In another embodiment, as shown in fig. 7, a device control method is provided, which is described by taking the application of the method to the device network control platform in fig. 1 as an example, and includes the following steps:
step S702, receiving a remote control instruction; the remote control instruction carries the network management protocol identification of the equipment to be controlled.
Step S704, determining a matched target device model file from a preset device model file library based on the network management protocol identifier.
Step S706, the device model file is sent to the interactive client, so that the interactive client displays a configuration control interface of the device to be controlled based on the device model file.
Step S708, in response to a parameter update instruction triggered by the configuration control interface, obtaining corresponding parameter data according to the parameter identifier carried by the parameter update instruction.
Step S710, generating an update protocol message carrying parameter data based on the device model file.
Step S712, the update protocol packet is sent to the device to be controlled, so that the device to be controlled analyzes the update protocol packet according to the protocol identifier in the device model file, and completes the parameter update of the device to be controlled.
Furthermore, when the hardware of the device to be controlled is upgraded and the function of the device to be controlled is expanded, the adaptation of the device network control platform can be realized only by updating the corresponding device model file.
In the equipment control method, an equipment model file matched with a network management protocol identifier is determined from a preset equipment model file library according to the network management protocol identifier of equipment to be controlled; and updating the equipment to be controlled with different protocol types based on the equipment model file. On the basis of decoupling of the equipment network management platform and the network management protocol, the updating of the equipment to be controlled can be realized based on the preset equipment model file library, the research and development cost is reduced, and the compatibility of the equipment network control platform is improved.
In one embodiment, as shown in fig. 8, a device control system is provided, where the device control system includes a device network control platform, a device to be controlled, and an interactive client, where the device network control platform includes a device access communication module, a device type management module, a device data module, and a device configuration management module. The device type management module is used for creating a new device type and importing a device model file corresponding to the device type; the device access communication module automatically loads all different model files supporting the type of the access device from the device type management module, and the device access communication module is in two-way interactive communication with the device to be controlled through a corresponding network management protocol and utilizes the corresponding target device model file to realize the remote control of the device to be controlled.
The device access communication module is also used for storing the acquired configuration parameters, state parameters, performance parameters, alarm information, notification information, topology information and other information in the device data module according to the parameter identification of the device parameters in the device model file.
The equipment configuration management module reads corresponding parameter data from the equipment storage module based on the parameter identification of the equipment parameter in the equipment model file; the user interaction client acquires corresponding parameter data from the equipment configuration management module based on the parameter identifier of the equipment parameter in the equipment model file when updating the parameter value; when setting parameter values and issuing commands, the user interaction client verifies the legality of user input information based on 'numerical magnification', 'numerical stepping', 'numerical maximum', 'numerical minimum', 'regular expression' defined in the equipment model file, issues a user operation request to the equipment configuration management module when the verification is passed, and displays corresponding verification failure information when the verification fails.
And the equipment configuration management module is used for receiving the user interaction client operation request, calling the equipment access communication module group to send a message based on a specific network management protocol to the equipment to be controlled based on the legality of the input information of the secondary verification request defined in the equipment model file when the verification is passed.
After the equipment to be controlled responds, the equipment to be controlled is in bidirectional interactive communication through a corresponding network management protocol, remote control of the equipment to be controlled is realized by utilizing a corresponding target equipment model file, and the acquired information such as configuration parameters, state parameters, performance parameters, alarm information, notification information, topology information and the like is stored in an equipment data module according to the parameter identification of the equipment parameters in the equipment model file, so that data collection is realized and the data is fed back to an interactive client for display.
It can be understood that, in the system, the core architecture design of the device network control platform is decoupled from the network management protocol, and the design of the core data structure, the application interface and the internal interaction can be completed based on the device model file, so that the decoupling of the core design of the network management platform and the device access service is realized. For example, when a new network management protocol device needs to be accessed, the new device access can be satisfied only by expanding the device model generation tool and the device access communication module of the network management platform without modifying the core design of the network management platform. And secondly, decoupling of the interactive client and the network management protocol is realized, interactive interface design can be completed based on the model file, and the requirements of actual application scenes are met.
In the above embodiment, according to the network management protocol identifier of the device to be controlled, the device model file matched with the network management protocol identifier is determined from the preset device model file library; the remote control method is based on the equipment model file, the equipment to be controlled is remotely controlled, is not limited by a specific equipment network management access protocol, adapts to the actual application requirements, saves research and development investment, and improves the compatibility of an equipment network control platform.
It should be understood that, although the steps in the flowcharts related to the embodiments as described above are sequentially displayed as indicated by arrows, the steps are not necessarily performed sequentially as indicated by the arrows. The steps are not performed in the exact order shown and described, and may be performed in other orders, unless explicitly stated otherwise. Moreover, at least a part of the steps in the flowcharts related to the embodiments described above may include multiple steps or multiple stages, which are not necessarily performed at the same time, but may be performed at different times, and the execution order of the steps or stages is not necessarily sequential, but may be rotated or alternated with other steps or at least a part of the steps or stages in other steps.
Based on the same inventive concept, the embodiment of the present application further provides an apparatus control device for implementing the apparatus control method. The implementation scheme for solving the problem provided by the apparatus is similar to the implementation scheme described in the above method, so the specific limitations in one or more embodiments of the device control apparatus provided below may refer to the limitations on the device control method in the foregoing, and are not described herein again.
In one embodiment, as shown in fig. 9, there is provided an apparatus control device including: a communication module 902, a model matching module 904, and a device control module 906, wherein:
a communication module 902 for receiving a remote control instruction; the remote control instruction carries a network control protocol identifier of the equipment to be controlled.
And a model matching module 904, configured to determine a matched target device model file from a preset device model file library based on the network management protocol identifier.
And the device control module 906 is configured to perform remote control on the device to be controlled based on the target device model file.
The equipment control device determines an equipment model file matched with the network management protocol identifier from a preset equipment model file library according to the network management protocol identifier of the equipment to be controlled; and remotely controlling the equipment to be controlled based on the equipment model file. When the equipment network control platform manages equipment with different network management protocols, the corresponding equipment model file is obtained according to the network management protocol identification of the equipment to be controlled, remote control is realized, a plurality of control devices do not need to be deployed on the equipment network control platform, research and development cost is reduced, and the compatibility of the equipment network control platform is improved.
In another embodiment, a device control apparatus is provided that includes, in addition to the communication module 902, the model matching module 904, and the device control module 906: the device comprises an acquisition module, a file conversion module and a response module, wherein:
the acquisition module is used for acquiring description files of different network management protocols;
the file conversion module is used for converting the description files of different network management protocols into equipment model files in a preset format to obtain a preset equipment model file library; the equipment model file comprises parameter identification, protocol identification, description information, classification information and format definition information of equipment parameters.
The device control module 906 is further configured to obtain configuration information of the device parameter based on the device model file;
and generating a protocol message carrying configuration information, and sending the protocol to the equipment to be controlled so that the equipment to be controlled analyzes the protocol message according to the protocol identifier to complete the information configuration of the equipment to be controlled.
The device control module 906 is further configured to receive alarm information reported by the device to be controlled; the alarm information comprises an alarm value and a fault state;
determining a parameter identifier corresponding to the alarm value from the equipment model file, and acquiring a parameter value corresponding to the parameter identifier;
and sending the fault state and the parameter value to an interactive client for displaying.
The device control module 906 is further configured to send the device model file to the interactive client, so that the interactive client displays a configuration control interface with the device to be controlled based on the device model file.
The response module is used for responding to a parameter updating instruction triggered by the configuration control interface and acquiring corresponding parameter data according to a parameter identifier carried by the parameter updating instruction;
the device control module 906 is further configured to generate an update protocol packet carrying parameter data based on the device model file;
and sending the update protocol message to the equipment to be controlled so that the equipment to be controlled analyzes the update protocol message according to the protocol identifier in the equipment model file to complete the parameter update of the equipment to be controlled.
The respective modules in the above-described device control apparatus may be implemented in whole or in part by software, hardware, and a combination thereof. The modules can be embedded in a hardware form or independent from a processor in the computer device, and can also be stored in a memory in the computer device in a software form, so that the processor can call and execute operations corresponding to the modules.
In one embodiment, a computer device is provided, which may be a terminal, and its internal structure diagram may be as shown in fig. 10. The computer apparatus includes a processor, a memory, a communication interface, a display screen, and an input device connected by a device bus. Wherein the processor of the computer device is configured to provide computing and control capabilities. The memory of the computer device comprises a nonvolatile storage medium and an internal memory. The nonvolatile storage medium stores an operating device and a computer program. The internal memory provides an environment for the operation device in the nonvolatile storage medium and the execution of the computer program. The communication interface of the computer device is used for carrying out wired or wireless communication with an external terminal, and the wireless communication can be realized through WIFI, a mobile cellular network, NFC (near field communication) or other technologies. The computer program is executed by a processor to implement a device control method. The display screen of the computer equipment can be a liquid crystal display screen or an electronic ink display screen, and the input device of the computer equipment can be a touch layer covered on the display screen, a key, a track ball or a touch pad arranged on the shell of the computer equipment, an external keyboard, a touch pad or a mouse and the like.
Those skilled in the art will appreciate that the architecture shown in fig. 10 is merely a block diagram of some of the structures associated with the disclosed aspects and is not intended to limit the computing devices to which the disclosed aspects apply, as particular computing devices may include more or less components than those shown, or may combine certain components, or have a different arrangement of components.
In one embodiment, a computer device is further provided, which includes a memory and a processor, the memory stores a computer program, and the processor implements the steps of the above method embodiments when executing the computer program.
In an embodiment, a computer-readable storage medium is provided, on which a computer program is stored which, when being executed by a processor, carries out the steps of the above-mentioned method embodiments.
In an embodiment, a computer program product is provided, comprising a computer program which, when being executed by a processor, carries out the steps of the above-mentioned method embodiments.
It should be noted that, the user information (including but not limited to user device information, user personal information, etc.) and data (including but not limited to data for analysis, stored data, presented data, etc.) referred to in the present application are information and data authorized by the user or sufficiently authorized by each party.
It will be understood by those skilled in the art that all or part of the processes of the methods of the embodiments described above can be implemented by hardware instructions of a computer program, which can be stored in a non-volatile computer-readable storage medium, and when executed, can include the processes of the embodiments of the methods described above. Any reference to memory, database, or other medium used in the embodiments provided herein may include at least one of non-volatile and volatile memory. The nonvolatile Memory may include Read-Only Memory (ROM), magnetic tape, floppy disk, flash Memory, optical Memory, high-density embedded nonvolatile Memory, resistive Random Access Memory (ReRAM), magnetic Random Access Memory (MRAM), ferroelectric Random Access Memory (FRAM), phase Change Memory (PCM), graphene Memory, and the like. Volatile Memory can include Random Access Memory (RAM), external cache Memory, and the like. By way of illustration and not limitation, RAM can take many forms, such as Static Random Access Memory (SRAM) or Dynamic Random Access Memory (DRAM), among others. The databases referred to in various embodiments provided herein may include at least one of relational and non-relational databases. The non-relational database may include, but is not limited to, a block chain based distributed database, and the like. The processors referred to in the various embodiments provided herein may be, without limitation, general purpose processors, central processing units, graphics processors, digital signal processors, programmable logic devices, quantum computing-based data processing logic devices, or the like.
The technical features of the above embodiments can be arbitrarily combined, and for the sake of brevity, all possible combinations of the technical features in the above embodiments are not described, but should be considered as the scope of the present specification as long as there is no contradiction between the combinations of the technical features.
The above-mentioned embodiments only express several embodiments of the present application, and the description thereof is more specific and detailed, but not construed as limiting the scope of the present application. It should be noted that, for a person skilled in the art, several variations and modifications can be made without departing from the concept of the present application, and these are all within the scope of protection of the present application. Therefore, the protection scope of the present application shall be subject to the appended claims.

Claims (10)

1. A device control method is applied to a device network control platform, and comprises the following steps:
receiving a remote control instruction; the remote control instruction carries a network management protocol identifier of the equipment to be controlled;
determining a matched target equipment model file from a preset equipment model file library based on the network management protocol identifier;
and remotely controlling the equipment to be controlled based on the target equipment model file.
2. The method of claim 1, wherein prior to said receiving a remote control instruction, the method further comprises:
acquiring description files of different network management protocols;
converting the description files of different network management protocols into equipment model files with preset formats to obtain a preset equipment model file library; the equipment model file comprises parameter identification, protocol identification, description information, classification information and format definition information of equipment parameters.
3. The method according to claim 2, wherein the remotely controlling the device to be controlled based on the device model file comprises:
acquiring configuration information of equipment parameters based on the equipment model file;
and generating a protocol message carrying the configuration information, and sending the protocol to the equipment to be controlled so that the equipment to be controlled analyzes the protocol message according to the protocol identifier to complete the information configuration of the equipment to be controlled.
4. The method according to claim 2, wherein the remotely controlling the device to be controlled based on the device model file comprises:
receiving reported alarm information of the equipment to be controlled; the alarm information comprises an alarm value and a fault state;
determining a parameter identifier corresponding to the alarm value from the equipment model file, and acquiring a parameter value corresponding to the parameter identifier;
and sending the fault state and the parameter value to an interactive client for displaying.
5. The method according to claim 2, wherein the remotely controlling the device to be controlled based on the device model file comprises:
and sending the equipment model file to an interactive client so that the interactive client displays a configuration control interface of the equipment to be controlled based on the equipment model file.
6. The method of claim 5, further comprising:
responding to a parameter updating instruction triggered by the configuration control interface, and acquiring corresponding parameter data according to a parameter identifier carried by the parameter updating instruction;
generating an updating protocol message carrying the parameter data based on the equipment model file;
and sending the update protocol message to the equipment to be controlled so that the equipment to be controlled analyzes the update protocol message according to the protocol identifier in the equipment model file to complete the parameter update of the equipment to be controlled.
7. An apparatus control device, characterized in that the device comprises:
the communication module is used for receiving a remote control instruction; the remote control instruction carries a network control protocol identifier of the equipment to be controlled;
the model matching module is used for determining a matched target equipment model file from a preset equipment model file library based on the network management protocol identifier;
and the equipment control module is used for remotely controlling the equipment to be controlled based on the target equipment model file.
8. A computer device comprising a memory and a processor, the memory storing a computer program, characterized in that the processor, when executing the computer program, implements the steps of the method of any of claims 1 to 6.
9. A computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, carries out the steps of the method of any one of claims 1 to 6.
10. A computer program product comprising a computer program, characterized in that the computer program realizes the steps of the method of any one of claims 1 to 6 when executed by a processor.
CN202211499150.2A 2022-11-28 2022-11-28 Device control method, device, computer device and storage medium Pending CN115866003A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202211499150.2A CN115866003A (en) 2022-11-28 2022-11-28 Device control method, device, computer device and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202211499150.2A CN115866003A (en) 2022-11-28 2022-11-28 Device control method, device, computer device and storage medium

Publications (1)

Publication Number Publication Date
CN115866003A true CN115866003A (en) 2023-03-28

Family

ID=85667040

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202211499150.2A Pending CN115866003A (en) 2022-11-28 2022-11-28 Device control method, device, computer device and storage medium

Country Status (1)

Country Link
CN (1) CN115866003A (en)

Similar Documents

Publication Publication Date Title
CN111414407A (en) Data query method and device of database, computer equipment and storage medium
WO2019134340A1 (en) Salary calculation method, application server, and computer readable storage medium
CN107133309B (en) Method and device for storing and querying process example, storage medium and electronic equipment
CN111683066B (en) Heterogeneous system integration method, heterogeneous system integration device, computer equipment and storage medium
EP3907631B1 (en) Applet processing method and apparatus, device and storage medium
CN111556158B (en) Access method, access device, access equipment and storage medium of Internet of things platform
CN111061678B (en) Service data processing method, device, computer equipment and storage medium
CN108337127B (en) Application performance monitoring method, system, terminal and computer readable storage medium
US20210250244A1 (en) Internet of things system topology generation
CN108363684A (en) List creation method, device and server
CA3169413A1 (en) Report generating method, device, electronic equipment, and computer-readable medium
CN112988752A (en) Resource management method, device, storage medium and electronic equipment
CN114157679A (en) Cloud-native-based distributed application monitoring method, device, equipment and medium
CN112988770A (en) Method and device for updating serial number, electronic equipment and storage medium
CN112114927A (en) Interface notification message display method, device, equipment and storage medium
CN114218156A (en) Data export method, data export device, computer equipment and storage medium
CN111142989B (en) Object management method, device and storage medium
CN110765610B (en) PDM integration method, PDM integration device, computer equipment and storage medium
CN116431200A (en) Configuration method, device, equipment and storage medium for application data configuration information
CN110825538A (en) MQ-based method for dynamically interacting data by self-defining data types
CN115866003A (en) Device control method, device, computer device and storage medium
US20150100888A1 (en) Providing a common interface for accessing and presenting component configuration settings
CN114201234A (en) File processing method, device, system, equipment and storage medium
CN108566293B (en) Electronic device, zk node information notification method, and storage medium
CN117097599B (en) Network service detection method, device, computer equipment and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination