Method and device for determining sampling frequency of electric energy meter, electronic equipment and storage medium

CN117590315BActive Publication Date: 2026-10-27NINGBO SANXING INTELLIGENT ELECTRIC
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202311546876.1
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-11-17
Publication Date
2026-10-27
Estimated Expiration
2043-11-17

AI Technical Summary

Technical Problem

[0003]现有技术中,计量单元可以获得瞬时数据并对其进行存储,之后由电能表从计量单元处读取数据从而计算累积能量,因此计量误差不仅与计量单元的采样频率有关,还会受到电能表的采样频率的影响

Benefits of technology

[0024]根据所述电能表采样点序列公式以及所述计量采样序列,构建电能表采样序列公式;

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN117590315B_ABST
    Figure CN117590315B_ABST
Patent Text Reader

Abstract

Embodiments of the present application provide a kind of electric energy meter sampling frequency determination method, device, electronic equipment and storage medium, it is related to smart meter technical field.The measurement sampling sequence after the electric power square wave signal sampled by measurement unit and the measurement sampling error corresponding to measurement unit are determined according to the preset electric power square wave signal, impulse sequence and measurement sampling frequency;According to measurement sampling sequence, impulse sequence and measurement sampling error, construct superposition error formula;According to superposition error formula and multiple preset time length, determine the electric energy meter sampling frequency that satisfies preset condition;Wherein, the time length that the sampling starting time of electric energy meter is away from the starting time of electric power square wave signal is represented by preset time length, and preset condition includes that electric energy meter sampling frequency is less than or equal to preset frequency, and the superposition error corresponding to each preset time length under electric energy meter sampling frequency is all not more than preset threshold value.Through the method, appropriate electric energy meter sampling frequency can be determined, to improve measurement accuracy.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of smart meter technology, and more specifically, to a method, apparatus, electronic device, and storage medium for determining the sampling frequency of an electricity meter. Background Technology

[0002] With the widespread use of power equipment, the load conditions in the power grid are becoming more complex, and power grid fluctuations will affect the electricity consumption side, causing transient changes in voltage and current.

[0003] In the existing technology, the metering unit can obtain and store instantaneous data, and then the energy meter reads the data from the metering unit to calculate the accumulated energy. Therefore, the metering error is not only related to the sampling frequency of the metering unit, but also affected by the sampling frequency of the energy meter.

[0004] Currently, the sampling frequency of metering units under normal conditions can reach above 10Hz, thus ensuring the metering accuracy of the metering unit. However, the sampling frequency of electricity meters is often difficult to determine, which leads to a decrease in metering accuracy. Summary of the Invention

[0005] The problem solved by this invention is how to determine the sampling frequency of an electricity meter, thereby improving metering accuracy.

[0006] To address the aforementioned issues, embodiments of this application provide a method, apparatus, electronic device, and storage medium for determining the sampling frequency of an electricity meter.

[0007] In a first aspect, the present invention provides a method for determining the sampling frequency of an electricity meter, the method comprising:

[0008] Based on the preset power square wave signal, impulse sequence and metering sampling frequency, the metering sampling sequence after the metering unit samples the power square wave signal and the corresponding metering sampling error of the metering unit are determined;

[0009] A superposition error formula is constructed based on the metering sampling sequence, the impulse sequence, and the metering sampling error; the superposition error formula characterizes the calculation relationship between the superposition error and the sampling frequency of the energy meter, and the superposition error is the superposition value of the metering sampling error and the energy meter sampling error;

[0010] Based on the superposition error formula and multiple preset durations, determine the sampling frequency of the energy meter that meets the preset conditions;

[0011] The preset duration represents the time elapsed between the sampling start time of the electricity meter and the start time of the power square wave signal. The preset conditions include that the sampling frequency of the electricity meter is less than or equal to a preset frequency, and that the superposition error corresponding to each preset duration at the sampling frequency of the electricity meter does not exceed a preset threshold.

[0012] The method for determining the sampling frequency of an energy meter provided in this application embodiment can first determine the metering sampling sequence and the metering sampling error after the metering unit samples the power square wave signal. Then, a superposition error formula can be constructed based on the metering sampling sequence, impulse sequence, and metering sampling error. On this basis, an energy meter sampling frequency less than or equal to a preset frequency and whose superposition error corresponding to each preset time at that frequency does not exceed a preset threshold can be determined based on the superposition error formula and multiple preset durations. Therefore, this method can determine an appropriate energy meter sampling frequency, thereby improving metering accuracy.

[0013] In an optional implementation, determining the metering sampling sequence after the metering unit samples the power square wave signal and the corresponding metering sampling error of the metering unit, based on a preset power square wave signal, an impulse sequence, and a preset metering sampling frequency, includes:

[0014] Based on the power square wave signal and the impulse sequence, determine the discrete sequence corresponding to the power square wave signal;

[0015] The metering sampling sequence is determined based on the discrete sequence, the impulse sequence, and the metering sampling frequency;

[0016] The measurement sampling error is calculated based on the measurement sampling sequence and the discrete sequence.

[0017] The method for determining the sampling frequency of an energy meter provided in this application embodiment can first generate a corresponding discrete sequence for the power square wave signal, and then determine the metering sampling sequence of the metering unit based on the discrete sequence, the impulse sequence and the metering sampling frequency. Therefore, the power square wave signal can be sampled and reconstructed, which facilitates the calculation of the metering sampling error.

[0018] In an optional implementation, determining the metering sampling sequence based on the discrete sequence, the impulse sequence, and the metering sampling frequency includes:

[0019] Based on the impulse sequence and the metering sampling frequency, the metering sampling point sequence of the metering unit is determined; the metering sampling point sequence is used to characterize the sampling time of the metering unit.

[0020] An initial measurement sampling sequence is generated based on the measurement sampling point sequence and the discrete sequence, and the initial measurement sampling sequence is corrected according to preset correction parameters to obtain the measurement sampling sequence.

[0021] The method for determining the sampling frequency of an energy meter provided in this application can first determine the metering sampling point sequence based on the impulse sequence and the metering sampling frequency, then generate an initial metering sampling sequence based on the metering sampling point sequence and the discrete sequence, and correct the initial metering sampling sequence to obtain the metering sampling sequence, thereby improving the accuracy of the metering sampling sequence.

[0022] In an optional implementation, the step of constructing the superposition error formula based on the measurement sampling sequence, the impulse sequence, and the measurement sampling error includes:

[0023] A sampling point sequence formula for the energy meter is constructed based on the impulse sequence; wherein, the sampling point sequence formula for the energy meter represents the calculation relationship between the sampling time of the energy meter, the preset duration, and the sampling frequency of the energy meter;

[0024] Based on the energy meter sampling point sequence formula and the metering sampling sequence, an energy meter sampling sequence formula is constructed.

[0025] Based on the energy meter sampling sequence formula and the metering sampling sequence, an energy meter sampling error formula is constructed, and based on the energy meter sampling error formula and the metering sampling error, a superposition error formula is constructed.

[0026] The method for determining the sampling frequency of an energy meter provided in this application embodiment can construct an energy meter sampling point sequence formula based on the impulse sequence, construct an energy meter sampling sequence formula based on the energy meter sampling point sequence formula and the metering sampling sequence, construct an energy meter sampling error formula based on the energy meter sampling sequence formula and the metering sampling sequence, and construct a superposition error formula based on the energy meter sampling error formula and the metering sampling error. Thus, the superposition error formula can reflect the calculation relationship between the superposition error and the energy meter sampling frequency.

[0027] In an optional implementation, the formula for the electricity meter sampling point sequence includes:

[0028]

[0029] Wherein, δ4(N) represents the sampling point sequence of the energy meter, N represents the set time of the impulse sequence, Δt represents the preset duration, f2 represents the sampling frequency of the energy meter, and MOD represents the modulus extraction operation.

[0030] In an optional implementation, the energy meter sampling sequence formula includes:

[0031]

[0032] Where X3[N] represents the sampling sequence of the energy meter, X 2c[N] represents the metering sampling sequence, and δ4(N) represents the energy meter sampling point sequence.

[0033] In an optional implementation, the energy meter sampling error formula includes:

[0034] Err1=∑X3[N]-∑X 2c [N]

[0035] The superposition error formula includes:

[0036] Err = Err0 + Err1

[0037] Where Err represents the error, Err0 represents the metering sampling error, Err1 represents the energy meter sampling error, X3[N] represents the energy meter sampling sequence, X 2c [N] represents the measurement sampling sequence.

[0038] In a second aspect, the present invention provides a device for determining the sampling frequency of an electricity meter, the device comprising:

[0039] The error determination module is used to determine the metering sampling sequence after the metering unit samples the power square wave signal and the metering sampling error corresponding to the metering unit, based on the preset power square wave signal, impulse sequence and metering sampling frequency.

[0040] A construction module is used to construct a superposition error formula based on the metering sampling sequence, the impulse sequence, and the metering sampling error; the superposition error formula characterizes the calculation relationship between the superposition error and the sampling frequency of the energy meter, and the superposition error is the superposition value of the metering sampling error and the energy meter sampling error;

[0041] The frequency determination module is used to determine the sampling frequency of the energy meter that meets the preset conditions based on the superposition error formula and multiple preset durations.

[0042] The preset duration represents the time elapsed between the sampling start time of the electricity meter and the start time of the power square wave signal. The preset conditions include that the sampling frequency of the electricity meter is less than or equal to a preset frequency, and that the superposition error corresponding to each preset duration at the sampling frequency of the electricity meter does not exceed a preset threshold.

[0043] The energy meter sampling frequency determination device provided in this application embodiment can determine the metering sampling sequence and the corresponding metering sampling error of the metering unit after sampling the power square wave signal by the metering unit through the error determination module based on the preset power square wave signal, impulse sequence and metering sampling frequency; construct a superposition error formula based on the metering sampling sequence, impulse sequence and metering sampling error through the construction module; the superposition error formula represents the calculation relationship between the superposition error and the energy meter sampling frequency, and the superposition error is the superposition value of the metering sampling error and the energy meter sampling error; and determine the energy meter sampling frequency that meets the preset conditions through the frequency determination module based on the superposition error formula and multiple preset durations; wherein, the preset duration represents the time elapsed between the energy meter sampling start time and the power square wave signal start time, and the preset conditions include that the energy meter sampling frequency is less than or equal to the preset frequency, and the superposition error corresponding to each preset duration at the energy meter sampling frequency does not exceed the preset threshold, so an appropriate energy meter sampling frequency can be determined to improve metering accuracy.

[0044] Thirdly, the present invention provides an electronic device including a processor and a memory, the memory storing a computer program executable by the processor, the processor being configured to execute the computer program to implement the method described in any of the foregoing embodiments.

[0045] Fourthly, the present invention provides a computer-readable storage medium having a computer program stored thereon, wherein the computer program, when executed by a processor, implements the method described in any of the foregoing embodiments. Attached Figure Description

[0046] Figure 1 A block diagram illustrating an electronic device provided in an embodiment of this application;

[0047] Figure 2 A flowchart illustrating a method for determining the sampling frequency of an energy meter provided in an embodiment of this application;

[0048] Figure 3 The error curve diagram is shown for a power square wave signal with a period of 10s-10s.

[0049] Figure 4 The error curve is shown for a power square wave signal with a period of 5s-5s.

[0050] Figure 5 The error curve is shown for a power square wave signal with a period of 5s-0.5s.

[0051] Figure 6 This is a schematic diagram of a device for determining the sampling frequency of an electricity meter provided in an embodiment of this application.

[0052] Explanation of reference numerals in the attached figures:

[0053] 10 - Electronic device; 100 - Memory; 110 - Processor; 120 - Communication module; 200 - Error determination module; 210 - Construction module; 220 - Frequency determination module. Detailed Implementation

[0054] To make the above-mentioned objects, features and advantages of the present invention more apparent and understandable, specific embodiments of the present invention will be described in detail below with reference to the accompanying drawings.

[0055] First, the electronic device provided in the embodiments of this application will be introduced with reference to the figures. Optionally, the electronic device may be a PC or a mobile terminal.

[0056] Specifically, Figure 1 For a block diagram of the electronic device 10 provided in the embodiments of this application, please refer to [link / reference]. Figure 1 The electronic device 10 includes a memory 100, a processor 110, and a communication module 120. The memory 100, processor 110, and communication module 120 are electrically connected directly or indirectly to each other to achieve data transmission or interaction. For example, these components can be electrically connected to each other through one or more communication buses or signal lines.

[0057] The memory 100 is used to store programs or data. The memory 100 may be, but is not limited to, random access memory (RAM), read-only memory (ROM), programmable read-only memory (PROM), erasable programmable read-only memory (EPROM), electrically erasable programmable read-only memory (EEPROM), etc.

[0058] The processor 110 is used to read / write data or programs stored in memory and to perform corresponding functions.

[0059] The communication module 120 is used to establish a communication connection between the electronic device 10 and other communication terminals via a network, and to send and receive data via the network.

[0060] It should be understood that, Figure 1 The structure shown is only a schematic diagram of an electronic device; the electronic device may also include components that are larger than those shown. Figure 1 The more or fewer components shown, or having the same Figure 1 The different configurations shown. Figure 1The components shown can be implemented using hardware, software, or a combination thereof.

[0061] The following is based on the above. Figure 1 The electronic device in this application is the execution entity. The method for determining the sampling frequency of an energy meter provided in this embodiment is illustrated with a flowchart. Specifically, Figure 2 For a flowchart illustrating the method for determining the sampling frequency of an energy meter provided in this application embodiment, please refer to [link / reference]. Figure 2 The method includes:

[0062] Step S20: Based on the preset power square wave signal, impulse sequence and metering sampling frequency, determine the metering sampling sequence after the metering unit samples the power square wave signal and the corresponding metering sampling error of the metering unit.

[0063] Optionally, the power square wave signal can be a square wave signal used in a load current rapid change test.

[0064] Optionally, the impulse sequence can be pre-set and stored in an electronic device. In one possible implementation, to ensure sampling accuracy, the step size of the impulse sequence can be 1 ms.

[0065] Optionally, the metering sampling frequency refers to the sampling frequency of the metering unit, which can be set according to the actual application.

[0066] Step S21: Construct a superposition error formula based on the measurement sampling sequence, impulse sequence, and measurement sampling error.

[0067] Optionally, the superposition error formula characterizes the calculation relationship between the superposition error and the sampling frequency of the electricity meter, where the superposition error is the superposition value of the metering sampling error and the electricity meter sampling error.

[0068] Optionally, since the metering sampling sequence is the sequence obtained after the metering unit samples the power square wave signal, the energy meter sampling refers to sampling this metering sampling sequence. Based on this, electronic equipment can construct a superposition error formula based on the metering sampling sequence, the impulse sequence, and the metering sampling error.

[0069] Step S22: Determine the sampling frequency of the energy meter that meets the preset conditions based on the superposition error formula and multiple preset durations.

[0070] Optionally, the preset duration represents the time elapsed between the sampling start time of the energy meter and the start time of the power square wave signal. The preset conditions include that the energy meter sampling frequency is less than or equal to the preset frequency, and that the superposition error corresponding to each preset duration at the energy meter sampling frequency does not exceed the preset threshold.

[0071] Optionally, considering the randomness of the power-on time of the electricity meter, when the electricity meter samples the metering sampling sequence, its start time may overlap with the start time of the power square wave signal, or there may be a certain time interval. Based on this, the electronic device can preset multiple durations to characterize the time interval and substitute them into the superposition error formula to determine the electricity meter sampling frequency that meets the preset conditions.

[0072] Optionally, the preset frequency can be determined based on the communication cycle between the energy meter and the metering unit.

[0073] In one possible implementation, the sampling period of the energy meter should be greater than the communication period between the energy meter and the metering unit.

[0074] In one example, the sampling period of the energy meter should be at least 1.5 times greater than the communication period between the energy meter and the metering unit. That is, if the communication period between the energy meter and the metering unit is T, then the sampling period of the energy meter should be no less than 1.5T. Based on this, the preset frequency can be set to...

[0075] Optionally, the preset threshold can be set according to the actual business needs of the electricity meter, for example, set to ±2%.

[0076] Optionally, the electronic device can set the sampling frequency of the energy meter according to the sampling frequency of the energy meter after determining the sampling frequency of the energy meter.

[0077] The method for determining the sampling frequency of an energy meter provided in this application embodiment can first determine the metering sampling sequence and the metering sampling error after the metering unit samples the power square wave signal. Then, a superposition error formula can be constructed based on the metering sampling sequence, impulse sequence, and metering sampling error. On this basis, an energy meter sampling frequency less than or equal to a preset frequency and whose superposition error corresponding to each preset time at that frequency does not exceed a preset threshold can be determined based on the superposition error formula and multiple preset durations. Therefore, an appropriate energy meter sampling frequency can be determined through this method, thereby improving metering accuracy.

[0078] In one possible implementation, after constructing the superposition error formula, the electronic device can substitute a preset duration each time to determine the superposition error corresponding to different preset durations under different energy meter sampling frequencies, thereby generating an error curve. Then, the energy meter sampling frequency that meets the preset conditions can be obtained through the error curve.

[0079] For example, Figure 3 For the error curve diagram corresponding to the power square wave signal with a period of 10s-10s, please refer to [link / reference]. Figure 3Taking curve 1 as an example, it can be seen that when the preset duration is 0ms, that is, when the start time of the energy meter sampling overlaps with the start time of the power square wave signal, the corresponding error is -3%; when the preset duration is 100ms, that is, when the time interval between the start time of the energy meter sampling and the start time of the power square wave signal is 100ms, the corresponding error is -4%.

[0080] In this embodiment, considering that there may be more than one energy meter sampling frequency that meets the preset conditions, the electronic device can determine which frequency should be selected as the energy meter sampling frequency according to the actual application situation.

[0081] In one possible implementation, the electronic device can determine the frequency with the smaller curve fluctuation among multiple frequencies that meet preset conditions as the sampling frequency of the energy meter; in another possible implementation, the electronic device can determine the largest frequency among multiple frequencies that meet preset conditions as the sampling frequency of the energy meter.

[0082] Alternatively, for energy meters that need to adapt to multiple waveforms, the corresponding energy meter sampling frequency can be determined by using power square wave signals of different periods.

[0083] In one example, the electronic device can determine the energy meter sampling error that meets the preset condition under the three periods of power square wave signal: 10s-10s, 5s-5s, and 5s-0.5s.

[0084] Specifically, Figure 4 The error curve diagram is shown for a power square wave signal with a period of 5s-5s. Figure 5 The error curve is shown for a power square wave signal with a period of 5s-0.5s.

[0085] In this embodiment, the electronic device can perform the above analysis process using simple data analysis tools, such as Excel.

[0086] Optionally, to facilitate sampling by the analog metering unit, the electronic device can first discretize the preset power square wave signal, and then sample according to the discrete sequence of the power square wave signal. Specifically, the electronic device can determine the discrete sequence corresponding to the power square wave signal based on the power square wave signal and the impulse sequence.

[0087] In one possible implementation, the impulse sequence δ1(N) can be characterized as:

[0088]

[0089] Here, N represents each time step in the impulse sequence. For example, if the step size of the impulse sequence is 1ms, then N can be 1ms, 2ms, etc.

[0090] Based on this, the discrete sequence X1(N) can be obtained by the following formula:

[0091] X1(N)=f(t)*δ1(N)

[0092] Here, f(t) represents the electric square wave signal.

[0093] Optionally, after determining the discrete sequence corresponding to the power square wave signal, the electronic device can determine the metering sampling sequence based on the discrete sequence, the impulse sequence, and the metering sampling frequency, and calculate the metering sampling error based on the metering sampling sequence and the discrete sequence.

[0094] Understandably, the measurement sampling error Err0 can be obtained using the following formula:

[0095] Err0=∑X 2c [N]-∑X1[N]

[0096] Where X1[N] represents a discrete sequence, X 2c [N] represents the measurement sampling sequence.

[0097] Optionally, in order to determine the metering sampling sequence, the electronic device needs to first determine the specific sampling time, i.e., the metering sampling point sequence, based on the impulse sequence and the metering sampling frequency.

[0098] In one possible implementation, the sequence of measurement sampling points δ2(N) can be obtained by the following formula:

[0099]

[0100] Where N represents each moment of the impulse sequence, MOD() represents the modulo operation on the data within the parentheses, and f1 represents the metering sampling frequency.

[0101] Understandably, in δ2(N), 0 represents no sampling and 1 represents sampling.

[0102] In this embodiment, the electronic device can generate an initial measurement sampling sequence based on the measurement sampling point sequence and the discrete sequence, and then correct the initial measurement sampling sequence according to the preset correction parameters to obtain the measurement sampling sequence.

[0103] Optionally, the initial sampling sequence is a sequence obtained by directly sampling a discrete sequence.

[0104] In one possible implementation, the initial sampling sequence X2[N] can be characterized as:

[0105]

[0106] Where X1[N] represents the discrete sequence, and δ2(N) represents the sequence of measurement sampling points.

[0107] In this embodiment, during initial sampling, if the value corresponding to the sampling point sequence at that moment is 1, then sampling is required, so the corresponding value in the discrete sequence can be obtained. If the value corresponding to the sampling point sequence at that moment is 0, then sampling is not required, so the value obtained from the previous sampling can be assigned to the corresponding position.

[0108] In this embodiment, the initial sampling sequence can be understood as the reconstructed signal of the power square wave signal after being discretized.

[0109] It is understandable that since the initial measurement sampling sequence is obtained by directly sampling the discrete sequence, there may be some error in the initial sampling sequence. Therefore, it is necessary to correct the initial sampling sequence.

[0110] Optionally, the preset correction parameters may include a gain correction parameter P and an offset correction parameter B.

[0111] In one possible implementation, the electronic device can correct the initial metrological sampling sequence X2[N] according to the following formula to obtain the metrological sampling sequence X. 2c [N]:

[0112] X 2c [N] = P * X²[N] + B

[0113] Based on this, the electronic device can determine the measurement sampling error Err0 according to the measurement sampling sequence and the discrete sequence, and construct a superposition error formula based on the measurement sampling sequence, the impulse sequence and the measurement sampling error.

[0114] Optionally, since the superposition error is the sum of the metering sampling error and the energy meter sampling error, the energy meter sampling error formula can be constructed first when constructing the superposition error formula.

[0115] In one possible implementation, the electronic device can first construct a sampling point sequence formula for the energy meter based on the impulse sequence, and then construct a sampling sequence formula for the energy meter based on this sampling point sequence formula and the metering sampling sequence. Based on this, the electronic device can construct a sampling error formula for the energy meter based on the sampling sequence formula and the metering sampling sequence, and then construct a superposition error formula based on the sampling error formula and the metering sampling error.

[0116] Optionally, the sequence of sampling points of the electricity meter can be used to characterize the sampling time of the electricity meter.

[0117] Understandably, since the specific sampling points of an electricity meter are related to the sampling frequency of the electricity meter, this electricity meter sampling point sequence formula can characterize the calculation relationship between the sampling time of the electricity meter, the preset duration, and the sampling frequency of the electricity meter.

[0118] In one possible implementation, the formula for the energy meter sampling point could be:

[0119]

[0120] Where δ4(N) represents the energy meter sampling point sequence, N represents the set time of the impulse sequence, Δt represents the preset duration, f2 represents the energy meter sampling frequency, and MOD represents the modulus extraction operation.

[0121] Understandably, Δt can be calculated by substituting multiple data points each time. If Δt is 0, it indicates that the start time of the electricity meter sampling overlaps with the start time of the power square wave signal.

[0122] Optionally, the electricity meter sampling sequence refers to the sequence obtained by sampling the metering sampling sequence based on the electricity meter sampling point sequence.

[0123] In one possible implementation, the formula for the energy meter sampling sequence could be:

[0124]

[0125] Where X3[N] represents the sampling sequence of the energy meter, X 2c [N] represents the metering sampling sequence, and δ4(N) represents the energy meter sampling point sequence.

[0126] Understandably, the sampling error of this electricity meter is the error between the electricity meter sampling sequence and the metering sampling sequence. Based on this, the formula for the electricity meter sampling error can be:

[0127] Err1=∑X3[N]-∑X 2c [N]

[0128] The formula for the superposition error can be:

[0129] Err = Err0 + Err1

[0130] Where Err represents the error, Err0 represents the metering sampling error, Err1 represents the energy meter sampling error, X3[N] represents the energy meter sampling sequence, and X 2c [N] represents the measurement sampling sequence.

[0131] This application also provides a device for determining the sampling frequency of an electricity meter. Figure 6 For a schematic diagram of a device for determining the sampling frequency of an energy meter provided in an embodiment of this application, please refer to [link / reference]. Figure 6 The energy meter sampling frequency determination device includes an error determination module 200, a construction module 210, and a frequency determination module 220.

[0132] The error determination module 200 is used to determine the metering sampling sequence after the metering unit samples the power square wave signal and the corresponding metering sampling error of the metering unit based on the preset power square wave signal, impulse sequence and metering sampling frequency.

[0133] Understandably, the error determination module 200 can also be used to perform the above step S20.

[0134] The construction module 210 is used to construct a superposition error formula based on the metering sampling sequence, the impulse sequence, and the metering sampling error. The superposition error formula characterizes the calculation relationship between the superposition error and the sampling frequency of the energy meter. The superposition error is the superposition value of the metering sampling error and the sampling error of the energy meter.

[0135] Understandably, the building block 210 can also be used to perform the above step S21.

[0136] The frequency determination module 220 is used to determine the sampling frequency of the energy meter that meets the preset conditions based on the superposition error formula and multiple preset durations.

[0137] The preset duration represents the time elapsed between the sampling start time of the electricity meter and the start time of the power square wave signal. The preset conditions include that the sampling frequency of the electricity meter is less than or equal to the preset frequency, and that the superposition error corresponding to each preset duration at the sampling frequency of the electricity meter does not exceed the preset threshold.

[0138] Understandably, the frequency determination module 220 can also be used to perform the above step S22.

[0139] Optionally, the error determination module 200 is further configured to determine the discrete sequence corresponding to the power square wave signal based on the power square wave signal and the impulse sequence; determine the metering sampling sequence based on the discrete sequence, the impulse sequence and the metering sampling frequency; and calculate the metering sampling error based on the metering sampling sequence and the discrete sequence.

[0140] Optionally, the error determination module 200 is further configured to determine the metering sampling point sequence of the metering unit based on the impulse sequence and the metering sampling frequency; the metering sampling point sequence is used to characterize the sampling time of the metering unit; an initial metering sampling sequence is generated based on the metering sampling point sequence and the discrete sequence, and the initial metering sampling sequence is corrected according to the preset correction parameters to obtain the metering sampling sequence.

[0141] Optionally, the construction module 210 is further configured to construct a sampling point sequence formula for the energy meter based on the impulse sequence; wherein, the sampling point sequence formula for the energy meter characterizes the calculation relationship between the sampling time of the energy meter and the preset duration and the sampling frequency of the energy meter; construct an energy meter sampling sequence formula based on the energy meter sampling point sequence formula and the metering sampling sequence; construct an energy meter sampling error formula based on the energy meter sampling sequence formula and the metering sampling sequence; and construct a superposition error formula based on the energy meter sampling error formula and the metering sampling error.

[0142] The energy meter sampling frequency determination device provided in this application embodiment can determine the metering sampling sequence and the corresponding metering sampling error of the metering unit after sampling the power square wave signal by the metering unit through the error determination module based on the preset power square wave signal, impulse sequence and metering sampling frequency; construct a superposition error formula based on the metering sampling sequence, impulse sequence and metering sampling error through the construction module; the superposition error formula represents the calculation relationship between the superposition error and the energy meter sampling frequency, and the superposition error is the superposition value of the metering sampling error and the energy meter sampling error; and determine the energy meter sampling frequency that meets the preset conditions through the frequency determination module based on the superposition error formula and multiple preset durations; wherein, the preset duration represents the time elapsed between the energy meter sampling start time and the power square wave signal start time, and the preset conditions include that the energy meter sampling frequency is less than or equal to the preset frequency, and the superposition error corresponding to each preset duration at the energy meter sampling frequency does not exceed the preset threshold, so an appropriate energy meter sampling frequency can be determined to improve metering accuracy.

[0143] This application also provides a computer-readable storage medium storing a computer program thereon, which, when executed by a processor, can implement the method for determining the sampling frequency of an energy meter provided in this application.

[0144] While the present invention has been disclosed above, it is not limited thereto. Any person skilled in the art can make various modifications and alterations without departing from the spirit and scope of the invention; therefore, the scope of protection of the present invention should be determined by the scope defined in the claims.

Claims

1. A method for determining the sampling frequency of an electricity meter, characterized in that, The method includes: Based on the preset power square wave signal, impulse sequence and metering sampling frequency, the metering sampling sequence after the metering unit samples the power square wave signal and the corresponding metering sampling error of the metering unit are determined; A superposition error formula is constructed based on the metering sampling sequence, the impulse sequence, and the metering sampling error; the superposition error formula characterizes the calculation relationship between the superposition error and the sampling frequency of the energy meter, and the superposition error is the superposition value of the metering sampling error and the energy meter sampling error; The step of constructing the superposition error formula based on the measurement sampling sequence, the impulse sequence, and the measurement sampling error includes: A sampling point sequence formula for the energy meter is constructed based on the impulse sequence; wherein, the sampling point sequence formula for the energy meter characterizes the calculation relationship between the sampling time of the energy meter, the preset duration, and the sampling frequency of the energy meter; the sampling point sequence formula for the energy meter includes: in, The sequence of sampling points of the energy meter is represented by N, where N represents the set time of the impulse sequence. t represents the preset duration. The sampling frequency of the energy meter is characterized by MOD, and the modulus operation is characterized by MOD. Based on the energy meter sampling point sequence formula and the metering sampling sequence, an energy meter sampling sequence formula is constructed; the energy meter sampling sequence formula includes: in, Characterizing the sampling sequence of the electricity meter, Characterizing the measurement sampling sequence, Characterizing the sampling point sequence of the electricity meter; Based on the energy meter sampling sequence formula and the metering sampling sequence, an energy meter sampling error formula is constructed, and based on the energy meter sampling error formula and the metering sampling error, a superposition error formula is constructed; the energy meter sampling error formula includes: The superposition error formula includes: Wherein, Err represents the error, Err0 represents the metering sampling error, and Err1 represents the electricity meter sampling error. Characterizing the sampling sequence of the electricity meter, Characterizes the measurement sampling sequence; Based on the superposition error formula and multiple preset durations, determine the sampling frequency of the energy meter that meets the preset conditions; The preset duration represents the time elapsed between the sampling start time of the electricity meter and the start time of the power square wave signal. The preset conditions include that the sampling frequency of the electricity meter is less than or equal to a preset frequency, and that the superposition error corresponding to each preset duration at the sampling frequency of the electricity meter does not exceed a preset threshold.

2. The method according to claim 1, characterized in that, The step of determining the metering sampling sequence after the metering unit samples the power square wave signal and the corresponding metering sampling error of the metering unit based on the preset power square wave signal, impulse sequence, and preset metering sampling frequency includes: Based on the power square wave signal and the impulse sequence, determine the discrete sequence corresponding to the power square wave signal; The metering sampling sequence is determined based on the discrete sequence, the impulse sequence, and the metering sampling frequency; The measurement sampling error is calculated based on the measurement sampling sequence and the discrete sequence.

3. The method according to claim 2, characterized in that, Determining the measurement sampling sequence based on the discrete sequence, the impulse sequence, and the measurement sampling frequency includes: Based on the impulse sequence and the metering sampling frequency, the metering sampling point sequence of the metering unit is determined; the metering sampling point sequence is used to characterize the sampling time of the metering unit. An initial measurement sampling sequence is generated based on the measurement sampling point sequence and the discrete sequence, and the initial measurement sampling sequence is corrected according to preset correction parameters to obtain the measurement sampling sequence.

4. A device for determining the sampling frequency of an electricity meter, characterized in that, The device includes: The error determination module is used to determine the metering sampling sequence after the metering unit samples the power square wave signal and the metering sampling error corresponding to the metering unit, based on the preset power square wave signal, impulse sequence and metering sampling frequency. A construction module is used to construct a superposition error formula based on the metering sampling sequence, the impulse sequence, and the metering sampling error; the superposition error formula characterizes the calculation relationship between the superposition error and the sampling frequency of the energy meter, and the superposition error is the superposition value of the metering sampling error and the energy meter sampling error; The construction module is further configured to construct a sampling point sequence formula for the energy meter based on the impulse sequence; wherein, the sampling point sequence formula for the energy meter characterizes the calculation relationship between the sampling time of the energy meter and the preset duration and the sampling frequency of the energy meter; the sampling point sequence formula for the energy meter includes: in, The sequence of sampling points of the energy meter is represented by N, where N represents the set time of the impulse sequence. t represents the preset duration. The sampling frequency of the energy meter is characterized by MOD, and the modulus operation is characterized by MOD. Based on the energy meter sampling point sequence formula and the metering sampling sequence, an energy meter sampling sequence formula is constructed; the energy meter sampling sequence formula includes: in, Characterizing the sampling sequence of the electricity meter, Characterizing the measurement sampling sequence, Characterizing the sampling point sequence of the electricity meter; Based on the energy meter sampling sequence formula and the metering sampling sequence, an energy meter sampling error formula is constructed, and based on the energy meter sampling error formula and the metering sampling error, a superposition error formula is constructed; the energy meter sampling error formula includes: The superposition error formula includes: Wherein, Err represents the error, Err0 represents the metering sampling error, and Err1 represents the electricity meter sampling error. Characterizing the sampling sequence of the electricity meter, Characterizes the measurement sampling sequence; The frequency determination module is used to determine the sampling frequency of the energy meter that meets the preset conditions based on the superposition error formula and multiple preset durations. The preset duration represents the time elapsed between the sampling start time of the electricity meter and the start time of the power square wave signal. The preset conditions include that the sampling frequency of the electricity meter is less than or equal to a preset frequency, and that the superposition error corresponding to each preset duration at the sampling frequency of the electricity meter does not exceed a preset threshold.

5. An electronic device, characterized in that, It includes a processor and a memory, the memory storing a computer program executable by the processor, the processor executing the computer program to implement the method of any one of claims 1-3.

6. A computer-readable storage medium having a computer program stored thereon, characterized in that, When the computer program is executed by a processor, it implements the method as described in any one of claims 1-3.

Citation Information

Patent Citations

  • Method and device for quickly correcting phase error of energy meter

    CN102540136A

  • Metering information acquisition system and acquisition method of intelligent electric energy meter

    CN115442676A