Data acquisition method, device, equipment and storage medium
Through the templated data conversion method, the inefficiency problem caused by the difference in data interfaces between virtual power plants and different power grid platforms is solved, and efficient acquisition and flexible adaptation of power grid data is achieved.
Patent Information
- Application Number
- CN202210119049.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-02-08
- Publication Date
- 2025-08-15
- Estimated Expiration
- 2042-02-08
AI Technical Summary
The data interfaces between virtual power plants and different power grid platforms are very different, resulting in low data interaction efficiency. In addition, overall debugging is required every time the data interface of the power grid platform changes, affecting the data acquisition efficiency.
The templated data conversion method is adopted, by receiving the power grid data and matching the corresponding template according to the template tag name, the power grid data format is converted into a target format that is readable by a virtual power plant, and the template is dynamically updated to adapt to the data changes of the power grid platform.
After the data of the power grid platform changes, there is no need for overall debugging, and the data interaction between the virtual power plant and other power grid platforms is maintained normally, improving data acquisition efficiency and flexibility.
Smart Images

Figure CN114462372B_ABST
Abstract
Description
Technical Field
[0001] The embodiments of the present application relate to the technical field of power management and data transmission, and in particular to a data acquisition method, apparatus, device, and storage medium. Background Art
[0002] A virtual power plant is a carrier that organically combines distributed power generation units, controllable loads and distributed energy storage facilities, and integrates and regulates various types of distributed energy through supporting control and communication technologies. It participates in the electricity market and power grid operation as a special power plant. A virtual power plant can also be regarded as an advanced regional centralized electricity management model.
[0003] In related technologies, data interaction is required between the power grid platform and the virtual power plant. Since the interfaces of various power grid platforms vary greatly and are basically completely different, the virtual power plant needs to develop multiple data interfaces corresponding to different power grid platforms, and can only be put into use after overall operation and debugging.
[0004] In the above-mentioned related technologies, every time the data interfaces of multiple power grid platforms change, the entire data service must be debugged and tested. During this period, the data interaction between the virtual power plant and the power grid platform cannot proceed normally, thereby affecting the efficiency of the virtual power plant in obtaining power grid data. Summary of the Invention
[0005] The embodiments of the present application provide a data acquisition method, apparatus, device, and storage medium that can improve the efficiency of a virtual power plant in acquiring grid data. The technical solution is as follows:
[0006] According to one aspect of an embodiment of the present application, a data acquisition method is provided, the method comprising:
[0007] Receiving first grid data from a first grid among the plurality of grids, where the data format of the first grid data is a first format;
[0008] Determining, according to the label names corresponding to the multiple templates, to call a first template corresponding to the first power grid among the multiple templates;
[0009] Based on the first template, the first power grid data is converted from the first format to a target format readable by a virtual power plant to obtain the first power grid data in the target format.
[0010] According to one aspect of an embodiment of the present application, a data acquisition device is provided, the device comprising:
[0011] A data receiving module, configured to receive first grid data from a first grid among the plurality of grids, wherein the data format of the first grid data is a first format;
[0012] a template determining module, configured to determine and call a first template corresponding to the first power grid among the multiple templates according to the label names corresponding to the multiple templates;
[0013] A data acquisition module is used to convert the first power grid data from the first format into a target format readable by the virtual power plant based on the first template, so as to obtain the first power grid data in the target format.
[0014] According to one aspect of an embodiment of the present application, a computer device is provided, comprising a processor and a memory, wherein a computer program is stored in the memory, and the computer program is loaded and executed by the processor to implement the above-mentioned data acquisition method.
[0015] According to one aspect of an embodiment of the present application, a computer-readable storage medium is provided, in which at least one instruction, at least one program, a code set or an instruction set is stored. The at least one instruction, the at least one program, the code set or the instruction set is loaded and executed by a processor to implement the above-mentioned data acquisition method.
[0016] According to one aspect of an embodiment of the present application, a computer program product is provided, which is loaded and executed by a processor to implement the above-mentioned data acquisition method.
[0017] The technical solutions provided by the embodiments of the present application may have the following beneficial effects:
[0018] By developing adaptive templates for the power grid platform, each template can define the format of the returned data and convert the data format as required. When the data on the power grid platform changes, the templated data service does not require overall debugging and will not affect the data interaction between the virtual power plant and other power grid platforms, thereby improving the efficiency of the virtual power plant in obtaining power grid data.
[0019] It should be understood that the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the present application. BRIEF DESCRIPTION OF THE DRAWINGS
[0020] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the following briefly introduces the drawings required for use in the description of the embodiments. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without any creative work.
[0021] Figure 1 It is a schematic diagram of an implementation environment provided by an embodiment of the present application;
[0022] Figure 2 is a schematic diagram of an implementation environment provided by another embodiment of the present application;
[0023] Figure 3 This is a flow chart of a data acquisition method provided by one embodiment of the present application;
[0024] Figure 4 is a flow chart of a data acquisition method provided by another embodiment of the present application;
[0025] Figure 5 is a block diagram of a data acquisition device provided by one embodiment of the present application;
[0026] Figure 6 is a block diagram of a data acquisition device provided by another embodiment of the present application;
[0027] Figure 7 This is a block diagram of a computer device provided by one embodiment of the present application. DETAILED DESCRIPTION
[0028] Exemplary embodiments will be described in detail herein, with examples illustrated in the accompanying drawings. In the following description, when referring to the drawings, identical numbers in different figures represent identical or similar elements, unless otherwise indicated. The embodiments described in the following exemplary embodiments are not intended to represent all possible embodiments consistent with the present application. Rather, they are merely examples of methods consistent with certain aspects of the present application, as detailed in the appended claims.
[0029] In the method provided in the embodiments of the present application, the execution subject of each step can be a computer device, which refers to an electronic device with data calculation, processing and storage capabilities. The computer device can be a terminal such as a PC (Personal Computer), a tablet computer, a smart phone, a wearable device, an intelligent robot, etc.; it can also be a server. Among them, the server can be an independent physical server, a server cluster or distributed system composed of multiple physical servers, or a cloud server that provides cloud computing services. Below, the technical solution of the present application is introduced and explained through several embodiments.
[0030] The technical solution of this application is introduced and explained through several embodiments below.
[0031] Please refer to Figure 1 , which shows a schematic diagram of an implementation environment provided by an embodiment of the present application. The implementation environment can be implemented as a data acquisition system 10, which includes: a virtual power plant 20 and multiple power grid platforms 30. Among them:
[0032] The virtual power plant 20 includes: an application program interface module 21 (cloud API (Application Programming Interface)), a template module 22 (template) and an interface adapter module 23 (interface adapter). Among them, the application program interface module 21 is used to call the data interface of the virtual power plant; the template module 22 includes multiple templates, and the template module 22 is used to convert the data format; the interface adapter module 23 is used to realize data interaction between the virtual power plant and each power grid platform 30. In some embodiments, the virtual power plant 20 also provides asset tree service (asserttree), software (kafka), time series database (tsdb, time series & spatial temporal database), database and other data services (such as mysql (my structured query language, relational database management system)). Optionally, the virtual power plant 20 is deployed on the above-mentioned computer equipment.
[0033] In some embodiments, as Figure 2 As shown, the interface adapter module 23 is a module that interacts with the power grid platform 30 and is called by the template name corresponding to the interface adapter module 23. The application interface module 21 is responsible for parsing the template, calling the data interface of the power grid platform, and returning json (JavaScript Object Notation, js object notation) data.
[0034] In some embodiments, the grid platform 30 (Grid) includes a new energy grid platform and a traditional energy grid platform. As renewable energy becomes the primary direction of future global energy development, the research objectives of virtual power plants include providing a framework and technical support for the integration of large-scale new energy power. Through the operating mechanism of virtual power plants, the complementary and coordinated scheduling between the traditional energy grid platform and the new energy grid platform, as well as the optimized operation of the grid, are achieved, thereby maximally smoothing the strong random volatility of new energy power and improving the utilization rate of new energy.
[0035] Please refer to Figure 3 , which shows a flow chart of a data acquisition method provided by an embodiment of the present application. In this embodiment, the method is mainly illustrated by applying it to the computer device introduced above. The method may include the following steps (301-303):
[0036] Step 301: Receive first grid data from a first grid among multiple grids, where the data format of the first grid data is a first format.
[0037] In some embodiments, the virtual power plant needs to periodically or irregularly obtain grid data from various power grids to understand the operating conditions of each grid and facilitate overall power management. Optionally, the grid platform proactively sends its grid data to the virtual power plant at intervals; alternatively, the virtual power plant sends data acquisition requests to each grid platform at intervals, and each grid platform responds to the virtual power plant's data acquisition request and sends the grid data requested in the data acquisition request to the virtual power plant.
[0038] In some embodiments, the data format of the data interface of the virtual power plant is different from the data format of the data interface of the power grid platform.
[0039] Step 302 : Determine and call a first template corresponding to a first power grid among the multiple templates according to the label names corresponding to the multiple templates.
[0040] In some embodiments, each template has a corresponding tag name to distinguish it from other templates. The template used can also be determined by the tag name. Optionally, the template is an XML (Extensible Markup Language) template.
[0041] In some embodiments, the tag name of the first template includes a first format. The first template having a tag name matching the first format is determined by matching the tag names corresponding to the plurality of templates with the first format.
[0042] In some embodiments, the tag name of each template includes the function attributes and fixed attributes of the corresponding template. The function attributes include the source of the corresponding tag name, such as real-time library, database, auto-increment, etc.; the fixed attributes include the data format of the corresponding function before and after format conversion. Optionally, the power grid data source includes message bus kafka, tsdb, mysql, redis, restful, etc., which is not specifically limited in the embodiment of the present application. Optionally, the fixed attributes define some fixed json formats. By finding whether the data format in the tag name of each template is the same as the first format, it is determined that the first template with the tag name containing the first format is the template corresponding to the first power grid. In some embodiments, the template can also include multiple custom functions, such as functions for automatically generating dot numbers, auto-increment and auto-decrement of dot numbers. Functions for time deviation, name conversion, and other functions.
[0043] In the exemplary embodiments, a specific example is:
[0044] <? xml version-"1.0"encoding-"UIE-8"? >
[0045] <!--ns2:templates xmlns:ns2-"com.envision.vpp.xsd"-->
[0046] <!--
[0047] tags:templates tcemplate property node nodes paran
[0048] template:cefine the return content of the interface
[0049] templates:the co11cetion of template
[0050] property:one basic elements of template
[0051] tag include name type value source
[0052] example<property name="resourceName"value="s{assetAttribute}"source="attribute" / >
[0053] get value of resourceName from asset attribute to resourceNane
[0054] {"resourceName":"XXX"}
[0055] node:content 13a struct
[0056] nodes:array of node
[0057] param:parameters tor custom me thods
[0058] -->
[0059] <templates>
[0060] <template name-"general"type-"base">
[0061] <property name="version"type="int"value="1" / >
[0062] <property name="requestID"value="uuid()"type="func" / >
[0063] <property name-"dnID"value-"S{ID}"source="custon" / >
[0064]
[0065] <temp1ate name-"Po11">
[0066] <property name"root"value-"Po11" / >
[0067] <inc1ude name="general" / >
[0068] Optionally, for at least two templates among the multiple templates, the portion of the second template that is identical to the other templates among the at least two templates is the base template of the at least two templates, the portion of the second template that is different from the other templates is the template feature of the second template, and the second template is a combination of the base template and the template feature of the second template. In some embodiments, the base template of at least two templates and the template features corresponding to the at least two templates are stored. Thus, the identical portion of different templates, i.e., the base template, can be stored in only one or a few copies, reducing storage redundancy and thus saving storage resources. When in use, the base template is combined with the corresponding template feature to obtain the required template for data conversion.
[0069] In some embodiments, some templates are complex templates. The complex templates may include multiple basic templates and multiple tag names, and may be used to implement data conversion from multiple data sources.
[0070] In some possible implementations, the data acquisition method further includes:
[0071] 1. After a data format corresponding to a second power grid platform among the multiple power grid platforms is updated, obtaining an updated data format corresponding to the second power grid platform;
[0072] 2. When the multiple templates do not include a template corresponding to the updated data format, generate a third template different from the multiple templates according to the updated data format to obtain the updated multiple templates.
[0073] In the above implementation, after the data interface of some power grid platforms (such as the second power grid platform) changes or the data format is updated, it is necessary to first query whether there is a template corresponding to the updated data format in the virtual power plant. If so, the multiple templates of the virtual power plant will not change; if not, the virtual power plant needs to obtain or generate a new template adapted to the updated data format, that is, the third template. Afterwards, data interaction between the second power grid platform and the virtual power plant can be achieved through the newly added third template. This allows the template of the virtual power plant to be dynamically updated, improving the flexibility of the template.
[0074] Step 303: Based on the first template, convert the first power grid data from the first format into a target format readable by the virtual power plant to obtain the first power grid data in the target format.
[0075] In some embodiments, through the templates corresponding to each power grid platform, the power grid data in different formats corresponding to each power grid platform are converted into power grid data in a target format readable and processable by the virtual power plant, thereby facilitating the virtual power plant to process and analyze the power grid data of multiple power grid platforms, and further facilitating the virtual power plant to coordinate multiple power grid platforms and generate production tasks or other instructions corresponding to each power grid.
[0076] In some embodiments, the method further comprises the steps of:
[0077] 1. Convert the first template into a first function by parsing the first template;
[0078] 2. Convert the first power grid data in the first format returned by the first function into a target format according to the first function, and return the first power grid data in the target format.
[0079] Optionally, the first function is parsed out of the first template, and the power grid data in the first format is used as an independent variable, and the power grid data in the target format is converted through the output of the first function.
[0080] In some embodiments, after the first power grid data in the first format returned by the first function is converted into the target format according to the first function and the first power grid data in the target format is returned, a time generation function is used to generate the reception time of the first power grid data in the first format based on the data conversion speed between the first format and the target format, the data volume of the first power grid data, and the generation time of the first power grid data in the target format.
[0081] In some embodiments, the timeliness requirements of the power grid data obtained by the virtual power plant are high, and the processes such as data transmission and format conversion need to take a certain amount of time, resulting in the time to obtain the power grid data in the target format, relative to the actual corresponding time of the power grid data (i.e., the generation time of the power grid data). In the process of data format conversion, the conversion time is related to the format before and after the data conversion, as well as the amount of data converted. According to the first function for the data conversion speed between the first format and the target format, the amount of data of the first power grid data and the generation time of the first power grid data in the target format, the time spent on the data format conversion can be calculated. The generation time of the first power grid data in the target format is subtracted from the time spent on the data format conversion to obtain the time when the first power grid data in the first format is received. Optionally, the time spent in the data transmission process is less and can be ignored, and the time when the first power grid data in the first format is received can be determined as the generation time of the first power grid data in the first format.
[0082] To sum up, the technical solution provided by the embodiment of the present application develops adaptive templates for the power grid platform. Each template can define the format of the returned data and convert the data format according to requirements. After the data on the power grid platform changes, the templated data service does not require overall debugging, and will not affect the data interaction between the virtual power plant and other power grid platforms, thereby improving the efficiency of the virtual power plant in obtaining power grid data.
[0083] In addition, in the embodiment of the present application, by introducing template design, json data results are quickly returned, reducing result changes caused by changes in json format.
[0084] In some embodiments, as Figure 4 As shown, the data acquisition method can be applied to a terminal device, and the method further includes the following steps (401-405):
[0085] Step 401: The user interface displays received first power grid data in a first format;
[0086] Step 402: determining a first template corresponding to the first power grid data, and parsing the first template;
[0087] Step 403, displaying a real-time data interface;
[0088] Step 404 , displaying the first format power grid data and / or the first target format power grid data converted in real time on the real-time data interface;
[0089] Step 405: Return the first power grid data in the target format.
[0090] Optionally, between the above steps 402 and 404, the following step (406) is further included:
[0091] Step 406: Display the database system interface.
[0092] Optionally, between the above steps 402 and 404, the following step (407) is further included:
[0093] Step 407: Display the asset service tree interface.
[0094] Optionally, between the above steps 402 and 404, the following step (408) is further included:
[0095] Step 408: Display the historical data interface.
[0096] The following are device embodiments of the present application, which can be used to implement the method embodiments of the present application. For details not disclosed in the device embodiments of the present application, please refer to the method embodiments of the present application.
[0097] Please refer to Figure 5 , which shows a block diagram of a data acquisition device provided by one embodiment of the present application. This device has the functionality to implement the aforementioned data acquisition method examples. This functionality can be implemented by hardware or by hardware executing corresponding software. This device can be the data acquisition described above or can be provided on a data acquisition device. This device 500 may include: a data receiving module 510, a template determination module 520, and a data acquisition module 530.
[0098] The data receiving module 510 is configured to receive first grid data from a first grid among multiple grids, where the data format of the first grid data is a first format.
[0099] The template determination module 520 is configured to determine and call a first template corresponding to the first power grid among the multiple templates according to the label names corresponding to the multiple templates.
[0100] The data acquisition module 530 is configured to convert the first power grid data from the first format into a target format readable by the virtual power plant based on the first template, thereby obtaining the first power grid data in the target format.
[0101] To sum up, the technical solution provided by the embodiment of the present application develops adaptive templates for the power grid platform. Each template can define the format of the returned data and convert the data format according to requirements. After the data on the power grid platform changes, the templated data service does not require overall debugging, and will not affect the data interaction between the virtual power plant and other power grid platforms, thereby improving the efficiency of the virtual power plant in obtaining power grid data.
[0102] In an exemplary embodiment, the tag name of the first template includes the first format; the template determination module 520 is used to determine the first template whose tag name matches the first format by matching the tag names corresponding to the multiple templates with the first format.
[0103] In an exemplary embodiment, the data acquisition module 530 is configured to:
[0104] Converting the first template into a first function by parsing the first template;
[0105] The first power grid data in the first format returned by the first function is converted into the target format according to the first function, and the first power grid data in the target format is returned.
[0106] In an exemplary embodiment, the first template includes a time generating function. Figure 6 As shown, the apparatus 500 further includes: a time generation module 540 .
[0107] The time generation module 540 is used to use the time generation function to generate the reception time of the first power grid data in the first format according to the data conversion speed between the first format and the target format, the data volume of the first power grid data, and the generation time of the first power grid data in the target format.
[0108] In an exemplary embodiment, the virtual power plant includes: an application interface module, a template module and an interface adaptation module; wherein, the application interface module is used to call the data interface of the virtual power plant, the template module includes the multiple templates, the template module is used to convert the data format, and the interface adaptation module is used to realize data interaction between the virtual power plant and various power grid platforms.
[0109] In an exemplary embodiment, for at least two templates among the plurality of templates, the portion of the second template that is identical to the other templates among the at least two templates is the base template of the at least two templates, the portion of the second template that is different from the other templates is the template feature of the second template, and the second template is a combination of the template features of the base template and the second template. Figure 6 As shown, the device 500 further includes: a template storage module 550.
[0110] The template storage module 550 is configured to store the base template of the at least two templates and the template features corresponding to the at least two templates.
[0111] In an exemplary embodiment, as Figure 6 As shown, the apparatus 500 further includes: a format acquisition module 560 and a template generation module 570 .
[0112] The format acquisition module 560 is configured to acquire an updated data format corresponding to a second power grid platform among the multiple power grid platforms after the data format corresponding to the second power grid platform is updated.
[0113] The template generating module 570 is configured to generate a third template different from the plurality of templates according to the updated data format when the plurality of templates do not include a template corresponding to the updated data format, so as to obtain a plurality of updated templates.
[0114] It should be noted that the apparatus provided in the above embodiments, when implementing its functions, is only illustrated by the division of the above functional modules. In actual applications, the above functions can be assigned to different functional modules as needed, that is, the internal structure of the device can be divided into different functional modules to complete all or part of the functions described above. In addition, the apparatus and method embodiments provided in the above embodiments are based on the same concept. The specific implementation process is detailed in the method embodiment and will not be repeated here.
[0115] Please refer to Figure 7 , which shows a block diagram of the structure of a computer device provided in one embodiment of the present application. The computer device is used to implement the data acquisition method provided in the above embodiment. Specifically:
[0116] The computer device 700 includes a CPU (Central Processing Unit) 701, a system memory 704 including a RAM (Random Access Memory) 702 and a ROM (Read-Only Memory) 703, and a system bus 705 connecting the system memory 704 and the CPU 701. The computer device 700 also includes a basic I / O (Input / Output) system 706 that facilitates information transmission between various components within the computer, and a mass storage device 707 for storing an operating system 713, application programs 714, and other program modules 715.
[0117] The basic input / output system 706 includes a display 708 for displaying information and an input device 709 such as a mouse and keyboard for user input. The display 708 and the input device 709 are both connected to the central processing unit 701 via an input / output controller 710 connected to the system bus 705. The basic input / output system 706 may also include an input / output controller 710 for receiving and processing input from a variety of other devices such as a keyboard, mouse, or electronic stylus. Similarly, the input / output controller 710 also provides output to a display screen, printer, or other types of output devices.
[0118] The mass storage device 707 is connected to the central processing unit 701 via a mass storage controller (not shown) connected to the system bus 705. The mass storage device 707 and its associated computer-readable medium provide non-volatile storage for the computer device 700. In other words, the mass storage device 707 may include a computer-readable medium (not shown) such as a hard disk or a CD-ROM (Compact Disc Read-Only Memory) drive.
[0119] Without loss of generality, the computer-readable medium may include computer storage media and communication media. Computer storage media include volatile and non-volatile, removable and non-removable media implemented by any method or technology for storing information such as computer-readable instructions, data structures, program modules or other data. Computer storage media include RAM, ROM, EPROM (Erasable Programmable Read Only Memory), EEPROM (Electrically Erasable Programmable Read Only Memory), flash memory or other solid-state memory, CD-ROM, DVD (Digital Video Disc) or other optical storage, tape cassettes, magnetic tape, disk storage or other magnetic storage devices. Of course, those skilled in the art will appreciate that the computer storage media are not limited to the above-mentioned ones. The above-mentioned system memory 704 and mass storage device 707 can be collectively referred to as memory.
[0120] According to various embodiments of the present application, the computer device 700 may also be connected to a remote computer on a network such as the Internet for operation. That is, the computer device 700 may be connected to a network 712 via a network interface unit 711 connected to the system bus 705, or the network interface unit 711 may be used to connect to other types of networks or remote computer systems (not shown).
[0121] In an exemplary embodiment, a computer-readable storage medium is further provided, wherein a computer program is stored in the storage medium. When the computer program is executed by a processor, the computer program implements the above-mentioned data acquisition method.
[0122] In an exemplary embodiment, a computer program product is further provided. When the computer program product is executed by a processor, it is used to implement the above data acquisition method.
[0123] It should be understood that the term "plurality" used herein refers to two or more. "And / or" describes the relationship between associated objects, indicating that three possible relationships exist. For example, "A and / or B" can represent: A alone, A and B together, or B alone. The character " / " generally indicates that the associated objects are in an "or" relationship.
[0124] The above description is merely an exemplary embodiment of the present application and is not intended to limit the present application. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of the present application shall be included in the scope of protection of the present application.< / templates>
Claims
1. A data acquisition method, characterized in that: The method comprises: Storing a base template of at least two templates and template features corresponding to the at least two templates, wherein a portion of a second template of the at least two templates that is identical to the other templates of the at least two templates is the base template of the at least two templates, a portion of the second template that is different from the other templates is the template feature of the second template, and the second template is a combination of the template features of the base template and the second template; Receiving first grid data from a first grid among the plurality of grids, where the data format of the first grid data is a first format; Determining a first template whose tag name matches the first format by matching tag names corresponding to a plurality of templates with the first format; wherein the plurality of templates include the at least two templates, the tag names of the templates include function attributes and fixed attributes of the templates, the function attributes of the templates include the source of the tag name of the templates, the fixed attributes of the templates include the data formats before and after format conversion, and the first format is the same as the data format in the tag name of the first template; Combining the base template with template features corresponding to the first template of the at least two templates to obtain the first template; Based on the first template, converting the first power grid data from the first format to a target format readable by a virtual power plant to obtain the first power grid data in the target format; using a time generation function to calculate a duration of data format conversion based on a data conversion speed between the first format and the target format and a data volume of the first power grid data, and subtracting the duration of the data format conversion from a generation time of the first power grid data in the target format to obtain a generation time of the first power grid data in the first format, wherein the first template includes the time generation function; A production task corresponding to the first power grid is generated according to the first power grid data in the target format.
2. The method according to claim 1, characterized in that The virtual power plant includes: an application interface module, a template module and an interface adapter module; wherein, the application interface module is used to call the data interface of the virtual power plant, the template module includes the multiple templates, the template module is used to convert the data format, and the interface adapter module is used to realize data interaction between the virtual power plant and various power grid platforms.
3. The method according to claim 1 or 2, characterized in that The method further comprises: After the data format corresponding to a second power grid platform among the multiple power grid platforms is updated, obtaining an updated data format corresponding to the second power grid platform; In a case where the plurality of templates do not include a template corresponding to the updated data format, a third template different from the plurality of templates is generated according to the updated data format to obtain a plurality of updated templates.
4. A data acquisition device, characterized in that: The device comprises: a template storage module, configured to store a base template of at least two templates and template features corresponding to the at least two templates, wherein a portion of a second template of the at least two templates that is identical to the other templates of the at least two templates is the base template of the at least two templates, a portion of the second template that is different from the other templates is the template feature of the second template, and the second template is a combination of the template features of the base template and the second template; A data receiving module, configured to receive first grid data from a first grid among the plurality of grids, wherein the data format of the first grid data is a first format; a template determination module, configured to determine a first template whose tag name matches the first format by matching tag names corresponding to a plurality of templates with the first format; wherein the plurality of templates includes the at least two templates, the tag names of the templates include function attributes and fixed attributes of the templates, the function attributes of the templates include the source of the tag name of the templates, the fixed attributes of the templates include the data format before and after format conversion, and the first format is the same as the data format in the tag name of the first template; a data acquisition module, configured to combine the basic template and template features corresponding to the first template of the at least two templates to obtain the first template; The data acquisition module is further configured to convert the first power grid data from the first format into a target format readable by a virtual power plant based on the first template, thereby obtaining the first power grid data in the target format; a time generation module, configured to calculate, using a time generation function, a time duration spent on data format conversion based on a data conversion speed between the first format and the target format and a data volume of the first power grid data, and subtract the time duration spent on the data format conversion from a generation time of the first power grid data in the target format to obtain a generation time of the first power grid data in the first format, wherein the first template includes the time generation function; The data acquisition module is further configured to generate a production task corresponding to the first power grid according to the first power grid data in the target format.
5. A computer device, characterized in that: The computer device includes a processor and a memory, wherein a computer program is stored in the memory, and the computer program is loaded and executed by the processor to implement the data acquisition method according to any one of claims 1 to 3.
6. A computer-readable storage medium, characterized in that The computer-readable storage medium stores a computer program, which is loaded and executed by a processor to implement the data acquisition method according to any one of claims 1 to 3.
7. A computer program product, characterized in that When the computer program product is executed by a processor, the computer program product is used to implement the data acquisition method according to any one of claims 1 to 3.
Citation Information
Patent Citations
Data loading method and apparatus
CN105718540A