Power flow direction determination method and apparatus for electric energy meter, and storage medium and electric energy meter

By dividing the power signal into half-cycles and performing power flow analysis, the problem of lag in power flow direction judgment in the power grid is solved, and the speed and accuracy of power metering are achieved.

WO2026242428A1PCT designated stage Publication Date: 2026-11-26SHENZHEN CLOU ELECTRONICS
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
PCT/CN2025/147173
Authority / Receiving Office
WO · WO
Patent Type
Applications
Current Assignee / Owner
Priority Date
2025-05-22
Filing Date
2025-12-30
Publication Date
2026-11-26

AI Technical Summary

Technical Problem

The existing technology has a lag in determining the direction of power flow in the power grid, resulting in low accuracy of power metering.

Method used

By dividing the power signal into half of its period, multiple half-cycle signal segments are obtained, and power flow analysis is performed based on the power data in each signal segment to quickly determine changes in the power flow direction.

Benefits of technology

It improves the speed and timeliness of power flow direction judgment, enabling timely detection of changes in power flow direction in the power grid, thereby improving the accuracy of power metering.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN2025147173_26112026_PF_FP_ABST
    Figure CN2025147173_26112026_PF_FP_ABST
Patent Text Reader

Abstract

The present application relates to the technical field of electric metering devices. Provided are a power flow direction determination method and apparatus for an electric energy meter, and a storage medium and an electric energy meter. The determination method comprises: collecting an electric energy signal, wherein the signal period of the electric energy signal is a first period; performing signal segmentation processing on the electric energy signal to obtain a plurality of signal segments, wherein each of the signal periods of the plurality of signal segments is a second period, and the second period is half of the first period; determining electric energy data corresponding to each signal segment; and on the basis of the electric energy data, determining a power flow direction corresponding to the electric energy signal. In the present application, a collected electric energy signal is segmented on the basis of half of the period thereof, and power flow analysis is performed on the basis of electric energy data in the half-period signal segments obtained by segmentation, thereby improving the speed and timeliness of power flow direction determination. Therefore, a change in the power flow direction of a power grid can be found in a timely manner, thereby improving the metering accuracy.
Need to check novelty before this filing date? Find Prior Art

Description

Methods and devices for determining the power flow direction of electricity meters, storage media, and electricity meters.

[0001] This application claims priority to Chinese Patent Application No. 202510666845.2, filed on May 22, 2025, entitled “Method and Apparatus for Determining the Power Flow Direction of an Electricity Meter, Storage Medium and Electricity Meter”, the entire contents of which are incorporated herein by reference. Technical Field

[0002] This application relates to the field of electricity metering equipment technology, and more specifically, to a method and apparatus for determining the power flow direction of an electricity meter, a storage medium, and an electricity meter. Background Technology

[0003] In related technologies, electricity metering devices such as electricity meters need to determine the direction of power flow in the power grid. The conventional method uses voltage and current data from multiple consecutive cycles as a benchmark to determine the power flow direction. This method has a significant lag and is slow, resulting in an inability to reflect the real-time state of the power grid in practical applications and low metering accuracy. Technical solutions

[0004] This application aims to at least address the problem of low accuracy in power metering caused by the lag in the determination of power flow direction in existing or related technologies.

[0005] Therefore, the first aspect of this application proposes a method for determining the power flow direction of an electricity meter.

[0006] The second aspect of this application proposes a device for determining the power flow direction of an electricity meter.

[0007] The third aspect of this application proposes a device for determining the power flow direction of an electricity meter.

[0008] The fourth aspect of this application proposes a readable storage medium.

[0009] The fifth aspect of this application proposes an electricity meter.

[0010] In view of the above, the first aspect of this application provides a method for determining the power flow direction of an electricity meter, comprising: acquiring an electricity signal; wherein the signal period of the electricity signal is a first period; performing signal division processing on the electricity signal to obtain multiple signal segments; wherein the signal period of the multiple signal segments is a second period, and the second period is half the period of the first period; determining the electricity data corresponding to each signal segment; and determining the power flow direction corresponding to the electricity signal based on the electricity data.

[0011] In this technical solution, the electricity meter is used to collect and measure electrical energy data. Multiple signal segments have a second cycle, and the electrical energy data has a direction: forward and reverse. When measuring electrical energy, it is necessary to determine the direction of the energy flow. An effective method is to determine whether to record forward or reverse electrical energy based on the power flow direction of the power grid signal. Therefore, how to efficiently and accurately determine the power flow direction is a crucial factor in improving the metering accuracy of the electricity meter.

[0012] In related technologies, power flow analysis is performed based on voltage and current data collected over multiple cycles in order to obtain an accurate power flow direction. This results in a lag in the determination of power flow direction, which fails to reflect the real-time status of the power grid in a timely manner, thus severely reducing the accuracy of metering.

[0013] To address the aforementioned issues, this application proposes a method for determining the power flow direction of an electricity meter. By dividing the collected power signal into half of its cycle, multiple half-cycle signal segments are obtained. By performing power flow analysis on the power data in each half-cycle signal segment, changes in power flow direction can be identified more quickly, making the power flow direction analysis more timely and thus improving metering accuracy.

[0014] For example, an electricity meter acquires raw signals and converts the acquired current and / or voltage signals into digital signals using a high-precision analog-to-digital converter (ADC). A high-precision ADC ensures that the acquired signals have high sampling accuracy and signal resolution, thus providing a reliable data foundation for subsequent signal processing and feature extraction.

[0015] After obtaining the electrical signal, it is divided into segments equal to half the signal period, resulting in at least two half-cycle signal segments. For example, taking the initial electrical signal period as the first period, the signal is divided into segments equal to half the first period, i.e., the second period. The resulting signal segments all have the second period as their period, and the duration of the second period is half the duration of the first period. After obtaining multiple half-cycle signal segments, power flow analysis is performed based on the electrical data within each segment, yielding power flow analysis results for each half-cycle, thus enabling rapid determination of the power flow direction.

[0016] This application improves the speed and timeliness of power flow direction determination by dividing the collected power signal into half of its cycle and performing power flow analysis based on the power data within the divided half-cycle signal segment. Therefore, it can detect changes in the power flow direction of the power grid in a timely manner, thereby improving the metering accuracy.

[0017] In some technical solutions of this application, optionally, the electrical energy signal includes a current signal and a voltage signal; determining the electrical energy data corresponding to each signal segment includes: determining the accumulated electrical energy value corresponding to each signal segment based on the current signal and voltage signal corresponding to each signal segment.

[0018] In this technical solution, the electrical energy data collected by the electricity meter specifically includes voltage and current signals. After collecting the grid signal, a high-precision analog-to-digital converter converts the collected signal into a digital signal, resulting in the aforementioned voltage and current signals.

[0019] Subsequently, based on half the signal period of the voltage signal, the voltage and current signals are segmented to obtain signal segments containing half a cycle of voltage and energy signals. Energy accumulation is calculated for each half-cycle signal segment to obtain the accumulated energy value for each segment. This accumulated energy value represents the energy data corresponding to one signal segment. Since the frequency of the instantaneous power signal is twice the frequency of the current and voltage signals, the accumulated energy value for each half-cycle allows for a faster determination of changes in power flow direction.

[0020] This application performs power flow analysis using the accumulated power value over half a cycle, which can accurately and quickly obtain the power flow direction of a signal segment, thereby improving the speed and timeliness of power flow detection.

[0021] In some technical solutions of this application, optionally, the power flow direction corresponding to the power signal is determined based on power data, including: when the power accumulation value is positive, the power flow direction is determined to be a positive power flow; or when the power accumulation value is negative, the power flow direction is determined to be a negative power flow.

[0022] In this technical solution, if the accumulated electrical energy value within a half-cycle signal segment is positive, it can be determined that the power flow direction of the power grid within this signal segment is positive. If the accumulated electrical energy value within a half-cycle signal segment is negative, it can be determined that the power flow direction of the power grid within this signal segment is negative.

[0023] This application uses the accumulated electrical energy value over half a cycle to determine the power flow direction, which can quickly determine the changes in power flow direction and thus improve the accuracy of electrical energy metering.

[0024] In some technical solutions of this application, optionally, the accumulated energy value corresponding to each signal segment is determined based on the current signal and voltage signal corresponding to each signal segment, including: determining the instantaneous power signal corresponding to the signal segment based on the current signal and voltage signal; and determining the accumulated energy value based on the instantaneous power signal.

[0025] In this technical solution, the electrical energy data within each signal segment includes a voltage signal for half a cycle and a current signal for half a cycle. Let the voltage signal within a signal segment be Vcos(ωt) and the current signal be Icos(ωt+Φ), then the instantaneous power can be calculated using the following formula (1):

[0026] P(t)=Vcos(ωt)×Icos(ωt+Φ); (1)

[0027] Where P(t) is the instantaneous power, Vcos(ωt) is the voltage signal, and Icos(ωt+Φ) is the current signal.

[0028] The product-to-sum formulas for trigonometric functions are shown in formula (2):

[0029] (2)

[0030] Where A and B represent arbitrary constants.

[0031] From formulas (1) and (2), the formula for instantaneous power can be simplified to obtain the following formula (3):

[0032] (3)

[0033] Where V is the instantaneous voltage amplitude and I is the instantaneous current amplitude. The initial phase angle, This represents the phase change.

[0034] As shown in formula (3), the frequency of the instantaneous power signal is twice that of the power supply signal. That is, within one cycle of the current and voltage signals, the frequency of the instantaneous power signal is twice as fast as that of both the current and voltage signals. Therefore, by accumulating the instantaneous power signal within half a cycle, it is possible to quickly determine the change in power flow direction, improve the timeliness of power flow direction determination, and thus improve the accuracy of power metering.

[0035] In some technical solutions of this application, optionally, determining the accumulated energy value based on the instantaneous power signal includes: summing N instantaneous power values ​​to obtain the accumulated energy value; wherein the signal segment includes N sampling points, the N sampling points correspond one-to-one with the N instantaneous power values, and N is a positive integer; or, performing integration calculation on the instantaneous power signal to obtain the accumulated energy value.

[0036] In this technical solution, for example, the electricity meter periodically performs discrete sampling of the power grid. For high-precision electricity meters, the power grid signal can be collected at a frequency of thousands of sampling points per second. The sampled current and voltage signals are stored in the form of discrete sampling points.

[0037] Suppose a half-cycle signal segment includes N sampling points. In this half-cycle signal segment, the current signal includes N current sample values, and the voltage signal includes N voltage sample values. When calculating the instantaneous power value, calculations are performed based on the current and voltage values ​​at each sampling point, yielding N instantaneous power values ​​corresponding to the N sampling points. After obtaining the N instantaneous power values, these N instantaneous power values ​​are accumulated to obtain the cumulative electrical energy value within the current half-cycle signal segment.

[0038] For example, after obtaining the instantaneous power signal within a half-cycle signal segment, the instantaneous power signal can be integrated to obtain the accumulated energy value within a signal segment. For example, the accumulated energy value can be calculated using the following formula (4):

[0039] E= (4)

[0040] Where E is the accumulated electrical energy value, and T is the period of the electrical energy signal, that is, the first period; For the second cycle, It is a voltage signal. t represents the current signal, and t represents time.

[0041] In some technical solutions of this application, optionally, after determining the power flow direction corresponding to the power signal based on the power data, the determination method further includes: if the power flow direction corresponding to the signal segment is a forward power flow, the power data corresponding to the signal segment is included in the forward power data; or, if the power flow direction corresponding to the signal segment is a reverse power flow, the power data corresponding to the signal segment is included in the reverse power data.

[0042] In this technical solution, after determining the power flow direction within a half-cycle signal segment, the forward and reverse electrical energy within that half-cycle signal segment is recorded based on the determined power flow direction. For example, when the power flow direction is determined to be forward (i.e., a positive current flow), the energy meter records the electrical energy data within the current half-cycle signal segment in the forward energy record. When the power flow direction is determined to be reverse (reverse current flow), the energy meter records the electrical energy data within the current half-cycle signal segment in the reverse energy record. In this way, the energy meter can always accurately record the forward and reverse flow of electrical energy, providing reliable data support for energy metering.

[0043] This application divides the collected electrical energy signal into multiple half-cycle signal segments according to its half-cycle. Based on the electrical energy signal within each half-cycle signal segment, feature extraction and algorithm processing are performed to quickly determine the power flow direction and record forward and reverse electrical energy, thereby improving the accuracy and efficiency of forward and reverse metering of the electricity meter.

[0044] A second aspect of this application provides a device for determining the power flow direction of an electricity meter, comprising: a data acquisition module for acquiring an electricity signal; wherein the signal period of the electricity signal is a first period; a processing module for performing signal division processing on the electricity signal to obtain multiple signal segments; wherein the signal period of each of the multiple signal segments is a second period, and the second period is half the period of the first period; a determination module for determining the electricity data corresponding to each signal segment; and determining the power flow direction corresponding to the electricity signal based on the electricity data.

[0045] In this technical solution, the electricity meter is used to collect and measure electrical energy data. This electrical energy data has a direction, namely, forward and reverse electrical energy. When measuring electrical energy, it is necessary to determine the direction of the energy flow. An effective method for this is to determine whether to record forward or reverse electrical energy based on the power flow direction of the power grid signal. Therefore, how to efficiently and accurately determine the power flow direction is a crucial factor in improving the metering accuracy of the electricity meter.

[0046] In related technologies, power flow analysis is performed based on voltage and current data collected over multiple cycles in order to obtain an accurate power flow direction. This results in a lag in the determination of power flow direction, which fails to reflect the real-time status of the power grid in a timely manner, thus severely reducing the accuracy of metering.

[0047] To address the aforementioned issues, this application proposes a device for determining the power flow direction of an electricity meter. By dividing the collected power signal into half of its signal period, multiple half-cycle signal segments are obtained. By performing power flow analysis on the power data in each half-cycle signal segment, changes in power flow direction can be determined and identified more quickly, thus making the power flow direction analysis more timely and improving metering accuracy.

[0048] For example, an electricity meter acquires raw signals and converts the acquired current and / or voltage signals into digital signals using a high-precision analog-to-digital converter (ADC). A high-precision ADC ensures that the acquired signals have high sampling accuracy and signal resolution, thus providing a reliable data foundation for subsequent signal processing and feature extraction.

[0049] After obtaining the electrical signal, it is divided into segments equal to half the signal period, resulting in at least two half-cycle signal segments. For example, taking the initial electrical signal period as the first period, the signal is divided into segments equal to half the first period, i.e., the second period. The resulting signal segments all have the second period as their period, and the duration of the second period is half the duration of the first period. After obtaining multiple half-cycle signal segments, power flow analysis is performed based on the electrical data within each segment, yielding power flow analysis results for each half-cycle, thus enabling rapid determination of the power flow direction.

[0050] This application improves the speed and timeliness of power flow direction determination by dividing the collected power signal into half of its cycle and performing power flow analysis based on the power data within the divided half-cycle signal segment. Therefore, it can detect changes in the power flow direction of the power grid in a timely manner, thereby improving the metering accuracy.

[0051] A third aspect of this application provides an apparatus for determining the power flow direction of an electricity meter, comprising: a memory for storing programs or instructions; and a processor for executing the programs or instructions to implement the steps of the method for determining the power flow direction of an electricity meter as provided in any of the above technical solutions, thus achieving the same technical effect. To avoid repetition, further details are omitted here.

[0052] The fourth aspect of this application provides a readable storage medium storing a program or instructions that, when executed by a processor, implement the steps of the method for determining the power flow direction of an energy meter as provided in any of the above-described technical solutions, thus achieving the same technical effect. To avoid repetition, further details are omitted here.

[0053] The fifth aspect of this application provides an electricity meter, including a device for determining the power flow direction of the electricity meter as provided in any of the above technical solutions, and / or a readable storage medium as provided in any of the above technical solutions, thus achieving the same technical effect. To avoid repetition, further details are omitted here. Attached Figure Description

[0054] The above and / or additional aspects and advantages of this application will become apparent and readily understood from the description of the embodiments taken in conjunction with the following drawings, in which:

[0055] Figure 1 shows a flowchart of a method for determining the power flow direction of an energy meter according to some embodiments of this application;

[0056] Figure 2 shows the signal waveforms of some embodiments of this application when the electrical signal phase shift is 0 degrees.

[0057] Figure 3 shows the signal waveforms of some embodiments of this application when the electrical signal phase shifts by 60 degrees;

[0058] Figure 4 shows the signal waveforms of some embodiments of this application when the electrical signal phase shift is -36.8 degrees;

[0059] Figure 5 shows the signal waveforms of some embodiments of this application when the electrical signal phase shifts by 90 degrees;

[0060] Figure 6 shows a logic diagram of an energy meter determining the power flow direction according to some embodiments of this application;

[0061] Figure 7 shows a structural block diagram of a power flow direction determination device for an electricity meter according to some embodiments of this application;

[0062] Figure 8 shows a structural block diagram of a power flow direction determination device for an electricity meter according to some embodiments of this application. Embodiments of the present invention

[0063] To better understand the above-mentioned objectives, features, and advantages of this application, the application will be further described in detail below with reference to the accompanying drawings and specific embodiments. It should be noted that, unless otherwise specified, the embodiments and features described in these embodiments can be combined with each other.

[0064] Many specific details are set forth in the following description in order to provide a full understanding of this application. However, this application may also be implemented in other ways different from those described herein. Therefore, the scope of protection of this application is not limited to the specific embodiments disclosed below.

[0065] The following describes, with reference to Figures 1 to 8, a method and apparatus for determining the power flow direction of an energy meter according to some embodiments of the present application, a storage medium, and an energy meter.

[0066] In some embodiments of this application, a method for determining the power flow direction of an electricity meter is provided. Figure 1 shows a flowchart of the method for determining the power flow direction of an electricity meter according to some embodiments of this application. As shown in Figure 1, the method includes:

[0067] Step 102: Acquire electrical energy signal; wherein, the signal period of the electrical energy signal is the first period;

[0068] Step 104: Perform signal segmentation processing on the electrical energy signal to obtain multiple signal segments; wherein the signal period of each of the multiple signal segments is the second period, and the second period is half the period of the first period;

[0069] Step 106: Determine the power data corresponding to each signal segment;

[0070] Step 108: Determine the power flow direction corresponding to the power signal based on the power data.

[0071] In this embodiment, the electricity meter is used to collect and measure electrical energy data. This electrical energy data has a direction, namely, forward and reverse electrical energy. When measuring electrical energy, it is necessary to determine the direction of the electrical energy. An effective method for this is to determine whether to record forward or reverse electrical energy based on the power flow direction of the power grid signal. Therefore, how to efficiently and accurately determine the power flow direction is a crucial factor in improving the metering accuracy of the electricity meter.

[0072] In related technologies, power flow analysis is performed based on voltage and current data collected over multiple cycles in order to obtain an accurate power flow direction. This results in a lag in the determination of power flow direction, which fails to reflect the real-time status of the power grid in a timely manner, thus severely reducing the accuracy of metering.

[0073] To address the aforementioned issues, this application proposes a method for determining the power flow direction of an electricity meter. By dividing the collected power signal into half of its cycle, multiple half-cycle signal segments are obtained. By performing power flow analysis on the power data in each half-cycle signal segment, changes in power flow direction can be identified more quickly, making the power flow direction analysis more timely and thus improving metering accuracy.

[0074] For example, an electricity meter acquires raw signals and converts the acquired current and / or voltage signals into digital signals using a high-precision analog-to-digital converter (ADC). A high-precision ADC ensures that the acquired signals have high sampling accuracy and signal resolution, thus providing a reliable data foundation for subsequent signal processing and feature extraction.

[0075] After obtaining the electrical signal, it is divided into segments equal to half the signal period, resulting in at least two half-cycle signal segments. For example, taking the initial electrical signal period as the first period, the signal is divided into segments equal to half the first period, i.e., the second period. The resulting signal segments all have the second period as their period, and the duration of the second period is half the duration of the first period. After obtaining multiple half-cycle signal segments, power flow analysis is performed based on the electrical data within each segment, yielding power flow analysis results for each half-cycle, thus enabling rapid determination of the power flow direction.

[0076] This application improves the speed and timeliness of power flow direction determination by dividing the collected power signal into half of its cycle and performing power flow analysis based on the power data within the divided half-cycle signal segment. Therefore, it can detect changes in the power flow direction of the power grid in a timely manner, thereby improving the metering accuracy.

[0077] In some embodiments of this application, optionally, the power signal includes a current signal and a voltage signal; determining the power data corresponding to each signal segment includes: determining the power accumulation value corresponding to each signal segment based on the current signal and voltage signal corresponding to each signal segment.

[0078] In this embodiment, the electrical energy data collected by the electricity meter specifically includes voltage and current signals. After collecting the grid signal, a high-precision analog-to-digital converter converts the collected signal into a digital signal, resulting in the aforementioned voltage and current signals.

[0079] Subsequently, based on half the signal period of the voltage signal, the voltage and current signals are segmented to obtain signal segments containing half a cycle of voltage and energy signals. Energy accumulation is calculated for each half-cycle signal segment to obtain the accumulated energy value for each segment. This accumulated energy value represents the energy data corresponding to one signal segment. Since the frequency of the instantaneous power signal is twice the frequency of the current and voltage signals, the accumulated energy value for each half-cycle allows for a faster determination of changes in power flow direction.

[0080] This application performs power flow analysis using the accumulated power value over half a cycle, which can accurately and quickly obtain the power flow direction of a signal segment, thereby improving the speed and timeliness of power flow detection.

[0081] In some embodiments of this application, optionally, determining the power flow direction corresponding to the power signal based on power data includes: determining the power flow direction as a forward power flow when the accumulated power value is positive; or determining the power flow direction as a reverse power flow when the accumulated power value is negative.

[0082] In this embodiment, if the accumulated power value within a half-cycle signal segment is positive, it can be determined that the power flow direction of the power grid within this signal segment is positive. If the accumulated power value within a half-cycle signal segment is negative, it can be determined that the power flow direction of the power grid within this signal segment is negative.

[0083] This application uses the accumulated electrical energy value over half a cycle to determine the power flow direction, which can quickly determine the changes in power flow direction and thus improve the accuracy of electrical energy metering.

[0084] In some embodiments of this application, optionally, determining the accumulated energy value corresponding to each signal segment based on the current signal and voltage signal corresponding to each signal segment includes: determining the instantaneous power signal corresponding to the signal segment based on the current signal and voltage signal; and determining the accumulated energy value based on the instantaneous power signal.

[0085] In this embodiment, the power data within each signal segment includes a voltage signal for half a cycle and a current signal for half a cycle. Let the voltage signal within a signal segment be Vcos(ωt) and the current signal be Icos(ωt+Φ), then the instantaneous power can be calculated using the following formula (1):

[0086] P(t)=Vcos(ωt)×Icos(ωt+Φ); (1)

[0087] Where P(t) is the instantaneous power, Vcos(ωt) is the voltage signal, and Icos(ωt+Φ) is the current signal.

[0088] The product-to-sum formulas for trigonometric functions are shown in formula (2):

[0089] (2)

[0090] Where A and B represent arbitrary constants.

[0091] From formulas (1) and (2), the formula for instantaneous power can be simplified to obtain the following formula (3):

[0092] (3)

[0093] Where V is the instantaneous voltage amplitude and I is the instantaneous current amplitude. The initial phase angle, This represents the phase change.

[0094] As can be seen from formula (3), the frequency of the instantaneous power signal is twice the frequency of the power supply signal.

[0095] Figure 2 shows the signal waveforms of some embodiments of this application when the electrical signal phase shift is 0 degrees; Figure 3 shows the signal waveforms of some embodiments of this application when the electrical signal phase shift is 60 degrees; Figure 4 shows the signal waveforms of some embodiments of this application when the electrical signal phase shift is -36.8 degrees; and Figure 5 shows the signal waveforms of some embodiments of this application when the electrical signal phase shift is 90 degrees. As shown in Figures 2, 3, 4, and 5, waveform A is the instantaneous power signal, waveform B is the current signal, and waveform C is the voltage signal. Within one cycle of the current and voltage signals, the frequency of the instantaneous power signal is twice as fast as both the current and voltage signals. Specifically, Figure 2 shows the signal waveforms when the electrical signal phase shift is 0 degrees, at which point the power factor is 1.0. Figure 3 shows the signal waveforms when the electrical signal phase shift is 60 degrees, at which point the power factor is 0.5L. Figure 4 shows the signal waveforms when the electrical signal phase shift is -36.8 degrees, at which point the power factor is 0.8C.

[0096] Therefore, by accumulating electrical energy through instantaneous power signals within a half-cycle, it is possible to quickly determine changes in power flow direction, improve the timeliness of power flow direction determination, and thus improve the accuracy of electrical energy metering.

[0097] In some embodiments of this application, optionally, determining the accumulated energy value based on the instantaneous power signal includes: summing N instantaneous power values ​​to obtain the accumulated energy value; wherein the signal segment includes N sampling points, the N sampling points correspond one-to-one with the N instantaneous power values, and N is a positive integer; or, integrating the instantaneous power signal to obtain the accumulated energy value.

[0098] In this embodiment, for example, the electricity meter periodically performs discrete sampling of the power grid. For high-precision electricity meters, the power grid signal can be collected at a frequency of thousands of sampling points per second. The sampled current and voltage signals are stored in the form of discrete sampling points.

[0099] Suppose a half-cycle signal segment includes N sampling points. In this half-cycle signal segment, the current signal includes N current sample values, and the voltage signal includes N voltage sample values. When calculating the instantaneous power value, calculations are performed based on the current and voltage values ​​at each sampling point, yielding N instantaneous power values ​​corresponding to the N sampling points. After obtaining the N instantaneous power values, these N instantaneous power values ​​are accumulated to obtain the cumulative electrical energy value within the current half-cycle signal segment.

[0100] For example, after obtaining the instantaneous power signal within a half-cycle signal segment, the instantaneous power signal can be integrated to obtain the accumulated energy value within a signal segment. For example, the accumulated energy value can be calculated using the following formula (4):

[0101] E= (4)

[0102] Where E is the accumulated electrical energy value, and T is the period of the electrical energy signal, that is, the first period; For the second cycle, It is a voltage signal. t represents the current signal, and t represents time.

[0103] In some embodiments of this application, optionally, after determining the power flow direction corresponding to the power signal based on the power data, the determination method further includes: if the power flow direction corresponding to the signal segment is a forward power flow, the power data corresponding to the signal segment is included in the forward power data; or, if the power flow direction corresponding to the signal segment is a reverse power flow, the power data corresponding to the signal segment is included in the reverse power data.

[0104] In this embodiment, after determining the power flow direction within a half-cycle signal segment, the forward and reverse electrical energy within that half-cycle signal segment is recorded based on the determined power flow direction. For example, when the power flow direction is determined to be forward (i.e., forward flow), the energy meter records the electrical energy data within the current half-cycle signal segment in the forward energy record. When the power flow direction is determined to be reverse (reverse flow), the energy meter records the electrical energy data within the current half-cycle signal segment in the reverse energy record. In this way, the energy meter can always accurately record the forward and reverse flow of electrical energy, providing reliable data support for energy metering.

[0105] This application divides the collected electrical energy signal into multiple half-cycle signal segments according to its half-cycle. Based on the electrical energy signal within each half-cycle signal segment, feature extraction and algorithm processing are performed to quickly determine the power flow direction and record forward and reverse electrical energy, thereby improving the accuracy and efficiency of forward and reverse metering of the electricity meter.

[0106] In some embodiments of this application, Figure 6 illustrates a logical schematic diagram of how an energy meter determines the power flow direction. As shown in Figure 6, during the forward and reverse energy metering process, firstly, a high-precision ADC is used to acquire voltage and current signals, dividing the voltage signal period into multiple half-cycle signal segments. Next, the energy is accumulated for each half-cycle signal segment. If the accumulated sum is positive, it indicates a forward power flow; otherwise, it indicates a reverse power flow. This allows for rapid determination of changes in power flow direction, and the energy meter records the forward and reverse energy flow based on the power flow direction.

[0107] For example, the specific steps are as follows:

[0108] (1) A high-precision analog-to-digital converter is used to acquire voltage and current signals. A high-precision ADC can ensure that the acquired signals have high accuracy and resolution, thus providing a reliable data foundation for subsequent signal processing and feature extraction.

[0109] (2) Divide the collected voltage signal into half of its period to obtain multiple half-cycle signal segments, and divide them into multiple half-cycle signal segments.

[0110] (3) Accumulate the electrical energy for each half-cycle signal segment. If the sum is positive, it indicates a forward power flow; otherwise, it indicates a reverse power flow. By judging the characteristic parameters of each half-cycle signal segment, the change in power flow direction can be determined quickly and accurately.

[0111] (4) The electricity meter records forward and reverse electrical energy according to the direction of the power flow. When the power flow direction is determined to be forward, the electricity meter records the current electrical energy in the forward energy record; when the power flow direction is determined to be reverse, the electricity meter records the current electrical energy in the reverse energy record. In this way, the electricity meter can accurately record the forward and reverse flow of electrical energy, providing reliable data support for electricity metering.

[0112] In some embodiments of this application, a device for determining the power flow direction of an electricity meter is provided. FIG7 shows a structural block diagram of the device for determining the power flow direction of an electricity meter according to some embodiments of this application. As shown in FIG7, the determining device 700 includes: a data acquisition module 702 for acquiring an electrical energy signal; wherein the signal period of the electrical energy signal is a first period; a processing module 704 for performing signal division processing on the electrical energy signal to obtain multiple signal segments; wherein the signal period of the multiple signal segments is a second period, and the second period is half the period of the first period; a determining module 706 for determining the electrical energy data corresponding to each signal segment; and determining the power flow direction corresponding to the electrical energy signal based on the electrical energy data.

[0113] In this embodiment, the electricity meter is used to collect and measure electrical energy data. This electrical energy data has a direction, namely, forward and reverse electrical energy. When measuring electrical energy, it is necessary to determine the direction of the electrical energy. An effective method for this is to determine whether to record forward or reverse electrical energy based on the power flow direction of the power grid signal. Therefore, how to efficiently and accurately determine the power flow direction is a crucial factor in improving the metering accuracy of the electricity meter.

[0114] In related technologies, power flow analysis is performed based on voltage and current data collected over multiple cycles in order to obtain an accurate power flow direction. This results in a lag in the determination of power flow direction, which fails to reflect the real-time status of the power grid in a timely manner, thus severely reducing the accuracy of metering.

[0115] To address the aforementioned issues, this application proposes a device for determining the power flow direction of an electricity meter. By dividing the collected power signal into half of its signal period, multiple half-cycle signal segments are obtained. By performing power flow analysis on the power data in each half-cycle signal segment, changes in power flow direction can be determined and identified more quickly, thus making the power flow direction analysis more timely and improving metering accuracy.

[0116] For example, an electricity meter acquires raw signals and converts the acquired current and / or voltage signals into digital signals using a high-precision analog-to-digital converter (ADC). A high-precision ADC ensures that the acquired signals have high sampling accuracy and signal resolution, thus providing a reliable data foundation for subsequent signal processing and feature extraction.

[0117] After obtaining the electrical signal, it is divided into segments equal to half the signal period, resulting in at least two half-cycle signal segments. For example, taking the initial electrical signal period as the first period, the signal is divided into segments equal to half the first period, i.e., the second period. The resulting signal segments all have the second period as their period, and the duration of the second period is half the duration of the first period. After obtaining multiple half-cycle signal segments, power flow analysis is performed based on the electrical data within each segment, yielding power flow analysis results for each half-cycle, thus enabling rapid determination of the power flow direction.

[0118] This application improves the speed and timeliness of power flow direction determination by dividing the collected power signal into half of its cycle and performing power flow analysis based on the power data within the divided half-cycle signal segment. Therefore, it can detect changes in the power flow direction of the power grid in a timely manner, thereby improving the metering accuracy.

[0119] In some embodiments of this application, a device for determining the power flow direction of an electricity meter is provided. FIG8 shows a structural block diagram of the device for determining the power flow direction of an electricity meter according to some embodiments of this application. As shown in FIG8, the determining device 800 includes: a memory 802 for storing programs or instructions; and a processor 804 for executing programs or instructions to implement the steps of the method for determining the power flow direction of an electricity meter as provided in any of the above embodiments, thus achieving the same technical effect. To avoid repetition, further details are omitted here.

[0120] In some embodiments of this application, a readable storage medium is provided, on which a program or instructions are stored. When the program or instructions are executed by a processor, they implement the steps of the method for determining the power flow direction of an energy meter as provided in any of the above embodiments, thus achieving the same technical effect. To avoid repetition, further details are omitted here.

[0121] In some embodiments of this application, an electricity meter is provided, including a device for determining the power flow direction of the electricity meter as provided in any of the above embodiments, and / or a readable storage medium as provided in any of the above embodiments, thus achieving the same technical effect. To avoid repetition, further details are omitted here.

[0122] The methods can be implemented in various ways depending on specific features and / or example applications. For example, these methods can be implemented by a combination of hardware, firmware, and / or software. For instance, in a hardware implementation, the processor can be implemented in one or more application-specific integrated circuits (ASICs), digital signal processors (DSPs), digital signal processing devices (DSPDs), programmable logic devices (PLDs), field-programmable gate arrays (FPGAs), controllers, microcontrollers, microprocessors, electronic devices, other device units for performing the functions described above, and / or combinations thereof.

[0123] A computer-readable storage medium can be a tangible device that holds and stores instructions for use by an instruction execution device. A computer-readable storage medium can be an electronic storage device, a magnetic storage device, an optical storage device, an electromagnetic storage device, a semiconductor storage device, or any suitable combination of the foregoing, but is not limited thereto. A non-exhaustive list of more specific examples of computer-readable storage media includes: portable computer floppy disks, hard disks, random access memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM), or flash memory, static random-access memory (SRAM), portable optical disc read-only memory (CD-ROM), digital video disc (DVD), memory cards, floppy disks, encoding mechanical devices (e.g., punched cards or grooves with raised structures for recording instructions), and any suitable combination of the foregoing. The computer-readable storage medium used herein should not be construed as the transmission signal itself, such as radio waves or other freely propagating electromagnetic waves, electromagnetic waves propagating through waveguides or other transmission media, or electrical signals transmitted through wires.

[0124] In the description of this application, the term "multiple" refers to two or more. Unless otherwise expressly defined, the terms "upper," "lower," etc., indicate the orientation or positional relationship based on the orientation or positional relationship shown in the accompanying drawings. They are used only for the convenience of describing this application and simplifying the description, and do not indicate or imply that the device or element referred to must have a specific orientation, or be constructed and operated in a specific orientation. Therefore, they should not be construed as limitations on this application. The terms "connection," "installation," "fixing," etc., should be interpreted broadly. For example, "connection" can be a fixed connection, a detachable connection, or an integral connection; it can be a direct connection or an indirect connection through an intermediate medium. Those skilled in the art can understand the specific meaning of the above terms in this application according to the specific circumstances.

[0125] In the description of this application, the terms "one embodiment," "some embodiments," "specific embodiment," etc., refer to a specific feature, structure, material, or characteristic described in connection with that embodiment or example, which is included in at least one embodiment or example of this application. In this application, the illustrative expressions of the above terms do not necessarily refer to the same embodiment or example. Furthermore, the specific features, structures, materials, or characteristics described may be combined in any suitable manner in one or more embodiments or examples.

[0126] The above description is merely a preferred embodiment of this application and is not intended to limit this application. Various modifications and variations can be made to this application by those skilled in the art. Any modifications, equivalent substitutions, improvements, etc., made within the spirit and principles of this application should be included within the protection scope of this application.

Claims

A method for determining the power flow direction of an electricity meter, wherein, include: Acquire electrical energy signals; wherein the signal period of the electrical energy signals is a first period; The electrical signal is divided into multiple signal segments; wherein the signal period of each of the multiple signal segments is a second period, and the second period is half the period of the first period. Determine the power data corresponding to each of the signal segments; The power flow direction corresponding to the power signal is determined based on the power data. The determination method according to claim 1, wherein The electrical energy signal includes a current signal and a voltage signal; Determining the power data corresponding to each signal segment includes: Based on the current signal and voltage signal corresponding to each signal segment, determine the accumulated electrical energy value corresponding to each signal segment. According to the determination method of claim 2, wherein, Determining the power flow direction corresponding to the power signal based on the power data includes: If the accumulated electrical energy value is positive, the power flow direction is determined to be a positive power flow. Alternatively, if the accumulated electrical energy value is negative, the power flow direction is determined to be reverse power flow. The determination method according to claim 2, wherein The step of determining the accumulated energy value corresponding to each signal segment based on the current signal and voltage signal corresponding to each signal segment includes: Based on the current signal and the voltage signal, determine the instantaneous power signal corresponding to the signal segment; The accumulated electrical energy value is determined based on the instantaneous power signal. The determination method according to claim 4, wherein Determining the accumulated electrical energy value based on the instantaneous power signal includes: The accumulated electrical energy value is obtained by summing N instantaneous power values; wherein, the signal segment includes N sampling points, and the N sampling points correspond one-to-one with the N instantaneous power values, where N is a positive integer; Alternatively, the instantaneous power signal can be integrated to obtain the accumulated electrical energy value. The determination method according to any one of claims 1 to 5, wherein After determining the power flow direction corresponding to the power signal based on the power data, the determination method further includes: When the power flow direction corresponding to the signal segment is positive, the power data corresponding to the signal segment is included in the positive power data. Alternatively, if the power flow direction corresponding to the signal segment is reverse, the power data corresponding to the signal segment is included in the reverse power data. A device for determining the power flow direction of an electricity meter, wherein, include: The acquisition module is used to acquire electrical energy signals; wherein the signal period of the electrical energy signal is a first period; The processing module is used to perform signal division processing on the electrical energy signal to obtain multiple signal segments; wherein the signal period of the multiple signal segments is a second period, and the second period is half the period of the first period; The determination module is used to determine the power data corresponding to each of the signal segments; Furthermore, the power flow direction corresponding to the power signal is determined based on the power data. A device for determining the direction of power flow of an electricity meter, wherein, include: Memory, used to store programs or instructions; A processor for implementing the steps of the determining method as described in any one of claims 1 to 6 when executing the program or instructions. A readable storage medium having stored thereon a program or instructions, wherein, When the program or instructions are executed by the processor, they implement the steps of the determination method as described in any one of claims 1 to 6. An electric energy meter, wherein, include: The device for determining the power flow direction of an electricity meter as described in claim 7 or 8; and / or The readable storage medium as described in claim 9.