Harmonic correction method, device, electric energy metering equipment and readable storage medium

The harmonic correction method for Σ-Δ electric energy metering equipment addresses distortion issues by using a harmonic correction gain value sequence table to improve harmonic monitoring accuracy and reduce spectrum amplitude errors, achieving precise harmonic spectrum output at a low cost.

CN113866705BActive Publication Date: 2024-12-03WASION GROUP HLDG
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202110996104.2
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-08-27
Publication Date
2024-12-03
Estimated Expiration
2041-08-27

AI Technical Summary

Technical Problem

The existing Σ-Δ electric energy metering equipment suffers from significant distortion of high-order harmonic signal amplitudes due to the digital extraction filter in the analog-to-digital conversion process, failing to meet the accuracy requirements for harmonic monitoring.

Method used

A harmonic correction method that involves generating a harmonic correction gain value sequence table based on oversampling rates and modulation frequencies, applying these values to correct the spectrum monitoring amplitudes of harmonic signals, and forming an accurate harmonic spectrum.

Benefits of technology

The method effectively reduces harmonic spectrum amplitude distortion, ensuring accurate harmonic monitoring while maintaining low implementation costs.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN113866705B_ABST
    Figure CN113866705B_ABST
Patent Text Reader

Abstract

The present invention discloses a harmonic correction method, comprising the steps of: receiving an input harmonic signal to generate a spectrum monitoring amplitude; obtaining a harmonic correction gain value corresponding to the harmonic signal in a preset harmonic correction gain value sequence table; taking the product of the spectrum monitoring amplitude and the harmonic correction gain value as the spectrum correction amplitude of the harmonic signal; forming a harmonic spectrum according to the spectrum correction amplitude, and outputting the harmonic spectrum. The present invention also discloses a device, an electric energy metering device, and a readable storage medium. By applying the harmonic correction method of the present invention to the electric energy metering device, the output harmonic spectrum amplitude and the accuracy of the harmonic spectrum can be improved while maintaining high-precision sampling of the electric energy metering device, thereby avoiding the problem of serious distortion of the output harmonic spectrum amplitude, and the cost of implementation is extremely low.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of power electronics, and in particular to a harmonic correction method, device, electric energy metering equipment and a readable storage medium. Background Art

[0002] With the rapid development of power electronics technology, the proportion of nonlinear loads in the power grid has gradually increased. At present, the harmonic pollution problem caused by nonlinear loads in the power grid has become increasingly prominent, and the power management department has also paid more and more attention to harmonic monitoring. The new generation of smart energy meters of the State Grid and the Southern Power Grid are required to have harmonic monitoring functions. The analog sampling in high-precision electric energy metering equipment usually adopts high-resolution, high-integration and cost-effective Σ-Δ type electric energy metering equipment, but the digital extraction filter of the analog-to-digital conversion process of the current Σ-Δ electric energy metering equipment will cause large distortion of the amplitude of high-order harmonic signals. In addition, in order to obtain high-precision sampling, the most widely used digital decimation filter is sinc 3 Topology, for sinc 3 The actual monitored harmonic signal spectrum amplitudes of different frequencies are distorted to varying degrees, and have exceeded the accuracy requirements of power harmonic monitoring. Therefore, it is necessary to improve the harmonic monitoring accuracy of Σ-Δ electric energy metering equipment. Summary of the invention

[0003] The present invention proposes a harmonic correction method, a device, an electric energy metering device and a readable storage medium, aiming to solve the technical problem of how to improve the harmonic monitoring accuracy of a Σ-Δ electric energy metering device.

[0004] To achieve the above object, the present invention provides a harmonic correction method, which comprises the following steps:

[0005] Receive input harmonic signals and generate spectrum monitoring amplitudes;

[0006] Obtaining a harmonic correction gain value corresponding to the harmonic signal in a preset harmonic correction gain value sequence table;

[0007] The product of the spectrum monitoring amplitude and the harmonic correction gain value is used as the spectrum correction amplitude of the harmonic signal;

[0008] A harmonic spectrum is formed according to the spectrum correction amplitude, and the harmonic spectrum is output.

[0009] Optionally, the harmonic correction method is applied to a digital decimation filter sinc 3 ; The step of receiving the input harmonic signal and generating the spectrum monitoring amplitude includes:

[0010] The oversampling rate is calculated according to the preset sampling rate and the preset modulation frequency;

[0011] The digital decimation filter sinc is determined according to the oversampling rate 3 A transfer function is obtained, and the transfer function is converted into an amplitude-frequency response expression;

[0012] Calculating all harmonic correction gain values ​​corresponding to harmonic signals of all frequencies according to the amplitude-frequency response expression, and generating a harmonic correction gain value sequence table;

[0013] The harmonic correction gain value sequence list is used as a preset harmonic correction gain value sequence list.

[0014] Optionally, the digital decimation filter sinc 3 The transfer function is:

[0015] H(z)=[(1-zN) / (N×(1-z-1))] 3 ,

[0016] The amplitude-frequency response expression is:

[0017] H(f)=|sin(Nπf / f MOD ) / (N×sin(πf / f MOD ))| 3 ,

[0018] Where H(z) is the digital decimation filter sinc 3 transfer function; N is the oversampling rate; z is the independent variable of the transfer function H(z); H(f) is the digital decimation filter sinc 3 The amplitude-frequency response of MOD is the preset modulation frequency; f is the independent variable of the amplitude-frequency response H(f).

[0019] Optionally, the step of calculating all harmonic correction gain values ​​corresponding to harmonic signals of all frequencies according to the amplitude-frequency response expression includes:

[0020] G(n)=1 / H(nf i )=|(N×sin(πnf i / f MOD )) / sin(Nπnf i / f MOD )| 3

[0021] Among them, f i is the pre-set frequency interval; n is the frequency value serial number, G(n) is the correction gain value corresponding to the frequency value with serial number n; H(nf i ) is the frequency nf i When the digital decimation filter sinc 3The amplitude-frequency response; N is the oversampling rate; f MOD is the preset modulation frequency.

[0022] Optionally, the step of calculating the oversampling rate according to the preset sampling rate and the preset modulation frequency includes:

[0023] A ratio value between a preset modulation frequency and a preset sampling rate is calculated, and the ratio value is used as an oversampling rate.

[0024] Optionally, the step of generating a harmonic correction gain value sequence table comprises:

[0025] The frequency values ​​of the harmonic signals of all frequencies are associated and stored with all the harmonic correction gain values ​​in a preset table to generate a harmonic correction gain value sequence table.

[0026] Optionally, the step of receiving an input harmonic signal and generating a spectrum monitoring amplitude includes:

[0027] Receiving an input harmonic analog signal and converting the harmonic analog signal into a harmonic digital signal;

[0028] The harmonic digital signal is converted into a spectrum monitoring amplitude.

[0029] In addition, to achieve the above-mentioned purpose, the present invention further provides a harmonic correction device, the harmonic correction device comprising:

[0030] A signal receiving module is used to receive an input harmonic signal and generate a spectrum monitoring amplitude;

[0031] A monitoring and correction module, used to obtain a harmonic correction gain value corresponding to the harmonic signal in a preset harmonic correction gain value sequence table; and use the product of the spectrum monitoring amplitude and the harmonic correction gain value as the spectrum correction amplitude of the harmonic signal;

[0032] The spectrum output module is used to form a harmonic spectrum according to the spectrum correction amplitude and output the harmonic spectrum.

[0033] In addition, to achieve the above-mentioned purpose, the present invention also provides an electric energy metering device, which includes a memory, a processor, and a harmonic correction program stored in the memory and executable on the processor, wherein: when the harmonic correction program is executed by the processor, the steps of the harmonic correction method described above are implemented.

[0034] In addition, to achieve the above-mentioned purpose, the present invention further provides a readable storage medium, on which a harmonic correction program is stored, and when the harmonic correction program is executed by a processor, the steps of the harmonic correction method described above are implemented.

[0035] The harmonic correction method in the present invention first receives the input harmonic signal, generates all the spectrum monitoring amplitudes, then obtains the harmonic correction gain value corresponding to the harmonic signal in the preset harmonic correction gain value sequence table, takes the product of the spectrum monitoring amplitude and the harmonic correction gain value as all the spectrum correction amplitudes of the harmonic signal, and finally forms a harmonic spectrum according to the spectrum correction amplitude, and outputs the harmonic spectrum. The Σ-Δ type electric energy metering device can automatically correct the spectrum monitoring amplitude when monitoring harmonics, avoiding the problem of serious distortion of the output harmonic spectrum amplitude, that is, it can output relatively accurate harmonic spectrum amplitude and harmonic spectrum, meeting the accuracy requirements of the Σ-Δ type electric energy metering device for monitoring harmonics, and the implementation cost is extremely low. BRIEF DESCRIPTION OF THE DRAWINGS

[0036] Figure 1 It is a schematic diagram of the flow chart of the first embodiment of the harmonic correction method of the present invention;

[0037] Figure 2 It is a flow chart of the second embodiment of the harmonic correction method of the present invention;

[0038] Figure 3 A schematic diagram of a harmonic correction device involved in the harmonic correction method of the present invention;

[0039] Figure 4 A block diagram of an analog-to-digital converter in an electric energy metering device involved in the harmonic correction method of the present invention;

[0040] Figure 5 A spectrum amplitude error diagram of the output of the electric energy metering device before correction involved in the harmonic correction method of the present invention;

[0041] Figure 6 The diagram is a spectrum amplitude error diagram output by the electric energy metering device after correction involved in the harmonic correction method of the present invention. DETAILED DESCRIPTION

[0042] It should be understood that the specific embodiments described herein are only used to explain the present invention, and are not used to limit the present invention.

[0043] like Figure 1 As shown, Figure 1 is a flow chart of the first embodiment of the harmonic correction method of the present invention, and refers to Figure 4 , Figure 4 The analog-to-digital converter in the electric energy metering device involved in the harmonic correction method of the present invention, the electric energy metering device may be a Σ-Δ type electric energy metering device, the Σ-Δ type electric energy metering device includes a Σ-Δ analog-to-digital converter. In this embodiment, the Σ-Δ type electric energy metering device is taken as an example for explanation, but is not limited to the Σ-Δ type electric energy metering device; the harmonic correction method includes:

[0044] Step S10, receiving an input harmonic signal and generating a spectrum monitoring amplitude;

[0045] This embodiment can be applied to Σ-Δ analog-to-digital converters of any brand or specification, such as Figure 4 As shown, the Σ-Δ analog-to-digital converter consists of two parts. The first part is the analog Σ-Δ modulator, and the second part is the digital extraction filter. The Σ-Δ modulator samples the input analog signal at a very high sampling frequency, and performs low-bit quantization on the difference between the two samples, thereby obtaining a digital signal represented by a low-bit digital number, namely the Σ-Δ code; then this Σ-Δ code is sent to the digital extraction filter in the second part for extraction and filtering, thereby obtaining a high-resolution linear pulse code modulated digital signal. Harmonics refer to the electrical quantities in the current whose frequencies are integer multiples of the fundamental wave, usually called high-order harmonics, while the fundamental wave refers to the component whose frequency is the same as the power frequency (50Hz).

[0046] Σ-Δ type electric energy metering equipment also needs to receive and monitor harmonic signals in the power grid during the process of measuring and recording power generation, power supply, line loss and user power consumption. Specifically, the Σ-Δ modulator uses a preset modulation frequency f MOD The analog signal of the harmonic is sampled and then quantized into a digital signal of the harmonic, and then the digital signal of the harmonic is filtered by a digital extraction filter, thereby continuously generating the spectrum monitoring amplitude of the harmonic signal. Among them, the spectrum monitoring amplitude is the harmonic spectrum amplitude monitored by the Σ-Δ type electric energy metering device without any correction.

[0047] Step S20, obtaining a harmonic correction gain value corresponding to the harmonic signal in a preset harmonic correction gain value sequence table;

[0048] Since harmonics are all integer multiples of the fundamental wave (50Hz), they can be divided into harmonics of different orders according to the integer multiples of the fundamental wave for distinction. For example, harmonics of 100Hz and 500Hz can be divided into 2nd harmonics and 10th harmonics. A harmonic correction gain value sequence table is pre-stored in the system of the electric energy metering device, wherein the data in the table are harmonic correction gain values ​​corresponding to harmonic signals of each frequency or each order, wherein the harmonic correction gain values ​​are obtained through a series of transformations and calculations for each harmonic signal. Specifically, the oversampling rate of the Σ-Δ analog-to-digital converter is first obtained, and then the topological structure function of the digital extraction filter is converted to obtain the amplitude-frequency response expression of the harmonic. Finally, according to the amplitude-frequency response expression, the modulation frequency of the Σ-Δ modulator and the oversampling rate, the harmonic correction gain value corresponding to each harmonic signal can be calculated, and the frequency or order of each harmonic signal is associated with the corresponding harmonic correction gain value and stored to generate a harmonic correction gain value sequence table. The harmonic correction gain values ​​of the harmonic signals that are needed can be calculated according to actual needs to generate a harmonic correction gain value sequence table containing the harmonic signal, so that after receiving the harmonic signal, the harmonic correction gain value corresponding to the harmonic signal can be found in the harmonic correction gain value sequence table. If the harmonic signal received by the Σ-Δ modulator does not have a corresponding harmonic correction gain value in the harmonic correction gain value sequence table, the harmonic correction gain value of the harmonic signal can be directly calculated using the above calculation method, and then the harmonic correction gain value can be used to correct the spectrum monitoring amplitude of the harmonic signal. In addition, the newly calculated harmonic correction gain value can be added to the original harmonic correction gain value sequence table.

[0049] Step S30: taking the product of the spectrum monitoring amplitude and the harmonic correction gain value as the spectrum correction amplitude of the harmonic signal.

[0050] The spectrum monitoring amplitude is a dynamically changing value, which is continuously generated by the Σ-Δ type electric energy metering device at a certain frequency, so it can be one value or multiple values. For example, in the harmonic correction gain value sequence table, the correction gain value corresponding to the 150Hz harmonic signal is 1.0007, and one of the spectrum monitoring amplitudes of the harmonic signal is 60A. Multiply 60A by 1.0007 to get 60.042A, and use 60.042A as a spectrum correction amplitude.

[0051] Step S40: forming a harmonic spectrum according to the spectrum correction amplitude, and outputting the harmonic spectrum.

[0052] The spectrum monitoring amplitude of the harmonic signal continuously generated by the Σ-Δ type electric energy metering device at a certain frequency is converted into the spectrum of the harmonic, and the spectrum monitoring amplitude and harmonic spectrum of the harmonic signal are continuously output.

[0053] The harmonic correction method in the present invention first receives the input harmonic signal, generates the spectrum monitoring amplitude, then obtains the harmonic correction gain value corresponding to the harmonic signal in the preset harmonic correction gain value sequence table, takes the product of the spectrum monitoring amplitude and the harmonic correction gain value as the spectrum correction amplitude of the harmonic signal, and finally forms a harmonic spectrum according to the spectrum correction amplitude, and outputs the harmonic spectrum. The Σ-Δ type electric energy metering device can automatically correct the spectrum monitoring amplitude when monitoring harmonics, avoiding the problem of serious distortion of the output harmonic spectrum amplitude, that is, it can output relatively accurate harmonic spectrum amplitude and harmonic spectrum, meeting the accuracy requirements of the Σ-Δ type electric energy metering device for monitoring harmonics, and the implementation cost is extremely low.

[0054] like Figure 2 As shown, further, based on the first embodiment of the harmonic correction method of the present invention, a second embodiment of the harmonic correction method of the present invention is proposed. In this embodiment, the harmonic correction method is applied to a digital decimation filter sinc 3 ; Before step S10, it includes:

[0055] Step S100, calculating an oversampling rate according to a preset sampling rate and a preset modulation frequency;

[0056] Specifically, the ratio of the preset modulation frequency to the preset sampling rate is used as the oversampling rate, wherein the modulation frequency and the sampling rate can be preset according to implementation conditions.

[0057] Step S110, determining a digital decimation filter sinc according to the oversampling rate 3 A transfer function is obtained, and the transfer function is converted into an amplitude-frequency response expression;

[0058] This embodiment is applied to sinc 3 The digital decimation filter structure converts the sinc 3 The transfer function of the structure is converted into an amplitude-frequency response expression, which is the ratio of the amplitude of the output harmonic signal to the amplitude of the signal at its input.

[0059] Specifically, according to sinc 3 Transfer function of the structure: H(z) = [(1-zN) / (N×(1-z-1))] 3 ,

[0060] Since the z transform on the unit circle is the Fourier transform of the sequence, let z = e jω , where ω=2πf / f s =2πf / f MOD , and obtain the digital decimation filter sinc 3 The frequency response expression is:

[0061] H(e jω )=[(1-e -jω N) / (N×(1-e -jω ))] 3

[0062] According to Euler's formula:

[0063] cos(x)=(e jx +e -jx ) / 2

[0064] sin(x)=(e jx -e -jx ) / 2j

[0065] or

[0066] e jx =cos(x)+j sin(x)

[0067] e -jx = cos(x)-j sin(x)

[0068] Using the above relationship, we can simplify H(e jω )=[(1-e -jω N) / (N×(1-e -jω ))] 3 get

[0069]

[0070] Then take the modulus to get the digital decimation filter sinc 3 The amplitude-frequency response expression is:

[0071]

[0072] use We get H(f) = |sin(Nπf / f MOD ) / (N×sin(πf / f MOD ))| 3 , where H(z) is the digital decimation filter sinc 3 transfer function; N is the oversampling rate; z is the independent variable of the transfer function H(z); H(f) is the digital decimation filter sinc 3 The amplitude-frequency response of MOD is the preset modulation frequency; f is the independent variable of the amplitude-frequency response H(f), which is also the frequency of the actual input signal; ω is the circular frequency relative to the discrete system and discrete signal, that is, the digital angular frequency.

[0073] Step S120, calculating all harmonic correction gain values ​​corresponding to harmonic signals of all frequencies according to the amplitude-frequency response expression, and generating a harmonic correction gain value sequence table;

[0074] Specifically, G(n)=1 / H(nf i )=|(N×sin(πnf i / f MOD )) / sin(Nπnf i / f MOD )| 3

[0075] Among them, f i is the pre-set frequency interval, which is 50 Hz; n is the frequency value serial number, G(n) is the correction gain value corresponding to the frequency value with serial number n; H(nf i ) is the frequency nf i When the digital decimation filter sinc 3 The amplitude-frequency response; N is the oversampling rate; f MOD is the modulation frequency.

[0076] The step of generating a harmonic correction gain value sequence table includes: associating and storing the frequency values ​​of the harmonic signals of all frequencies with all the harmonic correction gain values ​​in a preset table to generate a harmonic correction gain value sequence table.

[0077] The ∑-Δ type electric energy metering device can associate the frequency value of the harmonic of each frequency, such as the frequency value of 100Hz, with the harmonic correction gain value of the harmonic of each frequency obtained by calculation and store it in a table created in the system. For example, if the harmonic correction gain value of the harmonic of 100Hz is 1.0007, then the keyword 100Hz can be associated with 1.0007 and stored in the table in the system. The frequency value of the harmonic of each frequency and the harmonic correction gain value of the harmonic of each frequency are associated and stored in the table in the system, and a harmonic correction gain value sequence table is generated. If the harmonic of a certain frequency is not in the generated harmonic correction gain value sequence table as needed, the harmonic of the frequency can be associated with the harmonic correction gain value of the harmonic obtained by calculation and stored in the original harmonic correction gain value sequence table. That is, the harmonic correction gain value sequence table is not fixed and can be changed according to actual conditions. In addition, the wave orders corresponding to the harmonics of each frequency can also be associated with the harmonic correction gain values ​​of the harmonics and stored in a table created in the system. For example, the harmonic correction gain value of the 200Hz harmonic is calculated to be 1.0009, and the 4th-order keyword 4 corresponding to the 200Hz harmonic is associated with 1.0009 and stored in a table in the system.

[0078] For example, an energy metering device using a Σ-Δ analog-to-digital converter of a certain company, model ADS131M08, has a preset sampling rate of f s =12.8kHz, the modulation frequency of the ADS131M08Σ-Δ analog-to-digital converter is f MOD =3.2768MHz, thus setting the oversampling of the ADS131M08Σ-Δ ADC to N=f MOD / f s = 256. The correction gain sequence with a frequency interval of 50Hz in the frequency range of 50-2500Hz is expressed as an array as follows:

[0079] G[1:50]={1.0001,1.0003,1.0007,1.0012,1.0019,1.0027,1.0037,1.0048,1.0061,1.0076,1.0092,1.01 09,1.0128,1.0149,1.0171,1.0195,1.0220,1.0247,1.0276,1.0306,1.0338,1.0372,1.0407,1.0445,1.0 483,1.0524,1.0566,1.0611,1.0657,1.0704,1.0754,1.0806,1.0859,1.0915,1.0973,1.1032,1.1094,1.1158,1.1223,1.1291,1.1362,1.1434,1.1509,1.1586,1.1666,1.1748,1.1832,1.1919,1.2008,1.2101}.

[0080] The above correction gain sequence is used to correct the harmonic signal of the corresponding frequency. The spectrum amplitude errors of the output before and after correction are as follows: Figure 5 and Figure 6 As shown in the figure, it is not difficult to see that before correction, the spectrum amplitude error monitored increases with the increase of frequency value, the spectrum amplitude error of the 25th frequency value (i.e. 25th harmonic, frequency value is 1250Hz) reaches -5%, and the spectrum amplitude error of the 50th frequency value (i.e. 50th harmonic, frequency value is 2500Hz) reaches -17%; after correction, the spectrum amplitude errors from the 1st frequency to the 50th frequency (i.e. 50-2500Hz frequency range) are all within ±0.2%, which effectively improves the accuracy of Σ-Δ type electric energy metering equipment for harmonic monitoring.

[0081] Step S130: using the harmonic correction gain value sequence list as a preset harmonic correction gain value sequence list.

[0082] For example, the above harmonic correction gain value sequence table may be pre-stored in the system of the electric energy metering device as a preset harmonic correction gain value sequence table.

[0083] Further, based on the second embodiment of the harmonic correction method of the present invention, a third embodiment of the harmonic correction method of the present invention is proposed. In this embodiment, the step of receiving the input harmonic signal and generating the spectrum monitoring amplitude includes:

[0084] Step a, receiving an input harmonic analog signal and converting the harmonic analog signal into a harmonic digital signal;

[0085] Step b, converting the harmonic digital signal into a spectrum monitoring amplitude

[0086] Reference Figure 4 , unlike general ADC, Σ-Δ ADC does not directly perform quantization encoding based on the size of each sample value of the sampled data, but performs quantization encoding based on the difference between the previous value and the next value, i.e., the size of the so-called increment. The Σ-Δ modulator samples the input harmonic analog signal at a very high sampling frequency set in advance, and performs low-bit quantization on the difference between the two samples, thereby obtaining a harmonic digital signal represented by a low-bit digital number, i.e., the harmonic Σ-Δ code; then this Σ-Δ code is sent to the digital extraction filter in the second part for extraction and filtering, thereby obtaining a high-resolution linear pulse code modulated harmonic digital signal, which is used as the spectrum monitoring amplitude of the harmonic.

[0087] In addition, refer to Figure 3 The present invention further provides a harmonic correction device, the harmonic correction device comprising:

[0088] The signal receiving module A10 is used to receive the input harmonic signal and generate the spectrum monitoring amplitude;

[0089] The monitoring and correction module A20 is used to obtain the harmonic correction gain value corresponding to the harmonic signal in the preset harmonic correction gain value sequence table; and take the product of the spectrum monitoring amplitude and the harmonic correction gain value as the spectrum correction amplitude of the harmonic signal;

[0090] The spectrum output module A30 is used to form a harmonic spectrum according to the spectrum correction amplitude and output the harmonic spectrum.

[0091] Optionally, the monitoring and correction module A20 is further used for:

[0092] The oversampling rate is calculated according to the preset sampling rate and the preset modulation frequency;

[0093] The digital decimation filter sinc is determined according to the oversampling rate 3A transfer function is obtained, and the transfer function is converted into an amplitude-frequency response expression;

[0094] Calculating all harmonic correction gain values ​​corresponding to harmonic signals of all frequencies according to the amplitude-frequency response expression, and generating a harmonic correction gain value sequence table;

[0095] The harmonic correction gain value sequence list is used as a preset harmonic correction gain value sequence list.

[0096] Optionally, the monitoring and correction module A20 is further used for:

[0097] The digital decimation filter sinc 3 The transfer function is:

[0098] H(z)=[(1-zN) / (N×(1-z-1))] 3 ,

[0099] The amplitude-frequency response expression is:

[0100] H(f)=|sin(Nπf / f MOD ) / (N×sin(πf / f MOD ))| 3 ,

[0101] Where H(z) is the digital decimation filter sinc 3 transfer function; N is the oversampling rate; z is the independent variable of the transfer function H(z); H(f) is the digital decimation filter sinc 3 The amplitude-frequency response of MOD is the preset modulation frequency; f is the independent variable of the amplitude-frequency response H(f).

[0102] Optionally, the monitoring and correction module A20 is further used for:

[0103] G(n)=1 / H(nf i )=|(N×sin(πnf i / f MOD )) / sin(Nπnf i / f MOD )| 3

[0104] Among them, f i is the pre-set frequency interval; n is the frequency value serial number, G(n) is the correction gain value corresponding to the frequency value with serial number n; H(nf i ) is the frequency nf i When the digital decimation filter sinc 3 The amplitude-frequency response; N is the oversampling rate; f MOD is the preset modulation frequency.

[0105] Optionally, the monitoring and correction module A20 is further used for:

[0106] A ratio value between a preset modulation frequency and a preset sampling rate is calculated, and the ratio value is used as an oversampling rate.

[0107] Optionally, the monitoring and correction module A20 is further used for:

[0108] The frequency values ​​of the harmonic signals of all frequencies are associated and stored with all the harmonic correction gain values ​​in a preset table to generate a harmonic correction gain value sequence table.

[0109] Optionally, the signal receiving module A10 is further used for:

[0110] Receiving an input harmonic analog signal and converting the harmonic analog signal into a harmonic digital signal;

[0111] The harmonic digital signal is converted into a spectrum monitoring amplitude.

[0112] In addition, the present invention also proposes an electric energy metering device, which includes a memory, a processor, and a harmonic correction program stored in the memory and executable on the processor, and when the processor executes the harmonic correction program, the steps of the harmonic correction method described in the above embodiment are implemented.

[0113] The specific implementation of the electric energy metering device of the present invention is basically the same as the above-mentioned embodiments of the harmonic correction method, and will not be repeated here.

[0114] In addition, the present invention further proposes a readable storage medium, characterized in that the readable storage medium includes a harmonic correction program, and when the harmonic correction program is executed by a processor, the steps of the harmonic correction method described in the above embodiment are implemented.

[0115] The specific implementation of the readable storage medium of the present invention is basically the same as the above-mentioned embodiments of the harmonic correction method, and will not be repeated here.

[0116] The serial numbers of the above embodiments of the present invention are only for description and do not represent the advantages or disadvantages of the embodiments.

[0117] Through the description of the above implementation methods, those skilled in the art can clearly understand that the above-mentioned embodiment methods can be implemented by means of software plus a necessary general hardware platform, and of course by hardware, but in many cases the former is a better implementation method. Based on such an understanding, the technical solution of the present invention is essentially or the part that contributes to the prior art can be embodied in the form of a software product, which is stored in a storage medium (such as ROM / RAM, magnetic disk, optical disk) as described above, and includes a number of instructions for a terminal device (which can be a TV, mobile phone, computer, server, air conditioner, or network device, etc.) to execute the methods described in each embodiment of the present invention.

[0118] In the present invention, the terms "first", "second", "third", "fourth" and "fifth" are used for descriptive purposes only and are not to be understood as indicating or implying relative importance. For ordinary technicians in this field, the specific meanings of the above terms in the present invention can be understood according to specific circumstances.

[0119] In the description of this specification, the description with reference to the terms "one embodiment", "some embodiments", "example", "specific example", or "some examples" etc. means that the specific features, structures, materials or characteristics described in conjunction with the embodiment or example are included in at least one embodiment or example of the present invention. In this specification, the schematic representations of the above terms do not necessarily refer to the same embodiment or example. Moreover, the specific features, structures, materials or characteristics described may be combined in any one or more embodiments or examples in a suitable manner. In addition, those skilled in the art may combine and combine the different embodiments or examples described in this specification and the features of the different embodiments or examples, without contradiction.

[0120] Although the embodiments of the present invention have been shown and described above, the scope of protection of the present invention is not limited thereto. It is understood that the above embodiments are exemplary and cannot be understood as limiting the present invention. A person of ordinary skill in the art can change, modify and replace the above embodiments within the scope of the present invention, and these changes, modifications and replacements should be included in 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. A harmonic correction method, characterized in that: The harmonic correction method is applied to a Σ-Δ type electric energy metering device, wherein the Σ-Δ type electric energy metering device comprises a Σ-Δ analog-to-digital converter, wherein the Σ-Δ analog-to-digital converter comprises an analog Σ-Δ modulator and a digital extraction filter sinc 3 , the harmonic correction method comprises the following steps: Receive input harmonic signals and generate spectrum monitoring amplitudes; Obtaining a harmonic correction gain value corresponding to the harmonic signal in a preset harmonic correction gain value sequence table; The product of the spectrum monitoring amplitude and the harmonic correction gain value is used as the spectrum correction amplitude of the harmonic signal; Forming a harmonic spectrum according to the spectrum correction amplitude, and outputting the harmonic spectrum; The step of receiving an input harmonic signal and generating a spectrum monitoring amplitude includes: receiving an input harmonic signal, and inputting the harmonic signal into the analog Σ-Δ modulator for modulation to obtain a Σ-Δ code of the harmonic signal; Controls the digital decimation filter sinc 3 Performing extraction and filtering on the Σ-Δ code to obtain a spectrum monitoring amplitude of the harmonic signal; The step of receiving an input harmonic signal and generating a spectrum monitoring amplitude includes: The oversampling rate is calculated according to the preset sampling rate and the preset modulation frequency; The digital decimation filter sinc is determined according to the oversampling rate 3 A transfer function is obtained, and the transfer function is converted into an amplitude-frequency response expression; Calculating all harmonic correction gain values ​​corresponding to harmonic signals of all frequencies according to the amplitude-frequency response expression, and generating a harmonic correction gain value sequence table; The harmonic correction gain value sequence list is used as a preset harmonic correction gain value sequence list.

2. The harmonic correction method according to claim 1, characterized in that: The digital decimation filter sinc 3 The transfer function is: H(z)=[(1-z-N) / (N×(1-z-1))] 3 , The amplitude-frequency response expression is: H(f)=|sin(Nπf / f MOD ) / (N×sin(πf / f MOD ))| 3 , Where H(z) is the digital decimation filter sinc 3 transfer function; N is the oversampling rate; z is the independent variable of the transfer function H(z); H(f) is the digital decimation filter sinc 3 The amplitude-frequency response of MOD is the preset modulation frequency; f is the independent variable of the amplitude-frequency response H(f).

3. The harmonic correction method according to claim 1, characterized in that: The step of calculating all harmonic correction gain values ​​corresponding to harmonic signals of all frequencies according to the amplitude-frequency response expression comprises: G(n)=1 / H(nf i )=|(N×sin(πnf i / f MOD )) / sin(Nπnf i / f MOD )| 3 Among them, f i is the pre-set frequency interval; n is the frequency value serial number, G(n) is the correction gain value corresponding to the frequency value with serial number n; H(nf i ) is the frequency nf i When the digital decimation filter sinc 3 The amplitude-frequency response; N is the oversampling rate; f MOD is the preset modulation frequency.

4. The harmonic correction method according to claim 1, characterized in that: The step of calculating the oversampling rate according to the preset sampling rate and the preset modulation frequency comprises: A ratio value between a preset modulation frequency and a preset sampling rate is calculated, and the ratio value is used as an oversampling rate.

5. The harmonic correction method according to claim 1, characterized in that: The step of generating a harmonic correction gain value sequence table comprises: The frequency values ​​of the harmonic signals of all frequencies are associated and stored with all the harmonic correction gain values ​​in a preset table to generate a harmonic correction gain value sequence table.

6. A harmonic correction device, characterized in that: The harmonic correction device is applied to a Σ-Δ type electric energy metering device, wherein the Σ-Δ type electric energy metering device comprises a Σ-Δ analog-to-digital converter, wherein the Σ-Δ analog-to-digital converter comprises an analog Σ-Δ modulator and a digital extraction filter sinc 3 , the harmonic correction device comprises: A signal receiving module is used to receive an input harmonic signal and generate a spectrum monitoring amplitude; A monitoring and correction module, used to obtain a harmonic correction gain value corresponding to the harmonic signal in a preset harmonic correction gain value sequence table; and use the product of the spectrum monitoring amplitude and the harmonic correction gain value as the spectrum correction amplitude of the harmonic signal; A spectrum output module, used for forming a harmonic spectrum according to the spectrum correction amplitude, and outputting the harmonic spectrum; The signal receiving module is also used for: receiving an input harmonic signal, and inputting the harmonic signal into the analog Σ-Δ modulator for modulation to obtain a Σ-Δ code of the harmonic signal; Controls the digital decimation filter sinc 3 Performing extraction and filtering on the Σ-Δ code to obtain a spectrum monitoring amplitude of the harmonic signal; The monitoring and correction module is also used for: The oversampling rate is calculated according to the preset sampling rate and the preset modulation frequency; The digital decimation filter sinc is determined according to the oversampling rate 3 A transfer function is obtained, and the transfer function is converted into an amplitude-frequency response expression; Calculating all harmonic correction gain values ​​corresponding to harmonic signals of all frequencies according to the amplitude-frequency response expression, and generating a harmonic correction gain value sequence table; The harmonic correction gain value sequence list is used as a preset harmonic correction gain value sequence list.

7. An electric energy metering device, characterized in that: The electric energy metering device includes a memory, a processor, and a harmonic correction program stored in the memory and executable on the processor, wherein: when the harmonic correction program is executed by the processor, the steps of the harmonic correction method according to any one of claims 1 to 5 are implemented.

8. A readable storage medium, characterized in that: The readable storage medium stores a harmonic correction program, and when the harmonic correction program is executed by a processor, the steps of the harmonic correction method according to any one of claims 1 to 5 are implemented.