Electric energy metering method and device and related product

By using signal decomposition algorithm and single-week metering cycle method in electrical energy measurement, the frequency components of voltage and current signals are extracted, and the accuracy of electrical energy measurement in the existing technology is solved, and a comprehensive evaluation of electrical energy quality is achieved. and improve.

CN119178931APending Publication Date: 2024-12-24POWER SUPPLY SERVICE & MANAGEMENT CENT STATE GRID JIANGXI ELECTRIC POWER CO LTD +1
View PDF 0 Cites 3 Cited by

Patent Information

Application Number
CN202411278831.5
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-09-12
Publication Date
2024-12-24

AI Technical Summary

Technical Problem

The existing power metering method has a single metering dimension in modern power systems, which is difficult to meet the accuracy requirements in complex power consumption environments and dynamic scenarios. Especially when the load current changes rapidly and the tide direction changes frequently, it is easy to lead to power accumulation errors.

Method used

A power metering method is adopted to obtain voltage and current sampling data for synchronous sampling, and a signal decomposition algorithm is used to extract fundamental, harmonic and inter harmonic frequency components, calculate the electrical energy of each frequency wave, and perform the measurement period with a single-week wave. Electric energy calculation ensures accurate judgment and accumulation of the direction of the electrical energy.

Benefits of technology

It realizes the measurement of electricity from the time domain and frequency domain, improves the accuracy and applicability of electricity calculation, can accurately calculate the total electricity in dynamic scenarios, adapt to complex electricity usage environments, and fully understand the time and frequency dimensions of electricity The performance on the market supports the comprehensive assessment of power quality.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119178931A_ABST
    Figure CN119178931A_ABST
Patent Text Reader

Abstract

The invention relates to the technical field of electric energy metering, and discloses an electric energy metering method and device and a related product. The method comprises the following steps: acquiring voltage and current sampling data in multiple cycles; performing signal decomposition on the voltage and current sampling data by using a preset signal decomposition algorithm to obtain voltage and current frequency components; for any target component in the voltage frequency components, calculating the dot product sum between the current frequency components with the same frequency as the target component to obtain target electric energy; generating an electric energy metering result according to each target electric energy; the dot product sum between the voltage sampling data and the current sampling data is calculated with the single-cycle waves as the metering period, and electric energy of all the single-cycle waves is obtained; positive and negative electric energy sets are obtained after classification; and adding the elements in the set to obtain total full-wave electric energy. According to the invention, a set of complete electric energy metering scheme is provided, electric energy metering can be carried out from two dimensions of time domain and frequency domain, and detailed basis and direction are provided for improving electric energy quality.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present disclosure relates to the technical field of electric energy metering, and in particular to an electric energy metering method, device and related products. Background Art

[0002] With the continuous development of science and technology and the increasing complexity of power systems, various new types of power-consuming equipment are constantly emerging, and the power consumption environment is becoming more and more complex and diverse. In order to ensure the stable operation and efficient utilization of modern power systems, it is very important to develop a complete set of power metering solutions.

[0003] The existing electric energy metering methods mainly include full-wave electric energy metering method and fundamental wave electric energy metering method. The metering dimensions of these electric energy methods are relatively single and it is difficult to meet the needs of modern power systems. Therefore, it is urgent to solve this technical problem. Summary of the invention

[0004] In view of the above situation, the embodiments of the present disclosure provide an electric energy metering method, device and related products, aiming to solve the above problems or at least partially solve the above problems.

[0005] In a first aspect, an embodiment of the present disclosure provides an electric energy metering method, the method comprising:

[0006] Acquire voltage sampling data and current sampling data within a preset number of cycles, wherein the voltage sampling data and the current sampling data are obtained by synchronously sampling the voltage signal and the current signal of the target to be measured;

[0007] Using a preset signal decomposition algorithm, the voltage sampling data is subjected to signal decomposition to obtain a voltage frequency component; and the current sampling data is subjected to signal decomposition to obtain a current frequency component; wherein the voltage frequency component and the current frequency component include at least one of the following waves: a fundamental wave, a harmonic, and an interharmonic;

[0008] For any target component in the voltage frequency component, calculate the dot product sum of the target component and the current frequency component with the same frequency as the target component to obtain the target electric energy generated by the wave corresponding to the target component;

[0009] Generate an electric energy measurement result according to each of the target electric energies, wherein the electric energy measurement result includes at least one of the following: fundamental wave total electric energy, harmonic total electric energy, and interharmonic total electric energy;

[0010] Taking a single cycle as a measurement period, calculating the dot product sum between the voltage sampling data and the current sampling data to obtain a preset number of single-cycle electric energies;

[0011] Classifying the preset number of single-cycle electric energies to obtain a positive electric energy set and a negative electric energy set;

[0012] Each element in the positive electric energy set and the negative electric energy set is added together to obtain the total full-wave electric energy; the electric energy measurement result and the total full-wave electric energy are used as the final electric energy measurement result.

[0013] In a second aspect, an embodiment of the present disclosure further provides an electric energy metering device, the device comprising:

[0014] An acquisition module, used for acquiring voltage sampling data and current sampling data within a preset number of cycles, wherein the voltage sampling data and the current sampling data are obtained by synchronously sampling the voltage signal and the current signal of the target to be measured;

[0015] A decomposition module, used to perform signal decomposition on the voltage sampling data using a preset signal decomposition algorithm to obtain a voltage frequency component; and to perform signal decomposition on the current sampling data to obtain a current frequency component; wherein the voltage frequency component and the current frequency component include at least one of the following waves: a fundamental wave, a harmonic, and an interharmonic;

[0016] A first metering module is used to calculate, for any target component in the voltage frequency component, the target component and the dot product sum of the current frequency component with the same frequency as the target component, to obtain the target electric energy generated by the wave corresponding to the target component; and generate an electric energy metering result according to each of the target electric energies, wherein the electric energy metering result includes at least one of the following: total fundamental wave electric energy, total harmonic electric energy, and total interharmonic electric energy;

[0017] A second metering module is used to calculate the dot product sum between the voltage sampling data and the current sampling data with a single cycle as the metering period to obtain a preset number of single-cycle electric energies;

[0018] A classification module, used for classifying the preset number of single-cycle electric energies to obtain a positive electric energy set and a negative electric energy set;

[0019] The third metering module adds the elements in the positive electric energy set and the negative electric energy set to obtain the total full-wave electric energy; and uses the electric energy metering result and the total full-wave electric energy as the final electric energy metering result.

[0020] In a third aspect, an embodiment of the present disclosure further provides an electronic device, comprising: a processor; and a memory arranged to store computer executable instructions, wherein when the executable instructions are executed, the processor executes the steps of the above-mentioned electric energy metering method.

[0021] In a fourth aspect, an embodiment of the present disclosure further provides a computer-readable storage medium, which stores one or more programs. When the one or more programs are executed by an electronic device including multiple application programs, the electronic device executes the steps of the above-mentioned electric energy metering method.

[0022] In a fifth aspect, an optional implementation of the present disclosure further provides a computer program product, wherein the computer program product carries a program code, and the program code includes instructions that can be used to execute the steps of the electric energy metering method as described in the first aspect.

[0023] By means of the above technical scheme, the electric energy metering method, device and related products provided by the embodiment of the present disclosure propose a complete electric energy metering scheme, which can measure electric energy from two dimensions, time domain and frequency domain. Specifically, for the frequency domain dimension, the signal decomposition algorithm is used to process the voltage and current sampling data, and the frequency components in the voltage sampling data and the current sampling data can be extracted respectively; then the dot product sum between the voltage frequency component and the current frequency component with the same frequency is calculated, so that the electric energy corresponding to each frequency wave can be determined, and these electric energies are classified and summarized to obtain at least one independent electric energy among the total fundamental wave electric energy, the total harmonic electric energy and the total interharmonic electric energy. For the time domain dimension, considering that in the actual operation of the power system, a series of extremely challenging dynamic scenarios often appear, such as rapid changes in load current, frequent changes in flow direction and low power factor. In these scenarios, the traditional long-cycle electric energy metering method is often difficult to capture every instantaneous change, which leads to accumulation in the wrong direction when accumulating electric energy, thereby affecting the accuracy of the final total electric energy. Therefore, this embodiment measures electric energy with a single cycle as the metering period, and the time of a single cycle is extremely short, so that the voltage and current signals can be timely calculated and the direction judged within each single cycle. Once the direction of the electric energy changes, a quick response can be made in the metering of the next single cycle, thereby greatly avoiding the problem of electric energy accumulation errors caused by errors in the direction of the electric energy, thereby ensuring that a relatively accurate total electric energy can be calculated when the power system is in a dynamic scenario. By combining the two, the accurate measurement of electric energy in both transient and steady-state conditions can be taken into account, and the errors that may exist in a single algorithm can be compensated for each other, thereby greatly improving the accuracy of electric energy calculation; it can adapt to various complex power consumption environments and different types of power consumption equipment, so that the electric energy calculation scheme has a wider applicability; it can fully understand the performance of electric energy in the two key dimensions of time and frequency. Thus, a comprehensive evaluation of the power quality is carried out, providing a detailed basis and direction for improving the power quality.

[0024] The above description is only an overview of the technical solution of the present disclosure. In order to more clearly understand the technical means of the present disclosure, it can be implemented according to the contents of the specification. In order to make the above and other purposes, features and advantages of the present disclosure more obvious and easy to understand, the specific implementation methods of the present disclosure are listed below. BRIEF DESCRIPTION OF THE DRAWINGS

[0025] The drawings described herein are used to provide a further understanding of the present disclosure and constitute a part of the present disclosure. The illustrative embodiments of the present disclosure and their descriptions are used to explain the present disclosure and do not constitute an improper limitation on the present disclosure. In the drawings:

[0026] Figure 1 A schematic diagram of a flow chart of an electric energy metering method provided by an embodiment of the present disclosure is shown;

[0027] Figure 2 A schematic diagram showing waveforms of fundamental wave, harmonic wave and interharmonic wave signals provided by an embodiment of the present disclosure is shown;

[0028] Figure 3 A schematic diagram of a waveform of a combined superposition wave of a fundamental wave, a harmonic wave, and an interharmonic wave provided by an embodiment of the present disclosure is shown;

[0029] Figure 4 A schematic diagram of the structure of an electric energy metering device provided by an embodiment of the present disclosure is shown;

[0030] Figure 5 A schematic structural diagram of an electronic device provided by an embodiment of the present disclosure is shown. DETAILED DESCRIPTION

[0031] In order to make the purpose, technical solutions and advantages of the present disclosure clearer, the technical solutions of the present disclosure will be clearly and completely described below in combination with the specific embodiments of the present disclosure and the corresponding drawings. Obviously, the described embodiments are only part of the embodiments of the present disclosure, not all of the embodiments. Based on the embodiments in the present disclosure, all other embodiments obtained by ordinary technicians in this field without making creative work are within the scope of protection of the present disclosure.

[0032] It should be noted that similar reference numerals and letters denote similar items in the following drawings, and therefore, once an item is defined in one drawing, further definition and explanation thereof is not required in subsequent drawings.

[0033] It should be noted that the terms "first", "second", etc. in the specification and claims of the present disclosure and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that such usage is interchangeable where appropriate, so that the embodiments of the present disclosure described herein can be implemented in an order other than those illustrated or described herein. In addition, the term "including" and its variants are to be interpreted as open-ended terms meaning "including but not limited to".

[0034] As mentioned above, in the field of power systems, measuring the electric energy corresponding to each component such as fundamental wave, harmonics and interharmonics respectively plays a vital role in many aspects such as energy consumption assessment, efficiency improvement, equipment maintenance, power quality management, market transactions, compliance with regulations and integration of renewable energy in power systems. The electric energy metering method in the prior art can only calculate the electric energy of the fundamental wave, without taking into account the electric energy of other frequency components. Based on this, the present invention proposes an electric energy metering method, device and related products, and the present disclosure is described in detail through specific embodiments below.

[0035] To facilitate understanding of this embodiment, a method for measuring electric energy disclosed in an embodiment of the present disclosure is first introduced in detail. The execution subject of the method for measuring electric energy provided in an embodiment of the present disclosure is generally a computer device with certain computing capabilities, and the computer device includes, for example: a terminal device or a server or other processing device, and the terminal device may be a user equipment (UE), a mobile device, a user terminal, a terminal, a personal digital assistant (PDA), a handheld device, a computing device, etc. In some possible implementations, the method for measuring electric energy may be implemented by a processor calling a computer-readable instruction stored in a memory.

[0036] Figure 1 The schematic diagram of the flow chart of the electric energy metering method provided by the embodiment of the present disclosure is shown. Figure 1 It can be seen that the embodiment of the present disclosure at least includes steps S101-S107:

[0037] S101: Acquire voltage sampling data and current sampling data within a preset number of cycles, wherein the voltage sampling data and the current sampling data are obtained by synchronously sampling a voltage signal and a current signal of a target to be measured.

[0038] Here, the preset number can be set according to actual needs, and this embodiment does not limit this. For example, the preset number can be 10, and each cycle is a fundamental frequency period.

[0039] The target to be measured can be any object that needs to be measured for electric energy. In specific implementation, the target to be measured can be, for example, residential users (single household or residents of an entire residential building), industrial users (the entire factory or a specific production line or equipment in the factory), commercial users (the entire shopping mall, office building, or a specific floor inside), power plants (the entire power plant or each unit or substation inside the power plant), etc. This embodiment does not limit this.

[0040] During implementation, the data acquisition device can be used to synchronously sample the voltage signal and current signal of the target to be measured. Exemplarily, the data acquisition module integrated in the electric meter can be used to synchronously sample the voltage signal and current signal of a certain household. Preferably, the number of sampling points per cycle N is greater than 256 (that is, the sampling rate is greater than 12.8ks / s). The data acquisition device can send the collected voltage and current data to the execution subject of this embodiment.

[0041] For the voltage signal and current signal of this step, exemplary, Figure 2 A schematic diagram of the waveforms of the fundamental wave, harmonic wave and interharmonic wave signals provided by the embodiment of the present disclosure is shown. Figure 2 In the figure, from top to bottom are the fundamental signal waveform, the 3rd harmonic signal waveform, the 5th harmonic signal waveform, the 5.06th interharmonic signal waveform and the 7th harmonic signal waveform. Figure 3 A waveform diagram of a combined superposition wave of a fundamental wave, harmonics, and interharmonics provided by an embodiment of the present disclosure is shown. Figure 3 The combined superposition wave in can be used as a graphical representation of the voltage signal / current signal in this embodiment. For ease of explanation, the voltage signal and the current signal are set to be consistent (the voltage unit is V, the current unit is A), and the initial phase is 0. Then the expressions of the voltage signal and the current signal of different waves are as follows:

[0042] Fundamental voltage signal: U1(t)=50sin(2*pi*50*t);

[0043] Fundamental current signal: I1(t)=50sin(2*pi*50*t);

[0044] Third harmonic voltage signal: U3(t)=10sin(2*pi*150*t);

[0045] Third harmonic current signal: I3(t)=10sin(2*pi*150*t);

[0046] 5th harmonic voltage signal: U5(t)=8sin(2*pi*250*t);

[0047] 5th harmonic current signal: I5(t)=8sin(2*pi*250*t);

[0048] 5.06th interharmonic voltage signal: Ui(t)=6sin(2*pi*253*t*t);

[0049] 5.06th interharmonic current signal: Ii(t)=6sin(2*pi*253*t);

[0050] 7th harmonic voltage signal: U7(t)=5sin(2*pi*350*t);

[0051] 7th harmonic current signal: I7(t)=5sin(2*pi*350*t);

[0052] The voltage waveform after combined superposition is: U(t)=U1(t)+U3(t)+U5(t)+Ui(t)+U7(t); the current signal waveform after combined superposition is: I(t)=I1(t)+I3(t)+I5(t)+Ii(t)+I7(t).

[0053] S102: Using a preset signal decomposition algorithm, perform signal decomposition on the voltage sampling data to obtain a voltage frequency component; and perform signal decomposition on the current sampling data to obtain a current frequency component; wherein the voltage frequency component and the current frequency component include at least one of the following waves: a fundamental wave, a harmonic, and an interharmonic.

[0054] Here, in a possible implementation manner, the preset signal decomposition algorithm includes: a fast Fourier transform algorithm, a wavelet transform algorithm and a Hilbert transform algorithm. This embodiment is not limited to this and can be selected according to actual needs. The number of voltage frequency components and current frequency components is 1 or more. Exemplarily, if the voltage signal and current signal in this embodiment are respectively U(t) and I(t) mentioned above, the voltage frequency components include U1(t), U3(t), U5(t), Ui(t), and U7(t), and the current frequency components include I1(t), I3(t), I5(t), Ii(t), and I7(t).

[0055] S103: For any target component in the voltage frequency components, calculate the dot product sum of the target component and the current frequency component with the same frequency as the target component to obtain the target electric energy generated by the wave corresponding to the target component.

[0056] S104: Generate an electric energy metering result according to each of the target electric energies, wherein the electric energy metering result includes at least one of the following: fundamental wave total electric energy, harmonic total electric energy, and interharmonic total electric energy.

[0057] Exemplarily, if the voltage signal and current signal in this embodiment are respectively U(t) and I(t) mentioned above, the voltage frequency components include U1(t), U3(t), U5(t), Ui(t), and U7(t), and the current frequency components include I1(t), I3(t), I5(t), Ii(t), and I7(t), here, U1(t) has the same frequency as I1(t); U1(t) has the same frequency as I1(t); U1(t) has the same frequency as I1(t); U1(t) has the same frequency as I1(t); U1(t) has the same frequency as I1(t). For any target component in the voltage frequency component, such as U1(t), the current frequency component with the same frequency as U1(t) is I1(t), and U1(t) and I1(t) can be discretized first, and then the processing results can be dot-producted and calculated to obtain the target electric energy generated by the wave with a frequency of 50 corresponding to U1(t). By analogy, the target electric energy generated by the waves corresponding to U3(t), U5(t), Ui(t), and U7(t) can be obtained, and finally the target electric energy 1, target electric energy 3, target electric energy 5, target electric energy i, and target electric energy 7 can be obtained. The target electric energy 1 can be taken as the fundamental electric energy, the sum of the target electric energy 3, target electric energy 5, and target electric energy 7 can be taken as the harmonic electric energy, and the target electric energy i can be taken as the interharmonic electric energy.

[0058] S105: Taking a single cycle as a measurement period, calculating the dot product sum between the voltage sampling data and the current sampling data to obtain a preset number of single-cycle electric energies.

[0059] The theoretical calculation formula of single-cycle electric energy in the time domain is as follows (1):

[0060]

[0061] Where y is a positive number and T is a single cycle. To facilitate computer processing, the continuous signal can be discretely sampled and converted into a digital measurement form. The sampling time interval is T. s =T / N=1 / f s , then the digital expression of single-cycle electric energy is as follows (2):

[0062]

[0063] During implementation, a single cycle can be used as the measurement period, and the dot product sum between the voltage sampling data and the current sampling data can be calculated using the above formula (2) to obtain a preset number of single-cycle electric energies.

[0064] S106: Classify the preset number of single-cycle electric energies to obtain a positive electric energy set and a negative electric energy set.

[0065] S107: Adding each element in the positive electric energy set and the negative electric energy set to obtain the total full-wave electric energy; taking the electric energy measurement result and the total full-wave electric energy as the final electric energy measurement result.

[0066] After obtaining a preset number of single-cycle electric energies, each single-cycle electric energy can be judged to be positive or negative. The single-cycle electric energies with positive values ​​constitute the positive electric energy set, and the single-cycle electric energies with negative values ​​constitute the negative electric energy set. Add the elements in the positive electric energy set and the negative electric energy set to obtain the total full-wave electric energy. During implementation, the single-cycle electric energy with negative values ​​can also be added to the reverse electric energy register; the single-cycle electric energy with positive values ​​can be added to the positive electric energy register, and then the total positive electric energy and the total negative electric energy are read from the positive and negative electric energy registers and subtracted to obtain the total full-wave electric energy.

[0067] Finally, the above-mentioned electric energy measurement results and the total full-wave electric energy are taken together as the final electric energy measurement results.

[0068] from Figure 1It can be seen from the method shown that this embodiment proposes a complete electric energy metering solution, which can measure electric energy from two dimensions, time domain and frequency domain. Specifically, for the frequency domain dimension, the signal decomposition algorithm is used to process the voltage and current sampling data, and the frequency components in the voltage sampling data and the current sampling data can be extracted respectively; then the dot product sum between the voltage frequency component and the current frequency component with the same frequency is calculated, so that the electric energy corresponding to each frequency wave can be determined, and these electric energies are classified and summarized to obtain at least one independent electric energy among the total fundamental wave electric energy, the total harmonic electric energy, and the total interharmonic electric energy. For the time domain dimension, considering that in the actual operation of the power system, a series of extremely challenging dynamic scenarios often appear, such as rapid changes in load current, frequent changes in flow direction, and low power factor. In these scenarios, the traditional long-cycle electric energy metering method is often difficult to capture every instantaneous change, which results in accumulation in the wrong direction when accumulating electric energy, thereby affecting the accuracy of the final total electric energy. Therefore, this embodiment measures electric energy with a single cycle as the metering period, and the time of a single cycle is extremely short, so that the voltage and current signals can be timely calculated and the direction judged within each single cycle. Once the direction of the electric energy changes, a quick response can be made in the metering of the next single cycle, thereby greatly avoiding the problem of electric energy accumulation errors caused by errors in the direction of the electric energy, thereby ensuring that a relatively accurate total electric energy can be calculated when the power system is in a dynamic scenario. By combining the two, the accurate measurement of electric energy in both transient and steady-state conditions can be taken into account, and the errors that may exist in a single algorithm can be compensated for each other, thereby greatly improving the accuracy of electric energy calculation; it can adapt to various complex power consumption environments and different types of power consumption equipment, so that the electric energy calculation scheme has a wider applicability; it can fully understand the performance of electric energy in the two key dimensions of time and frequency. Thus, a comprehensive evaluation of the power quality is carried out, providing a detailed basis and direction for improving the power quality.

[0069] Further, in order to better illustrate the process of the above-mentioned electric energy metering method, as a refinement and extension of the above-mentioned embodiment, the embodiment of the present invention provides several optional embodiments, but is not limited thereto, which are specifically as follows:

[0070] Specifically, in a possible implementation manner, the use of a preset signal decomposition algorithm to perform signal decomposition on the voltage sampling data to obtain a voltage frequency component; and the signal decomposition on the current sampling data to obtain a current frequency component includes: performing discrete Fourier transform on the voltage sampling data and the current sampling data to obtain voltage spectrum data and current spectrum data, respectively; for any target spectrum data in the voltage spectrum data and the current spectrum data, according to any target spectrum point in the target spectrum data, the preceding spectrum point and the succeeding spectrum point corresponding to the target spectrum point, using a preset frequency calculation formula to calculate a plurality of candidate spectrum data. Select a frequency; use a preset frequency threshold to filter the multiple candidate frequencies to obtain a filtered frequency; for any target frequency in the filtered frequencies, according to the frequency spectrum points corresponding to the target frequency, use a preset amplitude calculation formula and a preset phase calculation formula to calculate the target amplitude and target phase corresponding to the target frequency; according to the target frequency, the target amplitude and the target phase, obtain a target frequency component; each target frequency component constitutes the voltage frequency component or the current frequency component; wherein the preset frequency calculation formula, the preset amplitude calculation formula and the preset phase calculation formula are obtained based on a three-spectrum interpolation algorithm.

[0071] In this embodiment, the voltage spectrum data and the current spectrum data are the representations of the voltage sampling data and the current sampling data in the frequency domain, respectively, and are essentially a complex sequence, in which each element corresponds to a component of the original sampling data at a specific frequency. The calculation process of the voltage frequency component is described below using the voltage spectrum data as an example.

[0072] For each target spectrum point in the voltage spectrum data, the preset frequency calculation formula can be used to calculate the candidate frequency corresponding to each target spectrum point according to the target spectrum point, the previous spectrum point corresponding to the target spectrum point, and the next spectrum point. Then, the preset frequency threshold is used to filter multiple candidate frequencies to obtain the filtered frequency. Here, the preset frequency threshold can be set according to actual needs. For example, if the preset frequency threshold is 0, the candidate frequency greater than 0 can be used as the filtered frequency. The filtered frequency here is the frequency that exists in the voltage sampling data. Next, for any target frequency in the filtered frequency, the preset amplitude calculation formula and the preset phase calculation formula can be used to calculate the target amplitude and target phase corresponding to the target frequency according to the spectrum point corresponding to the target frequency. After calculating the frequency, amplitude, and phase, the target frequency component can be obtained, such as U m (t) represents the mth target frequency component. Each target frequency component constitutes a voltage frequency component. The calculation process of the current frequency component is similar to that of the voltage frequency component, which will not be repeated here.

[0073] Here, the preset frequency calculation formula, the preset amplitude calculation formula and the preset phase calculation formula are obtained based on the three-spectrum interpolation algorithm. Specifically, the expression of the voltage sampling data or the current sampling data is the following formula (3):

[0074]

[0075] Among them, A m 、f m , are the amplitude, frequency and phase of the mth signal respectively, and f1 is the power frequency 50Hz. Performing discrete Fourier transform on the sampled data, we get the following equation (4):

[0076]

[0077] Among them, ω k =2kπ / K, k∈[0,K-1].

[0078] In the above formulas (3) and (4), the preset frequency calculation formula, the preset amplitude calculation formula and the preset phase calculation formula can be derived by using the principle of the three-line interpolation algorithm. In a possible implementation, the preset frequency calculation formula is:

[0079]

[0080] The preset amplitude calculation formula is:

[0081] A m =2·|p R +jp I |

[0082] The preset phase calculation formula is:

[0083]

[0084] in, ω k =2kπ / K, k∈[0,K-1], f m is the candidate frequency corresponding to the mth spectrum point, is the target phase corresponding to the mth spectrum point, A m is the target amplitude corresponding to the mth spectrum point, f s is the sampling frequency, X[k+1], [k-1], and X[k] are the k+1th, kth, and k-1th spectrum points respectively, ω (k-1) ,ω k ,ω (k+1)are the angular frequencies of the k-1th, kth, and k+1th spectrum points respectively, K is the number of discrete Fourier transform points, that is, the number of elements in the target spectrum data, and f1 is the fundamental frequency.

[0085] This embodiment uses a three-spectrum interpolation algorithm to perform signal decomposition on the voltage sampling data and the current sampling data. The algorithm can significantly improve the frequency resolution and more accurately decompose the frequency components in the scenario where there is spectrum interference in the voltage sampling data and the current sampling data.

[0086] During implementation, the electric energy generated between waves of different frequencies can also be calculated. In a possible implementation, the voltage frequency component and the current frequency component include at least one harmonic and at least one interharmonic, and the method further includes: for any harmonic to be processed among the at least one harmonic, calculating the frequency difference between the harmonic to be processed and each interharmonic, respectively, to obtain a plurality of candidate frequency differences; for any target difference among the plurality of candidate frequency differences, judging whether the target difference is less than a preset difference; if the target difference is less than the preset difference, taking the harmonic and interharmonic corresponding to the target difference as the wave group to be processed; for any target wave group among the wave groups to be processed, the target wave group includes the target harmonic. and target interharmonics, respectively obtaining the voltage harmonic component, the voltage interharmonic component, the current harmonic component, and the current interharmonic component in the voltage frequency component and the current frequency component that have the same frequency as the target harmonic and the target interharmonic; calculating the first dot product sum between the voltage harmonic component and the current interharmonic component, and calculating the second dot product sum between the current harmonic component and the voltage interharmonic component; adding the first dot product sum and the second dot product sum to obtain interference electric energy; adding each of the interference electric energies to obtain the total interference electric energy between the harmonics and the interharmonics; and taking the total interference electric energy as part of the electric energy metering result.

[0087] Exemplarily, assuming that the voltage frequency component and the current frequency component include harmonic 1, interharmonic 1, and interharmonic 2. The frequency difference between harmonic 1 and interharmonic 1 can be calculated to obtain candidate frequency difference 1; the frequency difference between harmonic 1 and interharmonic 2 can be calculated to obtain candidate frequency difference 2.

[0088] Considering that the interaction between harmonics and interharmonics within a certain range of frequency difference is more significant and has a greater impact on electric energy, in this embodiment, the candidate frequency difference can be screened, and the harmonics and interharmonics corresponding to the candidate frequency difference whose frequency difference is less than the preset difference are used as the wave group to be processed. The preset difference here can be set according to actual needs, and this embodiment does not limit this. For example, the preset difference can be set to 5Hz.

[0089] Assuming that the harmonics and interharmonics corresponding to the candidate frequency difference 1 are the wave group to be processed, the voltage harmonic component 1, voltage interharmonic component 1, current harmonic component 2, and current interharmonic component 2 with the same frequency as harmonic 1 and interharmonic 1 in the voltage frequency component and the current frequency component can be determined first. The first dot product sum between the voltage harmonic component 1 and the current interharmonic component 2 is calculated, and the second dot product sum between the voltage interharmonic component 1 and the current harmonic component 2 is calculated. The first dot product sum and the second dot product sum are added to obtain the total interference power.

[0090] This embodiment also considers the electric energy generated between harmonics and interharmonics, and only considers the electric energy generated between harmonics and interharmonics with a frequency difference within a certain range, so that the final electricity metering result is more accurate. In addition, this solution is simple and fast to calculate, which can save computing resources.

[0091] Exemplarily, the following Table 1 shows the electric energy generated between the frequency components of the voltage and current signals provided by the embodiments of the present disclosure.

[0092] Table 1

[0093]

[0094] According to the calculation in the above table, the fundamental electric energy E0 is 250J, the harmonic electric energy Eh (i.e., the sum of the 3rd harmonic electric energy, the 5th harmonic electric energy, and the 7th harmonic electric energy) is 18.90J, the interharmonic electric energy Eih is 3.59J, the electric energy between harmonics and interharmonics is -1.48J (including: the electric energy generated by the 5th harmonic of the voltage signal and the 5.06th interharmonic of the current signal, and the electric energy generated by the 5.06th interharmonic of the voltage signal and the 5th harmonic of the current signal), and the total electric energy is E = E0 + Eh + Eih + Ec = 271.01J. For the signal of the same duration, the full-wave electric energy obtained by the time domain algorithm is 270.95J, and the total electric energy obtained by the frequency domain algorithm is 271.01J. The results of the two are basically consistent, which verifies the correctness of the frequency domain electric energy metering algorithm proposed in the present disclosure.

[0095] The present disclosure also provides an electric energy metering method, comprising the following steps:

[0096] Step S1: acquiring voltage sampling data and current sampling data within a preset number of cycles, wherein the voltage sampling data and the current sampling data are obtained by synchronously sampling the voltage signal and the current signal of the target to be measured.

[0097] Step S2: using a preset signal decomposition algorithm, performing signal decomposition on the voltage sampling data to obtain a voltage frequency component; and performing signal decomposition on the current sampling data to obtain a current frequency component.

[0098] Step S3: Perform discrete Fourier transform on the voltage sampling data and the current sampling data to obtain voltage spectrum data and current spectrum data respectively.

[0099] Step S4: for any target spectrum data in the voltage spectrum data and the current spectrum data, a plurality of candidate frequencies are calculated using a preset frequency calculation formula according to any target spectrum point in the target spectrum data, a preceding spectrum point and a succeeding spectrum point corresponding to the target spectrum point.

[0100] The preset frequency calculation formula is:

[0101]

[0102] Step S5: Filter multiple candidate frequencies using a preset frequency threshold to obtain filtered frequencies.

[0103] Step S6: For any target frequency in the filtered frequencies, according to the frequency spectrum points corresponding to the target frequency, a preset amplitude calculation formula and a preset phase calculation formula are used to calculate the target amplitude and target phase corresponding to the target frequency.

[0104] The preset amplitude calculation formula is:

[0105] A m =2·|p R +jp I |

[0106] The preset phase calculation formula is:

[0107]

[0108] Step S7: According to the target frequency, target amplitude and target phase, a target frequency component is obtained; each target frequency component constitutes a voltage frequency component or a current frequency component. The voltage frequency component and the current frequency component include: fundamental wave, harmonics and interharmonics.

[0109] Step S8: For any target component in the voltage frequency component, calculate the dot product sum of the target component and the current frequency component with the same frequency as the target component to obtain the target electric energy generated by the wave corresponding to the target component.

[0110] Step S9: Generate an electric energy measurement result according to each target electric energy, wherein the electric energy measurement result includes: total fundamental wave electric energy, total harmonic electric energy, and total interharmonic electric energy.

[0111] Step S10: for any harmonic to be processed among the at least one harmonic, calculate the frequency difference between the harmonic to be processed and each interharmonic, and obtain a plurality of candidate frequency difference values.

[0112] Step S11: for any target difference among multiple candidate frequency differences, determine whether the target difference is less than a preset difference; if the target difference is less than the preset difference, take the harmonics and interharmonics corresponding to the target difference as the wave group to be processed.

[0113] Step S12: For any target wave group in the wave group to be processed, the target wave group includes target harmonics and target interharmonics, and the voltage harmonic components, voltage interharmonic components, current harmonic components, and current interharmonic components in the voltage frequency components and current frequency components with the same frequencies as the target harmonics and target interharmonics are obtained respectively.

[0114] Step S13: Calculate the first dot product sum between the voltage harmonic component and the current interharmonic component, calculate the second dot product sum between the current harmonic component and the voltage interharmonic component; add the first dot product sum and the second dot product sum to obtain interference electric energy.

[0115] Step S14: add up the interference electric energies to obtain the total interference electric energy between the harmonics and interharmonics; and use the total interference electric energy as a part of the electric energy measurement result.

[0116] Step S15: taking a single cycle as a measurement period, calculating the dot product sum between the voltage sampling data and the current sampling data to obtain a preset number of single-cycle electric energies.

[0117] Step S16: Classify a preset number of single-cycle electric energies to obtain a positive electric energy set and a negative electric energy set.

[0118] Step S17: Add the elements in the positive electric energy set and the negative electric energy set to obtain the total full-wave electric energy.

[0119] Step S18: The electric energy measurement result and the total full-wave electric energy are taken as the final electric energy measurement result.

[0120] Those skilled in the art will appreciate that, in the above method of the specific implementation manner, the writing order of the steps does not mean a strict execution order, but does not constitute any limitation on the implementation process. The specific execution order of the steps should be determined by their functions and possible internal logic.

[0121] It should be noted that, in practical applications, all possible implementations described above can be combined in any manner to form possible embodiments of the present disclosure, which will not be described one by one here.

[0122] Based on the same concept, the embodiment of the present disclosure also provides an electric energy metering device. Figure 4 The schematic diagram of the structure of the electric energy metering device provided by the embodiment of the present disclosure is shown in FIG. Figure 4 As shown, the electric energy metering device 400 provided in the embodiment of the present disclosure includes:

[0123] An acquisition module 401 is used to acquire voltage sampling data and current sampling data within a preset number of cycles, wherein the voltage sampling data and the current sampling data are obtained by synchronously sampling the voltage signal and the current signal of the target to be measured;

[0124] The decomposition module 402 is used to perform signal decomposition on the voltage sampling data using a preset signal decomposition algorithm to obtain a voltage frequency component; and to perform signal decomposition on the current sampling data to obtain a current frequency component; wherein the voltage frequency component and the current frequency component include at least one of the following waves: a fundamental wave, a harmonic, and an interharmonic;

[0125] The first metering module 403 is used to calculate, for any target component in the voltage frequency component, the target component and the dot product sum of the current frequency component with the same frequency as the target component, to obtain the target electric energy generated by the wave corresponding to the target component; and generate an electric energy metering result according to each of the target electric energies, wherein the electric energy metering result includes at least one of the following: total fundamental wave electric energy, total harmonic electric energy, and total interharmonic electric energy;

[0126] The second metering module 404 is used to calculate the dot product sum between the voltage sampling data and the current sampling data with a single cycle as the metering period to obtain a preset number of single-cycle electric energies;

[0127] A classification module 405 is used to classify the preset number of single-cycle electric energies to obtain a positive electric energy set and a negative electric energy set;

[0128] The third metering module 406 adds the elements in the positive electric energy set and the negative electric energy set to obtain the total full-wave electric energy; and uses the electric energy metering result and the total full-wave electric energy as the final electric energy metering result.

[0129] In a possible implementation manner, in the above-mentioned device, the decomposition module 402 is used to: perform discrete Fourier transform on the voltage sampling data and the current sampling data to obtain voltage spectrum data and current spectrum data respectively; for any target spectrum data in the voltage spectrum data and the current spectrum data, according to any target spectrum point in the target spectrum data, the preceding spectrum point and the succeeding spectrum point corresponding to the target spectrum point, use a preset frequency calculation formula to calculate multiple candidate frequencies; use a preset frequency threshold to filter the multiple candidate frequencies to obtain a filtered frequency; for any target frequency in the filtered frequency, according to the spectrum point corresponding to the target frequency, use a preset amplitude calculation formula and a preset phase calculation formula to calculate the target amplitude and target phase corresponding to the target frequency, according to the spectrum point corresponding to the target frequency; obtain a target frequency component according to the target frequency, the target amplitude and the target phase; each of the target frequency components constitutes the voltage frequency component or the current frequency component; wherein the preset frequency calculation formula, the preset amplitude calculation formula and the preset phase calculation formula are obtained based on a three-line interpolation algorithm.

[0130] In a possible implementation manner, in the above device, the preset frequency calculation formula is:

[0131]

[0132] The preset amplitude calculation formula is:

[0133] A m =2·|p R +jp I |

[0134] The preset phase calculation formula is:

[0135]

[0136] in,

[0137]

[0138]

[0139] f m is the candidate frequency corresponding to the mth spectrum point, is the target phase corresponding to the mth spectrum point, A m is the target amplitude corresponding to the mth spectrum point, f s is the sampling frequency, X[k+1], [k-1], and X[k] are the k+1th, kth, and k-1th spectrum points respectively, ω(k-1) ,ω k ,ω (k+1) are the angular frequencies of the k-1th, kth, and k+1th spectrum points respectively, K is the number of discrete Fourier transform points, and f1 is the fundamental frequency.

[0140] In a possible implementation manner, the voltage frequency component and the current frequency component include at least one harmonic and at least one interharmonic, and the device further includes a metering module, which is used to: for any harmonic to be processed among the at least one harmonic, calculate the frequency difference between the harmonic to be processed and each interharmonic to obtain a plurality of candidate frequency differences; for any target difference among the plurality of candidate frequency differences, determine whether the target difference is less than a preset difference; if the target difference is less than the preset difference, use the harmonic and interharmonic corresponding to the target difference as a wave group to be processed; for any target wave group among the wave groups to be processed, the target wave group includes the target wave group. The target harmonic and target interharmonic are obtained, and the voltage harmonic component, the voltage interharmonic component, the current harmonic component and the current interharmonic component with the same frequency as the target harmonic and the target interharmonic are respectively obtained in the voltage frequency component and the current frequency component; the first dot product sum between the voltage harmonic component and the current interharmonic component is calculated, and the second dot product sum between the current harmonic component and the voltage interharmonic component is calculated; the first dot product sum and the second dot product sum are added to obtain the interference electric energy; each of the interference electric energies is added to obtain the total interference electric energy between the harmonics and the interharmonics; and the total interference electric energy is used as a part of the electric energy measurement result.

[0141] In a possible implementation, in the above device, the preset signal decomposition algorithm includes: a fast Fourier transform algorithm, a wavelet transform algorithm or a Hilbert transform algorithm.

[0142] It should be noted that any of the above-mentioned electric energy metering devices can implement the above-mentioned electric energy metering method one by one, which will not be described in detail here.

[0143] Figure 5 FIG. 1 shows a schematic diagram of the structure of an electronic device provided by an embodiment of the present disclosure. Figure 5 As shown, at the hardware level, the electronic device includes a processor, and optionally also includes an internal bus, a network interface, and a memory. Among them, the memory may include a memory, such as a high-speed random access memory (RAM), and may also include a non-volatile memory (non-volatile memory), such as at least one disk storage, etc. Of course, the electronic device may also include hardware required for other services.

[0144] The processor, network interface and memory can be interconnected through an internal bus, which can be an ISA (Industry Standard Architecture) bus, a PCI (Peripheral Component Interconnect) bus or an EISA (Extended Industry Standard Architecture) bus. The bus can be divided into an address bus, a data bus, a control bus, etc. For ease of representation, Figure 5 Only one bidirectional arrow is used in the diagram, but this does not mean that there is only one bus or only one type of bus.

[0145] The memory is used to store programs. Specifically, the program may include program code, and the program code includes computer operation instructions. The memory may include internal memory and non-volatile memory, and provides instructions and data to the processor.

[0146] The processor reads the corresponding computer program from the non-volatile memory into the memory and then runs it, forming an electric energy metering device at the logical level. The processor executes the program stored in the memory and is specifically used to execute the above method.

[0147] The processor may be an integrated circuit chip with signal processing capabilities. In the implementation process, each step of the above method can be completed by an integrated logic circuit of hardware in the processor or an instruction in the form of software. The above processor may be a general-purpose processor, including a central processing unit (CPU), a network processor (NP), etc.; it may also be a digital signal processor (DSP), an application-specific integrated circuit (ASIC), a field-programmable gate array (FPGA) or other programmable logic devices, discrete gates or transistor logic devices, discrete hardware components. The disclosed methods, steps and logic block diagrams in the embodiments of the present disclosure may be implemented or executed. The general-purpose processor may be a microprocessor or the processor may also be any conventional processor, etc. The steps of the method disclosed in conjunction with the embodiments of the present disclosure may be directly embodied as being executed by a hardware decoding processor, or may be executed by a combination of hardware and software modules in a decoding processor. The software module may be located in a mature storage medium in the field such as a random access memory, a flash memory, a read-only memory, a programmable read-only memory or an electrically erasable programmable memory, a register, etc. The storage medium is located in the memory, and the processor reads the information in the memory and completes the steps of the above method in combination with its hardware.

[0148] The electronic device can execute the electric energy metering method provided by the embodiments of the present disclosure, and realize an electric energy metering device in Figure 4 The functions of the illustrated embodiments will not be described in detail in the embodiments of the present disclosure.

[0149] The embodiments of the present disclosure also provide a computer-readable storage medium, which stores one or more programs, and the one or more programs include instructions. When the instructions are executed by an electronic device including multiple application programs, the electronic device can execute the electric energy metering method provided by multiple embodiments of the present disclosure.

[0150] Those skilled in the art will appreciate that the embodiments of the present disclosure may be provided as methods, systems, or computer program products. Therefore, the present disclosure may take the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware. Moreover, the present disclosure may take the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.

[0151] The present disclosure is described with reference to the flowcharts and / or block diagrams of the methods, devices (systems), and computer program products according to the embodiments of the present disclosure. It should be understood that each process and / or box in the flowchart and / or block diagram, as well as the combination of the processes and / or boxes in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to generate a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.

[0152] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture comprising an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.

[0153] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.

[0154] In a typical configuration, a computing device includes one or more processors (CPU), input / output interfaces, network interfaces, and memory.

[0155] The memory may include non-permanent storage in a computer-readable medium, random access memory (RAM) and / or non-volatile memory in the form of read-only memory (ROM) or flash RAM. The memory is an example of a computer-readable medium.

[0156] Computer readable media include permanent and non-permanent, removable and non-removable media that can be implemented by any method or technology to store information. Information can be computer readable instructions, data structures, program modules or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technology, compact disk read-only memory (CD-ROM), digital versatile disk (DVD) or other optical storage, magnetic cassettes, magnetic tape, disk storage or other magnetic storage devices or any other non-transmission media that can be used to store information that can be accessed by a computing device. As defined herein, computer readable media does not include temporary computer readable media (transitory media), such as modulated data signals and carrier waves.

[0157] The embodiments of the present disclosure also provide a computer program product, which carries a program code. The instructions included in the program code can be used to execute the steps of the electric energy metering method described in the above method embodiment. For details, please refer to the above method embodiment, which will not be repeated here.

[0158] The computer program product may be implemented in hardware, software or a combination thereof. In one optional embodiment, the computer program product is implemented as a computer storage medium. In another optional embodiment, the computer program product is implemented as a software product, such as a software development kit (SDK).

[0159] It should also be noted that the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, commodity or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, commodity or device. In the absence of further restrictions, an element defined by the sentence "comprises a ..." does not exclude the presence of other identical elements in the process, method, commodity or device including the element.

[0160] It will be appreciated by those skilled in the art that the embodiments of the present disclosure may be provided as methods, systems or computer program products. Therefore, the present disclosure may take the form of a complete hardware embodiment, a complete software embodiment or an embodiment combining software and hardware. Moreover, the present disclosure may take the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.

[0161] The above are only embodiments of the present disclosure and are not intended to limit the present disclosure. For those skilled in the art, the present disclosure may have various modifications and variations. Any modification, equivalent substitution, improvement, etc. made within the spirit and principle of the present disclosure shall be included in the scope of the claims of the present disclosure.

Claims

1. A method for measuring electric energy, characterized in that: The method comprises: Acquire voltage sampling data and current sampling data within a preset number of cycles, wherein the voltage sampling data and the current sampling data are obtained by synchronously sampling the voltage signal and the current signal of the target to be measured; Using a preset signal decomposition algorithm, the voltage sampling data is subjected to signal decomposition to obtain a voltage frequency component; and the current sampling data is subjected to signal decomposition to obtain a current frequency component; wherein the voltage frequency component and the current frequency component include at least one of the following waves: a fundamental wave, a harmonic, and an interharmonic; For any target component in the voltage frequency component, calculate the dot product sum of the target component and the current frequency component with the same frequency as the target component to obtain the target electric energy generated by the wave corresponding to the target component; Generate an electric energy measurement result according to each of the target electric energies, wherein the electric energy measurement result includes at least one of the following: fundamental wave total electric energy, harmonic total electric energy, and interharmonic total electric energy; Taking a single cycle as a measurement period, calculating the dot product sum between the voltage sampling data and the current sampling data to obtain a preset number of single-cycle electric energies; Classifying the preset number of single-cycle electric energies to obtain a positive electric energy set and a negative electric energy set; Each element in the positive electric energy set and the negative electric energy set is added together to obtain the total full-wave electric energy; the electric energy measurement result and the total full-wave electric energy are used as the final electric energy measurement result.

2. The method according to claim 1, characterized in that: The voltage sampling data is subjected to signal decomposition using a preset signal decomposition algorithm to obtain a voltage frequency component; And performing signal decomposition on the current sampling data to obtain current frequency components, including: Performing discrete Fourier transform on the voltage sampling data and the current sampling data to obtain voltage spectrum data and current spectrum data respectively; For any target spectrum data in the voltage spectrum data and the current spectrum data, a plurality of candidate frequencies are calculated using a preset frequency calculation formula according to any target spectrum point in the target spectrum data, a preceding spectrum point and a succeeding spectrum point corresponding to the target spectrum point; Using a preset frequency threshold to filter the multiple candidate frequencies to obtain filtered frequencies; For any target frequency among the filtered frequencies, according to the frequency spectrum points corresponding to the target frequency, a target amplitude and a target phase corresponding to the target frequency are calculated using a preset amplitude calculation formula and a preset phase calculation formula; According to the target frequency, the target amplitude and the target phase, a target frequency component is obtained; each of the target frequency components constitutes the voltage frequency component or the current frequency component; The preset frequency calculation formula, the preset amplitude calculation formula and the preset phase calculation formula are obtained based on a three-spectrum interpolation algorithm.

3. The method according to claim 2, characterized in that The preset frequency calculation formula is: The preset amplitude calculation formula is: A m =2·|p R +jp I | The preset phase calculation formula is: in, ω k =2kπ / K, k∈[0,K-1], f m is the candidate frequency corresponding to the mth spectrum point, is the target phase corresponding to the mth spectrum point, A m is the target amplitude corresponding to the mth spectrum point, f s is the sampling frequency, X[k+1], [k-1], and X[k] are the k+1th, kth, and k-1th spectrum points respectively, ω (k-1) ,ω k ,ω (k+1) are the angular frequencies of the k-1th, kth, and k+1th spectrum points respectively, K is the number of discrete Fourier transform points, and f1 is the fundamental frequency.

4. The method according to any one of claims 1 to 3, characterized in that: The voltage frequency component and the current frequency component include at least one harmonic and at least one interharmonic, and the method further includes: For any harmonic to be processed among the at least one harmonic, calculate the frequency difference between the harmonic to be processed and each interharmonic, to obtain a plurality of candidate frequency difference values; For any target difference among the multiple candidate frequency difference values, determine whether the target difference value is less than a preset difference value; if the target difference value is less than the preset difference value, take the harmonics and interharmonics corresponding to the target difference value as the wave group to be processed; For any target wave group in the wave group to be processed, the target wave group includes a target harmonic and a target interharmonic, respectively obtaining a voltage harmonic component, a voltage interharmonic component, a current harmonic component, and a current interharmonic component having the same frequency as the target harmonic and the target interharmonic in the voltage frequency component and the current frequency component; Calculating a first dot product sum between the voltage harmonic component and the current interharmonic component, and calculating a second dot product sum between the current harmonic component and the voltage interharmonic component; adding the first dot product sum and the second dot product sum to obtain interference electric energy; Each of the interference electric energies is added together to obtain the total interference electric energy between the harmonics and the interharmonics; and the total interference electric energy is used as a part of the electric energy measurement result.

5. The method according to claim 1, characterized in that The preset signal decomposition algorithm includes: a fast Fourier transform algorithm, a wavelet transform algorithm or a Hilbert transform algorithm.

6. An electric energy metering device, characterized in that: The device comprises: An acquisition module, used for acquiring voltage sampling data and current sampling data within a preset number of cycles, wherein the voltage sampling data and the current sampling data are obtained by synchronously sampling the voltage signal and the current signal of the target to be measured; A decomposition module, used to perform signal decomposition on the voltage sampling data using a preset signal decomposition algorithm to obtain a voltage frequency component; and to perform signal decomposition on the current sampling data to obtain a current frequency component; wherein the voltage frequency component and the current frequency component include at least one of the following waves: a fundamental wave, a harmonic, and an interharmonic; A first metering module is used to calculate, for any target component in the voltage frequency component, the target component and the dot product sum of the current frequency component with the same frequency as the target component, to obtain the target electric energy generated by the wave corresponding to the target component; and generate an electric energy metering result according to each of the target electric energies, wherein the electric energy metering result includes at least one of the following: total fundamental wave electric energy, total harmonic electric energy, and total interharmonic electric energy; A second metering module is used to calculate the dot product sum between the voltage sampling data and the current sampling data with a single cycle as the metering period to obtain a preset number of single-cycle electric energies; A classification module, used for classifying the preset number of single-cycle electric energies to obtain a positive electric energy set and a negative electric energy set; The third metering module adds the elements in the positive electric energy set and the negative electric energy set to obtain the total full-wave electric energy; and uses the electric energy metering result and the total full-wave electric energy as the final electric energy metering result.

7. An electronic device comprising: processor; as well as A memory arranged to store computer executable instructions, wherein when the executable instructions are executed, the processor is caused to perform the steps of the method according to any one of claims 1 to 5.

8. A computer-readable storage medium storing one or more programs, characterized in that: When the one or more programs are executed by an electronic device including a plurality of application programs, the electronic device executes the steps of the method as claimed in any one of claims 1 to 5.

9. A computer program product, characterized in that The computer program product carries a program code, and the program code includes instructions that can be used to execute the steps of the method according to any one of claims 1 to 5.

Citation Information

Cited By

  • Demand determination method and device of electric energy meter, readable storage medium and electric energy meter

    CN120507709A

  • Method and device for determining tidal current direction of electric energy meter, storage medium and electric energy meter

    CN120522628A

  • Electric quantity accumulation processing method and system and storage medium

    CN120577592A