Electric energy metering method and device, electronic equipment and storage medium
By combining adaptive natural spline interpolation and Hilbert transform, the problems of high computational complexity and low accuracy in reactive power metering are solved, achieving efficient and accurate full-wave reactive power metering, supporting stable grid operation and fair trading.
Patent Information
- Application Number
- CN202511437536.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2025-10-09
- Publication Date
- 2026-08-25
- Estimated Expiration
- 2045-10-09
AI Technical Summary
Existing reactive power metering technologies suffer from high computational complexity and passband fluctuations, resulting in low metering accuracy and making it difficult to meet the needs of stable power grid operation and economic settlement.
A combined algorithm of adaptive natural spline interpolation and Hilbert transform is used to achieve full-wave reactive energy metering through analog-to-digital conversion, time-domain resampling, frequency-domain transformation and phase modulation.
It improves the accuracy and calculation efficiency of reactive power metering, meets the metering accuracy requirements under all operating conditions, and supports stable grid operation and fair trading.
Smart Images

Figure CN120993040B_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of power system energy metering technology, and in particular to an energy metering method, device, electronic equipment and storage medium. Background Technology
[0002] In power systems, accurate reactive power metering is crucial for stable grid operation, energy efficiency management, and economic settlement. First, reactive power directly impacts voltage quality and transmission efficiency; inaccurate metering can lead to voltage fluctuations, increased line losses, and even compromised power supply reliability. Second, in the electricity market environment, reasonable compensation and settlement of reactive power require accurate metering to ensure fair transactions among generators, the grid, and users. Furthermore, reactive power assessments and power factor adjustment tariffs for industrial users also rely on high-precision reactive power metering to promote energy conservation and emission reduction. Therefore, developing advanced reactive power metering technologies not only helps improve the economy and security of grid operation but also serves as a key support for the construction of smart grids and the energy internet.
[0003] In the field of electricity metering, Hilbert transform filters are currently the mainstream solution for reactive energy metering. However, this technology has the following significant limitations: First, to achieve high-precision reactive energy metering, high-order filter designs are necessary, which not only significantly increases computational complexity but also introduces additional group delay. Second, under high sampling rate operating conditions, the passband ripple problem of the filter is particularly prominent, making it difficult to guarantee phase response consistency and directly affecting metering accuracy. To address these technical bottlenecks, there is an urgent need to develop an innovative algorithm with higher computational efficiency, more stable passband characteristics, and the ability to meet the accuracy requirements of reactive energy metering under all operating conditions.
[0004] When using Fourier transform to achieve time-frequency domain conversion of signals, the Fast Fourier Transform (FFT) is typically employed. Algorithms are used to improve computational efficiency. However, The algorithm has an inherent limitation: to ensure the accuracy of the time-frequency conversion, the number of points in the input signal must meet certain requirements. Simultaneously, the signal must contain a complete cycle. This condition is often difficult to strictly meet in practical engineering applications. Therefore, it is necessary to develop a high-precision signal resampling interpolation algorithm to eliminate errors such as spectral leakage, thereby ensuring... The accuracy of the analysis results. Summary of the Invention
[0005] In view of this, the purpose of the present invention is to provide an energy metering method, device, electronic device and storage medium to improve the accuracy of full-wave reactive energy metering.
[0006] In a first aspect, embodiments of the present invention provide an electricity metering method, the method comprising: acquiring a voltage signal and a current signal of one cycle of the system under test; converting the voltage signal and the current signal into digital quantities via analog-to-digital conversion; and obtaining... Point voltage value and Point current value; where, positive integer The number of sampling points; Point voltage value and The point current value is resampled in the time domain using adaptive natural spline interpolation to obtain... Point voltage value and Point current value; where, It is a positive integer; Performing a Hilbert transform on the voltage signal sequence of the point voltage values yields... The voltage signal sequence after phase shift; wherein, the Hilbert transform includes: converting the voltage signal to the frequency domain through fast Fourier transform, applying phase modulation, and then restoring it through inverse fast Fourier transform; based on the voltage signal sequence and The full-wave electrical parameters are obtained by calculating the current signal sequence of the point current value.
[0007] In an optional embodiment of this application, a positive integer is calculated using the following formula. : ;in, The fundamental frequency of the signal in the system under test is _____. The sampling frequency for analog-to-digital conversion; This indicates that the ratio of the sampling frequency to the fundamental frequency of the signal is rounded to the nearest integer.
[0008] In optional embodiments of this application, the above will Point voltage value and The point current value is resampled in the time domain using adaptive natural spline interpolation to obtain... Point voltage value and The steps for determining the point current value include: Point voltage value and The point current value is used to calculate the second derivative at each node using the three bending moment equations; the spline coefficients for each interval are calculated based on the second derivatives at each node; the natural spline function for each interval is calculated based on the spline coefficients for each interval; the x-coordinate of each interpolation point is substituted into the natural spline function of the corresponding interval to obtain the resampled point value as... Point voltage value and Point current value.
[0009] In optional embodiments of this application, the above will The steps for performing a Hilbert transform on a voltage signal sequence of point voltage values include: converting the voltage time-domain signal of the voltage signal sequence to the frequency domain using a Fast Fourier Transform (FFT) to obtain a voltage frequency-domain signal; performing a multiplication operation between the voltage frequency-domain signal and a frequency-domain filter to preserve the positive frequency of the voltage frequency-domain signal; and converting the filtered voltage frequency-domain signal back to the time domain using an inverse FFT to obtain the voltage frequency-domain signal. The voltage signal sequence after phase shift.
[0010] In optional embodiments of this application, the above method is used to perform reactive energy metering on the fundamental signal or the signal containing harmonics; the adaptive natural spline interpolation method is used to perform adaptive resampling when the fundamental signal changes.
[0011] In optional embodiments of this application, the above-mentioned full-wave electrical parameters include: full-wave reactive power and full-wave reactive energy.
[0012] In optional embodiments of this application, the above-mentioned voltage signal sequence and The steps for calculating full-wave electrical parameters from a current signal sequence of point current values include: based on a voltage signal sequence, Current signal sequence and positive integer of point current value The total reactive power is calculated; the total reactive energy is calculated based on the total reactive power and time.
[0013] Secondly, embodiments of the present invention also provide an energy metering device, the device comprising: a signal acquisition and analog-to-digital conversion module, used to acquire a voltage signal and a current signal of one cycle of the system under test, and to convert the voltage signal and the current signal into digital quantities via analog-to-digital conversion to obtain... Point voltage value and Point current value; where, positive integer The number of sampling points; the adaptive natural spline interpolation module is used to... Point voltage value and The point current value is resampled in the time domain using adaptive natural spline interpolation to obtain... Point voltage value and Point current value; where, For positive integers; Hilbert transform module, used to transform... Performing a Hilbert transform on the voltage signal sequence of the point voltage values yields... The voltage signal sequence after phase shift; wherein, the Hilbert transform includes: converting the voltage signal to the frequency domain through fast Fourier transform, applying phase modulation, and then restoring it through inverse fast Fourier transform; a full-wave electrical parameter calculation module is used to calculate the voltage signal sequence and... The full-wave electrical parameters are obtained by calculating the current signal sequence of the point current value.
[0014] Thirdly, embodiments of the present invention also provide an electronic device, including a processor and a memory, wherein the memory stores computer-executable instructions that can be executed by the processor, and the processor executes the computer-executable instructions to implement the above-described power metering method.
[0015] Fourthly, embodiments of the present invention also provide a computer-readable storage medium storing computer-executable instructions. When the computer-executable instructions are invoked and executed by a processor, the computer-executable instructions cause the processor to implement the above-described power metering method.
[0016] The embodiments of the present invention bring the following beneficial effects: This invention provides an electricity metering method, device, electronic device, and storage medium. It acquires the voltage and current signals of one cycle of the system under test, converts the voltage and current signals into digital quantities via analog-to-digital conversion, and obtains... Point voltage value and Point current value; where, positive integer The number of sampling points; Point voltage value and The point current value is resampled in the time domain using adaptive natural spline interpolation to obtain... Point voltage value and Point current value; where, It is a positive integer; Performing a Hilbert transform on the voltage signal sequence of the point voltage values yields... The voltage signal sequence after phase shift; wherein, the Hilbert transform includes: converting the voltage signal to the frequency domain through fast Fourier transform, applying phase modulation, and then restoring it through inverse fast Fourier transform; based on the voltage signal sequence and The full-wave electrical parameters are calculated from the current signal sequence of the point current value. This method can be based on time-domain interpolation and... type The transformation enables full-wave reactive energy metering, thereby improving the accuracy of full-wave reactive energy metering.
[0017] Other features and advantages of this disclosure will be set forth in the following description, or some features and advantages may be inferred from the description or determined without doubt, or may be learned by practicing the techniques described above.
[0018] To make the above-mentioned objects, features and advantages of this disclosure more apparent and understandable, preferred embodiments are described below in detail with reference to the accompanying drawings. Attached Figure Description
[0019] To more clearly illustrate the specific embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the specific embodiments or the prior art will be briefly introduced below. Obviously, the drawings described below are some embodiments of the present invention. For those skilled in the art, other drawings can be obtained from these drawings without creative effort.
[0020] Figure 1 A flowchart of an energy metering method provided in an embodiment of the present invention; Figure 2 A flowchart illustrating an energy metering method provided in an embodiment of the present invention; Figure 3 A graph showing the absolute error relationship between a power factor of 1.0, a fundamental frequency of 47-53Hz, and reactive power is provided for an embodiment of the present invention. Figure 4 A specific embodiment of the power factor provided in this invention The relative error relationship of reactive power at fundamental frequency 47-53Hz; Figure 5 A specific embodiment of the power factor provided in this invention The relative error relationship between the 3rd to 41st odd harmonics with harmonic voltage content of 5% and harmonic current content of 10% is plotted on a fundamental 50Hz signal and the reactive power. Figure 6 This is a schematic diagram of the structure of an electricity metering device provided in an embodiment of the present invention; Figure 7 This is a schematic diagram of the structure of an electronic device provided in an embodiment of the present invention. Detailed Implementation
[0021] To make the objectives, technical solutions, and advantages of the embodiments of the present invention clearer, the technical solutions of the present invention will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of the present invention, not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of the present invention.
[0022] Currently, in the field of electricity metering, there is an urgent need to develop an innovative algorithm with higher computational efficiency, more stable passband characteristics, and the ability to meet the accuracy requirements of reactive power metering under all operating conditions. When using Fourier transform to achieve time-frequency domain conversion of signals, a high-precision signal resampling interpolation algorithm needs to be developed to eliminate errors such as spectral leakage, thereby ensuring accuracy. The accuracy of the analysis results.
[0023] Based on this, embodiments of the present invention provide an energy metering method, device, electronic device, and storage medium, specifically providing a method based on time-domain interpolation and... type The transformed full-wave reactive energy metering method can improve the accuracy of full-wave reactive energy metering.
[0024] To facilitate understanding of this embodiment, a detailed description of an electricity metering method disclosed in this embodiment of the invention will be provided first.
[0025] Example 1: This invention provides an electricity metering method, see [link to relevant documentation]. Figure 1 The flowchart shown illustrates an electricity metering method, which includes the following steps: Step S102: Acquire the voltage and current signals of the system under test for one cycle, and convert the voltage and current signals into digital quantities via analog-to-digital conversion to obtain... Point voltage value and Point current value; where, positive integer This represents the number of sampling points.
[0026] In this embodiment, the voltage and current values of one cycle of the system under test can be collected, and the number of sampling points is a positive integer. The collected voltage and current signals are converted into digital quantities using analog-to-digital conversion.
[0027] In some embodiments, a positive integer can be calculated using the following formula. : ;in, The fundamental frequency of the signal in the system under test is _____. The sampling frequency for analog-to-digital conversion; This indicates that the ratio of the sampling frequency to the fundamental frequency of the signal is rounded to the nearest integer.
[0028] In other words, this embodiment can first determine the fundamental frequency of the signal and the sampling frequency, calculate the ratio of the sampling frequency to the fundamental frequency of the signal, and then round the ratio to obtain a positive integer. .
[0029] Step S104, will Point voltage value and The point current value is resampled in the time domain using adaptive natural spline interpolation to obtain... Point voltage value and Point current value; where, It is a positive integer.
[0030] In this embodiment, the sampled... Point voltage value and The point current value is resampled in the time domain using an adaptive natural spline interpolation formula to obtain... Point voltage value .
[0031] In some embodiments, it can be Point voltage value and The point current value is used to calculate the second derivative at each node using the three bending moment equations; the spline coefficients for each interval are calculated based on the second derivatives at each node; the natural spline function for each interval is calculated based on the spline coefficients for each interval; the x-coordinate of each interpolation point is substituted into the natural spline function of the corresponding interval to obtain the resampled point value as... Point voltage value and Point current value.
[0032] The adaptive natural spline interpolation algorithm in this embodiment can be: because The signal acquired by the (Analog-to-Digital Converter) is a uniformly sampled signal, and its step size is... Fixed, can be seen as The second derivatives at each node can be obtained using the three moment equations. (i is the index of the discrete data obtained by ADC sampling, i=0 represents the first sampling point, i=M represents the initial point of the next cycle), the simplified three-moment equation is as follows: , .
[0033] Where s: sampling step size, i.e., the x-coordinate interval between adjacent sampling points; set to 1 in uniform sampling. : The value of the i-th sampled signal point; where the point i=M represents the initial point of the next cycle. Here, the point i=0 is used to assign the value to ensure that the sampled points cover the entire cycle. : The position of the i-th sampling signal point; .
[0034] In each interval [ , Construct a cubic spline function on [the surface].
[0035] in .
[0036] coefficient The calculation formula is as follows: ; Step size of the resampled uniform signal sequence x-coordinate of resampling points for .
[0037] Since the x-coordinates of the interpolation points are known to be ordered, this embodiment can use a piecewise linear search method to improve query efficiency by sorting the x-coordinates of each interpolation point. Substitute the spline function for the corresponding interval The values of each resampling point are calculated. .
[0038] Step S106, will Performing a Hilbert transform on the voltage signal sequence of the point voltage values yields... The voltage signal sequence after phase shift; wherein, the Hilbert transform includes: converting the voltage signal to the frequency domain through fast Fourier transform, applying phase modulation, and then restoring it through inverse fast Fourier transform.
[0039] In this embodiment, the results obtained from the aforementioned steps can be... Point voltage Hilbert ( Transform: via Fast Fourier Transform The signal is converted to the frequency domain, phase modulation is applied, and then it undergoes inverse fast Fourier transform (FFT). ) Restored Phase-shifted voltage signal sequence That is, the data sequence obtained by the voltage phase shift algorithm.
[0040] In some embodiments, the voltage time-domain signal of the voltage signal sequence can be converted to the frequency domain using a Fast Fourier Transform (FFT) to obtain a voltage frequency-domain signal; a frequency-domain filter is used to multiply the voltage frequency-domain signal to preserve the positive frequency of the voltage frequency-domain signal; and an inverse FFT is used to convert the filtered voltage frequency-domain signal back to the time domain to obtain... The voltage signal sequence after phase shift.
[0041] In this embodiment The transformation can be: pass Forward transform converts voltage time-domain signals to frequency domain signals. ; Through frequency domain filter and voltage frequency signal Multiplication is performed to preserve positive frequencies and suppress negative frequencies. This involves a frequency domain filter. The following conditions must be met: , ,in It is a positive integer; pass The inverse transform converts the filtered frequency domain signal back to the time domain. , The imaginary part is the required original voltage. Phase-shifted signal. That is... = .
[0042] Step S108, based on voltage signal sequence and The full-wave electrical parameters are obtained by calculating the current signal sequence of the point current value.
[0043] In this embodiment, a voltage signal sequence is used. and current signal sequence The full-wave electrical parameters were calculated.
[0044] In some embodiments, the above method is used to perform reactive energy metering on the fundamental signal or the signal containing harmonics; the adaptive natural spline interpolation method is used to perform adaptive resampling when the fundamental signal changes.
[0045] In this embodiment, in addition to fundamental frequency reactive energy measurement, reactive energy measurement of signals containing harmonics is also possible. The adaptive natural spline interpolation algorithm used in this embodiment can accurately perform adaptive resampling to ensure the periodicity and number of points required by the signal even when the fundamental frequency changes.
[0046] In some embodiments, the above-mentioned full-wave electrical parameters include: full-wave reactive power and full-wave reactive energy.
[0047] In some embodiments, it can be based on a voltage signal sequence, Current signal sequence and positive integer of point current value The total reactive power is calculated; the total reactive energy is calculated based on the total reactive power and time.
[0048] The full-wave electrical parameters can be calculated using the following formula: Full-wave reactive power , This is the integration operator. Point current value; total wave reactive energy , For time.
[0049] This invention provides an energy metering method that acquires a voltage and current signal of one cycle from the system under test, converts the voltage and current signals into digital quantities via analog-to-digital conversion, and obtains... Point voltage value and Point current value; where, positive integer The number of sampling points; Point voltage value and The point current value is resampled in the time domain using adaptive natural spline interpolation to obtain... Point voltage value and Point current value; where, It is a positive integer; Performing a Hilbert transform on the voltage signal sequence of the point voltage values yields... The voltage signal sequence after phase shift; wherein, the Hilbert transform includes: converting the voltage signal to the frequency domain through fast Fourier transform, applying phase modulation, and then restoring it through inverse fast Fourier transform; based on the voltage signal sequence and The full-wave electrical parameters are calculated from the current signal sequence of the point current value. This method can be based on time-domain interpolation and... type The transformation enables full-wave reactive energy metering, thereby improving the accuracy of full-wave reactive energy metering.
[0050] Example 2: This embodiment provides another method for electricity metering, which is implemented based on the above embodiment, and focuses on describing the specific method of full-wave reactive power metering.
[0051] See also Figure 2 The diagram shows a flowchart of an electricity metering method. This invention provides a method based on time-domain interpolation and... type The full-wave reactive energy metering method for transformation may include the following steps S1-S4: Step S1: Collect the voltage and current values of the system under test for one cycle, with the number of sampling points being a positive integer. It converts voltage and current signals from analog to digital. Specifically, the fundamental frequency is voltage signal Current signal Sampling frequency The analog-to-digital converter converts it to one cycle. Voltage values of point sequences Current value ,in , This indicates rounding to the nearest integer.
[0052] Step S2, the sampled The point voltage and current values are obtained by time-domain resampling using an interpolation formula. Point voltage and current values.
[0053] Specifically Voltage values of point sequences Current value Temporal resampling obtained by natural spline interpolation Sequence voltage value Current value The natural spline interpolation algorithm flow is as follows: because The acquired signal is a uniformly sampled signal, and its step size is... Fixed, can be regarded as The second derivative at each node can be obtained using the three bending moment equations. The simplified equation for the three bending moments is as follows: , .
[0054] In each interval [ , Calculate spline coefficients on [the above]. as follows: ; Given the spline coefficients for each interval, the natural spline function for each interval is... as follows: ; Step size of the resampled uniform signal sequence x-coordinate of resampling points for .
[0055] Since the x-coordinates of the interpolation points are ordered, a piecewise linear search method can be used to improve query efficiency. Substitute the spline function for the corresponding interval Perform calculations; In particular, when the frequency When making changes, it is necessary to ensure that time-domain resampling is achieved. Uniform sequence voltage Current value It is still a complete cycle. At this point, the step size of the resampled uniform signal sequence is adjusted. x-coordinate of resampling points for , .
[0056] It should be noted that natural spline interpolation has the same effect on voltage and current phase.
[0057] Step S3, take the result obtained in step S2 Point voltage sequence conduct The transformation yields a voltage signal sequence after a 90-degree phase shift. The specific algorithm flow is as follows: Can be called (Digital Signal Processing Library) The forward transform function converts a voltage time-domain signal to the frequency domain. ; Through frequency domain filter and voltage frequency signal Multiplication is performed to preserve positive frequencies and suppress negative frequencies. This involves a frequency domain filter. The following conditions must be met: , ; Call In the library The inverse transform function converts the filtered frequency domain signal back to the time domain. , The imaginary part is the required 90-degree phase-shifted signal from the original voltage, i.e. = .
[0058] Step S4, from the voltage signal sequence Current signal sequence The full-wave reactive power parameters were calculated. Among them, the full-wave reactive power , For integration operators; total-wave reactive energy , For time.
[0059] The method of this invention can be applied to electricity meters (e.g., the electricity meter model is DTZ535Pro three-phase three-wire smart electricity meter, 3×1.5(6)A, active pulse 20000imp / kWh, 50Hz), and the program is implemented in the GD32F415RGO6 processing chip of the electricity meter.
[0060] See also Figure 3 The diagram shown illustrates the relationship between an implementation with a power factor of 1.0, a fundamental frequency of 47-53Hz, and the absolute error of reactive power. Figure 4 One specific implementation of power factor shown A graph showing the relative error between the fundamental frequency (47-53Hz) and reactive power. Figure 5 One specific implementation of power factor shown The relative error relationship between the 3rd to 41st odd harmonics with harmonic voltage content of 5% and harmonic current content of 10% is plotted on a fundamental 50Hz signal.
[0061] The basic error data for the three-phase three-wire reactive power in the forward fundamental frequency are listed below, as shown in Table 1: Table 1. Fundamental Reactive Power Error
[0062] The following table lists the error data for the influence of the three-phase three-wire frequency on the positive reactive power, as shown in Table 2: Table 2 Error of the influence of fundamental reactive frequency
[0063] As can be seen from Tables 1 and 2, the fundamental reactive power accuracy of the meter applied using the method of this invention remains stable. Within this range, it already meets the current standard requirements for fundamental frequency reactive energy meters.
[0064] In summary, the full-wave reactive energy metering method provided in this embodiment of the invention is based on time-domain interpolation and type Transformation. This method first uses natural spline interpolation to resample the voltage and current signals of one cycle in the time domain, obtaining a number of points. A periodic voltage signal sequence, then processed... The voltage frequency domain signal is obtained by transformation, then phase modulation is applied to the frequency domain signal, and finally IFFT is performed on the phase-modulated signal to obtain the time domain signal. The imaginary part of the obtained time domain signal is the original voltage signal with a 90-degree phase shift.
[0065] The method provided in the embodiments of the present invention employs type The transformation uses natural spline interpolation formulas for time-domain resampling, thereby achieving synchronous sampling and reducing interpolation errors. Furthermore, since cubic spline interpolation has the same effect on the voltage and current phases, it does not affect the phase difference calculation, and phase difference correction is unnecessary.
[0066] The above-mentioned reasons provided by the embodiments of the present invention are as follows: platform and This method is computationally efficient, requires only simple calculations, is easy to implement, and is readily available for fixed-point implementation. Implemented on the platform.
[0067] The computational accuracy provided by the embodiments of the present invention fully meets the requirements and has been verified by simulation experiments. The fundamental reactive pulse error is within ±0.02%, and the method has been implemented in high-end smart meter series products, fully meeting the technical requirements.
[0068] Example 3: Corresponding to the above method embodiments, this invention provides an electricity metering device, see [link to relevant documentation]. Figure 6 The diagram shows the structure of an electricity metering device, which includes: The signal acquisition and analog-to-digital conversion module 61 is used to acquire the voltage and current signals of the system under test for one cycle, and convert the voltage and current signals into digital quantities via analog-to-digital conversion to obtain... Point voltage value and Point current value; where, positive integer This represents the number of sampling points; Adaptive natural spline interpolation module 62, used to... Point voltage value and The point current value is resampled in the time domain using adaptive natural spline interpolation to obtain... Point voltage value and Point current value; where, It is a positive integer; Hilbert transform module 63, used to transform Performing a Hilbert transform on the voltage signal sequence of the point voltage values yields... The voltage signal sequence after phase shift; wherein, the Hilbert transform includes: converting the voltage signal to the frequency domain through fast Fourier transform, applying phase modulation, and then restoring it through inverse fast Fourier transform; Full-wave electrical parameter calculation module 64, used for calculation based on voltage signal sequence and The full-wave electrical parameters are obtained by calculating the current signal sequence of the point current value.
[0069] This invention provides an energy metering device that acquires voltage and current signals of the system under test for one cycle, converts the voltage and current signals into digital quantities via analog-to-digital conversion, and obtains... Point voltage value and Point current value; where, positive integer The number of sampling points; Point voltage value and The point current value is resampled in the time domain using adaptive natural spline interpolation to obtain... Point voltage value and Point current value; where, It is a positive integer; Performing a Hilbert transform on the voltage signal sequence of the point voltage values yields... The voltage signal sequence after phase shift; wherein, the Hilbert transform includes: converting the voltage signal to the frequency domain through fast Fourier transform, applying phase modulation, and then restoring it through inverse fast Fourier transform; based on the voltage signal sequence and The full-wave electrical parameters are calculated from the current signal sequence of the point current value. This method can be based on time-domain interpolation and... type The transformation enables full-wave reactive energy metering, thereby improving the accuracy of full-wave reactive energy metering.
[0070] The aforementioned signal acquisition and analog-to-digital conversion module is used to calculate positive integers using the following formula. : ;in, The fundamental frequency of the signal in the system under test is _____. The sampling frequency for analog-to-digital conversion; This indicates that the ratio of the sampling frequency to the fundamental frequency of the signal is rounded to the nearest integer.
[0071] The aforementioned adaptive natural spline interpolation module is used to... Point voltage value and The point current value is used to calculate the second derivative at each node using the three bending moment equations; the spline coefficients for each interval are calculated based on the second derivatives at each node; the natural spline function for each interval is calculated based on the spline coefficients for each interval; the x-coordinate of each interpolation point is substituted into the natural spline function of the corresponding interval to obtain the resampled point value as... Point voltage value and Point current value.
[0072] The Hilbert transform module described above is used to convert the voltage time-domain signal of the voltage signal sequence to the frequency domain using a fast Fourier transform, obtaining the voltage frequency-domain signal; multiplying the voltage frequency-domain signal with a frequency-domain filter to preserve the positive frequency of the voltage frequency-domain signal; and converting the filtered voltage frequency-domain signal back to the time domain using an inverse fast Fourier transform, obtaining... The voltage signal sequence after phase shift.
[0073] The aforementioned device is used for reactive energy metering of fundamental or harmonic signals; the adaptive natural spline interpolation method is used for adaptive resampling when the fundamental signal changes.
[0074] The above-mentioned full-wave electrical parameters include: full-wave reactive power and full-wave reactive energy.
[0075] The aforementioned full-wave electrical parameter calculation module is used for calculating voltage signal sequences, Current signal sequence and positive integer of point current value The total reactive power is calculated; the total reactive energy is calculated based on the total reactive power and time.
[0076] Those skilled in the art will clearly understand that, for the sake of convenience and brevity, the specific working process of the electricity metering device described above can be referred to the corresponding process in the aforementioned embodiments of the electricity metering method, and will not be repeated here.
[0077] Example 4: This invention also provides an electronic device for operating the above-described energy metering method; see [link to previous document]. Figure 7The diagram shows the structure of an electronic device, which includes a memory 100 and a processor 101. The memory 100 is used to store one or more computer instructions, which are executed by the processor 101 to implement the above-mentioned power metering method.
[0078] Furthermore, Figure 7 The electronic device shown also includes a bus 102 and a communication interface 103, with the processor 101, communication interface 103 and memory 100 connected via the bus 102.
[0079] The memory 100 may include high-speed random access memory (RAM) and may also include non-volatile memory, such as at least one disk storage device. Communication between this system network element and at least one other network element is achieved through at least one communication interface 103 (which can be wired or wireless), such as the Internet, wide area network, local area network, metropolitan area network, etc. The bus 102 may be an ISA bus, PCI bus, or EISA bus, etc. The bus can be divided into address bus, data bus, control bus, etc. For ease of representation, Figure 7 The symbol is represented by a single double-headed arrow, but this does not mean that there is only one bus or one type of bus.
[0080] Processor 101 may be an integrated circuit chip with signal processing capabilities. In implementation, each step of the above method can be completed by the integrated logic circuitry in the hardware of processor 101 or by instructions in software form. Processor 101 can be a general-purpose processor, including a Central Processing Unit (CPU), a Network Processor (NP), etc.; it can also be a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), a Field-Programmable Gate Array (FPGA), or other programmable logic devices, discrete gate or transistor logic devices, or discrete hardware components. It can implement or execute the methods, steps, and logic block diagrams disclosed in the embodiments of this invention. The general-purpose processor can be a microprocessor or any conventional processor. The steps of the methods disclosed in the embodiments of this invention can be directly manifested as execution by a hardware decoding processor, or execution by a combination of hardware and software modules in the decoding processor. The software module can reside in a readily available storage medium in the art, such as random access memory, flash memory, read-only memory, programmable read-only memory, electrically erasable programmable memory, or registers. This storage medium is located in memory 100, and processor 101 reads information from memory 100 and, in conjunction with its hardware, completes the steps of the method described in the foregoing embodiments.
[0081] This invention also provides a computer-readable storage medium storing computer-executable instructions. When these computer-executable instructions are called and executed by a processor, they cause the processor to implement the above-described power metering method. For specific implementation details, please refer to the method embodiments, which will not be repeated here.
[0082] The computer program products of the power metering method, device, electronic device and storage medium provided in the embodiments of the present invention include a computer-readable storage medium storing program code. The instructions included in the program code can be used to execute the methods in the preceding method embodiments. For specific implementation, please refer to the method embodiments, which will not be repeated here.
[0083] Those skilled in the art will clearly understand that, for the sake of convenience and brevity, the specific working process of the system and / or device described above can be referred to the corresponding process in the foregoing method embodiments, and will not be repeated here.
[0084] Furthermore, in the description of the embodiments of the present invention, unless otherwise explicitly specified and limited, the terms "installation," "connection," and "linking" should be interpreted broadly. For example, they can refer to a fixed connection, a detachable connection, or an integral connection; they can refer to a mechanical connection or an electrical connection; they can refer to a direct connection or an indirect connection through an intermediate medium; and they can refer to the internal connection of two components. Those skilled in the art can understand the specific meaning of the above terms in the present invention based on the specific circumstances.
[0085] If the aforementioned functions are implemented as software functional units and sold or used as independent products, they can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of this invention, essentially, or the part that contributes to the prior art, or a portion of the technical solution, can be embodied in the form of a software product. This computer software product is stored in a storage medium and includes several instructions to cause a computer device (which may be a personal computer, server, or network device, etc.) to execute all or part of the steps of the methods described in the various embodiments of this invention. The aforementioned storage medium includes various media capable of storing program code, such as USB flash drives, portable hard drives, read-only memory (ROM), random access memory (RAM), magnetic disks, or optical disks.
[0086] In the description of this invention, it should be noted that the terms "center," "upper," "lower," "left," "right," "vertical," "horizontal," "inner," and "outer," etc., indicate the orientation or positional relationship based on the orientation or positional relationship shown in the accompanying drawings. They are used only for the convenience of describing the invention and for simplifying the description, and do not indicate or imply that the device or element referred to must have a specific orientation, or be constructed and operated in a specific orientation. Therefore, they should not be construed as limitations on the invention. Furthermore, the terms "first," "second," and "third" are used for descriptive purposes only and should not be construed as indicating or implying relative importance.
[0087] Finally, it should be noted that the above-described embodiments are merely specific implementations of the present invention, used to illustrate the technical solutions of the present invention, and not to limit it. The scope of protection of the present invention is not limited thereto. Although the present invention has been described in detail with reference to the foregoing embodiments, those skilled in the art should understand that any person skilled in the art can still modify or easily conceive of changes to the technical solutions described in the foregoing embodiments within the technical scope disclosed in the present invention, or make equivalent substitutions for some of the technical features; and these modifications, changes, or substitutions do not cause the essence of the corresponding technical solutions to deviate from the spirit and scope of the technical solutions of the embodiments of the present invention, and should all be covered within the scope of protection of the present invention. Therefore, the scope of protection of the present invention should be determined by the scope of the claims.
Claims
1. A method for metering electrical energy, characterized in that, The method includes: The voltage and current signals of the system under test for one cycle are acquired, and the voltage and current signals are converted into digital quantities via analog-to-digital conversion to obtain... Point voltage value and Point current value; where, positive integer This represents the number of sampling points; The Point voltage value and the The point current value is resampled in the time domain using adaptive natural spline interpolation to obtain... Point voltage value and Point current value; where, It is a positive integer; The Performing a Hilbert transform on the voltage signal sequence of the point voltage values yields... The voltage signal sequence after phase shift; wherein, the Hilbert transform includes: converting the voltage signal to the frequency domain through fast Fourier transform, applying phase modulation, and then restoring it through inverse fast Fourier transform; Based on the voltage signal sequence and the The full-wave electrical parameters are obtained by calculating the current signal sequence of the point current value. The Point voltage value and the The point current value is resampled in the time domain using adaptive natural spline interpolation to obtain... Point voltage value and The steps for determining the point current value include: […]. Point voltage value and the The point current value is used to calculate the second derivative at each node using the three bending moment equations; the spline coefficients for each interval are calculated based on the second derivatives at each node; the natural spline function for each interval is calculated based on the spline coefficients for each interval; the x-coordinate of each interpolation point is substituted into the natural spline function of the corresponding interval to obtain the resampled point value as... Point voltage value and Point current value; The The steps of performing a Hilbert transform on a voltage signal sequence of point voltage values include: converting the voltage time-domain signal of the voltage signal sequence to the frequency domain using a Fast Fourier Transform (FFT) to obtain a voltage frequency-domain signal; performing a multiplication operation between the voltage frequency-domain signal and a frequency-domain filter to preserve the positive frequency of the voltage frequency-domain signal; and converting the filtered voltage frequency-domain signal back to the time domain using an inverse Fast Fourier Transform (IFFT) to obtain... The voltage signal sequence after phase shift; The method is used to perform reactive energy metering on fundamental or harmonic signals; the adaptive natural spline interpolation method is used to perform adaptive resampling when the fundamental signal changes.
2. The method according to claim 1, characterized in that, The positive integer is obtained by calculating using the following formula. : ; in, The fundamental frequency of the signal of the system under test is denoted as . The sampling frequency of the analog-to-digital converter; This indicates that the ratio of the sampling frequency to the fundamental frequency of the signal is rounded to the nearest integer.
3. The method according to claim 1 or 2, characterized in that, The full-wave electrical parameters include: full-wave reactive power and full-wave reactive energy.
4. The method according to claim 3, characterized in that, Based on the voltage signal sequence and the The steps for calculating the full-wave electrical parameters from the current signal sequence of point current values include: Based on the voltage signal sequence, the The current signal sequence of the point current value and the positive integer The full-wave reactive power is calculated. The full-wave reactive power is calculated based on the full-wave reactive power and time.
5. An electricity metering device, characterized in that, The apparatus for performing the energy metering method according to any one of claims 1 to 4, the apparatus comprising: The signal acquisition and analog-to-digital conversion module is used to acquire the voltage and current signals of the system under test for one cycle, and convert the voltage and current signals into digital quantities via analog-to-digital conversion to obtain... Point voltage value and Point current value; where, positive integer This represents the number of sampling points; The adaptive natural spline interpolation module is used to perform the following interpolation: Point voltage value and the The point current value is resampled in the time domain using adaptive natural spline interpolation to obtain... Point voltage value and Point current value; where, It is a positive integer; Hilbert transform module, used to transform the Performing a Hilbert transform on the voltage signal sequence of the point voltage values yields... The voltage signal sequence after phase shift; wherein, the Hilbert transform includes: converting the voltage signal to the frequency domain through fast Fourier transform, applying phase modulation, and then restoring it through inverse fast Fourier transform; The full-wave electrical parameter calculation module is used to calculate the voltage signal sequence and the... The full-wave electrical parameters are obtained by calculating the current signal sequence of the point current value.
6. An electronic device, characterized in that, It includes a processor and a memory, the memory storing computer-executable instructions that can be executed by the processor, the processor executing the computer-executable instructions to implement the power metering method according to any one of claims 1 to 4.
7. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores computer-executable instructions, which, when invoked and executed by a processor, cause the processor to implement the power metering method according to any one of claims 1 to 4.
Citation Information
Patent Citations
Online diesel engine air valve state detection method
CN110686890A
Harmonic coupling external characteristic prediction method for three-phase rectification circuit
CN111682542A