Intelligent electric energy meter metering method and device based on intelligent correction, equipment and medium
By using an intelligent calibration method, a temperature sensor is used to detect the ambient temperature, adjust the sampling frequency, and correct the power consumption value. This solves the problem of insufficient metering accuracy of electricity meters at different temperatures and achieves higher metering precision.
Patent Information
- Application Number
- CN202511598779.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-11-04
- Publication Date
- 2026-01-13
- Estimated Expiration
- Not applicable · inactive patent
AI Technical Summary
In existing technologies, electricity meters use the same correction curve for numerical correction under different ambient temperatures, resulting in insufficient accuracy in electricity metering.
The intelligent calibration method uses a temperature sensor to detect the ambient temperature, adjusts the sampling frequency, and corrects the electrical quantity value according to the basic metering strategy and environmental calibration rules. This includes monitoring current conditions, determining the sampling frequency, real-time sampling, signal conversion, frequency domain signal calculation, and the application of environmental calibration coefficients.
It improves the accuracy of electricity metering, reduces the impact of ambient temperature changes on metering results, and enhances the metering accuracy of electricity meters.
Smart Images

Figure CN121324733A_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of smart energy meter technology, and in particular to a smart energy meter metering method, device, equipment and medium based on smart calibration. Background Technology
[0002] In the process of metering electrical energy, the precision components inside the energy meter are prone to deviations due to the influence of ambient temperature. For example, high temperatures can cause voltage signal deviations, affecting the accuracy of the metering results. Current technologies typically correct the measured values using a set correction curve. However, this correction curve is not specific to different ambient temperatures. Using the same correction curve for different temperatures still results in some deviation in the values after correction, ultimately affecting the accuracy of energy metering. Therefore, energy meters using existing technologies suffer from insufficient accuracy in energy metering. Summary of the Invention
[0003] This invention provides a smart energy meter metering method, device, equipment, and medium based on intelligent calibration, aiming to solve the problem of insufficient accuracy of energy meters used in existing methods when measuring energy.
[0004] In a first aspect, embodiments of the present invention provide a smart energy meter metering method based on intelligent calibration, wherein the method is applied in the controller of the smart meter, the controller being communicatively connected to a temperature sensor to achieve data information transmission, and the method comprising: Continuous monitoring is conducted to ensure that the transmission current of the main line meets the preset energy metering conditions. If the transmission current meets the energy metering conditions, the sampling frequency corresponding to the temperature detection value and the reference frequency is determined according to the preset frequency determination rules; the temperature detection value is obtained by the temperature sensor. The voltage and current of the main line are sampled in real time according to the sampling frequency to obtain the corresponding sampling signal; The sampled signal is converted according to a preset signal conversion rule to obtain a frequency domain signal corresponding to the sampled signal; The frequency domain signal is measured according to the preset basic metering strategy, the reference frequency and the sampling frequency to obtain the corresponding basic metering power value; According to the environmental correction rules, obtain the environmental correction coefficients corresponding to the temperature detection value and the basic metered electricity value; The basic metered electricity value is corrected according to the environmental correction coefficient to obtain the corresponding target metered electricity value.
[0005] Secondly, embodiments of the present invention also provide a smart energy meter metering device based on intelligent calibration, wherein the device is configured in the controller of the smart energy meter, the controller is communicatively connected to a temperature sensor to realize data information transmission, and the device is used to execute the smart energy meter metering method based on intelligent calibration as described in the first aspect above, the device comprising: The monitoring unit is used to continuously monitor whether the transmission current of the main line meets the preset energy metering conditions. The sampling frequency determination unit is used to determine, according to a preset frequency determination rule, a sampling frequency corresponding to the temperature detection value and the reference frequency if the transmission current meets the energy metering conditions; the temperature detection value is obtained by the temperature sensor. The sampling signal acquisition unit is used to sample the voltage and current of the main line in real time according to the sampling frequency to obtain the corresponding sampling signal; A frequency domain signal acquisition unit is used to convert the sampled signal according to a preset signal conversion rule to obtain a frequency domain signal corresponding to the sampled signal; The calculation unit is used to calculate the frequency domain signal according to the preset basic metering strategy, the reference frequency and the sampling frequency to obtain the corresponding basic metering power value; An environmental correction coefficient acquisition unit is used to acquire an environmental correction coefficient corresponding to the temperature detection value and the basic metered electricity value according to environmental correction rules. The correction processing unit is used to correct the basic metered electricity value according to the environmental correction coefficient to obtain the corresponding target metered electricity value.
[0006] Thirdly, embodiments of the present invention also provide a computer device, wherein the device includes a processor, a communication interface, a memory, and a communication bus, wherein the processor, the communication interface, and the memory communicate with each other through the communication bus; Memory, used to store computer programs; When the processor executes the program stored in the memory, it implements the steps of the smart energy meter metering method based on intelligent correction described in the first aspect above.
[0007] Fourthly, embodiments of the present invention also provide a computer-readable storage medium having a computer program stored thereon, wherein the computer program, when executed by a processor, implements the steps of the smart energy meter metering method based on intelligent correction as described in the first aspect above.
[0008] This invention provides a smart energy meter metering method, device, equipment, and medium based on intelligent correction. The method includes: determining whether the main circuit meets the energy metering conditions; if so, determining the sampling frequency based on the temperature detection value obtained by a temperature sensor; acquiring the sampling signal based on the sampling frequency and converting it to obtain a frequency domain signal; calculating the basic metered energy value based on the frequency domain signal according to the basic metering strategy, the reference frequency, and the sampling frequency; further acquiring the environmental correction coefficient corresponding to the temperature detection value and the basic metered energy value according to environmental correction rules; and correcting the basic metered energy value to obtain the target metered energy value. The above-mentioned smart energy meter metering method based on intelligent correction can adjust the sampling frequency according to the detected temperature value and correct the basic metered energy value based on environmental correction rules, thereby improving the accuracy of energy metering through environmental correction. Attached Figure Description
[0009] To more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings used in the following description of the embodiments will be briefly introduced. Obviously, the drawings described below are some embodiments of the present invention. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.
[0010] Figure 1 A flowchart illustrating the smart energy meter metering method based on intelligent correction provided in this embodiment of the invention; Figure 2 A schematic diagram illustrating an application scenario of the smart energy meter metering method based on intelligent correction provided in an embodiment of the present invention; Figure 3 A schematic block diagram of a smart energy meter metering device based on intelligent correction provided in an embodiment of the present invention; Figure 4 This is a schematic block diagram of a computer device provided in an embodiment of the present invention. Detailed Implementation
[0011] The technical solutions of the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some, not all, of the embodiments of the present invention. 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.
[0012] It should be understood that, when used in this specification and the appended claims, the terms "comprising" and "including" indicate the presence of the described features, integrals, steps, operations, elements and / or components, but do not exclude the presence or addition of one or more other features, integrals, steps, operations, elements, components and / or collections thereof.
[0013] It should also be understood that the terminology used in this specification is for the purpose of describing particular embodiments only and is not intended to limit the invention. As used in this specification and the appended claims, the singular forms “a,” “an,” and “the” are intended to include the plural forms unless the context clearly indicates otherwise.
[0014] It should also be further understood that the term "and / or" as used in this specification and the appended claims refers to any combination of one or more of the associated listed items and all possible combinations, and includes such combinations.
[0015] The embodiments of this invention application provide a smart energy meter metering method based on intelligent calibration. Figure 2 This is a schematic diagram illustrating an application scenario of the smart energy meter metering method based on intelligent correction provided in an embodiment of the present invention; for example... Figure 2 As shown, the above method is applied to the controller 11 of the smart meter 10. The controller 11 is connected to the temperature sensor 12 to transmit data information. The controller 11 executes the stored software program to implement the above-mentioned smart meter metering method based on intelligent correction. The detection circuit configured in the smart meter can detect the voltage and current in the main circuit, and process the detection signal through the internally configured controller 11 to realize energy metering. The controller 11 can be an MCU chip or an FPGA chip. The temperature sensor 12 is a sensor set inside or outside the detection circuit for measuring ambient temperature, such as a temperature-sensing resistor or a pyroelectric sensor.
[0016] like Figure 1 As shown, the method includes steps S110 to S170.
[0017] S110. Continuously monitor whether the transmission current of the main line meets the preset energy metering conditions.
[0018] Smart meters can measure the current and voltage of the main line through their internal ammeter and voltage sensing circuits, thereby obtaining the current and voltage of the main line. They can measure the transmission current of the main line and determine whether the transmission current meets the preset energy metering conditions. If the transmission current meets the energy metering conditions, then the currently consumed energy is metered; at this time, the transmission current measurement frequency is relatively low, such as 500Hz. If the transmission current does not meet the energy metering conditions, energy metering is not performed to reduce the power consumption of the smart meter itself.
[0019] In a specific embodiment, step S110 includes the following sub-steps: determining whether the transmission current is greater than the current threshold in the energy metering conditions; if the transmission current is greater than the current threshold, determining whether the duration for which the transmission current is greater than the current threshold is not less than the duration threshold in the energy metering conditions; if the duration is not less than the duration threshold, determining that the transmission current meets the energy metering conditions; if the transmission current is not greater than the current threshold or the duration is less than the duration threshold, determining that the transmission current does not meet the energy metering conditions.
[0020] Specifically, it can be determined whether the real-time measured transmission current is greater than the current threshold in the energy metering conditions. If the real-time measured transmission current is greater than the current threshold, the duration for which the transmission current is greater than the current threshold is further obtained. The number of consecutive judgments that the transmission current is greater than the current threshold can be obtained, and the duration for which the transmission current is greater than the current threshold is obtained based on this number. It is then determined whether this duration is not less than a duration threshold. If the duration is not less than the duration threshold, it is determined that the transmission current meets the energy metering conditions. If the transmission current is not greater than the current threshold, the cumulative number of judgments that the transmission current is greater than the current threshold is terminated, and it is determined that the transmission current does not meet the energy metering conditions; if the duration is less than the duration threshold, it is also determined that the transmission current does not meet the energy metering conditions.
[0021] S120. If the transmission current meets the energy metering conditions, determine the sampling frequency corresponding to the temperature detection value and the reference frequency according to the preset frequency determination rules.
[0022] If the transmission current meets the energy metering conditions, the sampling frequency corresponding to the temperature detection value and the reference frequency is immediately determined according to the frequency determination rules. The temperature detection value is obtained by the temperature sensor, and the reference frequency is the AC working frequency specified in the smart meter assembly area. For example, if the AC working frequency is specified as 50Hz in my country, then the reference frequency is 50Hz.
[0023] In a specific embodiment, step S120 includes the following sub-steps: obtaining the temperature difference between the temperature detection value and the standard temperature set in the frequency determination rule; obtaining the multiplier coefficient that matches the temperature difference according to the matching table in the frequency determination rule; and obtaining the sampling frequency corresponding to the reference frequency based on the multiplier coefficient.
[0024] Specifically, the frequency determination rules include a standard temperature, which is the standard ambient temperature set during the factory testing and calibration of the smart energy meter. For example, the standard temperature can be set to 25℃. If the smart energy meter is tested and calibrated at an ambient temperature of 25℃, the measured value will be without deviation. However, if the smart energy meter operates at other ambient temperatures, the measured value will drift due to temperature changes, resulting in a certain deviation from the true value. The difference between the detected temperature value and the standard temperature can be calculated based on the standard temperature, and the absolute value can be taken as the calculated temperature difference.
[0025] Further, the matching table in the frequency determination rules is used to obtain the magnification factor that matches the temperature difference, and the magnification factor is multiplied by the reference frequency to obtain the sampling frequency. The matching table contains multiple temperature matching segments, each temperature matching segment corresponding to a magnification factor. For example, the magnification factor corresponding to the temperature matching segment [0, 6℃) is 7, the magnification factor corresponding to the temperature matching segment [6℃, 12℃) is 8, the magnification factor corresponding to the temperature matching segment [12℃, 18℃) is 9, and so on.
[0026] The sampling frequency corresponding to the reference frequency is calculated based on the multiplier factor. Specifically, a power operation can be performed with 2 as the base and the multiplier factor as the exponent. The result of the power operation is divided by a preset index value and then multiplied by the reference frequency to obtain the sampling frequency.
[0027] For example, if the calculated temperature difference is 15℃, then the matching multiplier can be determined to be 9 based on the temperature matching range contained in the matching table. Assuming the reference frequency is 50Hz, the corresponding sampling frequency f can be determined. c For (2) 9 ×50) ÷K=1024Hz; where the preset index parameter K=25, the index parameter is a fixed value that can be divided by the reference frequency, and it is determined by the reference frequency.
[0028] The above method can adjust the sampling frequency under different temperature differences to improve the reliability of sampling voltage and current signals when there is a large deviation between the ambient temperature and the standard temperature; thereby improving the application effect of power metering for calculation and correction, and ultimately improving the accuracy of the target power metering value obtained after correction.
[0029] S130. The voltage and current of the main line are sampled in real time according to the sampling frequency to obtain the corresponding sampling signal.
[0030] Once the sampling frequency is determined, the voltage and current of the main line can be sampled in real time according to the sampling frequency; the corresponding sampling signal can be obtained through real-time sampling, and the sampling signal includes both current sampling signal and voltage sampling signal.
[0031] S140. The sampled signal is converted according to a preset signal conversion rule to obtain a frequency domain signal corresponding to the sampled signal.
[0032] Furthermore, the sampled signals can be converted according to signal conversion rules to obtain the corresponding frequency domain signals. The voltage and current sampled signals in the sampled signals are both time domain signals. To further analyze the sampled signals, they can be converted into frequency domain signals through conversion processing. In the frequency domain signal, the horizontal axis represents the frequency value, and the vertical axis represents the amplitude.
[0033] In a specific embodiment, the frequency domain signal includes a current frequency domain signal and a voltage frequency domain signal. Step S140 includes the following sub-steps: acquiring current and voltage signals from the same time period from the sampled signal to obtain current signal segments and voltage signal segments respectively; preprocessing the current signal segments and voltage signal segments according to the preprocessing information in the signal conversion rule to obtain corresponding current preprocessed signals and voltage preprocessed signals; performing a fast Fourier transform on the current preprocessed signal according to the conversion function in the signal conversion rule to obtain the corresponding current frequency domain signal; and performing a fast Fourier transform on the voltage preprocessed signal according to the conversion function in the signal conversion rule to obtain the corresponding voltage frequency domain signal.
[0034] The obtained frequency domain signal includes current frequency domain signal and voltage frequency domain signal. The current frequency domain signal corresponds to the current signal, and the voltage frequency domain signal corresponds to the voltage signal. Current and voltage signals within the same time period can be obtained from the sampled signal, such as current and voltage signals within the same second from the sampled signal, which can be used as current signal segments and voltage signal segments, respectively.
[0035] To improve the reliability and accuracy of subsequent power metering, the two sets of signal segments can be further preprocessed using preprocessing information. Preprocessing the current signal segment yields a current preprocessed signal, and preprocessing the voltage signal segment yields a voltage preprocessed signal.
[0036] In a specific embodiment, the step of preprocessing the current signal segment and the voltage signal segment according to the preprocessing information in the signal conversion rule to obtain corresponding current preprocessed signals and voltage preprocessed signals includes: filtering the current signal segment and the voltage signal segment according to the filtering parameters in the preprocessing rule to obtain corresponding filtered signals; and windowing the filtered signals according to the window function set in the preprocessing rule to obtain corresponding preprocessed signals as current preprocessed signals and voltage preprocessed signals.
[0037] In household or small commercial power applications, the load is typically small, resulting in minimal harmonic components and negligible high-frequency signals. Therefore, the cutoff frequency corresponding to the reference frequency can be determined first using filter parameters. The signal segment (current or voltage signal segment) can then be low-pass filtered based on this cutoff frequency. For example, setting the filter parameter to 4 determines a reference frequency with a cutoff frequency four times the reference frequency. High-frequency noise in the signal segment can then be filtered out using this reference frequency. Low-pass filtering of the current signal segment yields a set of filtered signals, and similarly, low-pass filtering of the voltage signal segment also yields a set of filtered signals.
[0038] Furthermore, to suppress "frequency leakage" and avoid signal feature loss during subsequent frequency domain conversion, the two sets of filtered signals obtained in the above steps can be multiplied point-by-point by the window function to obtain the windowed signal. After windowing, the two sets of filtered signals can be used to obtain two sets of preprocessed signals, namely the current preprocessed signal and the voltage preprocessed signal. For example, if the filtered signal is a time-domain signal x[n], the window function is w[n], the length of the window function is equal to that of the time-domain signal, and both contain N data points, the windowed signal is represented as x. w [n] = x[n] × w[n]. The window function can be a Hanning window.
[0039] According to the signal conversion rules, the preprocessed current signal and the preprocessed voltage signal are subjected to Fast Fourier Transform (FFT) respectively. The corresponding conversion function (FFT formula) is configured in the signal conversion rules, and the corresponding frequency domain signal is obtained by the conversion. Therefore, the current preprocessed signal can be converted to obtain the current frequency domain signal, and the voltage preprocessed signal can be converted to obtain the voltage frequency domain signal.
[0040] DFT (Discrete Fourier Transform) transforms a time-domain signal x w The conversion formula for [n] to the frequency domain signal x[k] can be expressed by formula (1): (1); Where k is the frequency index, k=0,1,…,N-1, and N is the number of data points (e.g., for a one-second current signal segment and a voltage signal segment, the multiplier is 9, K=25, and the reference frequency f0=50Hz, then N=(f c (×K) / f0=512), e is the base of the natural logarithm, j is the imaginary unit, its value is "-1" to the power of 1 / 2, π is the value in radians; x[k] contains the "amplitude" and "phase" information for each frequency point, x[k] is a complex number (real part is Re[x[k]], imaginary part is Im[x[k]]). FFT is a "fast computation algorithm" of DFT. FFT reduces computational complexity by optimizing the computation process, but the computational principle and results are the same as DFT, only the computational speed is different.
[0041] S150. Calculate the frequency domain signal according to the preset basic metering strategy, the reference frequency, and the sampling frequency to obtain the corresponding basic metering power value.
[0042] Furthermore, based on the basic metering strategy, the reference frequency, and the sampling frequency determined in the above steps, the obtained frequency domain signal can be calculated to obtain the basic metered electricity value.
[0043] In a specific embodiment, step S150 includes the following sub-steps: filtering the frequency domain signal according to the filtering rules in the basic metering strategy and the reference frequency to obtain the corresponding effective frequency domain signal; correcting the effective frequency domain signal according to the signal correction rules in the basic metering strategy to obtain the corresponding corrected signal; reconstructing the corrected signal according to the signal reconstruction strategy in the basic metering strategy and the reference frequency to restore the time domain fundamental signal; and calculating the time domain fundamental signal according to the metering function in the basic metering strategy to obtain the corresponding basic metered electricity value.
[0044] Specifically, the frequency domain signals can first be filtered according to the screening rules and reference frequency in the basic metering strategy to obtain the corresponding effective frequency domain signals. The screening rules include a proportional range. The corresponding screening frequency range can be determined based on the proportional range and the reference frequency, and the frequency domain signals can be filtered according to the screening frequency range to obtain the effective frequency domain signals. Thus, two sets of effective frequency domain signals can be extracted from the two sets of frequency domain signals (current frequency domain signal and voltage frequency domain signal). For example, if the proportional range is [0.92, 1.08] and the reference frequency is 50Hz, then the screening frequency range corresponding to the reference frequency can be determined as [46Hz, 54Hz]. Based on this screening frequency range, the frequency index k0 is determined to be 23, 24, 25, 26 or 27, and the effective frequency domain signals can be obtained accordingly. The obtained effective frequency domain signals are the frequency domain complex number x[k0].
[0045] Further corrections are made to the effective frequency domain signal according to the signal correction rules in the basic metrology strategy; due to the windowing process and the "amplitude scaling characteristic" of FFT, the direct calculation of the magnitude of x[k0] will have a deviation, so it needs to be corrected. The magnitude of x[k0] can be expressed by formula (2): (2); Since the amplitude after FTT processing is magnified by "N", it is necessary to divide the amplitude by N to obtain the true frequency domain amplitude. The specific calculation is shown in formula (3): (3); Where "||" is the operation to obtain the absolute value, and N is the number of data points.
[0046] Window functions cause signal energy loss, so they need to be multiplied by the "window function amplitude correction factor r". w "Compensation, for example, for the Hanning window, the amplitude correction factor r." w If the value is 2.0, then the corrected amplitude is A0 = A fft ×r w After correcting the effective frequency domain signal according to the above method, the corresponding corrected signal can be obtained.
[0047] The corrected signal is reconstructed based on the signal reconstruction strategy and reference frequency in the basic metrology strategy, thereby obtaining the time-domain fundamental signal corresponding to the reference frequency. Specifically, a complex array of the same length as x[k] is created, such as x... f [k], retaining x[k0] in the corrected signal corresponding to the frequency index k0, such as k0 being 23, 24, 25, 26, or 27; the amplitude corresponding to k0 in the complex array is the amplitude A0 after correcting the signal point k0 in the corrected signal, and the amplitude of k≠k0 in the complex array is set to "0". The complex array x obtained from the above steps... f [k] is subjected to inverse FFT transformation (i.e., IFFT operation) to obtain the time-domain fundamental signal x0[n]. The specific inverse transformation process can be expressed by formula (4): (4).
[0048] Here, N represents the number of data points, corresponding to the signal amplitude obtained from the inverse conversion being amplified by N times, thereby restoring the signal amplitude so that its amplitude is similar to that of the time-domain signal x. w [n] is approximately the same. Further, the two sets of time-domain fundamental signals are measured using the measurement function to obtain the corresponding basic metered electricity value. Specifically, the measurement function can be expressed by formula (5): (5).
[0049] P1 represents the calculated basic metered electricity value, M represents the total number of sampling points in the time-domain fundamental signal corresponding to the current frequency domain signal (the total number of sampling points in the time-domain fundamental signal corresponding to the voltage frequency domain signal is equal to this), i n Let u be the current value obtained from the nth sample of the time-domain fundamental signal corresponding to the current frequency domain signal. n This represents the voltage value obtained from the nth sample of the fundamental time-domain signal corresponding to the voltage frequency domain signal.
[0050] S160. Obtain the environmental correction coefficient corresponding to the temperature detection value and the basic metered electricity value according to the preset environmental correction rules.
[0051] To correct for errors in measurement data caused by changes in ambient temperature, an environmental correction coefficient corresponding to the temperature detection value and the basic metered electricity value can be obtained through environmental correction rules, and the electricity metering can be corrected using this environmental correction coefficient.
[0052] In a specific embodiment, step S160 includes the following sub-steps: obtaining correction parameters corresponding to the standard temperature and the temperature detection value based on the parameter determination information in the environmental correction rules; configuring the correction function in the environmental correction rules according to the correction parameters to obtain a correction configuration function; and calculating the environmental correction coefficient corresponding to the basic metered electricity value according to the correction configuration function.
[0053] Specifically, the correction parameters corresponding to the standard temperature and the measured temperature can be determined based on the parameters in the environmental correction rules. Specifically, the absolute value of the temperature difference between the standard temperature and the measured temperature is calculated, such as if the standard temperature is t. r The temperature detection value is t c Then the absolute value of the temperature difference t s =|t c -t r The parameter determination information can be a parameter matching table, which contains multiple parameter matching intervals. Each matching interval corresponds to a parameter value, and the absolute value t can then be obtained. s Find the matching parameter range and obtain the parameter value corresponding to the matching parameter range as the correction parameter.
[0054] The parameter determination information can also be the parameter calculation function, as shown in formula (6): (6); r is the correction parameter calculated using the parameter calculation function, t s Let be the absolute value of the temperature difference, and a, b, c, and d be the fitting parameters set in the formula. These fitting parameters can be determined by obtaining experimental test data and performing fitting calculations. For example, when t... sGiven a temperature of 15℃, a = 0.9718, b = 0.0017, c = 1.0374, and d = -0.0357, the corresponding correction parameter r = 0.0236 can be calculated. When t... s When r is zero, r is also zero, which means that there is no need to correct the basic metered electricity value.
[0055] Furthermore, the correction function set in the environmental correction rules is configured according to the correction parameters to obtain the corresponding correction configuration function; the parameter value in the correction function is not set, so it needs to be set through the correction parameters. The environmental correction coefficient corresponding to the basic metered electricity value can be calculated based on the correction configuration function obtained after parameter configuration. The correction configuration function can be expressed by formula (7): (7); Wherein, P1 is the basic metered electricity value, and its unit is watts (W); r is the correction parameter, the specific value of which is obtained and configured through the above steps; e is the base of the natural logarithm; z is the obtained environmental correction coefficient; and P0 is the basic power parameter, which is usually set to 1 kilowatt.
[0056] S170. Correct the basic metered electricity value according to the environmental correction coefficient to obtain the corresponding target metered electricity value.
[0057] The baseline metered electricity consumption value is corrected based on an environmental correction factor. Specifically, the environmental correction factor is multiplied by the baseline metered electricity consumption value to obtain the corrected target metered electricity consumption value. The target metered electricity consumption value measured at each moment is multiplied by a unit time (the duration of the current signal segment, such as 1 second) to obtain the energy consumption at each moment. The energy consumption at each moment is then summed to obtain the household's internal electricity consumption, expressed in kilowatt-hours (kW×h).
[0058] The smart energy meter metering method based on intelligent correction disclosed in the above embodiments includes: determining whether the main circuit meets the energy metering conditions; if so, determining the sampling frequency based on the temperature detection value obtained by the temperature sensor, and obtaining the sampling signal based on the sampling frequency and converting it to obtain a frequency domain signal; calculating the basic metered energy value based on the basic metering strategy, the reference frequency, and the sampling frequency; further obtaining the environmental correction coefficient corresponding to the temperature detection value and the basic metered energy value according to the environmental correction rules, and correcting the basic metered energy value to obtain the target metered energy value. The above-mentioned smart energy meter metering method based on intelligent correction can adjust the sampling frequency according to the detected temperature detection value and correct the basic metered energy value based on the environmental correction rules, thereby improving the accuracy of energy metering through environmental correction.
[0059] This invention also provides a smart energy meter metering device based on intelligent calibration. This device can be configured in the controller of a smart energy meter and is used to execute any of the aforementioned embodiments of the smart energy meter metering method based on intelligent calibration. Specifically, please refer to... Figure 3 , Figure 3 This is a schematic block diagram of a smart energy meter metering device based on intelligent correction, provided in an embodiment of the present invention.
[0060] like Figure 3 As shown, the smart energy meter metering device 100 based on intelligent correction includes a monitoring unit 110, a sampling frequency determination unit 120, a sampling signal acquisition unit 130, a frequency domain signal acquisition unit 140, a calculation unit 150, an environmental correction coefficient acquisition unit 160, and a correction processing unit 170.
[0061] The monitoring unit 110 is used to continuously monitor whether the transmission current of the main line meets the preset energy metering conditions.
[0062] The sampling frequency determination unit 120 is used to determine the sampling frequency corresponding to the temperature detection value and the reference frequency according to a preset frequency determination rule if the transmission current meets the power metering conditions; the temperature detection value is obtained by the temperature sensor.
[0063] The sampling signal acquisition unit 130 is used to sample the voltage and current of the main line in real time according to the sampling frequency to obtain the corresponding sampling signal.
[0064] The frequency domain signal acquisition unit 140 is used to convert the sampled signal according to a preset signal conversion rule to obtain a frequency domain signal corresponding to the sampled signal.
[0065] The calculation unit 150 is used to calculate the frequency domain signal according to the preset basic metering strategy, the reference frequency and the sampling frequency to obtain the corresponding basic metering power value.
[0066] The environmental correction coefficient acquisition unit 160 is used to acquire the environmental correction coefficient corresponding to the temperature detection value and the basic metered electricity value according to the environmental correction rules.
[0067] The correction processing unit 170 is used to correct the basic metered electricity value according to the environmental correction coefficient to obtain the corresponding target metered electricity value.
[0068] The smart energy meter metering device based on intelligent correction provided in this embodiment of the invention applies the above-mentioned smart energy meter metering method based on intelligent correction. It determines whether the main circuit meets the energy metering conditions. If so, it determines the sampling frequency based on the temperature detection value obtained by the temperature sensor, and obtains the sampling signal based on the sampling frequency, converting it to obtain a frequency domain signal. Based on the basic metering strategy, the reference frequency, and the sampling frequency, it calculates the basic metered energy value from the frequency domain signal. Furthermore, it obtains the environmental correction coefficient corresponding to the temperature detection value and the basic metered energy value according to environmental correction rules, and corrects the basic metered energy value to obtain the target metered energy value. The above-mentioned smart energy meter metering method based on intelligent correction can adjust the sampling frequency according to the detected temperature value and correct the basic metered energy value based on environmental correction rules, thereby improving the accuracy of energy metering through environmental correction.
[0069] The aforementioned smart energy metering device based on intelligent correction can be implemented as a computer program, which can be used in, for example... Figure 4 It runs on the computer device shown.
[0070] Please see Figure 4 , Figure 4 This is a schematic block diagram of a computer device provided in an embodiment of the present invention. The computer device may be a controller for performing a smart energy meter metering method based on intelligent correction to measure energy consumption.
[0071] See Figure 4 The computer device 500 includes a processor 502, a memory, and a communication interface 505 connected via a communication bus 501. The memory may include a storage medium 503 and internal memory 504.
[0072] The storage medium 503 may store an operating system 5031 and a computer program 5032. When the computer program 5032 is executed, it enables the processor 502 to execute a smart energy meter metering method based on intelligent correction. The storage medium 503 may be a volatile storage medium or a non-volatile storage medium.
[0073] The processor 502 provides computing and control capabilities to support the operation of the entire computer device 500.
[0074] The internal memory 504 provides an environment for the operation of the computer program 5032 in the storage medium 503. When the computer program 5032 is executed by the processor 502, the processor 502 can execute a smart energy meter metering method based on intelligent correction.
[0075] This communication interface 505 is used for network communication, such as providing data transmission. Those skilled in the art will understand that... Figure 4 The structure shown is merely a block diagram of a portion of the structure related to the present invention and does not constitute a limitation on the computer device 500 to which the present invention is applied. The specific computer device 500 may include more or fewer components than shown in the figure, or combine certain components, or have different component arrangements.
[0076] The processor 502 is used to run the computer program 5032 stored in the memory to implement the corresponding functions in the smart energy meter metering method based on intelligent correction described above.
[0077] Those skilled in the art will understand that Figure 4 The embodiments of the computer device shown do not constitute a limitation on the specific configuration of the computer device. In other embodiments, the computer device may include more or fewer components than illustrated, or combine certain components, or have different component arrangements. For example, in some embodiments, the computer device may include only memory and a processor. In such embodiments, the structure and function of the memory and processor are different from those shown. Figure 4 The embodiments shown are consistent and will not be described again here.
[0078] It should be understood that, in this embodiment of the invention, the processor 502 may be a Central Processing Unit (CPU), or it may be other general-purpose processors, digital signal processors (DSPs), application-specific integrated circuits (ASICs), field-programmable gate arrays (FPGAs), or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. The general-purpose processor may be a microprocessor or any conventional processor.
[0079] In another embodiment of the invention, a computer-readable storage medium is provided. This computer-readable storage medium may be volatile or non-volatile. The computer-readable storage medium stores a computer program, which, when executed by a processor, implements the steps included in the above-described smart meter metering method based on intelligent calibration.
[0080] Those skilled in the art will readily understand that, for the sake of convenience and brevity, the specific working processes of the devices, apparatuses, and units described above can be referred to the corresponding processes in the foregoing method embodiments, and will not be repeated here. Those skilled in the art will recognize that the units and algorithm steps of the various examples described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, computer software, or a combination of both. To clearly illustrate the interchangeability of hardware and software, the composition and steps of each example have been generally described in terms of function in the foregoing description. Whether these functions are implemented in hardware or software depends on the specific application and design constraints of the technical solution. Those skilled in the art can use different methods to implement the described functions for each specific application, but such implementation should not be considered beyond the scope of this invention.
[0081] In the embodiments provided by this invention, it should be understood that the disclosed devices, apparatuses, and methods can be implemented in other ways. For example, the apparatus embodiments described above are merely illustrative. For instance, the division of units is only a logical functional division, and in actual implementation, there may be other division methods. Units with the same function may be grouped into one unit. For example, multiple units or components may be combined or integrated into another system, or some features may be ignored or not executed. In addition, the coupling or direct coupling or communication connection shown or discussed may be an indirect coupling or communication connection through some interfaces, devices, or units, or it may be an electrical, mechanical, or other form of connection.
[0082] The units described as separate components may or may not be physically separate. The components shown as units may or may not be physical units; that is, they may be located in one place or distributed across multiple network units. Some or all of the units can be selected to achieve the purpose of the embodiments of the present invention, depending on actual needs.
[0083] Furthermore, the functional units in the various embodiments of the present invention can be integrated into one processing unit, or each unit can exist physically separately, or two or more units can be integrated into one unit. The integrated unit can be implemented in hardware or as a software functional unit.
[0084] If the integrated unit is implemented as a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present invention, in essence, or the part that contributes to the prior art, or all or part of the technical solution, can be embodied in the form of a software product. This computer software product is stored in a computer-readable storage medium and includes several instructions to cause a computer device to execute all or part of the steps of the methods described in the various embodiments of the present invention. The aforementioned computer-readable storage medium includes various media capable of storing program code, such as USB flash drives, portable hard drives, read-only memory (ROM), magnetic disks, or optical disks.
[0085] The above description is merely a specific embodiment of the present invention, but the scope of protection of the present invention is not limited thereto. Any person skilled in the art can easily conceive of various equivalent modifications or substitutions within the technical scope disclosed in the present invention, and these modifications or substitutions 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 smart energy meter metering method based on intelligent calibration, characterized in that, The method is applied in the controller of a smart meter, wherein the controller is communicatively connected to a temperature sensor to transmit data information, and the method includes: Continuous monitoring is conducted to ensure that the transmission current of the main line meets the preset energy metering conditions. If the transmission current meets the energy metering conditions, the sampling frequency corresponding to the temperature detection value and the reference frequency is determined according to the preset frequency determination rules; the temperature detection value is obtained by the temperature sensor. The voltage and current of the main line are sampled in real time according to the sampling frequency to obtain the corresponding sampling signal; The sampled signal is converted according to a preset signal conversion rule to obtain a frequency domain signal corresponding to the sampled signal; The frequency domain signal is measured according to the preset basic metering strategy, the reference frequency and the sampling frequency to obtain the corresponding basic metering power value; According to the preset environmental correction rules, obtain the environmental correction coefficients corresponding to the temperature detection value and the basic metered electricity value; The basic metered electricity value is corrected according to the environmental correction coefficient to obtain the corresponding target metered electricity value.
2. The smart energy meter metering method based on intelligent correction according to claim 1, characterized in that, The continuous monitoring of whether the transmission current of the main line meets the energy metering conditions includes: Determine whether the transmission current is greater than the current threshold in the energy metering conditions; If the transmission current is greater than the current threshold, determine whether the duration for which the transmission current is greater than the current threshold is not less than the duration threshold in the energy metering conditions. If the duration is not less than the duration threshold, it is determined that the transmission current meets the energy metering conditions; If the transmission current is not greater than the current threshold or the duration is less than the duration threshold, it is determined that the transmission current does not meet the energy metering conditions.
3. The smart energy meter metering method based on intelligent correction according to claim 1, characterized in that, The step of determining the sampling frequency corresponding to the temperature detection value and the reference frequency according to the preset frequency determination rules includes: Obtain the temperature difference between the detected temperature value and the standard temperature set in the frequency determination rule; The multiplier coefficient matching the temperature difference value is obtained according to the matching table in the frequency determination rule; The sampling frequency corresponding to the reference frequency is obtained based on the magnification factor.
4. The smart energy meter metering method based on intelligent correction according to claim 1, characterized in that, The frequency domain signal includes a current frequency domain signal and a voltage frequency domain signal. The step of converting the sampled signal according to a preset signal conversion rule to obtain a frequency domain signal corresponding to the sampled signal includes: The current signal and voltage signal of the same time period are obtained from the sampled signal to obtain the current signal segment and voltage signal segment respectively; The current signal segment and the voltage signal segment are preprocessed according to the preprocessing information in the signal conversion rule to obtain the corresponding current preprocessed signal and voltage preprocessed signal. The current preprocessed signal is subjected to a fast Fourier transform according to the transformation function in the signal transformation rule to obtain the corresponding current frequency domain signal; The voltage preprocessed signal is subjected to a Fast Fourier Transform according to the transformation function in the signal transformation rule to obtain the corresponding voltage frequency domain signal.
5. The smart energy meter metering method based on intelligent correction according to claim 4, characterized in that, The step of preprocessing the current signal segment and the voltage signal segment according to the preprocessing information in the signal conversion rule to obtain the corresponding current preprocessed signal and voltage preprocessed signal includes: The current signal segment and the voltage signal segment are filtered according to the filtering parameters in the preprocessing rules to obtain the corresponding filtered signals; The filtered signals are windowed according to the window function set in the preprocessing rules to obtain the corresponding preprocessed signals as current preprocessing signals and voltage preprocessing signals.
6. The smart energy meter metering method based on intelligent correction according to claim 1, characterized in that, The step of calculating the frequency domain signal based on the preset basic metering strategy, the reference frequency, and the sampling frequency to obtain the corresponding basic metering power value includes: The frequency domain signals are filtered according to the filtering rules in the basic metering strategy and the reference frequency to obtain the corresponding effective frequency domain signals; The effective frequency domain signal is corrected according to the signal correction rules in the basic metering strategy to obtain the corresponding corrected signal; The corrected signal is reconstructed according to the signal reconstruction strategy in the basic metrology strategy and the reference frequency to restore the time-domain fundamental signal; The time-domain fundamental signal is measured according to the metering function in the basic metering strategy to obtain the corresponding basic metering power value.
7. The smart energy meter metering method based on intelligent correction according to claim 1, characterized in that, The step of obtaining the environmental correction coefficient corresponding to the temperature detection value and the basic metered electricity value according to the preset environmental correction rules includes: Based on the parameters in the environmental correction rules, information is determined to obtain correction parameters corresponding to the standard temperature and the temperature detection value; The correction function in the environmental correction rule is configured according to the correction parameters to obtain the correction configuration function; The environmental correction coefficient corresponding to the basic metered electricity value is calculated based on the correction configuration function.
8. A smart energy metering device based on intelligent calibration, characterized in that, The device is configured in the controller of the smart meter, the controller is communicatively connected to a temperature sensor to transmit data information, and the device is used to execute the smart meter metering method based on intelligent correction as described in any one of claims 1-7, the device comprising: The monitoring unit is used to continuously monitor whether the transmission current of the main line meets the preset energy metering conditions. The sampling frequency determination unit is used to determine, according to a preset frequency determination rule, a sampling frequency corresponding to the temperature detection value and the reference frequency if the transmission current meets the energy metering conditions; the temperature detection value is obtained by the temperature sensor. The sampling signal acquisition unit is used to sample the voltage and current of the main line in real time according to the sampling frequency to obtain the corresponding sampling signal; A frequency domain signal acquisition unit is used to convert the sampled signal according to a preset signal conversion rule to obtain a frequency domain signal corresponding to the sampled signal; The calculation unit is used to calculate the frequency domain signal according to the preset basic metering strategy, the reference frequency and the sampling frequency to obtain the corresponding basic metering power value; An environmental correction coefficient acquisition unit is used to acquire an environmental correction coefficient corresponding to the temperature detection value and the basic metered electricity value according to environmental correction rules. The correction processing unit is used to correct the basic metered electricity value according to the environmental correction coefficient to obtain the corresponding target metered electricity value.
9. A computer device, characterized in that, The device includes a processor, a communication interface, a memory, and a communication bus, wherein the processor, the communication interface, and the memory communicate with each other through the communication bus; Memory, used to store computer programs; When a processor executes a program stored in a memory, it implements the steps of the smart energy meter metering method based on intelligent correction as described in any one of claims 1-7.
10. A computer-readable storage medium having a computer program stored thereon, characterized in that, When the computer program is executed by the processor, it implements the steps of the smart energy meter metering method based on intelligent correction as described in any one of claims 1-7.