Device Model Generation Method, Apparatus and System

Through the collaborative generation of the device model between gateway equipment and cloud servers, the problem of low grid operation and maintenance efficiency after the distributed resource equipment is solved, efficient management and maintenance of distributed resource equipment is realized, and the grid operation and maintenance efficiency is improved.

CN115914342BActive Publication Date: 2025-07-29CHINA SOUTHERN POWER GRID COMPANY
View PDF 1 Cites 0 Cited by

Patent Information

Application Number
CN202211422441.1
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-11-14
Publication Date
2025-07-29
Estimated Expiration
2042-11-14

AI Technical Summary

Technical Problem

With the large-scale access of distributed resources, the operation and maintenance of the power grid is inefficient, especially in the huge amount of access, debugging and maintenance of distributed resource equipment, resulting in increased management complexity.

Method used

The gateway device generates functional model files and configuration model mapping files, and combines the cloud server to generate equipment standard models to realize remote management and maintenance of distributed resource devices, reducing manual on-site operations.

Benefits of technology

It improves the operation and maintenance efficiency of the power grid, realizes efficient management and maintenance of distributed resource equipment, and quickly responds to terminal users' needs.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115914342B_ABST
    Figure CN115914342B_ABST
Patent Text Reader

Abstract

The present application relates to a method, apparatus and system for generating a device model. The method includes: a gateway device generates a function model file according to a function configuration file, where the function configuration file is used to configure device parameters of a distributed resource device; the gateway device obtains a function configuration file and generates a configuration model mapping file according to the function model file and the function configuration file; the configuration model mapping file is sent to a cloud server, where the configuration model mapping file is used by the cloud server to generate a device standard model, and the device standard model is used by the cloud server to perform operation and maintenance on the distributed resource device. Using this method can improve the operation and maintenance efficiency of the power grid.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the technical field of power grids, and particularly to a method, device, and system for generating device models. Background Art

[0002] With the large-scale application of distributed resources, a large number of distributed resource devices are connected to the power grid, such as distributed power sources, charging facilities for energy storage electric vehicles, etc. The connection of distributed resource devices has changed the original structure of the power grid and may become an indispensable part of the power grid in the future.

[0003] Distributed resource devices can not only interact with and support the power grid in a friendly manner, but also increase the complexity of power grid operation and management due to their complex forms and diverse entities. For example, currently, a large number of distributed resource devices are connected to the power grid individually. After the distributed resource devices are connected to the power grid, the workload of operation and maintenance work such as access commissioning and maintenance of the power grid will be extremely large, resulting in low operation and maintenance efficiency of the power grid. Summary of the Invention

[0004] Based on this, in view of the above technical problems, it is necessary to provide a method, device, and system for generating device models that can improve the operation and maintenance efficiency of the power grid.

[0005] In a first aspect, this application provides a method for generating a device model for a gateway device. The method includes:

[0006] Generating a function model file according to a function configuration file, where the function configuration file is used to configure device parameters of a distributed resource device, and the function model file includes at least one of function description data, interface information, and device data of the distributed resource device;

[0007] Obtaining a function configuration file, and generating a configuration model mapping file according to the function model file and the function configuration file, where the function configuration file is used to represent user-defined functions, operation configurations, and interface configurations;

[0008] Sending the configuration model mapping file to a cloud server, where the configuration model mapping file is used for the cloud server to generate a device standard model, and the device standard model is used for the cloud server to perform operation and maintenance on the distributed resource device.

[0009] In one embodiment, the method further includes: receiving a device standard model to be verified sent by the cloud server, where the device standard model to be verified is generated by the cloud server based on the configuration model mapping file; performing model verification on the device standard model to be verified, and in the case of passing the verification, sending the device standard model to the cloud server, where the model verification includes at least one of model integrity verification, model constraint verification, and model functionality verification.

[0010] In one embodiment, the obtaining the function configuration file includes: obtaining user input custom configuration information, and generating the function configuration file based on the custom configuration information.

[0011] In one embodiment, the method further includes: receiving a target instruction sent by the cloud server, where the target instruction is generated by the cloud server based on the device standard model, and the target instruction is used to instruct the gateway device to perform operation and maintenance on the distributed resource device; performing operation and maintenance on the distributed resource device according to the indication of the target instruction.

[0012] In a second aspect, the present application further provides a device model generation method for a cloud server. The method includes:

[0013] Receiving a configuration model mapping file sent by a gateway device, where the configuration model mapping file is generated by the gateway device according to a function model file and a function configuration file, and the function configuration file is used to represent user-defined functions, operation configurations, and interface configurations;

[0014] Generating a device standard model according to the configuration model mapping file, where the device standard model is used by the cloud server to perform operation and maintenance on the distributed resource device.

[0015] In one embodiment, the method further includes: sending the device standard model to the gateway device, where the device standard model is used to instruct the gateway device to perform model verification on the device standard model, and the model verification includes at least one of model integrity verification, model constraint verification, and model functionality verification; receiving the device standard model passed the verification sent by the gateway device.

[0016] In one embodiment, the method further includes: generating a target instruction based on the device standard model, where the target instruction is used to instruct the gateway device to perform operation and maintenance on the distributed resource device; sending the target instruction to the gateway device.

[0017] In a third aspect, the present application further provides a device model generation device disposed in a gateway device. The device includes:

[0018] A first generation module, configured to generate a function model file according to a function configuration file, where the function configuration file is used to configure device parameters of a distributed resource device, and the function model file includes at least one of function description data, interface information, and device data of the distributed resource device;

[0019] A second generation module, configured to obtain a function configuration file, and generate a configuration model mapping file according to the function model file and the function configuration file, where the function configuration file is used to represent user-defined functions, operation configurations, and interface configurations;

[0020] A sending module, configured to send the configuration model mapping file to a cloud server, where the configuration model mapping file is used for the cloud server to generate a device standard model, and the device standard model is used for the cloud server to perform operation and maintenance on the distributed resource device.

[0021] In a fourth aspect, the present application further provides a device model generation device, which is disposed in a cloud server. The device includes:

[0022] A receiving module, configured to receive a configuration model mapping file sent by a gateway device, where the configuration model mapping file is generated by the gateway device according to a function model file and a function configuration file, and the function configuration file is used to represent user-defined functions, operation configurations, and interface configurations;

[0023] A generation module, configured to generate a device standard model according to the configuration model mapping file, and the device standard model is used for the cloud server to perform operation and maintenance on the distributed resource device.

[0024] In a fifth aspect, the present application further provides a computer device. The computer device includes a memory and a processor, the memory stores a computer program, and when the processor executes the computer program, the steps described in any one of the first aspect and the second aspect are implemented.

[0025] In a sixth aspect, the present application further provides a device model generation system. The device model generation system includes a distributed resource device, a gateway device, and a cloud server, where:

[0026] The gateway device generates a function model file according to a function configuration file, where the function configuration file is used to configure device parameters of the distributed resource device, and the function model file includes at least one of function description data, interface information, and device data of the distributed resource device;

[0027] The gateway device obtains a function configuration file, and generates a configuration model mapping file according to the function model file and the function configuration file, where the function configuration file is used to represent user-defined functions, operation configurations, and interface configurations;

[0028] The gateway device sends the configuration model mapping file to the cloud server;

[0029] The cloud server receives the configuration model mapping file sent by the gateway device, and generates a device standard model according to the configuration model mapping file, where the device standard model is used by the cloud server to perform operation and maintenance on the distributed resource device.

[0030] In a seventh aspect, the present application further provides a computer-readable storage medium. On the computer-readable storage medium, there is a computer program, and when the computer program is executed by a processor, the steps described in any one of the first aspect and the second aspect are implemented.

[0031] In an eighth aspect, the present application further provides a computer program product. The computer program product includes a computer program, and when the computer program is executed by a processor, the steps described in any one of the first aspect and the second aspect are implemented.

[0032] In the above device model generation method, device, and system, the gateway device generates a function model file according to a function configuration file, where the function configuration file is used to configure device parameters of a distributed resource device, and the function model file includes at least one of function description data, interface information, and device data of the distributed resource device; the gateway device obtains a function configuration file, and generates a configuration model mapping file according to the function model file and the function configuration file, where the function configuration file is used to represent user-defined functions, operation configurations, and interface configurations; the gateway device sends the configuration model mapping file to the cloud server, and the configuration model mapping file is used by the cloud server to generate a device standard model, and the device standard model is used by the cloud server to perform operation and maintenance on the distributed resource device. In this way, in the embodiments of the present application, the operation and maintenance of distributed resource devices distributed everywhere in the power grid can be realized in the cloud, without the need for staff to manually access and debug each distributed resource device on-site, thereby improving the operation and maintenance efficiency of the distributed resource devices and the operation and maintenance efficiency of the power grid, and quickly responding to the needs of end users. BRIEF DESCRIPTION OF THE DRAWINGS

[0033] Figure 1 It is an application environment diagram of the device model generation method in an embodiment;

[0034] Figure 2 It is a flowchart of the device model generation method in an embodiment;

[0035] Figure 3 Schematic diagram of the process for a gateway device to perform model verification in an embodiment;

[0036] Figure 4 Schematic diagram of the process for step 202 in an embodiment;

[0037] Figure 5 Schematic diagram of the process for a gateway device to maintain distributed resource devices in an embodiment;

[0038] Figure 6 Schematic diagram of the process for a device model generation method in another embodiment;

[0039] Figure 7 Schematic diagram of the process for a device model generation method in another embodiment;

[0040] Figure 8 Schematic diagram of the process for a device model generation method in another embodiment;

[0041] Figure 9 Structure block diagram of a device model generation apparatus in an embodiment;

[0042] Figure 10 Structure block diagram of a device model generation apparatus in another embodiment;

[0043] Figure 11 Internal structure diagram of a computer device in an embodiment;

[0044] Figure 12 Internal structure diagram of a computer device in another embodiment. Detailed implementation manners

[0045] In order to make the objectives, technical solutions and advantages of the present application clearer and more understandable, the present application will be further described in detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application and are not used to limit the present application.

[0046] The device model generation method provided by the embodiments of the present disclosure can be applied to a system architecture as Figure 1 shown. The system architecture includes a cloud server 101, a gateway device 102, and at least one distributed resource device. Figure 1 Exemplarily, three distributed resource devices are shown: a distributed resource device 103, a distributed resource device 104, and a distributed resource device 105. The distributed resource device can be a distributed power source, energy storage, virtual power plant, integrated energy, electric vehicle, etc.

[0047] Among them, the cloud server 101 can be an independent server or a server cluster composed of multiple servers; the distributed resource devices 103, 104, and 105 can be massive distributed resources such as distributed power sources, energy storage, virtual power plants, integrated energy, and electric vehicles.

[0048] Among them, the distributed resource devices 103, 104, and 105 are provided with communication components, which can communicate with the gateway device 102 in a wired or wireless manner. In addition, the cloud server 101 and the gateway device 102 can communicate in a wired or wireless manner. The communication methods among the cloud server 101, the gateway device 102, the distributed resource device 103, the distributed resource device 104, and the distributed resource device 105 in the embodiments of the present disclosure are not limited.

[0049] In one embodiment, as Figure 2 shown, a device model generation method is provided. Taking the method applied to the Figure 1 gateway device in it as an example for description, the method includes the following steps:

[0050] Step 201, the gateway device generates a function model file according to the function configuration file.

[0051] Among them, the function configuration file is a file for configuring the parameters of the distributed resource device. The function configuration file contains the constraints for establishing the function model file, that is, the function model file is to be established based on the function configuration file.

[0052] The function configuration file of the distributed resource device contains various constraints for model conversion. The model conversion constraints include three parts: one is the general constraints of the configuration, the second is the constraints included in the gateway device configuration, and the third is the constraints sent by the cloud server to the gateway device. The constraints in the device configuration contain the constraint items required by the functions of the device itself. The general constraints of the gateway device include the configuration constraints between other distributed resource devices under the same gateway device. The constraints sent by the cloud contain the constraints of the distributed resource devices under different gateway devices.

[0053] The gateway device generates a function model file according to the constraints included in the function configuration file of the distributed resource. The function model file is used to characterize the capabilities of the device externally. The function model file includes at least one of the function description data, interface information, and device data of the distributed resource device, that is, through the parameter description of the function model file, such as what data can be uploaded and what controls can be received, to characterize the capabilities externally. The function model file adopts a file form similar to xml and is a model description file, such as the output power (active and reactive), voltage, current, frequency, etc. of the distributed power supply, and how it can be controlled and other attributes, as well as parameters such as the affiliated area, rated capacity, type, etc.

[0054] The cloud server can also configure application functions, a real - time interface, and operating configurations based on this function model file. For example, real - time operation status monitoring of distributed resource devices, device management of distributed resources, impact analysis of distributed resource devices on the power grid, and optimal scheduling of distributed resource devices.

[0055] Step 202, the gateway device obtains a function configuration file and generates a configuration model mapping file according to the function model file and the function configuration file.

[0056] The gateway device obtains the function configuration file of the distributed resource device. The function configuration file is automatically generated by the cloud server or the background on the configuration function module of the gateway device based on user requirements and user - defined configurations. The function configuration file of the distributed resource device is used to characterize user - defined functions, operating configurations, and interface configurations.

[0057] Then the gateway device integrates and processes the function model file and the function configuration file to generate a configuration model mapping file.

[0058] The configuration model mapping file includes two parts: the mapping relationship table between the configuration information point table and the model information point table, and the function parameter mapping table. The mapping relationship table is divided by function categories, including the telemetry configuration mapping table, the tele - signal configuration mapping table, the remote control configuration mapping table, and the remote adjustment configuration mapping table; the function parameter mapping includes the control parameters and default settings of all functions. The mapping relationship table between the configuration information point table and the model information point table includes the correspondence between configuration information and model information, that is, which ones are selected from the configuration information as the function parameter mapping table of the model information, including the correspondence between functions and parameters, that is, which functions correspond to which parameters.

[0059] Step 203, the gateway device sends the configuration model mapping file to the cloud server.

[0060] The configuration model mapping file is used for the cloud server to generate a device standard model through the model conversion process. The device standard model is used for the cloud server to perform operation and maintenance on the distributed resource device.

[0061] After the gateway device obtains the device standard model and verifies it, it can start sending data to the cloud server according to the device standard model. The cloud server analyzes the data of the distributed resource device according to the business needs of the distributed resource device and sends the corresponding control instructions to the gateway device for execution.

[0062] In the above-mentioned device model method, the gateway device generates a function model file based on the function configuration file, the function configuration file is used to configure the device parameters of the distributed resource device, and the function model file includes at least one of the function description data, interface information and device data of the distributed resource device; obtains the function configuration file, and generates a configuration model mapping file based on the function model file and the function configuration file, the function configuration file is used to represent the user-defined functions, operation configuration and interface configuration; sends the configuration model mapping file to the cloud server, the configuration model mapping file is used by the cloud server to generate a device standard model, and the device standard model is used by the cloud server to operate and maintain the distributed resource device. In this way, the embodiment of the present application can realize the management of distributed resource devices distributed in various places in the cloud, without the need for staff to manually access, debug and maintain the device functions of the distributed resource devices one by one on site, thereby improving the management and operation and maintenance efficiency of the distributed resource devices and quickly responding to the needs of end users.

[0063] In one embodiment, based on Figure 2 The embodiment shown, as Figure 3 As shown, the device model generation method of this embodiment further includes the following steps:

[0064] Step 301: The gateway device receives the device standard model to be verified sent by the cloud server.

[0065] The standard model of the device to be verified is generated by the cloud server through model conversion based on the configuration model mapping file. A model is a description of an object using variables, such as photovoltaics, using variables such as rated power, active power, reactive power, voltage, and current. The combination of these variables constitutes the photovoltaic model.

[0066] The standard model of the device to be verified has passed the constraints in the model conversion, and the variables required by the cloud are screened out from all the variables in the model to form the standard model of the device to be verified.

[0067] In step 302, the gateway device performs model verification on the device standard model to be verified, and if the verification passes, sends the device standard model to the cloud server.

[0068] Model verification includes at least one of model integrity verification, model constraint verification, and model functionality verification.

[0069] Integrity verification is used to prevent the tampering and loss of model content; Constraint verification is used to prevent the model content from not meeting the functional requirements of the gateway device and associated devices; Functional verification is used to prevent the changes in the model from not meeting the new or changed functional requirements of the device itself.

[0070] The verification process is that the gateway device compares the device standard model file to be verified with the model file sent from the cloud, checks whether the model is complete, whether the constraints are met, whether the functions are complete, etc. If all requirements are met, a device standard model is generated and sent to the cloud server.

[0071] In this embodiment, the gateway device performs model verification on the device standard model to be verified. Only when the verification passes, the device standard model is sent to the cloud server, ensuring the accuracy of the generated device standard model.

[0072] In one embodiment, based on Figure 2 the embodiment shown, refer to Figure 4 , this embodiment relates to the process of how the gateway device obtains the function configuration file. As Figure 4 shown, step 202 includes Figure 4 steps 401 and 402 shown in

[0073] Step 401, the gateway device obtains the custom configuration information input by the user and generates a function configuration file based on the custom configuration information.

[0074] Step 402, the gateway device generates a configuration model mapping file according to the function model file and the function configuration file.

[0075] The function configuration file is automatically generated by the configuration function module on the gateway device based on the user requirements and user custom configuration in the background of the cloud server. The function configuration file of the distributed resource device is used to represent the user-defined functions, operation configurations, and interface configurations.

[0076] In one embodiment, based on Figure 2 the embodiment shown, as Figure 5 shown, the device model generation method in this embodiment further includes the following steps:

[0077] Step 501, the gateway device receives the target instruction sent by the cloud server.

[0078] The target instruction is generated by the cloud server based on the device standard model, and the target instruction is used to instruct the gateway device to perform operation and maintenance on the distributed resource device.

[0079] After the gateway device completes the device model verification, it starts to send data to the cloud server according to the device standard model file. The cloud server configures according to the business requirements of the distributed resource device, such as real-time operation status monitoring of the distributed resource device, device management of the distributed resource device, impact analysis of the distributed resource device on the power grid, and optimal scheduling of the distributed resource device. And analyze the data of the distributed resource device, and send the corresponding target instructions to the gateway device for execution.

[0080] Step 502, the gateway device performs operation and maintenance on the distributed resource device according to the indication of the target instruction.

[0081] The operation and maintenance includes real-time operation status monitoring of the distributed resource device, device management of the distributed resource device, impact analysis of the distributed resource device on the power grid, optimal scheduling of the distributed resource device, etc.

[0082] In this embodiment, the user can complete the maintenance work of the distributed resource device on the cloud server. Just send the target instruction to the gateway device for execution, without the need for staff to manually access and debug and maintain the device functions of the distributed resource device one by one on site, thus improving the management and operation and maintenance efficiency of the distributed resource device and quickly responding to the needs of end users.

[0083] In one embodiment, as Figure 6 shown, a device model generation method is provided, and this method is applied to Figure 1 the cloud server in is taken as an example for description. It includes the following steps:

[0084] Step 601, the cloud server receives the configuration model mapping file sent by the gateway device.

[0085] Among them, the configuration model mapping file includes two parts: the mapping table of the configuration information point table and the model information point table, and the function parameter mapping table.

[0086] The mapping table is divided by function categories, including the telemetry configuration mapping table, the telemetry signal configuration mapping table, the remote control configuration mapping table, and the remote regulation configuration mapping table;

[0087] The mapping table of the configuration information point table and the model information point table includes the correspondence between the configuration information and the model information, that is, which are selected from the configuration information as the model information. The function parameter mapping table includes the correspondence between the function and the parameter, that is, which functions correspond to which parameters.

[0088] Step 602, the cloud server generates a device standard model according to the configuration model mapping file.

[0089] The so-called device model is to describe an object with some variables. For example, for a photovoltaic device, variables such as rated power, active power, reactive power, voltage, and current are used to describe it. The combination of these variables is the model of the photovoltaic device.

[0090] There are many variables for distributed resource devices, and they vary among different device manufacturers. The cloud server filters out the variables required by the cloud from all variables through model conversion according to the configured model mapping file to form a device standard model, and then the gateway device performs verification.

[0091] The device standard model is used by the cloud server for operation and maintenance of distributed resource devices. After the gateway device completes the device model verification, it starts to send data to the cloud server according to the device standard model file. The cloud server configures according to the business requirements of the distributed resource device, such as real-time operation status monitoring of the distributed resource device, device management of the distributed resource device, impact analysis of the distributed resource device on the power grid, optimal scheduling of the distributed resource device, etc. And it analyzes the data of the distributed resource device and sends the corresponding control instructions to the gateway device for execution.

[0092] The embodiments of this application achieve the efficient generation of a standardized model in the cloud server, realize the efficient access and convenient maintenance of distributed resource devices through a unified model and protocol, and quickly respond to the needs of end users.

[0093] In one embodiment, based on Figure 6 the embodiments shown, as Figure 7 shown, the device model generation method in this embodiment further includes the following steps:

[0094] Step 701, the cloud server sends the device standard model to the gateway device.

[0095] The device standard model is used to instruct the gateway device to perform model verification on the device standard model. The model verification includes at least one of model integrity verification, model constraint verification, and model functionality verification. Integrity verification is used to prevent the model content from being tampered with and lost; constraint verification is used to prevent the model content from not meeting the functional requirements of the gateway device and associated devices; functionality verification is used to prevent the changes to the model from not meeting the new and changed functional requirements of the device itself.

[0096] The verification process is that the gateway device compares the device standard model file to be verified with the model file sent from the cloud, checks whether the model is complete, whether the constraints are met, whether the functions are complete, etc. If all requirements are met, a device standard model is generated and sent to the cloud server.

[0097] Step 702, the cloud server receives the device standard model passed in verification sent by the gateway device.

[0098] The verified device standard model is uploaded to the cloud server. The cloud server analyzes the data of the distributed resource device according to the business requirements of the distributed resource device, and sends the corresponding control instructions to the gateway for execution, realizing the monitoring, control, and management of the distributed resource device.

[0099] In one embodiment, based on Figure 7 the embodiment shown, as Figure 8 shown, the method for generating the device model in this embodiment further includes the following steps:

[0100] Step 801, the cloud server generates a target instruction based on the device standard model.

[0101] The cloud analyzes the data of the distributed resource device according to the business requirements of the distributed resource device, and makes configurations according to the relevant business requirements of the distributed resource device; the configurations include, for example, real-time operation status monitoring of the distributed resource device, device management of the distributed resource device, impact analysis of the distributed resource device on the power grid, optimal scheduling of the distributed resource device, etc. And the corresponding target instructions are sent to the gateway for execution. The target instructions are used to instruct the gateway device to perform operation and maintenance on the distributed resource device.

[0102] Step 802, the cloud server sends the target instruction to the gateway device.

[0103] The gateway device receives the target instruction, and the target instruction includes: real-time operation status monitoring of the distributed resource device, device management of the distributed resource device, impact analysis of the distributed resource device on the power grid, optimal scheduling of the distributed resource device, etc.

[0104] It should be understood that although the steps in the flowcharts involved in the above-described embodiments are shown in sequence according to the arrows, these steps are not necessarily executed in the order indicated by the arrows. Unless there is a clear indication in this article, the execution of these steps has no strict order limit, and these steps can be executed in other orders. Moreover, at least a part of the steps in the flowcharts involved in the above-described embodiments may include multiple steps or multiple stages. These steps or stages are not necessarily executed at the same moment, but can be executed at different moments. The execution order of these steps or stages is not necessarily sequential, but can be executed alternately or in turn with at least a part of other steps or steps or stages in other steps.

[0105] Based on the same inventive concept, an embodiment of this application further provides a device model generation apparatus for implementing the device model generation method involved above. The solution provided by this apparatus to solve the problem is similar to the solution described in the above method. Therefore, the specific limitations in one or more embodiments of the device model generation apparatus provided below can refer to the limitations on the device model generation method in the foregoing, and will not be elaborated herein.

[0106] In one embodiment, as Figure 9 shown, a device model generation apparatus is provided, which is set in a gateway device. The apparatus includes:

[0107] A first generation module 901, configured to generate a function model file according to a function configuration file, where the function configuration file is used to configure device parameters of a distributed resource device, and the function model file includes at least one of function description data, interface information, and device data of the distributed resource device;

[0108] A second generation module 902, configured to obtain a function configuration file, and generate a configuration model mapping file according to the function model file and the function configuration file, where the function configuration file is used to represent user-defined functions, operation configurations, and interface configurations;

[0109] A first sending module 903, configured to send the configuration model mapping file to a cloud server, where the configuration model mapping file is used for the cloud server to generate a device standard model, and the device standard model is used for the cloud server to perform operation and maintenance on the distributed resource device.

[0110] In one embodiment, the apparatus further includes:

[0111] A first receiving module, configured to receive a device standard model to be verified sent by the cloud server, where the device standard model to be verified is generated by the cloud server based on the configuration model mapping file;

[0112] A verification module, configured to perform model verification on the device standard model to be verified, and in the case of passing the verification, send the device standard model to the cloud server, where the model verification includes at least one of model integrity verification, model constraint verification, and model functionality verification.

[0113] In one embodiment, the second generation module 902 further includes:

[0114] An obtaining unit, configured to obtain user input custom configuration information, and generate the function configuration file based on the custom configuration information.

[0115] In one embodiment, the apparatus further includes:

[0116] A second receiving module, configured to receive a target instruction sent by the cloud server, where the target instruction is generated by the cloud server based on the device standard model, and the target instruction is used to instruct the gateway device to perform operation and maintenance on the distributed resource device; perform operation and maintenance on the distributed resource device according to the indication of the target instruction.

[0117] In one embodiment, as Figure 10 shown, there is provided a device model generation device, which is arranged in a cloud server, and the device includes:

[0118] A second receiving module 1001, configured to receive a configuration model mapping file sent by a gateway device, where the configuration model mapping file is generated by the gateway device according to a function model file and a function configuration file, and the function configuration file is used to represent user-defined functions, operation configurations, and interface configurations;

[0119] A generation module 1002, configured to generate a device standard model according to the configuration model mapping file, where the device standard model is used by the cloud server to perform operation and maintenance on the distributed resource device.

[0120] In one embodiment, the device further includes:

[0121] A second sending module, configured to send the device standard model to the gateway device, where the device standard model is used to instruct the gateway device to perform model verification on the device standard model, and the model verification includes at least one of model integrity verification, model constraint verification, and model functionality verification;

[0122] A third receiving module, configured to receive the device standard model passed in the verification sent by the gateway device.

[0123] In one embodiment, the device further includes:

[0124] A third generation module, configured to generate a target instruction based on the device standard model, where the target instruction is used to instruct the gateway device to perform operation and maintenance on the distributed resource device;

[0125] A third sending module, configured to send the target instruction to the gateway device.

[0126] Each module in the above device model generation device can be implemented in whole or in part by software, hardware, and their combination. The above modules can be embedded in or independent of a processor in a computer device in a hardware form, or stored in a memory in a computer device in a software form, so that the processor can call and execute operations corresponding to the above modules.

[0127] In one embodiment, a computer device is provided. The computer device may be a server, and its internal structure diagram may be as shown in Figure 11 FIG. Figure 11 . The computer device includes a processor, a memory, an input / output interface (Input / Output, abbreviated as I / O), and a communication interface. Among them, the processor, the memory, and the input / output interface are connected through a system bus, and the communication interface is connected to the system bus through the input / output interface. Among them, the processor of the computer device is used to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system, a computer program, and a database. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The database of the computer device is used to store device model generation data. The input / output interface of the computer device is used to exchange information between the processor and external devices. The communication interface of the computer device is used to communicate with external terminals through a network connection. When the computer program is executed by the processor, it implements a device model generation method.

[0128] In one embodiment, a computer device is provided. The computer device may be a terminal, such as a gateway device, and its internal structure diagram may be as shown in Figure 12 FIG. Figure 12 . The computer device includes a processor, a memory, an input / output interface, a communication interface, a display unit, and an input device. Among them, the processor, the memory, and the input / output interface are connected through a system bus, and the communication interface, the display unit, and the input device are connected to the system bus through the input / output interface. Among them, the processor of the computer device is used to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system and a computer program. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The input / output interface of the computer device is used to exchange information between the processor and external devices. The communication interface of the computer device is used to communicate with external terminals in a wired or wireless manner. The wireless manner can be implemented through WIFI, a mobile cellular network, NFC (Near Field Communication), or other technologies. When the computer program is executed by the processor, it implements a device model generation method. The display unit of the computer device is used to form a visually visible picture, which may be a display screen, a projection device, or a virtual reality imaging device. The display screen may be a liquid crystal display screen or an electronic ink display screen. The input device of the computer device may be a touch layer covering the display screen, or a button, a trackball, or a touchpad provided on the computer device housing, or an external keyboard, touchpad, or mouse, etc.

[0129] Those skilled in the art can understand that Figure 11 and Figure 12The structure shown is only a block diagram of some structures related to the solution of this application, and does not constitute a limitation on the computer device to which the solution of this application is applied. The specific computer device may include more or fewer components than those shown in the figure, or combine some components, or have different component arrangements.

[0130] In one embodiment, a device model generation system is provided, including a distributed resource device, a gateway device, and a cloud server, where:

[0131] The gateway device generates a function model file according to a function configuration file, and the function configuration file is used to configure the device parameters of the distributed resource device. The function model file includes at least one of the function description data, interface information, and device data of the distributed resource device;

[0132] The gateway device obtains a function configuration file, and generates a configuration model mapping file according to the function model file and the function configuration file. The function configuration file is used to represent user-defined functions, operation configurations, and interface configurations;

[0133] The gateway device sends the configuration model mapping file to the cloud server;

[0134] The cloud server receives the configuration model mapping file sent by the gateway device, and generates a device standard model according to the configuration model mapping file. The device standard model is used by the cloud server to perform operation and maintenance on the distributed resource device.

[0135] Among them, for the specific implementation manners and beneficial effects of the device model generation system, reference can be made to the embodiments of the device model generation method for the gateway device and the embodiments of the device model generation method for the cloud server described above, which will not be elaborated here.

[0136] In one embodiment, a computer device is provided, including a memory and a processor. A computer program is stored in the memory, and when the processor executes the computer program, the following steps are implemented:

[0137] Generate a function model file according to a function configuration file, and the function configuration file is used to configure the device parameters of the distributed resource device. The function model file includes at least one of the function description data, interface information, and device data of the distributed resource device;

[0138] Obtain a function configuration file, and generate a configuration model mapping file according to the function model file and the function configuration file. The function configuration file is used to represent user-defined functions, operation configurations, and interface configurations;

[0139] Send the configuration model mapping file to the cloud server. The configuration model mapping file is used by the cloud server to generate a device standard model, and the device standard model is used by the cloud server to perform operation and maintenance on distributed resource devices.

[0140] In one embodiment, when the processor executes the computer program, the following steps are further implemented:

[0141] Receive the device standard model to be verified sent by the cloud server. The device standard model to be verified is generated by the cloud server based on the configuration model mapping file;

[0142] Perform model verification on the device standard model to be verified, and in the case of passing the verification, send the device standard model to the cloud server. The model verification includes at least one of model integrity verification, model constraint verification, and model functionality verification.

[0143] In one embodiment, when the processor executes the computer program, the following steps are further implemented:

[0144] Obtain the custom configuration information input by the user, and generate a function configuration file based on the custom configuration information.

[0145] In one embodiment, when the processor executes the computer program, the following steps are further implemented:

[0146] Receive the target instruction sent by the cloud server. The target instruction is generated by the cloud server based on the device standard model, and the target instruction is used to instruct the gateway device to perform operation and maintenance on the distributed resource devices;

[0147] Perform operation and maintenance on the distributed resource devices according to the indication of the target instruction.

[0148] In one embodiment, a computer device is provided, including a memory and a processor. A computer program is stored in the memory. When the processor executes the computer program, the following steps are implemented:

[0149] Receive the configuration model mapping file sent by the gateway device. The configuration model mapping file is generated by the gateway device according to the function model file and the function configuration file, and the function configuration file is used to represent the functions, operation configurations, and interface configurations customized by the user;

[0150] Generate a device standard model according to the configuration model mapping file. The device standard model is used by the cloud server to perform operation and maintenance on the distributed resource devices.

[0151] In one embodiment, when the processor executes the computer program, the following steps are further implemented:

[0152] Send the device standard model to the gateway device, where the device standard model is used to instruct the gateway device to perform model verification on the device standard model, and the model verification includes at least one of model integrity verification, model constraint verification, and model functionality verification;

[0153] Receive the device standard model passed in verification sent by the gateway device.

[0154] In one embodiment, when the processor executes the computer program, the following steps are also implemented:

[0155] Generate a target instruction based on the device standard model, where the target instruction is used to instruct the gateway device to perform operation and maintenance on the distributed resource device;

[0156] Send the target instruction to the gateway device.

[0157] In one embodiment, a computer-readable storage medium is provided, on which a computer program is stored. When the computer program is executed by the processor, the following steps are implemented:

[0158] Generate a function model file according to the function configuration file, where the function configuration file is used to configure the device parameters of the distributed resource device, and the function model file includes at least one of the function description data, interface information, and device data of the distributed resource device;

[0159] Obtain the function configuration file, and generate a configuration model mapping file according to the function model file and the function configuration file, where the function configuration file is used to represent the user-defined functions, operation configurations, and interface configurations;

[0160] Send the configuration model mapping file to the cloud server, where the configuration model mapping file is used for the cloud server to generate the device standard model, and the device standard model is used for the cloud server to perform operation and maintenance on the distributed resource device.

[0161] In one embodiment, when the computer program is executed by the processor, the following steps are also implemented:

[0162] Receive the device standard model to be verified sent by the cloud server, where the device standard model to be verified is generated by the cloud server based on the configuration model mapping file;

[0163] Perform model verification on the device standard model to be verified, and in the case of passing the verification, send the device standard model to the cloud server. The model verification includes at least one of model integrity verification, model constraint verification, and model functionality verification.

[0164] In one embodiment, when the computer program is executed by the processor, the following steps are also implemented:

[0165] Obtain the custom configuration information input by the user, and generate a function configuration file based on the custom configuration information.

[0166] In one embodiment, when the processor executes the computer program, the following steps are further implemented:

[0167] Receive the target instruction sent by the cloud server. The target instruction is generated by the cloud server based on the device standard model, and is used to instruct the gateway device to perform operation and maintenance on the distributed resource device;

[0168] According to the indication of the target instruction, perform operation and maintenance on the distributed resource device.

[0169] In one embodiment, a computer-readable storage medium is provided, on which a computer program is stored. When the computer program is executed by the processor, the following steps are implemented:

[0170] Receive the configuration model mapping file sent by the gateway device. The configuration model mapping file is generated by the gateway device according to the function model file and the function configuration file. The function configuration file is used to represent the user-defined functions, operation configurations, and interface configurations;

[0171] Generate a device standard model according to the configuration model mapping file. The device standard model is used for the cloud server to perform operation and maintenance on the distributed resource device.

[0172] In one embodiment, when the processor executes the computer program, the following steps are further implemented:

[0173] Send the device standard model to the gateway device. The device standard model is used to instruct the gateway device to perform model verification on the device standard model. The model verification includes at least one of model integrity verification, model constraint verification, and model functionality verification;

[0174] Receive the device standard model passed the verification sent by the gateway device.

[0175] In one embodiment, when the processor executes the computer program, the following steps are further implemented:

[0176] Generate a target instruction based on the device standard model. The target instruction is used to instruct the gateway device to perform operation and maintenance on the distributed resource device;

[0177] Send the target instruction to the gateway device.

[0178] In one embodiment, a computer program product is provided, including a computer program. When the computer program is executed by the processor, the following steps are implemented:

[0179] Generate a function model file according to a function configuration file, where the function configuration file is used to configure device parameters of a distributed resource device, and the function model file includes at least one of function description data, interface information, and device data of the distributed resource device;

[0180] Obtain a function configuration file, and generate a configuration model mapping file according to the function model file and the function configuration file, where the function configuration file is used to represent user-defined functions, operation configurations, and interface configurations;

[0181] Send the configuration model mapping file to a cloud server, where the configuration model mapping file is used for the cloud server to generate a device standard model, and the device standard model is used for the cloud server to perform operation and maintenance on the distributed resource device.

[0182] In one embodiment, when the computer program is executed by a processor, the following steps are further implemented:

[0183] Receive a device standard model to be verified sent by the cloud server, where the device standard model to be verified is generated by the cloud server based on the configuration model mapping file;

[0184] Perform model verification on the device standard model to be verified, and when the verification passes, send the device standard model to the cloud server, where the model verification includes at least one of model integrity verification, model constraint verification, and model functionality verification.

[0185] In one embodiment, when the computer program is executed by a processor, the following steps are further implemented:

[0186] Obtain user input custom configuration information, and generate a function configuration file based on the custom configuration information.

[0187] In one embodiment, when the processor executes the computer program, the following steps are further implemented:

[0188] Receive a target instruction sent by the cloud server, where the target instruction is generated by the cloud server based on the device standard model, and the target instruction is used to instruct a gateway device to perform operation and maintenance on the distributed resource device;

[0189] Perform operation and maintenance on the distributed resource device according to the indication of the target instruction.

[0190] In one embodiment, a computer program product is provided, including a computer program, and when the computer program is executed by a processor, the following steps are implemented:

[0191] Receive a configuration model mapping file sent by a gateway device, where the configuration model mapping file is generated by the gateway device according to the function model file and the function configuration file, and the function configuration file is used to represent user-defined functions, operation configurations, and interface configurations;

[0192] Generate a device standard model according to the configuration model mapping file, where the device standard model is used by the cloud server to perform operation and maintenance on distributed resource devices.

[0193] In one embodiment, when the processor executes the computer program, the following steps are further implemented:

[0194] Send the device standard model to the gateway device, where the device standard model is used to instruct the gateway device to perform model verification on the device standard model, and the model verification includes at least one of model integrity verification, model constraint verification, and model functionality verification;

[0195] Receive the device standard model passed in the verification sent by the gateway device.

[0196] In one embodiment, when the processor executes the computer program, the following steps are further implemented:

[0197] Generate a target instruction based on the device standard model, where the target instruction is used to instruct the gateway device to perform operation and maintenance on distributed resource devices;

[0198] 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, displayed data, etc.) involved in this application are all information and data authorized by the user or fully authorized by all parties, and the collection, use, and processing of relevant data need to comply with relevant laws, regulations, and standards of relevant countries and regions.

[0199] Those of ordinary skill in the art can understand that all or part of the processes in the above-described embodiment methods can be completed by instructing relevant hardware through a computer program. The computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above various methods. Among them, any reference to a memory, database, or other medium used in the various embodiments provided in the present application can include at least one of non-volatile and volatile memories. Non-volatile memory can include read-only memory (ROM), magnetic tape, floppy disk, flash memory, optical memory, high-density embedded non-volatile memory, resistive random access memory (ReRAM), magnetoresistive random access memory (MRAM), ferroelectric random access memory (FRAM), phase change memory (PCM), graphene memory, etc. Volatile memory can include random access memory (RAM) or external cache memory, etc. By way of illustration and not limitation, RAM can be in various forms, such as static random access memory (SRAM) or dynamic random access memory (DRAM), etc. The databases involved in the various embodiments provided in the present application can include at least one of relational databases and non-relational databases. Non-relational databases can include distributed databases based on blockchain, etc., without limitation. The processors involved in the various embodiments provided in the present application can be general-purpose processors, central processors, graphics processors, digital signal processors, programmable logic devices, data processing logics based on quantum computing, etc., without limitation.

[0200] The technical features of the above embodiments can be combined arbitrarily. For the sake of brevity of description, not all possible combinations of the various technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, it should be considered as the scope described in this specification.

[0201] The above-described embodiments only represent several implementation manners of the present application. Their descriptions are relatively specific and detailed, but they should not be construed as limiting the scope of the patent of the present application. It should be noted that for those of ordinary skill in the art, without departing from the concept of the present application, several modifications and improvements can still be made, and these all belong to the protection scope of the present application. Therefore, the protection scope of the present application should be subject to the appended claims.

Claims

1. A method for generating a device model, characterized in that For a gateway device, the method includes: Generating a function model file according to the constraint conditions included in the function configuration file, where the function configuration file is used to configure the device parameters of the distributed resource device; the function model file includes at least one of the function description data, interface information, and device data of the distributed resource device; the constraint conditions include the configured general constraint conditions, the constraint conditions included in the configuration of the gateway device, and the constraint conditions sent by the cloud server to the gateway device; Obtaining a function configuration file, and generating a configuration model mapping file according to the function model file and the function configuration file; the function configuration file is used to represent user-defined functions, operation configurations, and interface configurations; the configuration model mapping file includes a mapping relationship table of a configuration information point table and a model information point table and a function parameter mapping table, the mapping relationship table of the configuration information point table and the model information point table is used to represent the correspondence between configuration information and model information, and the function parameter mapping table contains control parameters and default setting values of each function; Sending the configuration model mapping file to the cloud server, where the configuration model mapping file is used for the cloud server to generate a device standard model, and the device standard model is used for the cloud server to perform operation and maintenance on the distributed resource device; The method further includes: receiving the device standard model to be verified sent by the cloud server, where the device standard model to be verified is generated by the cloud server based on the configuration model mapping file; performing model verification on the device standard model to be verified, and in the case of passing the verification, sending the device standard model to the cloud server, and the model verification includes at least one of model integrity verification, model constraint verification, and model functionality verification.

2. The method according to claim 1, wherein The obtaining the function configuration file includes: Obtaining user input custom configuration information, and generating the function configuration file based on the custom configuration information.

3. The method according to claim 1, characterized in that, The method further includes: Receiving a target instruction sent by the cloud server, where the target instruction is generated by the cloud server based on the device standard model, and the target instruction is used to instruct the gateway device to perform operation and maintenance on the distributed resource device; Performing operation and maintenance on the distributed resource device according to the indication of the target instruction.

4. The method according to claim 1, characterized in that The mapping relationship table of the configuration information point table and the model information point table includes a telemetry configuration mapping table, a tele-signal configuration mapping table, a remote control configuration mapping table, and a remote adjustment configuration mapping table.

5. A method for generating a device model, characterized in that, For a cloud server, the method includes: Receive the configuration model mapping file sent by the gateway device. The configuration model mapping file is generated by the gateway device according to the constraint conditions and function configuration file included in the function model file. The function configuration file is used to characterize the user-defined functions, operation configurations, and interface configurations. The configuration model mapping file includes a mapping table of the configuration information point table and the model information point table, as well as a function parameter mapping table. The mapping table of the configuration information point table and the model information point table is used to characterize the correspondence between configuration information and model information. The function parameter mapping table contains the control parameters and default setting values of each function; the constraint conditions include the general constraint conditions of the configuration, the constraint conditions included in the configuration of the gateway device, and the constraint conditions sent by the cloud server to the gateway device; Generate a device standard model according to the configuration model mapping file. The device standard model is used by the cloud server to perform operation and maintenance on the distributed resource device; The method further includes: sending the device standard model to the gateway device. The device standard model is used to instruct the gateway device to perform model verification on the device standard model. The model verification includes at least one of model integrity verification, model constraint verification, and model functionality verification; receive the device standard model passed the verification sent by the gateway device.

6. The method according to claim 5, wherein The method further includes: Generate a target instruction based on the device standard model. The target instruction is used to instruct the gateway device to perform operation and maintenance on the distributed resource device; Send the target instruction to the gateway device.

7. The method according to claim 5, wherein The mapping table of the configuration information point table and the model information point table includes a telemetry configuration mapping table, a tele-signal configuration mapping table, a remote control configuration mapping table, and a remote adjustment configuration mapping table.

8. An apparatus model generation device, characterized in that Set in the gateway device, the device includes: A first generation module, configured to generate a function model file according to the constraint conditions included in the function configuration file. The function configuration file is used to configure the device parameters of the distributed resource device. The function model file includes at least one of the function description data, interface information, and device data of the distributed resource device; the constraint conditions include the general constraint conditions of the configuration, the constraint conditions included in the configuration of the gateway device, and the constraint conditions sent by the cloud server to the gateway device; A second generation module, configured to obtain a function configuration file, and generate a configuration model mapping file according to the function model file and the function configuration file. The function configuration file is used to characterize the user-defined functions, operation configurations, and interface configurations. The configuration model mapping file includes a mapping table of the configuration information point table and the model information point table, as well as a function parameter mapping table. The mapping table of the configuration information point table and the model information point table is used to characterize the correspondence between configuration information and model information. The function parameter mapping table contains the control parameters and default setting values of each function; A first sending module, configured to send the configuration model mapping file to a cloud server, where the configuration model mapping file is used by the cloud server to generate a device standard model, and the device standard model is used by the cloud server to perform operation and maintenance on the distributed resource device; A first receiving module, configured to receive the device standard model to be verified sent by the cloud server, where the device standard model to be verified is generated by the cloud server based on the configuration model mapping file; A verification module, configured to perform model verification on the device standard model to be verified, and in the case of passing the verification, send the device standard model to the cloud server, where the model verification includes at least one of model integrity verification, model constraint verification, and model functionality verification.

9. An apparatus model generation device, characterized in that It is disposed in a cloud server, and the device includes: A second receiving module, configured to receive a configuration model mapping file sent by a gateway device, where the configuration model mapping file is generated by the gateway device according to constraint conditions included in a function model file and a function configuration file, and the function configuration file is used to represent user-defined functions, operation configurations, and interface configurations. The configuration model mapping file includes a mapping relationship table of a configuration information point table and a model information point table and a function parameter mapping table. The mapping relationship table of the configuration information point table and the model information point table is used to represent the correspondence between configuration information and model information, and the function parameter mapping table contains control parameters and default setting values of each function; the constraint conditions include configured general constraint conditions, constraint conditions included in the configuration of the gateway device, and constraint conditions sent by the cloud server to the gateway device; A generation module, configured to generate a device standard model according to the configuration model mapping file, where the device standard model is used by the cloud server to perform operation and maintenance on the distributed resource device; A second sending module, configured to send the device standard model to the gateway device, where the device standard model is used to instruct the gateway device to perform model verification on the device standard model, and the model verification includes at least one of model integrity verification, model constraint verification, and model functionality verification; A third receiving module, configured to receive the device standard model passed the verification sent by the gateway device.

10. An apparatus model generation system, characterized in that, It includes a distributed resource device, a gateway device, and a cloud server, where: The gateway device generates a function model file according to constraint conditions included in a function configuration file, where the function configuration file is used to configure device parameters of the distributed resource device, and the function model file includes at least one of function description data, interface information, and device data of the distributed resource device; the constraint conditions include configured general constraint conditions, constraint conditions included in the configuration of the gateway device, and constraint conditions sent by the cloud server to the gateway device; The gateway device obtains a function configuration file, and generates a configuration model mapping file according to the function model file and the function configuration file. The function configuration file is used to represent user-defined functions, operating configurations, and interface configurations. The configuration model mapping file includes a mapping table of configuration information point tables and model information point tables, as well as a function parameter mapping table. The mapping table of configuration information point tables and model information point tables is used to represent the correspondence between configuration information and model information. The function parameter mapping table contains control parameters and default setting values for each function; The gateway device sends the configuration model mapping file to the cloud server; The cloud server receives the configuration model mapping file sent by the gateway device, and generates a device standard model according to the configuration model mapping file. The device standard model is used by the cloud server to perform operation and maintenance on the distributed resource device; The cloud server sends the device standard model to be verified to the gateway device; The gateway device performs model verification on the device standard model to be verified, and in the case of passing the verification, sends the device standard model to the cloud server. The model verification includes at least one of model integrity verification, model constraint verification, and model functionality verification; The cloud server receives the device standard model that has passed the verification sent by the gateway device.

Citation Information

Patent Citations

  • Data acquisition method, device, and system based on universal information model and equipment

    CN111638690A