Electric energy metering method, device, equipment and medium based on intelligent harmonic compensation
By real-time sampling and harmonic compensation of voltage and current in a smart meter, decompose it into each harmonic signal for power calculation, the problem of inaccurate power measurement is solved and more accurate and reliable power measurement is achieved.
Patent Information
- Application Number
- CN202510599946.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2025-05-12
- Publication Date
- 2025-08-12
- Estimated Expiration
- 2045-05-12
AI Technical Summary
Existing electricity meters ignore high-frequency harmonics when metering electricity, resulting in inaccurate metering, affecting the reliability of electricity metering.
The voltage and current of the main line are sampled in real time through a smart meter, converted into frequency domain signals, decomposed into each harmonic signal, power calculation and harmonic compensation are performed to obtain the measured power.
It improves the accuracy and reliability of electrical energy measurement and accurately measures harmonic electrical energy.
Smart Images

Figure CN120142749B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of smart electric meters, and in particular to an electric energy metering method, device, equipment and medium based on intelligent harmonic compensation. Background Art
[0002] To measure the amount of electricity consumed by users, an electric meter is required to measure the power consumption in the wires in real time. However, during the use of electrical appliances, voltage and current fluctuations and harmonics are easily generated due to processes such as voltage transformation and rectification. Existing electric meters often ignore high-frequency harmonics when measuring energy, resulting in inaccurate energy measurement and affecting the reliability of energy measurement. Therefore, existing energy measurement methods suffer from insufficient accuracy. Summary of the Invention
[0003] The embodiments of the present invention provide an electric energy metering method, apparatus, device and medium based on intelligent harmonic compensation, aiming to solve the problem of insufficient accuracy in electric energy metering in existing technical methods.
[0004] In a first aspect, an embodiment of the present invention provides an electric energy metering method based on intelligent harmonic compensation, wherein the method is applied to a smart meter, and the method includes:
[0005] Continuously monitor whether the transmission current of the main line meets the preset electric energy metering conditions;
[0006] If the transmission current meets the electric energy metering condition, the voltage and current of the main line are sampled in real time to obtain corresponding sampling signals;
[0007] Convert the sampled signal according to a preset signal conversion rule to obtain a frequency domain signal corresponding to the sampled signal;
[0008] Decomposing the frequency domain signal according to a preset reference frequency and a decomposition strategy to obtain harmonic signals corresponding to the reference frequency;
[0009] Calculate the power of each harmonic signal according to a preset harmonic power calculation strategy and the sampling signal to obtain a corresponding initial calculated power;
[0010] The initial measured power is harmonic compensated according to a preset compensation strategy and the sampling signal to obtain a corresponding metered power.
[0011] In a second aspect, an embodiment of the present invention further provides an electric energy metering device based on intelligent harmonic compensation, wherein the device is configured in a smart meter and is used to perform the electric energy metering method based on intelligent harmonic compensation as described in the first aspect above, the device comprising:
[0012] A monitoring unit is used to continuously monitor whether the transmission current of the main line meets the preset electric energy metering conditions;
[0013] a sampling unit, configured to sample the voltage and current of the main line in real time to obtain a corresponding sampling signal if the transmission current meets the electric energy metering condition;
[0014] a conversion unit, configured to convert the sampled signal according to a preset signal conversion rule to obtain a frequency domain signal corresponding to the sampled signal;
[0015] a decomposition unit, configured to decompose the frequency domain signal according to a preset reference frequency and a decomposition strategy to obtain harmonic signals corresponding to the reference frequency;
[0016] A power calculation unit, configured to perform power calculation on each harmonic signal according to a preset harmonic power calculation strategy and the sampling signal to obtain a corresponding initial measured power;
[0017] The compensation unit is used to perform harmonic compensation on the initial measured power according to a preset compensation strategy and the sampling signal to obtain the corresponding metered power.
[0018] In a third aspect, an embodiment of the present invention further provides a computer device, wherein the device includes a processor, a communication interface, a memory, and a communication bus, wherein the processor, the communication interface, and the memory communicate with each other via the communication bus;
[0019] Memory for storing computer programs;
[0020] The processor is configured to implement the steps of the electric energy metering method based on intelligent harmonic compensation described in the first aspect when executing the program stored in the memory.
[0021] In a fourth aspect, an embodiment of the present invention further provides a computer-readable storage medium having a computer program stored thereon, wherein when the computer program is executed by a processor, the steps of the electric energy metering method based on intelligent harmonic compensation as described in the first aspect above are implemented.
[0022] Embodiments of the present invention provide an electric energy metering method, apparatus, device, and medium based on intelligent harmonic compensation. The method includes: determining whether the main line meets the electric energy metering conditions; if so, obtaining a sampled signal and converting it accordingly to obtain a frequency domain signal; decomposing the frequency domain signal according to a reference frequency and a decomposition strategy to obtain each harmonic signal; performing power measurement on each harmonic signal to obtain an initial measured power; and performing harmonic compensation on the initial measured power to obtain the metered power. The above-mentioned electric energy metering method based on intelligent harmonic compensation can decompose the frequency domain signal to obtain each harmonic signal and perform power measurement, and then perform harmonic compensation on the initial measured power, thereby achieving the metering of harmonic electric energy and improving the accuracy and reliability of electric energy metering. BRIEF DESCRIPTION OF THE DRAWINGS
[0023] In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the following briefly introduces the drawings required for use in the description of the embodiments. Obviously, the drawings described below are some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative work.
[0024] Figure 1 A flow chart of an electric energy metering method based on intelligent harmonic compensation provided by an embodiment of the present invention;
[0025] Figure 2 A schematic block diagram of an electric energy metering device based on intelligent harmonic compensation provided by an embodiment of the present invention;
[0026] Figure 3 It is a schematic block diagram of a computer device provided by an embodiment of the present invention. DETAILED DESCRIPTION
[0027] The following will clearly and completely describe the technical solutions in the embodiments of the present invention in conjunction with the accompanying drawings. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of them. All other embodiments obtained by ordinary technicians in this field based on the embodiments of the present invention without making any creative efforts shall fall within the scope of protection of the present invention.
[0028] It will be understood that when used in this specification and the appended claims, the terms “comprises” and “comprising” indicate the presence of described features, integers, steps, operations, elements and / or components, but do not preclude the presence or addition of one or more other features, integers, steps, operations, elements, components and / or groups thereof.
[0029] It should also be understood that the terms used in the present specification are only for the purpose of describing particular embodiments and are not intended to limit the present invention. As used in the present specification and the appended claims, the singular forms "a", "an", and "the" are intended to include the plural forms unless the context clearly indicates otherwise.
[0030] It should be further understood that the term "and / or" used in the present description and appended claims refers to and includes any and all possible combinations of one or more of the associated listed items.
[0031] The embodiment of the present invention provides an electric energy metering method based on intelligent harmonic compensation, which is applied to a smart meter. The smart meter executes a stored software program to implement the above-mentioned electric energy metering method based on intelligent harmonic compensation; the smart meter can detect the voltage and current in the main line, and process the detection signal through an internally configured processing module to achieve electric energy metering. The processing module can be an MCU chip or an FPGA chip.
[0032] like Figure 1 As shown, the method includes steps S110 to S160.
[0033] S110. Continuously monitor whether the transmission current of the main line meets the preset electric energy metering conditions.
[0034] Smart meters measure the current and voltage of the main line through their internal ammeter and voltage sensing circuits, thereby obtaining the main line's current and voltage. They measure the main line's transmission current and determine whether it meets pre-set energy metering conditions. If so, they begin metering the current energy consumed. The transmission current measurement frequency is relatively low, such as 50Hz (equal to the operating frequency of AC power). Each time, a set of current wave signals is acquired and the maximum value within that set of signals is measured as the transmission current. If the transmission current does not meet the energy metering conditions, energy metering is not performed, minimizing the smart meter's power consumption.
[0035] In a specific embodiment, step S110 includes the following sub-steps: determining whether the transmission current is greater than the current threshold in the electric energy metering condition; if the transmission current is greater than the current threshold, determining whether the duration for which the transmission current is greater than the current threshold is not less than the duration threshold in the electric energy metering condition; if the duration is not less than the duration threshold, determining that the transmission current satisfies the electric energy metering condition; if the transmission current is not greater than the current threshold or the duration is less than the duration threshold, determining that the transmission current does not satisfy the electric energy metering condition.
[0036] Specifically, it is possible to determine whether the transmission current measured in real time is greater than the current threshold in the electric energy metering condition. If the transmission current measured in real time is greater than the current threshold, the duration of the transmission current being greater than the current threshold is further obtained. The number of consecutive determinations that the transmission current is greater than the current threshold can be obtained, and based on this number, the duration of the transmission current being greater than the current threshold is obtained. It is then determined whether the duration is not less than the duration threshold. If the duration is not less than the duration threshold, it is determined that the transmission current satisfies the electric energy metering condition. If the transmission current is not greater than the current threshold, the cumulative number of determinations that the transmission current is greater than the current threshold is terminated, and it is determined that the transmission current does not meet the electric energy metering condition. If the duration is less than the duration threshold, it is also determined that the transmission current does not meet the electric energy metering condition.
[0037] S120: If the transmission current meets the electric energy metering condition, the voltage and current of the main line are sampled in real time to obtain corresponding sampling signals.
[0038] If the transmission current meets the energy metering conditions, the voltage and current of the main line are sampled in real time. In this case, the sampling frequency of voltage and current is relatively high; for example, a frequency of 1-200kHz can be used for high-frequency sampling of voltage and current. The corresponding sampling signals are obtained, and the sampling signals include current sampling signals and voltage sampling signals.
[0039] S130 : Convert the sampled signal according to a preset signal conversion rule to obtain a frequency domain signal corresponding to the sampled signal.
[0040] Furthermore, the sampled signals can be converted according to signal conversion rules to obtain frequency domain signals corresponding to the sampled signals. The voltage sampling signal and the current sampling signal in the sampled signals are both time domain signals. To further analyze the sampled signals, the sampled signals can be converted into frequency domain signals through conversion processing. The horizontal axis of the frequency domain signal is the frequency value, and the vertical axis is the amplitude value.
[0041] In a specific embodiment, the frequency domain signal includes a current frequency domain signal and a voltage frequency domain signal, and step S130 includes sub-steps: obtaining a current signal and a voltage signal in the same time period from the sampling signal to obtain a current signal segment and a voltage signal segment, respectively; performing a fast Fourier transform on the current signal segment in the sampling signal according to the signal conversion rule to obtain a corresponding current frequency domain signal; performing a fast Fourier transform on the voltage signal segment in the sampling signal according to the signal conversion rule to obtain a corresponding voltage frequency domain signal.
[0042] The resulting frequency domain signals include current and voltage frequency domain signals. The current frequency domain signal corresponds to the current signal, and the voltage frequency domain signal corresponds to the voltage signal. Current and voltage signals within the same time period can be obtained from the sampled signal. For example, current and voltage signals within the same second can be obtained from the sampled signal as current and voltage signal segments, respectively. A fast Fourier transform (FFT) is performed on the current signal segments according to a signal conversion rule, where the signal conversion rule includes a corresponding fast Fourier transform formula. This transform is then performed to obtain the corresponding current frequency domain signal. Similarly, a fast Fourier transform is performed on the voltage signal segments to obtain the corresponding voltage frequency domain signal. After completing power measurement for a set of current and voltage signal segments, the next set of current and voltage signal segments is obtained and the corresponding processing is repeated.
[0043] S140 : Decompose the frequency domain signal according to a preset reference frequency and a decomposition strategy to obtain harmonic signals corresponding to the reference frequency.
[0044] The obtained frequency domain signal is further decomposed according to the reference frequency and the decomposition strategy, so as to obtain the harmonic signals corresponding to different frequencies, the signal of each frequency harmonic and the corresponding first harmonic signal.
[0045] In a specific embodiment, step S140 includes sub-steps: determining the frequency that is an integer multiple of the reference frequency as the corresponding harmonic frequency; determining the harmonic frequency range corresponding to each harmonic frequency according to the frequency fluctuation range in the decomposition strategy; decomposing the frequency domain signal according to the harmonic frequency range to obtain the harmonic frequency domain signals corresponding to each harmonic frequency and combining them into the subharmonic signals.
[0046] The corresponding harmonic frequencies can be determined based on integer multiples of the reference frequency. For example, if the reference frequency is 50 Hz and the integer multiples are 1, 2, 3, etc., then the harmonic frequencies corresponding to the reference frequency are 50 Hz, 100 Hz, 150 Hz, 200 Hz, etc. respectively.
[0047] To accurately decompose each harmonic, the harmonic frequency range corresponding to each harmonic frequency can be further determined based on the frequency fluctuation range in the decomposition strategy. By multiplying the upper and lower limits of the frequency fluctuation range by the harmonic frequency, the upper and lower limits of the harmonic frequency range can be determined, ultimately obtaining the harmonic frequency range corresponding to the harmonic frequency. For example, if the frequency fluctuation range is [0.95, 1.06] and a harmonic frequency is 200 Hz, the harmonic frequency range corresponding to this harmonic frequency is [190 Hz, 212 Hz].
[0048] The frequency domain signal is decomposed according to the harmonic frequency range corresponding to each harmonic frequency, and the harmonic frequency domain signals corresponding to each harmonic frequency range are obtained from the frequency domain signal. Then, the signal within a certain harmonic frequency range in the frequency domain signal is decomposed from the frequency domain signal. After decomposition, the harmonic frequency domain signals corresponding to each harmonic frequency can be obtained. The harmonic frequency domain signal contains a group of harmonic frequency domain signals corresponding to the reference frequency. The obtained harmonic frequency domain signals are combined to obtain each harmonic signal.
[0049] S150 , performing power measurement on each harmonic signal according to a preset harmonic power measurement strategy and the sampling signal to obtain a corresponding initial measurement power.
[0050] The power of each harmonic signal is further calculated based on the harmonic power calculation strategy and the sampling signal. The harmonic power calculation strategy is a specific strategy for calculating the power of the harmonic signal. The initial calculated power can be obtained by the corresponding calculation.
[0051] In a specific embodiment, step S150 includes sub-steps: extracting the reference parameter value corresponding to each harmonic from the harmonic signals according to the reference parameter item in the harmonic power measurement strategy and the sampling signal; performing power accumulation measurement on the reference parameter value corresponding to each harmonic according to the accumulation rule in the harmonic power measurement strategy to obtain the corresponding initial measured power.
[0052] Specifically, the corresponding reference parameter value can be obtained from each harmonic signal based on the reference parameter item and the sampled signal. The power of the reference parameter value corresponding to each harmonic can be accumulated and measured based on the accumulation rule in the harmonic power measurement strategy to obtain the initial measured power. The reference parameter value includes the deviation parameter value and the amplitude parameter value corresponding to each harmonic frequency. The harmonic measured power of each harmonic frequency is calculated based on the amplitude parameter value corresponding to each harmonic frequency. This is combined with the deviation parameter value and accumulated to obtain the corresponding initial measured power.
[0053] Specifically, the power accumulation calculation can be expressed using formula (1):
[0054] (1);
[0055] P c is the calculated initial measured power, N is the total number of harmonic frequencies, V j is the voltage amplitude in the amplitude parameter value of the jth harmonic, I j is the current amplitude in the amplitude parameter value of the j-th harmonic; θ is the deviation parameter value, which is specifically an angle value.
[0056] In a specific embodiment, the reference parameter value corresponding to each harmonic is extracted from the harmonic signals according to the reference parameter item in the harmonic power measurement strategy and the sampling signal, including: extracting from the harmonic signals the amplitude parameter value corresponding to the amplitude characteristic parameter in the reference parameter item; extracting from the sampling signal the deviation parameter value corresponding to the deviation characteristic parameter in the reference parameter item according to the reference frequency range corresponding to the reference frequency; and combining the deviation parameter value of the reference frequency and the amplitude parameter value of each harmonic to obtain the reference parameter value corresponding to each harmonic.
[0057] Specifically, the corresponding amplitude parameter value can be extracted from each harmonic signal according to the amplitude characteristic parameters. The amplitude characteristic parameters include voltage amplitude characteristics and current amplitude characteristics. Then, according to the voltage amplitude characteristics, the maximum amplitude in the voltage frequency domain signal can be obtained from each harmonic signal as the corresponding voltage amplitude; according to the current amplitude characteristics, the maximum amplitude in the current frequency domain signal can be obtained from each harmonic signal as the corresponding current amplitude.
[0058] The reference parameter item also includes a deviation characteristic parameter, and the deviation parameter value corresponding to the deviation characteristic parameter is further obtained from the sampling signal based on the reference frequency range corresponding to the reference frequency. Since the wave signal corresponding to the reference frequency accounts for the largest proportion, the first peak of the current sampling signal in the sampling signal can be obtained, and the peak scan is performed according to the reference frequency range and the first peak to obtain the current peak corresponding to the reference frequency range in the current sampling signal. The frequency corresponding to the interval time between adjacent current peaks is within the reference frequency range. If the interval time is t, the frequency corresponding to the interval time is 1 / t. Similarly, the voltage peak corresponding to the voltage sampling signal can be obtained based on the reference frequency range; there is a deviation time between each current peak in the sampling signal and the nearest voltage peak, and the deviation time Δt<1 / f 0 ,in, f 0The reference frequency can be further calculated. The average deviation time between each current peak and the nearest voltage peak in the sampling signal can be obtained to obtain the corresponding average deviation time. The average deviation time and 2π / f 0 The ratio between them can convert the average deviation time into an angle value as the corresponding deviation parameter value; where, f 0 The deviation parameter value can be used to characterize the average phase deviation between the voltage peak and the current peak.
[0059] By combining the obtained deviation parameter value of the reference frequency and the amplitude parameter value of each harmonic, the reference parameter value corresponding to each harmonic can be obtained.
[0060] S160: Perform harmonic compensation on the initially measured power according to a preset compensation strategy and the sampling signal to obtain a corresponding measured power.
[0061] The initial measured power is then harmonically compensated based on the compensation strategy and the sampled signal, thereby obtaining the compensated metered power. By performing harmonic compensation on the initial measured power, the metered power that accurately measures the amount of electricity can be obtained.
[0062] In a specific embodiment, step S160 includes sub-steps: calculating the amplitude ratio corresponding to each harmonic based on the amplitude parameter value of each harmonic; performing compensation analysis on the amplitude ratio and the deviation parameter value corresponding to the sampling signal according to the compensation strategy to obtain the corresponding loss compensation coefficient; performing harmonic compensation on the initial measured power according to the loss compensation coefficient to obtain the corresponding metered power.
[0063] Specifically, the amplitude proportion corresponding to each harmonic can be calculated based on the amplitude parameter value of each harmonic. The amplitude proportion includes the current amplitude proportion and the voltage amplitude proportion. The current amplitude of each harmonic is cumulatively calculated to obtain the corresponding current amplitude cumulative value. The current amplitude proportion of the harmonic is the ratio between the current amplitude of the harmonic and the current amplitude cumulative value. The voltage amplitude of each harmonic is cumulatively calculated to obtain the corresponding voltage amplitude cumulative value. The voltage amplitude proportion of the harmonic is the ratio between the voltage amplitude of the harmonic and the voltage amplitude cumulative value.
[0064] The deviation parameter value can be obtained based on the corresponding sampling signal, and the amplitude ratio and the deviation parameter value can be compensated and analyzed based on the compensation strategy to obtain the corresponding loss compensation coefficient. The loss compensation coefficient can be used to compensate the initial measured power. The compensation strategy is configured with a coefficient calculation formula, which can be expressed using formula (2):
[0065] (2);
[0066] B is the calculated loss compensation coefficient, R I is the proportion of harmonic current, R V is the proportion of harmonic voltage, and θ is the deviation parameter value. R I is the sum of the current amplitude proportions of other harmonics excluding the reference frequency, R V It is the sum of the voltage amplitudes of the other harmonics except the base frequency. For example, θ=π / 12, R I =0.12, R V =0.08, and the corresponding calculated loss compensation coefficient B is 1.0187.
[0067] in, , ; A Ik is the current amplitude proportion of the kth harmonic, A Vk is the voltage amplitude proportion of the kth harmonic, N is the total number of harmonic frequencies; when k is 1, then A I1 is the current amplitude ratio of the reference frequency, A V1 is the voltage amplitude ratio of the reference frequency.
[0068] The initial measured power can be harmonically compensated based on the loss compensation coefficient to ultimately obtain the metered power. Specifically, the loss compensation coefficient can be multiplied by the initial measured power to achieve harmonic compensation of the initial measured power, and the product is the metered power.
[0069] In the electric energy metering method based on intelligent harmonic compensation disclosed in the above embodiment, the method includes: determining whether the main line meets the electric energy metering conditions; if so, obtaining a sampled signal and converting it accordingly to obtain a frequency domain signal; decomposing the frequency domain signal according to the reference frequency and decomposition strategy to obtain each harmonic signal; performing power measurement on each harmonic signal to obtain an initial measured power; and performing harmonic compensation on the initial measured power to obtain the metered power. The above electric energy metering method based on intelligent harmonic compensation can decompose the frequency domain signal to obtain each harmonic signal and perform power measurement, and then perform harmonic compensation on the initial measured power, thereby achieving harmonic electric energy metering and improving the accuracy and reliability of electric energy metering.
[0070] The embodiment of the present invention further provides an electric energy metering device based on intelligent harmonic compensation, which can be configured in a smart meter and is used to execute any embodiment of the aforementioned electric energy metering method based on intelligent harmonic compensation. Figure 2 , Figure 2 A schematic block diagram of an electric energy metering device based on intelligent harmonic compensation provided by an embodiment of the present invention.
[0071] like Figure 2 As shown, the electric energy metering device 100 based on intelligent harmonic compensation includes a monitoring unit 110 , a sampling unit 120 , a conversion unit 130 , a decomposition unit 140 , a power measurement unit 150 and a compensation unit 160 .
[0072] The monitoring unit 110 is used to continuously monitor whether the transmission current of the main line meets the preset electric energy metering conditions.
[0073] The sampling unit 120 is configured to sample the voltage and current of the main line in real time to obtain a corresponding sampling signal if the transmission current meets the electric energy metering condition.
[0074] The conversion unit 130 is configured to convert the sampled signal according to a preset signal conversion rule to obtain a frequency domain signal corresponding to the sampled signal.
[0075] The decomposition unit 140 is configured to decompose the frequency domain signal according to a preset reference frequency and a decomposition strategy to obtain harmonic signals corresponding to the reference frequency.
[0076] The power measuring unit 150 is configured to measure the power of each harmonic signal according to a preset harmonic power measuring strategy and the sampling signal to obtain a corresponding initial measured power.
[0077] The compensation unit 160 is configured to perform harmonic compensation on the initial measured power according to a preset compensation strategy and the sampling signal to obtain a corresponding metered power.
[0078] The electric energy metering device based on intelligent harmonic compensation provided in the embodiment of the present invention applies the above-mentioned electric energy metering method based on intelligent harmonic compensation to determine whether the main line meets the electric energy metering conditions. If so, the sampling signal is obtained and converted accordingly to obtain a frequency domain signal. The frequency domain signal is decomposed according to the reference frequency and decomposition strategy to obtain each harmonic signal. The power of each harmonic signal is measured to obtain the initial measured power. The initial measured power is harmonically compensated to obtain the metered power. The above-mentioned electric energy metering method based on intelligent harmonic compensation can decompose the frequency domain signal to obtain each harmonic signal and perform power measurement, and then perform harmonic compensation on the initial measured power, thereby realizing the metering of harmonic electric energy and improving the accuracy and reliability of electric energy metering.
[0079] The above-mentioned electric energy metering device based on intelligent harmonic compensation can be implemented in the form of a computer program. The computer program can be used in Figure 3 Runs on the computer device shown.
[0080] See also Figure 3 , Figure 3 1 is a schematic block diagram of a computer device provided by an embodiment of the present invention. The computer device may be a smart meter for executing an electric energy metering method based on intelligent harmonic compensation to perform electric energy metering.
[0081] See Figure 3 The computer device 500 includes a processor 502 , a memory, and a communication interface 505 connected via a communication bus 501 , wherein the memory may include a storage medium 503 and an internal memory 504 .
[0082] The storage medium 503 may store an operating system 5031 and a computer program 5032. When the computer program 5032 is executed, the processor 502 may execute an electric energy metering method based on intelligent harmonic compensation. The storage medium 503 may be a volatile storage medium or a non-volatile storage medium.
[0083] The processor 502 is used to provide computing and control capabilities to support the operation of the entire computer device 500.
[0084] The internal memory 504 provides an environment for the operation of the computer program 5032 in the storage medium 503. When the computer program 5032 is executed by the processor 502, the processor 502 can execute the electric energy metering method based on intelligent harmonic compensation.
[0085] The communication interface 505 is used for network communication, such as providing data information transmission. Those skilled in the art will understand that Figure 3The structure shown in the figure is merely a block diagram of a portion of the structure related to the solution of the present invention and does not constitute a limitation on the computer device 500 to which the solution of the present invention is applied. The specific computer device 500 may include more or fewer components than shown in the figure, or combine certain components, or have a different component arrangement.
[0086] The processor 502 is configured to run a computer program 5032 stored in the memory to implement corresponding functions in the above-mentioned electric energy metering method based on intelligent harmonic compensation.
[0087] Those skilled in the art will understand that Figure 3 The embodiment of the computer device shown in the figure does not constitute a limitation on the specific composition of the computer device. In other embodiments, the computer device may include more or fewer components than shown in the figure, or combine certain components, or arrange the components differently. For example, in some embodiments, the computer device may only include a memory and a processor. In such an embodiment, the structure and function of the memory and processor are the same as those in the figure. Figure 3 The embodiments shown are consistent and will not be described again here.
[0088] It should be understood that in the embodiment of the present invention, the processor 502 may be a central processing unit (CPU), and the processor 502 may also be other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), field-programmable gate arrays (FPGA), or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. The general-purpose processor may be a microprocessor or any conventional processor, etc.
[0089] In another embodiment of the present invention, a computer-readable storage medium is provided. The computer-readable storage medium may be volatile or non-volatile. The computer-readable storage medium stores a computer program, which, when executed by a processor, implements the steps included in the aforementioned method for electric energy metering based on intelligent harmonic compensation.
[0090] Those skilled in the art will clearly understand that, for the convenience and brevity of description, the specific working processes of the above-described equipment, devices and units can refer to the corresponding processes in the aforementioned method embodiments, and will not be repeated here. Those of ordinary skill in the art will appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented with electronic hardware, computer software, or a combination of the two. In order to clearly illustrate the interchangeability of hardware and software, the composition and steps of each example have been generally described in terms of function in the above description. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of the present invention.
[0091] In the several embodiments provided by the present invention, it should be understood that the disclosed devices, apparatuses and methods can be implemented in other ways. For example, the device embodiments described above are merely schematic. For example, the division of the units is merely a logical function division. In actual implementation, there may be other division methods, or units with the same function may be combined into one unit. For example, multiple units or components may be combined or integrated into another system, or some features may be ignored or not executed. In addition, the mutual coupling or direct coupling or communication connection shown or discussed may be an indirect coupling or communication connection through some interfaces, devices or units, or may be an electrical, mechanical or other form of connection.
[0092] The units described as separate components may or may not be physically separate, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed across multiple network units. Some or all of these units may be selected according to actual needs to achieve the objectives of the embodiments of the present invention.
[0093] In addition, the functional units in the various embodiments of the present invention may be integrated into a single processing unit, each unit may exist physically separately, or two or more units may be integrated into a single unit. The aforementioned integrated units may be implemented in the form of hardware or software functional units.
[0094] 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 storage medium. Based on this understanding, the technical solution of the present invention, or the part that contributes to the existing technology, or all or part of the technical solution, can be embodied in the form of a software product. The computer software product is stored in a computer-readable storage medium and includes several instructions for causing a computer device to perform all or part of the steps of the method described in each embodiment of the present invention. The aforementioned computer-readable storage medium includes various media that can store program code, such as a USB flash drive, a mobile hard disk, a read-only memory (ROM), a magnetic disk, or an optical disk.
[0095] The above description is merely a specific embodiment of the present invention, but the scope of protection of the present invention is not limited thereto. Any person skilled in the art can easily conceive of various equivalent modifications or substitutions within the technical scope disclosed in the present invention, and such modifications or substitutions are intended to be within the scope of protection of the present invention. Therefore, the scope of protection of the present invention shall be subject to the scope of protection of the claims.
Claims
1. An electric energy metering method based on intelligent harmonic compensation, characterized in that: The method is applied to a smart meter, and the method includes: Continuously monitor whether the transmission current of the main line meets the preset electric energy metering conditions; If the transmission current meets the electric energy metering condition, the voltage and current of the main line are sampled in real time to obtain corresponding sampling signals; Convert the sampled signal according to a preset signal conversion rule to obtain a frequency domain signal corresponding to the sampled signal; Decomposing the frequency domain signal according to a preset reference frequency and a decomposition strategy to obtain harmonic signals corresponding to the reference frequency; Calculate the power of each harmonic signal according to a preset harmonic power calculation strategy and the sampling signal to obtain a corresponding initial calculated power; Performing harmonic compensation on the initially measured power according to a preset compensation strategy and the sampling signal to obtain a corresponding metered power; The harmonic compensation is performed on the initial measured power according to the preset compensation strategy and the sampling signal to obtain the corresponding metered power, including: The amplitude proportion corresponding to each harmonic is calculated based on the amplitude parameter value of each harmonic; the amplitude proportion includes the current amplitude proportion and the voltage amplitude proportion, the current amplitude proportion is the ratio between the current amplitude of the harmonic and the accumulated current amplitude value; the accumulated current amplitude value is the value obtained by accumulating the current amplitudes of each harmonic; the voltage amplitude proportion is the ratio between the voltage amplitude of the harmonic and the accumulated voltage amplitude value, and the accumulated voltage amplitude value is the value obtained by accumulating the voltage amplitudes of each harmonic; According to the compensation strategy, the amplitude ratio and the deviation parameter value corresponding to the sampling signal are compensated and analyzed to obtain the corresponding loss compensation coefficient; the coefficient calculation formula for calculating the loss compensation coefficient in the compensation strategy is: ; Where B is the loss compensation coefficient, R I is the proportion of harmonic current, R V is the proportion of harmonic voltage, θ is the deviation parameter value; R I is the sum of the current amplitude proportions of other harmonics excluding the reference frequency, R V It is the sum of the voltage amplitude proportions of other harmonics excluding the reference frequency; Performing harmonic compensation on the initial measured power according to the loss compensation coefficient to obtain the corresponding metered power, including: multiplying the loss compensation coefficient by the initial measured power to obtain the corresponding metered power.
2. The electric energy metering method based on intelligent harmonic compensation according to claim 1 is characterized in that: The continuous monitoring of whether the transmission current of the main line meets the electric energy metering conditions includes: Determining whether the transmission current is greater than a current threshold in the electric energy metering condition; If the transmission current is greater than the current threshold, determining whether a duration for which the transmission current is greater than the current threshold is not less than a duration threshold in the electric energy metering condition; If the duration is not less than the duration threshold, determining that the transmission current meets the electric energy metering condition; If the transmission current is not greater than the current threshold or the duration is less than the duration threshold, it is determined that the transmission current does not meet the electric energy metering condition.
3. The electric energy metering method based on intelligent harmonic compensation according to claim 1 is characterized in that: The frequency domain signal includes a current frequency domain signal and a voltage frequency domain signal, and the converting of the sampled signal according to a preset signal conversion rule to obtain a frequency domain signal corresponding to the sampled signal includes: Acquire a current signal and a voltage signal in the same time period from the sampling signal to obtain a current signal segment and a voltage signal segment respectively; Performing a fast Fourier transform on the current signal segment in the sampling signal according to the signal conversion rule to obtain a corresponding current frequency domain signal; Performing a fast Fourier transform on the voltage signal segment in the sampling signal according to the signal conversion rule to obtain a corresponding voltage frequency domain signal.
4. The electric energy metering method based on intelligent harmonic compensation according to claim 1 is characterized in that: Decomposing the frequency domain signal according to a preset reference frequency and a decomposition strategy to obtain harmonic signals corresponding to the reference frequency includes: Determine a frequency that is an integer multiple of the reference frequency as a corresponding harmonic frequency; Determining a harmonic frequency range corresponding to each harmonic frequency according to the frequency fluctuation range in the decomposition strategy; The frequency domain signal is decomposed according to the harmonic frequency range to obtain harmonic frequency domain signals corresponding to each harmonic frequency and combined into the subharmonic signals.
5. The electric energy metering method based on intelligent harmonic compensation according to claim 1 is characterized in that: The power measurement of each harmonic signal is performed according to the preset harmonic power measurement strategy and the sampling signal to obtain the corresponding initial measurement power, including: Extracting the reference parameter value corresponding to each harmonic from each harmonic signal according to the reference parameter item in the harmonic power measurement strategy and the sampling signal; According to the accumulation rule in the harmonic power calculation strategy, the power accumulation calculation is performed on the reference parameter value corresponding to each harmonic to obtain the corresponding initial measured power.
6. The electric energy metering method based on intelligent harmonic compensation according to claim 5 is characterized in that: The extracting, from the harmonic signals according to the reference parameter items in the harmonic power calculation strategy and the sampling signal, the reference parameter values corresponding to the harmonics, comprises: Extracting amplitude parameter values corresponding to the amplitude characteristic parameters in the reference parameter items from the harmonic signals; Extracting a deviation parameter value corresponding to the deviation characteristic parameter in the reference parameter item from the sampled signal according to a reference frequency range corresponding to the reference frequency; The deviation parameter value of the reference frequency and the amplitude parameter value of each harmonic are combined to obtain the reference parameter value corresponding to each harmonic.
7. An electric energy metering device based on intelligent harmonic compensation, characterized in that: The device is configured in a smart meter, and is used to execute the electric energy metering method based on intelligent harmonic compensation according to any one of claims 1 to 6, and the device includes: A monitoring unit is used to continuously monitor whether the transmission current of the main line meets the preset electric energy metering conditions; a sampling unit, configured to sample the voltage and current of the main line in real time to obtain a corresponding sampling signal if the transmission current meets the electric energy metering condition; a conversion unit, configured to convert the sampled signal according to a preset signal conversion rule to obtain a frequency domain signal corresponding to the sampled signal; a decomposition unit, configured to decompose the frequency domain signal according to a preset reference frequency and a decomposition strategy to obtain harmonic signals corresponding to the reference frequency; A power calculation unit, configured to perform power calculation on each harmonic signal according to a preset harmonic power calculation strategy and the sampling signal to obtain a corresponding initial measured power; The compensation unit is used to perform harmonic compensation on the initial measured power according to a preset compensation strategy and the sampling signal to obtain the corresponding metered power.
8. A computer device, characterized in that: The device includes a processor, a communication interface, a memory and a communication bus, wherein the processor, the communication interface and the memory communicate with each other via the communication bus; Memory for storing computer programs; The processor is configured to implement the steps of the electric energy metering method based on intelligent harmonic compensation according to any one of claims 1 to 6 when executing the program stored in the memory.
9. 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 electric energy metering method based on intelligent harmonic compensation are implemented as described in any one of claims 1 to 6.
Citation Information
Patent Citations
Three-phase high-precision harmonic electric energy meter
CN109709390A
Intelligent electric meter chip and intelligent electric meter
CN113625048A