A method, device, equipment and storage medium for measuring electric energy
By using the method of collecting power parameters multiple times in the power meter, the inaccurate metering problem caused by the power update cycle of the metering chip is solved, and high-precision metering is achieved when the load changes rapidly.
Patent Information
- Application Number
- CN202410164309.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-02-05
- Publication Date
- 2025-02-11
- Estimated Expiration
- 2044-02-05
AI Technical Summary
When the load of existing power meters changes rapidly, the power update cycle of the metering chip is not synchronized, resulting in inaccurate metering.
By obtaining the preset power update cycle of the power meter, the first metering chip collects detection data multiple times in each preset power update cycle to obtain the first electric energy parameters, and the second metering chip collects data in the same period to obtain the second electric energy. Parameters, determine the target electrical energy parameters of the electricity meter based on these two parameters.
It can still accurately obtain metering results when the load changes rapidly, and improve the accuracy of electrical energy measurement.
Smart Images

Figure CN118130892B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the technical field of electronic instruments, and in particular to an electric energy measurement method, device, equipment and storage medium. Background Art
[0002] An electric energy meter is an instrument used to measure electric energy, also known as an electric meter or kilowatt-hour meter. Existing electric energy meters often measure energy through dedicated metering chips, and use a single-chip microcomputer to read the electric energy of the metering chip to accumulate the electric energy or read the power of the metering chip for integral calculation to accumulate the electric energy. When there are two or more metering chips in the electric energy meter solution, it is impossible to directly read the electric energy in the metering chip to accumulate the electric energy. It is necessary to read the power of each metering chip for integral calculation to accumulate the electric energy. When accumulating electric energy, the power of each metering chip is usually read separately at the same time for calculation. However, when the power update cycles of the two metering chips are not synchronized, there is no problem in verifying the metering accuracy on the standard bench in the laboratory, but when the load changes rapidly when the meter is running on site, inaccurate metering often occurs. Summary of the invention
[0003] In order to solve the above problems, the embodiments of the present application provide an electric energy measurement method, device, equipment and storage medium.
[0004] In a first aspect, an embodiment of the present application provides a method for measuring electric energy, the method comprising:
[0005] Get the preset power update period of the electric energy meter;
[0006] Using the first metering chip to collect the detection data of the electric energy meter multiple times in each preset power update period to obtain the first electric energy parameter, and using the second metering chip to collect the detection data of the electric energy meter in the preset power update period to obtain the second electric energy parameter;
[0007] A target electric energy parameter of the electric energy meter is determined based on the first electric energy parameter and the second electric energy parameter.
[0008] Preferably, the method of acquiring the first electric energy parameter by collecting the detection data of the electric energy meter multiple times in each preset power update period using the first metering chip includes:
[0009] The first metering chip is used to collect detection data of the electric energy meter multiple times with a first sub-period as a collection period to obtain a first electric energy parameter; the first sub-period is shorter than the preset power update period.
[0010] Preferably, the detection data includes power parameters; the method of using the first metering chip to collect the detection data of the electric energy meter multiple times in each preset power update period to obtain the first electric energy parameter includes:
[0011] An average value of the power parameters collected in multiple first sub-periods is used as the first electric energy parameter.
[0012] Preferably, the detection data includes voltage parameters and current parameters; the first metering chip is used to collect the detection data of the electric energy meter multiple times in each preset power update period to obtain the first electric energy parameter, including: obtaining the first electric energy parameter using the following formula:
[0013]
[0014] Among them, a1, a2, a n are the voltage parameters or current parameters collected respectively, and n is the number of collection times corresponding to a single preset power update cycle.
[0015] Preferably, the method of acquiring the second electric energy parameter by collecting the detection data of the electric energy meter at the preset power update period using the second metering chip includes:
[0016] Using the second metering chip to collect detection data of the electric energy meter at the preset power update period; the detection data includes power parameters, voltage parameters and current parameters;
[0017] The power parameter, the voltage parameter and the current parameter are determined as the second electric energy parameter.
[0018] Preferably, the determining the target electric energy parameter of the electric energy meter based on the first electric energy parameter and the second electric energy parameter includes:
[0019] The target electric energy parameter of the electric energy meter is determined by performing calculations based on the power parameter, the current parameter and the voltage parameter.
[0020] Preferably, the determining the target electric energy parameter of the electric energy meter based on the first electric energy parameter and the second electric energy parameter includes:
[0021] The target electric energy parameter of the electric energy meter is determined based on the average value of the first electric energy parameter and the second electric energy parameter and the following formula:
[0022] E = P × AT;
[0023] Wherein, P represents the average power value, and ΔT represents the preset power integration period.
[0024] In a second aspect, an embodiment of the present application provides an electric energy measurement device, the device comprising:
[0025] An acquisition module, used to acquire a preset power update period of the electric energy meter;
[0026] A collection module, used to use the first metering chip to collect the detection data of the electric energy meter multiple times in each preset power update period to obtain a first electric energy parameter, and use the second metering chip to collect the detection data of the electric energy meter in the preset power update period to obtain a second electric energy parameter;
[0027] A determination module is used to determine a target electric energy parameter of the electric energy meter based on the first electric energy parameter and the second electric energy parameter.
[0028] In a third aspect, an embodiment of the present application provides an electronic device, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein when the processor executes the computer program, the steps of the method provided in the first aspect or any possible implementation of the first aspect are implemented.
[0029] In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements the method provided in the first aspect or any possible implementation manner of the first aspect.
[0030] The beneficial effects of the present invention are as follows: different metering chips are used to collect detection data of the electric energy meter multiple times at different collection frequencies within each preset power update cycle to obtain corresponding electric energy parameters, wherein the collection cycle of one metering chip is the same as the preset power update cycle of the electric energy meter, and the collection cycle of another metering chip is less than the preset power update cycle of the electric energy meter, but the superposition of multiple sampling cycles coincides with the preset power update cycle of the electric energy meter, thereby achieving data synchronization, and determining the target electric energy parameters of the electric energy meter based on the synchronized data, ensuring that the metering results can be accurately obtained even when the load changes rapidly, thereby greatly improving the measurement accuracy. BRIEF DESCRIPTION OF THE DRAWINGS
[0031] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings required for use in the embodiments will be briefly introduced below. 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 paying creative work.
[0032] Figure 1 A schematic diagram of a flow chart of an electric energy measurement method provided in an embodiment of the present application;
[0033] Figure 2 A schematic diagram of the structure of an electric energy measuring device provided in an embodiment of the present application;
[0034] Figure 3 A schematic diagram of the structure of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0035] The technical solutions in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application.
[0036] In the following introduction, the terms "first" and "second" are used for descriptive purposes only and should not be understood as indicating or implying relative importance. The following introduction provides multiple embodiments of the present application, and different embodiments can be replaced or combined, so the present application can also be considered to include all possible combinations of the same and / or different embodiments recorded. Therefore, if one embodiment includes features A, B, and C, and another embodiment includes features B and D, then the present application should also be considered to include embodiments containing one or more of all other possible combinations of A, B, C, and D, although the embodiment may not be clearly recorded in the following text.
[0037] The following description provides examples and does not limit the scope, applicability or examples set forth in the claims. Changes may be made to the functions and arrangements of the elements described without departing from the scope of the present application. Various processes or components may be appropriately omitted, substituted or added to each example. For example, the described method may be performed in an order different from the order described, and various steps may be added, omitted or combined. In addition, features described in some examples may be combined in other examples.
[0038] See also Figure 1 , Figure 1 : is a flow chart of an electric energy measurement method provided in an embodiment of the present application. In the embodiment of the present application, the method includes:
[0039] Step S110, obtaining a preset power update period of the electric energy meter.
[0040] In this embodiment, at least two types of metering chips are used to detect power-related data, and the difference between the at least two types of metering chips is that the detection frequencies of the two types are different. The metering period of one type of metering chip is an integer multiple or close to an integer multiple of the metering period of the other type of metering chip, and thus, the larger metering period is determined as the preset power update period of the electric energy meter.
[0041] Step S120: using the first metering chip to collect detection data of the electric energy meter multiple times in each preset power update period to obtain a first electric energy parameter, and using the second metering chip to collect detection data of the electric energy meter in the preset power update period to obtain a second electric energy parameter.
[0042] In this embodiment, within a preset power update cycle, the first metering chip can be used to collect detection data of the electric energy meter multiple times, and the second metering chip can be used to collect detection data of the electric energy meter once. Both complete a measurement at the end of the preset power update cycle, thereby achieving data synchronization.
[0043] In one possible implementation, step S120, using the first metering chip to collect detection data of the electric energy meter multiple times in each preset power update period to obtain the first electric energy parameter, includes:
[0044] The first metering chip is used to collect detection data of the electric energy meter multiple times with the first sub-period as the collection period to obtain the first electric energy parameter; the first sub-period is less than the preset power update period.
[0045] In this embodiment, the metering period of the second metering chip is greater than the metering period of the first metering chip. Exemplarily, the metering period of the second metering chip is T2 as the preset power update period, and the first sub-period corresponding to the first metering chip is T1, then the two satisfy T2=k×T1, k is a positive integer. Correspondingly, the first metering chip collects the detection data of the electric energy meter k times in each preset power update period.
[0046] In one possible implementation, the detection data includes a power parameter; and the first metering chip is used to collect the detection data of the electric energy meter multiple times in each preset power update cycle to obtain the first electric energy parameter, including:
[0047] An average value of power parameters collected in multiple first sub-periods is used as the first electric energy parameter.
[0048] In this embodiment, the power parameters collected in different sub-periods may be different. Therefore, the power parameters collected in multiple first sub-periods are accumulated and averaged, and the average value is used as the first electric energy parameter, thereby reducing accidental errors and improving measurement accuracy.
[0049] In one possible implementation, the detection data includes voltage parameters and current parameters; step S120, using the first metering chip to collect the detection data of the electric energy meter multiple times in each preset power update period to obtain the first electric energy parameter, including: using the following formula to obtain the first electric energy parameter:
[0050]
[0051] Among them, a1, a2, a n are the voltage parameters or current parameters collected respectively, and n is the number of collection times corresponding to a single preset power update cycle.
[0052] Because the output of the voltage and current measurement chip is an effective value, its measurement method is different from the power measurement method. Here, the voltage parameters and current parameters are determined by the above formula. According to the energy calculation formula, the power parameters can be easily determined by the voltage parameters and current parameters.
[0053] In one possible implementation, step S120, using the second metering chip to collect detection data of the electric energy meter at a preset power update period to obtain a second electric energy parameter, includes:
[0054] The second metering chip is used to collect detection data of the electric energy meter at a preset power update period; the detection data includes power parameters, voltage parameters and current parameters;
[0055] A power parameter, a voltage parameter and a current parameter are determined as second electrical energy parameters.
[0056] Since the second metering chip collects the electric energy meter data only once in a preset power update cycle, the collected power parameters, voltage parameters and current parameters can be directly determined as the second electric energy parameters, and the electric quantity parameters can be obtained through the energy calculation formula.
[0057] Step S130: determining a target electric energy parameter of the electric energy meter based on the first electric energy parameter and the second electric energy parameter.
[0058] In this embodiment, the average of the calculation results of the first electric energy parameter and the second electric energy parameter is used as the target electric energy parameter.
[0059] In one possible implementation, step S130, determining a target electric energy parameter of the electric energy meter based on the first electric energy parameter and the second electric energy parameter, includes:
[0060] The target electric energy parameters of the electric energy meter are determined by performing calculations based on the power parameters, current parameters and voltage parameters.
[0061] In this embodiment, the current parameter, voltage parameter or power parameter can be used to calculate and determine the target electric energy parameter of the electric energy meter, that is, the corresponding electric quantity data. Here, it can include calculating the data of multiple first sub-periods within a preset power update cycle and calculating the data within multiple preset power update cycles.
[0062] In one possible implementation, step S130, determining a target electric energy parameter of the electric energy meter based on the first electric energy parameter and the second electric energy parameter, includes:
[0063] The target electric energy parameter of the electric energy meter is determined based on the average value of the first electric energy parameter and the second electric energy parameter and the following formula:
[0064] E = P × AT;
[0065] Wherein, P represents the average power value, and ΔT represents the preset power integration period.
[0066] In this embodiment, taking power parameters as an example, a target power parameter of a preset power update cycle or a first sub-cycle can be determined. It should be noted that the target power parameter of the power meter can also be determined by the formula E=UI×ΔT, where U represents the voltage parameter and I represents the current parameter.
[0067] In a specific example, the metering period T1 corresponding to the first metering chip (exemplarily, such as Renergy RN8215) is about 71.111ms, and the metering period T2 of the second metering chip (exemplarily, such as Wangao V9240) is 640ms. The program designs a 1 / 2048 second (0.4882ms) timer, which reads the power, voltage, current and other metering data of the first metering chip once every 146 times, about 71.289ms. After the 9th reading of the data of the first metering chip is completed in 9 consecutive times, the metering data of the second metering chip is read once, that is, the metering data of the second metering chip is read once in 641.601ms. The first metering chip completes 9 data collections, and the power data read 9 times is accumulated and divided by 9 to obtain the average value. The formula for the power average value is: (P1+P2+…P9)÷9, P1, P2…P9 represent 9 consecutive power values obtained according to the metering update period; the voltage average value calculation formula is: The calculation method of the current average value is the same as that of the voltage. Based on the collected two-way metering data, a series of operations such as power direction judgment, four-quadrant judgment, starting current judgment, power error compensation, bypass judgment, instantaneous quantity sampling data conversion into actual effective value, frequency calculation, angle calculation, metering mode judgment, etc. can be performed, and then the power integral calculation is performed according to the power value to accumulate the electric energy. Specifically: Taking active energy measurement as an example, the pulse equivalent of the energy meter is: 1kWh÷pulse constant; the integral period electric energy accumulation calculation formula is: E=P×ΔT; P: represents power, ΔT: integral period, which represents 1 / 2048 of a second (0.4882 milliseconds) in this example; in this example, the pulse constant can be 1000, then a pulse equivalent is 1Wh or 3600Ws. In the program, an energy accumulation register a is opened, and the power value read is accumulated into a every 1 / 2048 second (0.4882 milliseconds). When the value of a is greater than or equal to a pulse equivalent, the energy is increased by 0.001 kWh, and a minus a pulse equivalent value is accumulated to start accumulation. In this way, the energy accumulation is completed by cyclic accumulation. It should be noted that the above execution operations can be realized through the preset program, which will not be described one by one.
[0068] The embodiment of the present application obtains corresponding electric energy parameters by utilizing different metering chips to collect detection data of the electric energy meter multiple times at different collection frequencies within each preset power update cycle. The collection cycle of one metering chip is the same as the preset power update cycle of the electric energy meter, and the collection cycle of the other metering chip is less than the preset power update cycle of the electric energy meter. However, after the multiple sampling cycles are superimposed, they coincide with the preset power update cycle of the electric energy meter, thereby achieving data synchronization, and determining the target electric energy parameters of the electric energy meter based on the synchronized data, ensuring that the metering results can be accurately obtained even when the load changes rapidly, thereby greatly improving the accuracy of electric energy measurement.
[0069] The above is a description of a specific embodiment of the specification. Other embodiments are within the scope of the appended claims. In some cases, the actions or steps recorded in the claims can be performed in an order different from that in the embodiments and still achieve the desired results. In addition, the processes depicted in the drawings do not necessarily require the specific order or continuous order shown to achieve the desired results. In some embodiments, multitasking and parallel processing are also possible or may be advantageous.
[0070] See next Figure 2 , Figure 2 The structure diagram of an electric energy measuring device provided in the embodiment of this specification is shown. It should be noted that: Figure 2 The electric energy measuring device shown is used to implement the present application Figure 1 For the convenience of explanation, only the part related to the embodiment of the present application is shown. For the specific technical details not disclosed, please refer to the present application. Figure 1 The embodiment shown.
[0071] like Figure 2 As shown, the electric energy measuring device 200 comprises:
[0072] An acquisition module 210 is used to acquire a preset power update period of the electric energy meter;
[0073] The acquisition module 220 is used to acquire the detection data of the electric energy meter multiple times in each preset power update period using the first metering chip to obtain the first electric energy parameter, and to acquire the detection data of the electric energy meter in the preset power update period using the second metering chip to obtain the second electric energy parameter;
[0074] The determination module 230 is used to determine the target electric energy parameter of the electric energy meter based on the first electric energy parameter and the second electric energy parameter.
[0075] In one possible implementation, the acquisition module 220 is specifically used for:
[0076] The first metering chip is used to collect detection data of the electric energy meter multiple times with the first sub-period as the collection period to obtain the first electric energy parameter; the first sub-period is less than the preset power update period.
[0077] In one embodiment, the detection data includes power parameters; the acquisition module 220 is specifically used for:
[0078] An average value of power parameters collected in multiple first sub-periods is used as the first electric energy parameter.
[0079] In one possible implementation, the detection data includes voltage parameters and current parameters; the acquisition module 220 is specifically used to obtain the first electric energy parameter using the following formula:
[0080]
[0081] Among them, a1, a2, a n are the voltage parameters or current parameters collected respectively, and n is the number of collection times corresponding to a single preset power update cycle.
[0082] In one possible implementation, the acquisition module 220 is specifically used for:
[0083] The second metering chip is used to collect detection data of the electric energy meter at a preset power update period; the detection data includes power parameters, voltage parameters and current parameters;
[0084] A power parameter, a voltage parameter and a current parameter are determined as second electrical energy parameters.
[0085] In one possible implementation, the determination module 230 is specifically configured to:
[0086] The target electric energy parameters of the electric energy meter are determined by performing calculations based on the power parameters, current parameters and voltage parameters.
[0087] In one possible implementation, the determination module 230 is specifically configured to:
[0088] The target electric energy parameter of the electric energy meter is determined based on the average value of the first electric energy parameter and the second electric energy parameter and the following formula:
[0089] E = P × ΔT;
[0090] Wherein, P represents the average power value, and ΔT represents the preset power integration period.
[0091] Those skilled in the art can clearly understand that the technical solutions of the embodiments of the present application can be implemented with the help of software and / or hardware. The "unit" and "module" in this specification refer to software and / or hardware that can independently complete or cooperate with other components to complete specific functions, where the hardware can be, for example, a field programmable gate array (Field-Programmable Gate Array, FPGA), an integrated circuit (Integrated Circuit, IC), etc.
[0092] Each processing unit and / or module of the embodiments of the present application may be implemented by an analog circuit that implements the functions described in the embodiments of the present application, or may be implemented by software that executes the functions described in the embodiments of the present application.
[0093] See also Figure 3 , which shows a schematic diagram of the structure of an electronic device involved in an embodiment of the present application, the electronic device can be used to implement Figure 1 The method in the embodiment shown. Figure 3 As shown, the electronic device 300 may include: at least one central processor 301 , at least one network interface 304 , a user interface 303 , a memory 305 , and at least one communication bus 302 .
[0094] The communication bus 302 is used to realize the connection and communication between these components.
[0095] The user interface 303 may include a display screen (Display) and a camera (Camera). The optional user interface 303 may also include a standard wired interface and a wireless interface.
[0096] The network interface 304 may optionally include a standard wired interface or a wireless interface (such as a WI-FI interface).
[0097] Among them, the central processing unit 301 may include one or more processing cores. The central processing unit 301 uses various interfaces and lines to connect various parts of the entire electronic device 300, and executes various functions and processes data of the terminal 300 by running or executing instructions, programs, code sets or instruction sets stored in the memory 305, and calling data stored in the memory 305. Optionally, the central processing unit 301 can be implemented in at least one hardware form of digital signal processing (Digital Signal Processing, DSP), field programmable gate array (Field-Programmable Gate Array, FPGA), and programmable logic array (Programmable Logic Array, PLA). The central processing unit 301 can integrate one or a combination of a central processing unit (Central Processing Unit, CPU), a graphics central processing unit (Graphics Processing Unit, GPU) and a modem. Among them, the CPU mainly processes the operating system, user interface and application programs; the GPU is responsible for rendering and drawing the content to be displayed on the display screen; the modem is used to process wireless communication. It can be understood that the above-mentioned modem may not be integrated into the central processing unit 301, and it can be implemented separately through a chip.
[0098] Among them, the memory 305 may include a random access memory (Random Access Memory, RAM) and may also include a read-only memory (Read-Only Memory). Optionally, the memory 305 includes a non-transitory computer-readable storage medium. The memory 305 can be used to store instructions, programs, codes, code sets or instruction sets. The memory 305 may include a program storage area and a data storage area, wherein the program storage area may store instructions for implementing an operating system, instructions for at least one function (such as a touch function, a sound playback function, an image playback function, etc.), instructions for implementing the above-mentioned method embodiments, etc.; the data storage area may store data involved in the above-mentioned method embodiments, etc. The memory 305 may optionally be at least one storage device located away from the aforementioned central processor 301. As Figure 3 As shown, the memory 305 as a computer storage medium may include an operating system, a network communication module, a user interface module, and program instructions.
[0099] The present application also provides a computer-readable storage medium on which a computer program is stored, and when the program is executed by a processor, the steps of the above method are implemented. The computer-readable storage medium may include, but is not limited to, any type of disk, including a floppy disk, an optical disk, a DVD, a CD-ROM, a micro drive, and a magneto-optical disk, a ROM, a RAM, an EPROM, an EEPROM, a DRAM, a VRAM, a flash memory device, a magnetic card or an optical card, a nanosystem (including a molecular memory IC), or any type of medium or device suitable for storing instructions and / or data.
[0100] It should be noted that, for the aforementioned method embodiments, for the sake of simplicity, they are all expressed as a series of action combinations, but those skilled in the art should be aware that the present application is not limited by the described order of actions, because according to the present application, certain steps can be performed in other orders or simultaneously. Secondly, those skilled in the art should also be aware that the embodiments described in the specification are all preferred embodiments, and the actions and modules involved are not necessarily required by the present application.
[0101] In the above embodiments, the description of each embodiment has its own emphasis. For parts that are not described in detail in a certain embodiment, reference can be made to the relevant descriptions of other embodiments.
[0102] In the several embodiments provided in the present application, it should be understood that the disclosed devices can be implemented in other ways. For example, the device embodiments described above are only schematic, such as the division of the units, which is only a logical function division. There may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some service interfaces, and the indirect coupling or communication connection of devices or units can be electrical or other forms.
[0103] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
[0104] In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of software functional units.
[0105] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable memory. Based on this understanding, the technical solution of the present application is essentially or the part that contributes to the prior art or all or part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a memory, including a number of instructions to enable a computer device (which can be a personal computer, server or network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present application. The aforementioned memory includes: U disk, read-only memory (ROM), random access memory (RAM), mobile hard disk, disk or optical disk and other media that can store program code.
[0106] A person skilled in the art may understand that all or part of the steps in the various methods of the above embodiments may be completed by entering a program to instruct the relevant hardware. The program may be stored in a computer-readable memory, and the memory may include: a flash drive, a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk, etc.
[0107] The above is only an exemplary embodiment of the present disclosure, and the scope of the present disclosure cannot be limited thereto. That is, any equivalent changes and modifications made according to the teachings of the present disclosure are still within the scope of the present disclosure. After considering the specification and practicing the disclosure here, those skilled in the art will easily think of the implementation scheme of the present disclosure. This application is intended to cover any modification, use or adaptation of the present disclosure, which follows the general principles of the present disclosure and includes common knowledge or customary technical means in the technical field not recorded in the present disclosure. The description and examples are regarded as exemplary only, and the scope and spirit of the present disclosure are defined by the claims.
Claims
1. A method for measuring electric energy, characterized in that: include: Get the preset power update period of the electric energy meter; Using the first metering chip to collect the detection data of the electric energy meter multiple times in each preset power update period to obtain the first electric energy parameter, and using the second metering chip to collect the detection data of the electric energy meter in the preset power update period to obtain the second electric energy parameter; determining a target electric energy parameter of the electric energy meter based on the first electric energy parameter and the second electric energy parameter; The determining the target electric energy parameter of the electric energy meter based on the first electric energy parameter and the second electric energy parameter includes: The target electric energy parameter of the electric energy meter is determined based on the average value of the first electric energy parameter and the second electric energy parameter and the following formula: E = P × ΔT; Wherein, P represents the average power value, and ΔT represents the preset power integration period; The first metering chip and the second metering chip both complete a metering operation at the end of a preset power update cycle, thereby achieving data synchronization; The method of using the first metering chip to collect the detection data of the electric energy meter multiple times in each preset power update period to obtain the first electric energy parameter includes: The first metering chip is used to collect the detection data of the electric energy meter for multiple times with a first sub-period as a collection period to obtain a first electric energy parameter; the first sub-period is shorter than the preset power update period; The detection data includes power parameters; the first metering chip is used to collect the detection data of the electric energy meter multiple times in each preset power update period to obtain the first electric energy parameter, including: taking an average value of the power parameters collected in multiple first sub-periods as a first electric energy parameter; The detection data includes voltage parameters and current parameters; the first metering chip is used to collect the detection data of the electric energy meter multiple times in each preset power update period to obtain the first electric energy parameter, including: using the following formula to obtain the first electric energy parameter: Among them, a1, a2, a n are the voltage parameters or current parameters collected respectively, and n is the number of collection times corresponding to a single preset power update cycle; The method of acquiring the second electric energy parameter by collecting the detection data of the electric energy meter at the preset power update period using the second metering chip includes: Using the second metering chip to collect detection data of the electric energy meter at the preset power update period; the detection data includes power parameters, voltage parameters and current parameters; The power parameter, the voltage parameter and the current parameter are determined as the second electric energy parameter.
2. The method according to claim 1, characterized in that The determining the target electric energy parameter of the electric energy meter based on the first electric energy parameter and the second electric energy parameter includes: The target electric energy parameter of the electric energy meter is determined by performing calculations based on the power parameter, the current parameter and the voltage parameter.
3. An electric energy measuring device, characterized in that: include: An acquisition module, used to acquire a preset power update period of the electric energy meter; A collection module, used to use the first metering chip to collect the detection data of the electric energy meter multiple times in each preset power update period to obtain a first electric energy parameter, and use the second metering chip to collect the detection data of the electric energy meter in the preset power update period to obtain a second electric energy parameter; a determination module, configured to determine a target electric energy parameter of the electric energy meter based on the first electric energy parameter and the second electric energy parameter; The determining the target electric energy parameter of the electric energy meter based on the first electric energy parameter and the second electric energy parameter includes: The target electric energy parameter of the electric energy meter is determined based on the average value of the first electric energy parameter and the second electric energy parameter and the following formula: E = P × ΔT; Wherein, P represents the average power value, and ΔT represents the preset power integration period; The first metering chip and the second metering chip both complete a metering operation at the end of a preset power update cycle, thereby achieving data synchronization; The method of using the first metering chip to collect the detection data of the electric energy meter multiple times in each preset power update period to obtain the first electric energy parameter includes: The first metering chip is used to collect the detection data of the electric energy meter for multiple times with a first sub-period as a collection period to obtain a first electric energy parameter; the first sub-period is shorter than the preset power update period; The detection data includes power parameters; the first metering chip is used to collect the detection data of the electric energy meter multiple times in each preset power update period to obtain the first electric energy parameter, including: taking an average value of the power parameters collected in multiple first sub-periods as a first electric energy parameter; The detection data includes voltage parameters and current parameters; the first metering chip is used to collect the detection data of the electric energy meter multiple times in each preset power update period to obtain the first electric energy parameter, including: using the following formula to obtain the first electric energy parameter: Among them, a1, a2, a n are the voltage parameters or current parameters collected respectively, and n is the number of collection times corresponding to a single preset power update cycle; The method of acquiring the second electric energy parameter by collecting the detection data of the electric energy meter at the preset power update period using the second metering chip includes: Using the second metering chip to collect detection data of the electric energy meter at the preset power update period; the detection data includes power parameters, voltage parameters and current parameters; The power parameter, the voltage parameter and the current parameter are determined as the second electric energy parameter.
4. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that: When the processor executes the computer program, the steps of the method according to any one of claims 1 to 2 are implemented.
5. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 2 are implemented.
Citation Information
Patent Citations
Vehicle-mounted multi-sensor synchronization method, device and equipment and storage medium
CN115134030A
Three-phase electric energy meter
CN202661545U