A data processing method for energy metering of load classification and related device
By constructing a table mapping electricity meter addresses and importing it into the metering system database, the problems of multiple meter types and complex installation were solved. This enabled automatic identification of meter usage and orderly parsing and storage of data, thereby improving the accuracy and efficiency of electricity metering.
Patent Information
- Application Number
- CN202211507101.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-11-29
- Publication Date
- 2025-11-25
- Estimated Expiration
- 2042-11-29
AI Technical Summary
Existing technologies often involve a large number of different types of electricity meters and complex installation and construction restrictions, which can easily lead to errors and make metering data processing difficult.
By constructing a table mapping electricity meter addresses and importing it into the metering system database, the purpose of the electricity meter is obtained based on the gateway ID in the electricity metering data frame. Voltage, current, power, forward power, and reverse power data are then distributed to the corresponding metering processors for parsing and storage.
It simplifies the meter installation process, reduces errors, improves the efficiency and accuracy of data processing, and enables orderly metering of power generation, energy storage, power grid, and electricity consumption.
Smart Images

Figure CN115802206B_ABST
Abstract
Description
TECHNICAL FIELD
[0001] The present application relates to the technical field of electric power metering, in particular to a data processing method for energy metering of load classification and related device. BACKGROUND
[0002] In the field of energy metering, there is a demand for electric quantity metering of power generation, energy storage, power grid and power consumption, such as how much electricity is generated in a day, how much electricity is stored and charged, how much electricity is supplied and fed by the power grid, and how much electricity is consumed by the power load. The power load includes thousands of types such as air conditioners, lamps, rice cookers, refrigerators and washing machines. Conventionally, different electric meters are used to meter data for four scenarios of power generation, energy storage, power grid and power consumption. If there is a need for detailed metering in the four scenarios, different electric meters are used. In this way, the number of electric meter types is large, the installation and construction of electric meters have many restrictions, and errors are prone to occur. SUMMARY
[0003] The present application provides a data processing method for energy metering of load classification and related device, which solves the technical problem of the existing electric meter type quantity being large, the installation and construction of the electric meter having many restrictions, and errors being prone to occur.
[0004] Therefore, the first aspect of the present application provides a data processing method for energy metering of load classification, which comprises:
[0005] constructing an electric meter address correspondence table according to the purpose of the electric meter and importing it into a metering system database;
[0006] receiving an electric power metering data frame uploaded by a gateway, and obtaining all electric meter devices uploading data from the gateway from the electric meter address correspondence table according to the gateway ID in the electric power metering data frame;
[0007] determining the purpose of each electric meter device according to the electric meter address in the electric power metering data frame based on the electric meter address correspondence table;
[0008] distributing voltage, current, power, forward electric quantity and reverse electric quantity data in the electric power metering data frame to the metering processor corresponding to the purpose for data analysis and statistics, and then storing them in the database.
[0009] Optionally, the electric meter address correspondence table is constructed according to the purpose of the electric meter and imported into the metering system database, specifically comprising:
[0010] When installing the electric meter, the electric meter address correspondence table is constructed according to the corresponding project name, gateway ID, electric meter address and purpose of the electric meter and imported into the metering system database.
[0011] Optionally, after the meter address correspondence table is constructed according to the meter use and imported into the metering system database, the method further comprises:
[0012] When the data processing server is started for the first time, the meter address correspondence table in the metering system database is queried and cached for data processing.
[0013] Optionally, the meter use comprises power generation, energy storage, power grid and power consumption.
[0014] The second aspect of the present application provides a data processing system for load classification energy metering, the system comprising:
[0015] A construction unit is configured to construct a meter address correspondence table according to meter use and import the table into a metering system database;
[0016] An acquisition unit is configured to receive a power metering data frame uploaded by a gateway, and acquire all meter devices uploading data from the gateway from the meter address correspondence table according to a gateway ID in the power metering data frame.
[0017] An analysis unit is configured to determine the use of each meter device according to a meter address in the power metering data frame based on the meter address correspondence table.
[0018] A processing unit is configured to store, after distributing voltage, current, power, forward power and reverse power data in the power metering data frame to a metering processor corresponding to the use for data analysis and statistics, to a database.
[0019] Optionally, the construction unit is specifically configured to:
[0020] When a meter is installed, a meter address correspondence table is constructed according to an engineering name corresponding to the meter, a gateway ID, a meter address and a meter use, and imported into a metering system database.
[0021] Optionally, the method further comprises a caching unit.
[0022] The caching unit is configured to query the meter address correspondence table in the metering system database and cache the table for data processing when the data processing server is started for the first time.
[0023] Optionally, the meter use comprises power generation, energy storage, power grid and power consumption.
[0024] The third aspect of the present application provides a data processing device for load classification energy metering, the device comprising a processor and a memory:
[0025] The memory is configured to store program code and transmit the program code to the processor.
[0026] The processor is configured to execute the steps of the data processing method for load classification energy metering according to the instructions in the program code.
[0027] The fourth aspect of the present application provides a computer readable storage medium for storing program code for executing the data processing method for load classification energy metering according to the first aspect.
[0028] From the above technical solutions, the present application has the following advantages:
[0029] The present application provides a data processing method for load classification energy metering, comprising: constructing a meter address correspondence table according to the meter use and importing it into a metering system database; receiving a power metering data frame uploaded by a gateway, and obtaining all meter devices uploading data from the gateway from the meter address correspondence table according to the gateway ID in the power metering data frame; determining the use of each meter device according to the meter address in the power metering data frame based on the meter address correspondence table; and distributing the voltage, current, power, forward and reverse power data in the power metering data frame to the metering processor corresponding to the use for data analysis and statistics, and then storing them in the database.
[0030] The data processing method for energy metering of the present application records the use of the meter during the installation process, whether it is for power generation, energy storage, power grid or power consumption, and records the address of the meter. The program automatically determines whether to analyze and count according to power generation, energy storage, power grid or power consumption according to the meter address correspondence table. Thus, the use of the meter with complex types is saved, and different data volumes can be distinguished according to the meter address, which not only reduces the pressure on meter maintenance, but also makes the storage of back-end data more clear and orderly. The technical problems of the existing meter type quantity and the many installation and construction restrictions are solved. BRIEF DESCRIPTION OF DRAWINGS
[0031] Figure 1 The flowchart of the data processing method for load classification energy metering provided in the embodiment of the present application is shown;
[0032] Figure 2 The structural diagram of the data processing method for load classification energy metering provided in the embodiment of the present application is shown. DETAILED DESCRIPTION
[0033] In the following, the technical solutions in the embodiments of the present application will be described clearly and completely in conjunction with the drawings in the embodiments of the present application, so that those skilled in the art can better understand the present application. Obviously, the described embodiments are only some of the embodiments of the present application, but not all the embodiments. Based on the embodiments in the present application, all other embodiments obtained by those skilled in the art without creative work are within the scope of protection of the present application.
[0034] The following is an example of the prior art:
[0035] X family installs photovoltaic power generation, is equipped with energy storage battery, can take electricity from power grid, and has air conditioner, lamp, washing machine and other electrical loads, needs to measure daily power generation, energy storage charging and discharging, power grid power supply, and electrical load power consumption.
[0036] The conventional energy metering method measures power generation, energy storage, power grid and power consumption by different types of electric meters, such as equipment IDs 1801, 1802, 1803 and 1804. At this time, the uploaded energy data is physically distinguished by equipment ID according to the equipment ID. This method requires higher installation requirements for electric meters, and needs to install and configure the address of the electric meter, and then configure the actual use of the electric meter. If it is used for measuring power generation, the equipment ID of the electric meter needs to be set to 1801. If it is used for measuring energy storage, the equipment ID of the electric meter needs to be set to 1802. Similarly, this method is difficult to operate and prone to confusion.
[0037] Please refer to Figure 1 The data processing method for load classification and energy metering provided in the embodiments of the present application comprises:
[0038] Step 101, constructing an electric meter address corresponding relationship table according to the use of the electric meter and importing it into the metering system database;
[0039] It should be noted that during the installation of the electric meter, the construction personnel need to record the electric meter address corresponding relationship table including the project where the electric meter is located, the gateway ID, the electric meter address, the use of the electric meter, etc. and import it into the system database by the technical personnel, as shown in Table 1:
[0040] Table 1
[0041] Engineering Gateway ID Meter Address Meter Purpose X Home 1 1 Generation X Home 1 3 Energy Storage X Home 1 7 Grid X Home 1 10 Consumption
[0042] In the above X family project, there is a gateway with gateway ID 1, which is connected to four electric meters with addresses 1, 3, 7 and 10, respectively, for measuring the power generation, energy storage, power grid and power consumption of the family.
[0043] Step 102, receiving the power metering data frame uploaded by the gateway, and obtaining all the electric meter devices uploading data from the gateway according to the gateway ID in the power metering data frame from the electric meter address corresponding relationship table;
[0044] It should be noted that in the specific implementation, the data frame uploaded by the gateway contains gateway ID, electric meter address, voltage, current, power, forward electric quantity, reverse electric quantity and the like. Then the server receives the data uploaded by the gateway, and queries all the electric meter devices uploading data through the gateway according to the gateway ID from the cached electric meter address corresponding relationship table.
[0045] Further, when the data processing service is first started to run, the database is queried first to obtain all the data of the database electric meter address corresponding relationship table and cache them.
[0046] Step 103, determining the purpose of each electric meter device according to the electric meter address in the power metering data frame based on the electric meter address corresponding relationship table;
[0047] It should be noted that the purpose of the electric meter is queried from the corresponding relationship table according to the electric meter address in the data frame, such as the electric meter address being 1, the electric meter is used for measuring power generation.
[0048] Step 104, distributing the voltage, current, power, forward electric quantity and reverse electric quantity data in the power metering data frame to the corresponding metering processor according to the purpose of each electric meter device, performing data analysis and statistics, and storing to the database.
[0049] It should be noted that in the specific embodiment, the server distributes the voltage, current, power, forward electric quantity and reverse electric quantity data to the data analysis and data storage services of power generation, energy storage, power grid and power consumption according to the purpose of the electric meter, and stores to the database.
[0050] Through the above method, the abstract general electric meter is realized, the electric meter address corresponding relationship table is recorded, and the engineering power generation, energy storage, power grid and power consumption energy metering can be conveniently and efficiently met.
[0051] The above is a data processing method for load classification energy metering provided in the embodiment of the application, and the following is a data processing system for load classification energy metering provided in the embodiment of the application.
[0052] Please refer to Figure 2 , a data processing system for load classification energy metering is provided in the embodiment of the application.
[0053] The establishment unit 201 is configured to construct an electric meter address corresponding relationship table according to the purpose of the electric meter and import it to the metering system database;
[0054] The acquisition unit 202 is configured to receive the power metering data frame uploaded by the gateway, and acquire all the electric meter devices uploading data from the gateway according to the gateway ID in the power metering data frame from the electric meter address correspondence table;
[0055] The analysis unit 203 is configured to determine the purpose of each electric meter device according to the electric meter address in the power metering data frame based on the electric meter address correspondence table.
[0056] The processing unit 204 is configured to store the voltage, current, power, forward electric quantity and reverse electric quantity data in the power metering data frame to the database after the data analysis and statistics by the metering processor corresponding to the purpose according to the purpose of each electric meter device.
[0057] Further, the embodiment of the present application also provides a data processing device for energy metering of load classification, the device comprising a processor and a memory:
[0058] The memory is configured to store program code and transmit the program code to the processor.
[0059] The processor is configured to execute the steps of the data processing method for energy metering of load classification according to the instructions in the program code.
[0060] Further, the embodiment of the present application also provides a computer readable storage medium, the computer readable storage medium is configured to store program code, and the program code is configured to execute the method described in the above method embodiments.
[0061] Those skilled in the art can clearly understand that, for the convenience and brevity of description, the specific working process of the above-described system and unit can refer to the corresponding process in the foregoing method embodiments, which will not be described here.
[0062] The terms "first", "second", "third", "fourth" and the like (if any) in the specification and the above drawings of the present application are used to distinguish similar objects, and do not necessarily indicate a specific order or sequence. It should be understood that the data thus used can be interchanged under appropriate circumstances, so that the embodiments of the present application described herein can be implemented in an order other than that illustrated or described herein. In addition, the terms "include" and "have" and any variations thereof are intended to cover non-exclusive inclusion, for example, a process, method, system, product or device including a series of steps or units does not necessarily limit to those steps or units clearly listed, but can include other steps or units not clearly listed or inherent to these processes, methods, products or devices.
[0063] It should be understood that, in the application, "at least one" refers to one or more, and "multiple" refers to two or more. "And / or" is used to describe the association relationship of the associated objects, which means that there can be three relationships, for example, "A and / or B" can represent three cases of only A, only B, and A and B existing at the same time, wherein A and B can be singular or plural. The character " / " generally represents an "or" relationship between the front and rear associated objects. "At least one of the following" or the like means any combination of these items, including any combination of single or multiple items. For example, at least one of a, b or c can represent a, b, c, "a and b", "a and c", "b and c", or "a and b and c", wherein a, b, and c can be single or multiple.
[0064] In several embodiments provided in the application, it should be understood that the disclosed system, device and method can be implemented in other ways. For example, the device embodiments described above are only schematic. For example, the division of the units is only a logical function division, and actual implementation can have another division manner. For example, a plurality of units or components can be combined or integrated into another system, or some features can be omitted or not executed. In addition, the coupling or direct coupling or communication connection between the units or components shown or discussed can be indirect coupling or communication connection through some interface, device or unit, and can be electrical, mechanical or other forms.
[0065] The units described as separate components can or can not be physically separated, and the components shown as units can or can not be physical units, that is, they can be located in one place, or can be distributed on a plurality of network units. Part or all of the units can be selected according to actual needs to achieve the purpose of the embodiment scheme.
[0066] In addition, each functional unit in each embodiment of the application can be integrated into a processing unit, or each unit can exist physically, or two or more units can be integrated into one unit. The integrated unit can be realized in the form of hardware or in the form of a software functional unit.
[0067] The integrated unit, if implemented in the form of a software function unit and sold or used as an independent product, can be stored in a computer readable storage medium. Based on such understanding, the technical solutions of the present application essentially or say the part that contributes to the prior art or the whole or part of the technical solutions can be embodied in the form of a software product. The computer software product is stored in a storage medium and includes a number of instructions for causing a computer device (which can be a personal computer, a server, or a network device, etc.) to execute all or part of the steps of the methods described in the various embodiments of the present application. The aforementioned storage medium includes: a U disk, a mobile hard disk, a read-only memory (English full name: Read-Only Memory, English abbreviation: ROM), a random access memory (English full name: Random Access Memory, English abbreviation: RAM), a magnetic disk or an optical disk, and various media that can store program codes.
[0068] The above-described embodiments are only used to illustrate the technical solutions of the present application, rather than limit them; although the present application has been described in detail with reference to the foregoing embodiments, those skilled in the art should understand that they can still modify the technical solutions recorded in the foregoing embodiments, or make equivalent replacements for part of the technical features; and these modifications or replacements do not make the essence of the corresponding technical solutions deviate from the spirit and scope of the technical solutions of the embodiments of the present application.
Claims
1. A data processing method for energy metering of load classification, characterized in that, The method comprises the following steps: According to the purpose of the electric meter, the electric meter address correspondence table is constructed and imported into the metering system database; Receiving the power metering data frame uploaded by the gateway, and obtaining all electric meter devices uploading data from the gateway according to the gateway ID in the power metering data frame from the electric meter address correspondence table; Based on the electric meter address correspondence table, the purpose of each electric meter device is determined according to the electric meter address in the power metering data frame; According to the purpose of each electric meter device, the voltage, current, power, forward and reverse electric quantity data in the power metering data frame are distributed to the metering processor corresponding to the purpose for data analysis and statistics, and then stored in the database.
2. The data processing method for energy metering for load classification according to claim 1, characterized in that, According to the purpose of the electric meter, the electric meter address correspondence table is constructed and imported into the metering system database, which specifically comprises: When installing the electric meter, the electric meter address correspondence table is constructed and imported into the metering system database according to the corresponding project name, gateway ID, electric meter address and electric meter purpose of the electric meter.
3. The data processing method for energy metering for load classification according to claim 1, characterized in that, After the electric meter address correspondence table is constructed and imported into the metering system database according to the purpose of the electric meter, it further comprises: When the data processing server is started for the first time, the electric meter address correspondence table in the metering system database is queried and cached for data processing.
4. The data processing method for energy metering for load classification according to claim 1, characterized in that, The purpose of the electric meter includes: power generation, energy storage, power grid and power consumption.
5. A data processing system for energy metering for load classification, characterized in that, The method comprises the following steps: The establishment unit is used to construct the electric meter address correspondence table according to the purpose of the electric meter and import it into the metering system database; The acquisition unit is used to receive the power metering data frame uploaded by the gateway, and obtain all electric meter devices uploading data from the gateway according to the gateway ID in the power metering data frame from the electric meter address correspondence table; The analysis unit is used to determine the purpose of each electric meter device based on the electric meter address correspondence table according to the electric meter address in the power metering data frame; The processing unit is used to distribute the voltage, current, power, forward and reverse electric quantity data in the power metering data frame to the metering processor corresponding to the purpose for data analysis and statistics, and then store them in the database.
6. The data processing system for energy metering for load classification according to claim 5, characterized in that, The establishment unit is specifically used to: When installing the electric meter, the electric meter address correspondence table is constructed and imported into the metering system database according to the corresponding project name, gateway ID, electric meter address and electric meter purpose of the electric meter.
7. The data processing system for energy metering for load classification as claimed in claim 5 wherein, Further comprising: The cache unit; The cache unit is used to query the electric meter address correspondence table in the metering system database and cache it for data processing when the data processing server is started for the first time.
8. The data processing system for energy metering for load classification as claimed in claim 5 wherein, The purpose of the electric meter includes: power generation, energy storage, power grid and power consumption.
9. A data processing device for energy metering for load classification, characterized in that, The device comprises a processor and a memory: The memory is used to store program code and transmit the program code to the processor; The processor is used to execute the data processing method for load classification energy metering according to the instructions in the program code.
10. A computer-readable storage medium, characterized in that, The computer readable storage medium is used to store program code, and the program code is used to execute the data processing method for load classification energy metering according to any one of claims 1-4.
Citation Information
Patent Citations
Electric quantity metering management system and electric quantity metering method
CN106645937A