Electric energy metering method, electric energy metering device and electronic equipment

By sampling and time curve analysis of current and voltage in a mobile communication environment, and time compensation amount of intersection points is calculated for time compensation, the problem of low metering accuracy caused by the out-synchronization of voltage and current time is solved, and the metering accuracy is improved.

CN119199256APending Publication Date: 2024-12-27CHINA TOWER CO LTD
View PDF 0 Cites 1 Cited by

Patent Information

Application Number
CN202411216137.0
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-08-30
Publication Date
2024-12-27

AI Technical Summary

Technical Problem

In a mobile communication environment, the voltage and current of the base station equipment change rapidly, resulting in a time difference between the voltage and current signal output by the sampling circuit and the current signal, resulting in the problem of low metering accuracy.

Method used

By sampling the current and voltage according to the preset sampling interval time within the preset time period, determining the time curve of the current and voltage, calculating the compensation time amount of adjacent intersection points, and performing time compensation to achieve voltage and current synchronization, thereby improving metering accuracy .

Benefits of technology

It effectively solves the problem of voltage and current time out of synchronization, and improves the measurement monitoring accuracy in scenarios of rapid voltage and current changes.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119199256A_ABST
    Figure CN119199256A_ABST
Patent Text Reader

Abstract

The invention discloses an electric energy metering method, an electric energy metering device and electronic equipment, and the method comprises the steps: carrying out the sampling of a current and a voltage according to a preset sampling interval time in a preset time period, and obtaining current sampling data and voltage sampling data; determining a current time curve of each first data segment corresponding to the current sampling data and a voltage time curve of each second data segment corresponding to the voltage sampling data according to the rising and falling trend; according to a time sequence, determining a first intersection point of two adjacent current time curves, and sequentially determining a second intersection point of two adjacent voltage time curves; according to the ith first intersection point and the ith second intersection point, the compensation time amount corresponding to the ith first intersection point is determined, and i is an integer larger than 0; and determining an actual electric energy metering result corresponding to the compensation time quantity according to the compensation electric energy corresponding to the compensation time quantity and the original electric energy of the time period of the compensation time quantity.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application belongs to the field of computer technology, and in particular relates to an electric energy metering method, an electric energy metering device and an electronic device. Background Art

[0002] Since the base station mobile operation equipment adopts DC power supply, its power consumption fluctuates sharply in the face of rapid changes in access terminals, which in turn causes rapid and significant fluctuations in the power supply voltage and current. In view of the inherent characteristics of inductance, capacitance and other components in the sampling circuit of the metering device, the rapid changes in these external electrical parameters will cause a significant time lag or phase difference between the voltage and current signals output by the sampling circuit. Traditional DC metering devices are calibrated under the condition of synchronous voltage and current change time. However, in a mobile communication environment, the rapid switching of the device access status causes the voltage and current to change rapidly. At this time, the inductance and capacitance components in the sampling circuit have a time difference between the voltage and current signals due to response delay. Therefore, the relevant technology cannot cope with the scenario of rapid changes in voltage and current, that is, when the voltage and current are not synchronized, there is a problem of low measurement accuracy. Summary of the invention

[0003] The embodiments of the present application provide an electric energy metering method, an electric energy metering device and an electronic device, which can solve the problem of low metering accuracy in the related art when the voltage and current are not synchronized.

[0004] In a first aspect, an embodiment of the present application provides an electric energy metering method, the method comprising: within a preset time period, sampling current and voltage according to a preset sampling interval time to obtain current sampling data and voltage sampling data; determining a current time curve of each first data segment corresponding to the current sampling data, and a voltage time curve of each second data segment corresponding to the voltage sampling data according to an upward and downward trend; determining a first intersection point of two adjacent current time curves, and determining a second intersection point of two adjacent voltage time curves in time sequence; determining a compensation time amount corresponding to the i-th first intersection point according to the i-th first intersection point and the i-th second intersection point, wherein i is an integer greater than 0; determining an actual electric energy metering result corresponding to the compensation time amount according to the compensated electric energy corresponding to the compensation time amount and the original electric energy of the time period in which the compensation time amount is located.

[0005] In a second aspect, an embodiment of the present application provides an electric energy metering device, which includes: a sampling module, which is used to sample current and voltage at a preset sampling interval within a preset time period to obtain current sampling data and voltage sampling data; a first determination module, which is used to determine the current time curve of each first data segment corresponding to the current sampling data, and the voltage time curve of each second data segment corresponding to the voltage sampling data according to the rising and falling trends; a second determination module, which is used to determine the first intersection of two adjacent current time curves in time sequence, and determine the second intersection of two adjacent voltage time curves; a third determination module, which is used to determine the compensation time corresponding to the i-th first intersection point and the i-th second intersection point, wherein i is an integer greater than 0; and a fourth determination module, which is used to determine the actual electric energy metering result corresponding to the compensation time amount according to the compensated electric energy corresponding to the compensation time amount and the original electric energy of the time period in which the compensation time amount is located.

[0006] In a third aspect, an embodiment of the present application provides an electronic device, which includes a processor, a memory, and a program or instruction stored in the memory and executable on the processor, wherein the program or instruction, when executed by the processor, implements the steps of the method described in the first aspect.

[0007] In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium, on which a program or instruction is stored, and when the program or instruction is executed by a processor, the steps of the method described in the first aspect are implemented.

[0008] In a fifth aspect, an embodiment of the present application provides a chip, comprising a processor and a communication interface, wherein the communication interface is coupled to the processor, and the processor is used to run a program or instruction to implement the method described in the first aspect.

[0009] In a sixth aspect, a computer program product is provided, the computer program product comprising at least one computer program, and when the computer program is loaded and executed by a processor, the method as described in the first aspect is implemented.

[0010] In an embodiment of the present application, within a preset time period, current and voltage are sampled according to a preset sampling interval to obtain current sampling data and voltage sampling data, and a current time curve of each first data segment corresponding to the current sampling data and a voltage time curve of each second data segment corresponding to the voltage sampling data are determined according to the rising and falling trends, and then the first intersection of two adjacent current time curves is determined in time order, and the second intersection of two adjacent voltage time curves is determined in sequence; then, according to the i-th first intersection and the i-th second intersection, the compensation time corresponding to the i-th first intersection is determined, where i is an integer greater than 0, and then the compensation time is used to compensate the intersection time, so as to achieve voltage and current synchronization, and finally, according to the compensated electric energy corresponding to the i-th first intersection and the original electric energy in the time period where the compensation time is located, the actual electric energy metering result corresponding to the compensation time is determined, which effectively solves the problem of voltage and current time asynchronism, realizes metering correction under voltage and current time asynchronism, and improves the metering monitoring accuracy in voltage and current rapid change scenarios. BRIEF DESCRIPTION OF THE DRAWINGS

[0011] Figure 1 This is a flow chart of an electric energy metering method provided in an embodiment of the present application;

[0012] Figure 2 is a structural schematic diagram of another electric energy metering device provided in an embodiment of the present application;

[0013] Figure 3 It is a schematic diagram of the structure of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0014] The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.

[0015] In the following, in conjunction with the accompanying drawings, an electric energy metering method, an electric energy metering device and an electronic device provided in the embodiments of the present application are described in detail through specific embodiments and their application scenarios.

[0016] Figure 1 An embodiment of the present application provides an electric energy metering method, which can be performed by an electronic device, and the electronic device can include: a server and / or a terminal device. In other words, the method can be performed by software or hardware installed in the electronic device, and the method includes the following steps:

[0017] S110: within a preset time period, sampling the current and voltage at a preset sampling interval to obtain current sampling data and voltage sampling data.

[0018] It can be understood that the sampling circuit in the DC monitoring device samples the voltage and current of the base station DC power at a fixed frequency, i.e., according to a preset sampling interval, to obtain discrete current sampling data and voltage sampling data. That is, the current sampling data includes current data collected at multiple time points, and the voltage sampling data includes current data collected at multiple time points.

[0019] Exemplarily, the current sampling data and voltage sampling data collected at time points 0.11s, 0.13s, 0.15s, 0.17s, 0.19s, 0.21s, 0.23s, 0.25s, 0.27s, 0.29s, 0.31s, 0.33s, and 0.35s are shown in Table 1.

[0020] Table 1

[0021]

[0022]

[0023] It should be noted that, in view of the inherent characteristics of components such as inductance and capacitance in the sampling circuit, the rapid changes in these external electrical parameters will cause obvious time lag or phase difference between the voltage and current signals output by the sampling circuit. In the example in Table 1 above, after connecting to a certain device, the output of the voltage sampling data lags behind the output of the current sampling data by 0.02 seconds. Therefore, at 0.11s, only the current sampling data is output, and no voltage sampling data is output. At 0.37s, only the voltage sampling data is output, and no current sampling data is output.

[0024] Optionally, the current sampling data and the voltage sampling data may be preprocessed, such as missing value processing, abnormal value processing, repeated value processing, etc., to improve the accuracy of subsequent fitting and the accuracy of electric energy measurement.

[0025] S120: Determine a current time curve of each first data segment corresponding to the current sampling data and a voltage time curve of each second data segment corresponding to the voltage sampling data according to rising and falling trends.

[0026] Each first data segment and each second data segment corresponds to a sub-time period respectively.

[0027] Exemplarily, as shown in Table 2 below, during 0.11s to 0.19s, the current shows an upward trend, so the current sampling data corresponding to 0.11s to 0.19s: 0.1A, 0.2A, 0.3A, 0.4A and 0.44A are the first first data segment; during 0.21 to 0.27s, the current shows a downward trend, so the current sampling data corresponding to 0.21 to 0.27s: 0.40A, 0.3A, 0.21A, 0.1A are the second first data segment; during 0.29s to 0.35s, the current shows an upward trend, so the current sampling data corresponding to 0.29s to 0.35s: 0.2A, 0.3A, 0.39A and 0.43A are the third first data segment. Similarly, from 0.13s to 0.21s, the voltage shows an upward trend, so the voltage sampling data corresponding to 0.13s to 0.21s: 53.5V, 53.5V, 53.7V, 53.9V and 54.0V are the first first data segment; from 0.23 to 0.29s, the voltage shows a downward trend, so the voltage sampling data corresponding to 0.23 to 0.29s: 53.9V, 53.7V, 53.5V and 53.2V are the second second data segment; from 0.31s to 0.27s, the voltage shows an upward trend, so the voltage sampling data corresponding to 0.31s to 0.27s: 53.5V, 53.7V, 53.9V and 54.1V are the third first data segment.

[0028] Table 2

[0029]

[0030]

[0031] Optionally, the current time curve of each first data segment corresponding to the current sampling data is determined according to the rising and falling trends, which may include: establishing a current array according to the time axis of the current sampling data; intercepting the current data of adjacent time periods in the current array according to the current rising segment and the falling segment, respectively, to obtain a rising current array and a falling current array; fitting the rising current array and the falling current array respectively, to obtain a current time curve corresponding to each rising current array and a current time curve corresponding to each falling current array. Among them, the first data segment may include a rising current array or a falling current array. It can be understood that the current array is traversed, and the turning points of the rising segment and the falling segment of the current are identified by comparing the changing trends of adjacent current values ​​(such as using a differential method or a slope method). According to the identified turning points, the current array is divided into multiple parts, each part represents a complete rising segment or falling segment. Then, the current data corresponding to these parts are intercepted from the original current array to form a rising current array and a falling current array respectively, and then the current time curve corresponding to each rising current array and the current time curve corresponding to each falling current array are obtained by fitting.

[0032] Similarly, the voltage time curve of each second data segment corresponding to the voltage sampling data according to the rising and falling trends may include: establishing a voltage array according to the time axis of the voltage sampling data; intercepting the voltage data of adjacent time periods in the voltage array according to the voltage rising segment and the falling segment to obtain a rising voltage array and a falling voltage array; fitting the rising voltage array and the falling voltage array to obtain a voltage time curve corresponding to each rising voltage array and a voltage time curve corresponding to each falling voltage array. The second data segment may include a rising voltage array or a falling voltage array. It is understandable that the turning points of the rising and falling segments of the voltage are identified by traversing the voltage array and comparing the changing trends of adjacent voltage values. According to the identified turning points, the voltage array is divided into multiple parts, each part representing a complete rising segment or falling segment. Then, the voltage data corresponding to these parts are intercepted from the original voltage array to form a rising voltage array and a falling voltage array respectively, and then the voltage time curve corresponding to each rising voltage array and the voltage time curve corresponding to each falling voltage array can be obtained by fitting.

[0033] It should be noted that the above-mentioned current time curve and voltage time curve are obtained by fitting through corresponding fitting methods. Among them, it is necessary to select a suitable mathematical model for fitting according to the characteristics of the data. For example, direct current current data is usually linearly distributed. Therefore, a suitable linear model, polynomial model, etc. can be selected for fitting, and then the model parameters are estimated using optimization algorithms such as the least squares method and the gradient descent method, so that the error between the fitting curve and the actual data is minimized, and finally, the current time curve equation is obtained according to the estimated model parameters. In the embodiment of the present application, the fitting method is not specifically limited and can be selected according to the actual situation.

[0034] S130: Determine, in time sequence, a first intersection point of two adjacent current-time curves, and determine a second intersection point of two adjacent voltage-time curves.

[0035] It can be understood that n intersections of adjacent current time curves are calculated based on the current time curves of each adjacent sub-time period, where n represents the number of intersections of adjacent current time curves, n=1, 2, ..., m-1; m is the number of current time curves. That is to say, for two adjacent sub-time periods, there are corresponding current time curves. By solving the intersection of these two curves, the first intersection between them can be obtained, and the first intersection represents the moment when the current changes significantly between the two sub-time periods. Repeating the above process, the first intersection of all adjacent current time curves can be calculated, and a total of n first intersections are obtained. Similarly, for two adjacent sub-time periods, there are corresponding voltage time curves, and by solving the intersection of these two voltage time curves, the second intersection between them can be obtained, and the second intersection represents the moment when the voltage changes significantly between the two sub-time periods. Repeating the above process, the second intersection of all adjacent voltage time curves can be calculated, and a total of n second intersections are obtained.

[0036] Exemplarily, continuing to refer to the above Table 2, the first intersection of the current time curve y1 and y2 is (0.194s, 0.44A), where T1=0.194s, I1=0.44A, and the first intersection of the current time curve y2 and y3 is (0.266s, 0.119A), where T2=0.266s, I2=0.119A. The second intersection of the voltage time curve z1 and z2 is (0.214s, 54.10V), where T1'=0.214s, U1=54.10V, and the second intersection of the voltage time curve z2 and z3 is (0.286s, 53.26V), where T2'=0.286s, U2=53.26V.

[0037] S140: Determine a compensation time amount corresponding to the i-th first intersection point according to the i-th first intersection point and the i-th second intersection point.

[0038] Here, i is an integer greater than 0.

[0039] It can be understood that i is an index variable used to traverse the intersections, and the value range includes all positive integers from 1 to n, that is, i=1, 2, ..., n. Aligning the i-th first intersection and the i-th second intersection can achieve synchronous processing of voltage and current data, that is, the compensation time is the lag time of the output of voltage sampling data relative to the output of current sampling data after connecting to a certain device.

[0040] S150: Determine an actual electric energy measurement result corresponding to the compensation time amount according to the compensated electric energy corresponding to the compensation time amount and the original electric energy in the time period in which the compensation time amount is located.

[0041] That is to say, the actual electric energy measurement result is W=W1+W2, where W1 is the compensated electric energy and W2 is the original electric energy.

[0042] In an embodiment of the present application, within a preset time period, current and voltage are sampled according to a preset sampling interval to obtain current sampling data and voltage sampling data, and a current time curve of each first data segment corresponding to the current sampling data and a voltage time curve of each second data segment corresponding to the voltage sampling data are determined according to the rising and falling trends, and then the first intersection of two adjacent current time curves is determined in time order, and the second intersection of two adjacent voltage time curves is determined in sequence; then, according to the i-th first intersection and the i-th second intersection, the compensation time corresponding to the i-th first intersection is determined, where i is an integer greater than 0, and then the compensation time is used to compensate the intersection time, so as to achieve voltage and current synchronization, and finally, according to the compensated electric energy corresponding to the i-th first intersection and the original electric energy in the time period where the compensation time is located, the actual electric energy metering result corresponding to the compensation time is determined, which effectively solves the problem of voltage and current time asynchronism, realizes metering correction under voltage and current time asynchronism, and improves the metering monitoring accuracy in voltage and current rapid change scenarios.

[0043] In one implementation, determining the current-time curve of each first data segment corresponding to the current sampling data according to the rising and falling trends includes: dividing the current sampling data into multiple first data segments according to the rising and falling trends, wherein the multiple first data segments include at least one rising data segment and at least one falling data segment, each of the first data segments corresponds to a first sub-time period, and the sum of all the first sub-time periods is the preset time period; for each first data segment, determining the current-time curve based on the first data segment and the corresponding first sub-time period, wherein the current-time curve is used to represent the change of current over time in the first sub-time period.

[0044] Exemplarily, as shown in Table 2 above, the current sampling data is sorted in chronological order, and a plurality of first data segments are divided according to the change trend of the current (increasing or decreasing). For example, the current sampling data collected at time points 0.11s, 0.13s, 0.15s, 0.17s, 0.19s, 0.21s, 0.23s, 0.25s, 0.27s, 0.29s, 0.31s, 0.33s, and 0.35s are respectively .1A, 0.2A, 0.3A, 0.4A, 0.44A, 0.40A, 0.3A, 0.21A, 0.1A, 0.2A, 0.3A, 0.39A and 0.43A. In the first sub-time period: 0.11s to 0.19s, the current is on the rise. Therefore, the first data segment is an increasing data segment, and the corresponding current sampling data is 0.1A, 0.2A, 0.3A, 0.4A and 0.44A. In the second first sub-time period: 0.21~0.27s, the current shows a downward trend, therefore, the second first data segment is a downward data segment, and the corresponding current sampling data are 0.40A, 0.3A, 0.21A, and 0.1A; in the third first sub-time period: 0.29s~0.35s, the current shows an upward trend, therefore, the third first data segment is an upward data segment, and the corresponding current sampling data are 0.2A, 0.3A, 0.39A, and 0.43A; then based on the sampling time points and the corresponding current sampling data in each first sub-time period, the current-time curve corresponding to the first time period is constructed: the first first data segment: y1=4.4x-0.372; the second first data segment: y2=-4.95x+1.4405; the third first data segment: y3=3.9x-0.918, wherein Y represents the current in ampere A; x represents the time in seconds s.

[0045] Similarly, in another implementation, the determining of the voltage-time curve of each second data segment corresponding to the voltage sampling data according to the rising and falling trends includes: dividing the voltage sampling data into a plurality of second data segments according to the rising and falling trends, wherein the plurality of second data segments include at least one rising data segment and at least one falling data segment, each second data segment corresponds to a second sub-time period, and the sum of all the second sub-time periods is the preset time period; for each second data segment, determining the voltage-time curve based on the second data segment and the corresponding second sub-time period, wherein the voltage-time curve is used to represent the change of voltage over time in the second sub-time period.

[0046] Continuing to refer to the above Table 2, the voltage-time curve corresponding to the second time period is constructed based on the sampling time points and the corresponding voltage sampling data in each second sub-time period: the first second data segment: z1=10x+51.96; the second second data segment: z2=-11.5x+56.565; the third second data segment: z3=10x+50.4, wherein Y represents the current in ampere A; x represents the time in seconds s.

[0047] In the above implementation, by segmenting the current and voltage data according to the change trend, the rising and falling segments of the data can be identified more accurately, which helps to reduce the accuracy loss caused by data mixing or error accumulation, and further improves the accuracy and reliability of electric energy metering.

[0048] In one implementation, based on the i-th first intersection and the i-th second intersection, the compensation time amount corresponding to the i-th first intersection is determined, including: subtracting the time point corresponding to the i-th first intersection and the time point corresponding to the i-th second intersection to obtain the compensation time amount corresponding to the i-th first intersection.

[0049] For example, in S130, the first intersection of the current time curves y1 and y2 is (0.194s, 0.44A), and the first second intersection of the voltage time curves z1 and z2 is (0.214s, 54.10V). Then, the time difference, i.e., the compensation time amount, is ΔT=|0.194s-0.214s|=0.02s.

[0050] In a time manner, before determining the actual electric energy measurement result corresponding to the compensation time amount according to the compensated electric energy corresponding to the compensation time amount and the original electric energy in the time period in which the compensation time amount is located, the method may further include the following steps:

[0051] Step 1: Determine a compensation time point according to the time point corresponding to the i-th first intersection point and the compensation time amount.

[0052] It can be understood that by adding the compensation time amount to the time point of the i-th first intersection point, the time after compensation of the i-th first intersection point, ie, the compensation time point, can be obtained.

[0053] In another implementation, the determining the compensation time point according to the time point corresponding to the i-th first intersection point and the compensation time amount includes: determining the time point corresponding to the sum of the i-th first intersection point and one-half of the compensation time amount as the compensation time point. In this way, the average power level within the compensation time amount can be approximately calculated, thereby simplifying the electric energy calculation process.

[0054] For example, the compensation time ΔT determined in the above implementation is 0.02s, then is 0.01s, and the time point corresponding to the first intersection is 0.194s. At this time, the compensation time point calculated is 0.194+0.01=0.204s.

[0055] Step 2: Determine a compensation current value according to the compensation time point and the i-th current-time curve.

[0056] It is understandable that the compensation time point is substituted into the current time curve of the time period for calculation, and the calculation result is used as the compensation current value. Exemplarily, the compensation time point is 0.204s, and then x=0.204 is substituted into the current time curve y1=4.4x-0.372 to obtain a current value of 0.5256A.

[0057] Step 3: Determine a compensation voltage value according to the compensation time point and the i-th voltage-time curve.

[0058] It is understandable that the compensation time point is substituted into the voltage time curve of the time period for calculation, and the calculation result is used as the compensation voltage value. Exemplarily, the compensation time point is 0.204s, and then x=0.204 is substituted into the current time curve z1=10x+51.96 to obtain a current value of 54V.

[0059] Step 4: Determine the compensation electric energy as the product of the compensation time, the compensation current value and the compensation voltage value.

[0060] Exemplarily, the compensation electrical energy W1≈0.02*0.5256*54≈0.56J.

[0061] In one implementation, before determining the actual electric energy measurement result corresponding to the compensation time amount based on the compensated electric energy corresponding to the compensation time amount and the original electric energy of the time period in which the compensation time amount is located, the method also includes: obtaining the time period corresponding to the compensation time amount, wherein the time period includes a first sub-time period corresponding to the current sampling data and a second sub-time period corresponding to the voltage sampling data; multiplying the current and voltage corresponding to the same time point in the first sub-time period and the second sub-time period to obtain the instantaneous power at each of the time points; multiplying the instantaneous power at each of the time points by the preset sampling interval time, and summing the multiplication results to obtain the original electric energy.

[0062] For example, in the above implementation, the compensation time point 0.204s is between 0.19 and 0.21s. Therefore, as shown in Table 2 above, the time period corresponding to the compensation time amount may include a first time period corresponding to the current sampling data: 0.11s to 0.19s and a second time period corresponding to the voltage sampling data: 0.13s to 0.21s. The same time point in the first time period and the second time period includes: 0.13s, 0.15s, 0.17s and 0.19s. Assuming that the sampling time interval can be 0.2s, the instantaneous power corresponding to each time point is: 0.13s is 0.2A*53.5V*0.2s; 0.15s is 0.3A*53.5V*0.2s; 0.17s is 0.4A*53.7V*0.2s; 0.19s is 0.44A*53.9V*0.2s; therefore, the original electric energy in the time period from 0.13s to 0.19s can be: W2=0.2A*53.5V*0.2s+0.3A*53.5V*0.2s+0.4A*53.7V*0.2s+0.44A*53.9V*0.2s=14.39Ws.

[0063] Optionally, the instantaneous power at each sampling point is multiplied by the sampling time interval, and then all the products are added together to obtain the original electric energy corresponding to the time period.

[0064] Optionally, an estimated value of the original electric energy corresponding to the time period is obtained by calculating an average value of the instantaneous power of all sampling points in the time period and then multiplying the average value by the total duration of the time period.

[0065] In one implementation, the method further includes: accumulating actual electric energy measurement results corresponding to each of the compensation time amounts to obtain a total electric energy measurement result within the preset time period.

[0066] The preset time period may be a fixed time interval or any time period set according to actual needs.

[0067] In this implementation, the actual power metering results of the time periods in which the calculated compensation time amounts are located are accumulated to obtain the total power in the preset time period, which can reflect the total power consumed by the DC side of the base station in the preset time period.

[0068] Figure 2 A schematic diagram of the structure of an electric energy metering device provided by an embodiment of the present application is shown as follows: Figure 2 As shown, the electric energy metering device 200 may include: a sampling module 210 , a first determination module 220 , a second determination module 230 , a third determination module 240 and a fourth determination module 250 .

[0069] In this embodiment, the sampling module 210 is used to sample the current and voltage according to the preset sampling interval time within the preset time period to obtain the current sampling data and the voltage sampling data; the first determination module 220 is used to determine the current time curve of each first data segment corresponding to the current sampling data and the voltage time curve of each second data segment corresponding to the voltage sampling data according to the rising and falling trends; the second determination module 230 is used to determine the first intersection of two adjacent current time curves and the second intersection of two adjacent voltage time curves in time sequence; the third determination module 240 is used to determine the compensation time corresponding to the i-th first intersection according to the i-th first intersection and the i-th second intersection, wherein i is an integer greater than 0; the fourth determination module 250 is used to determine the actual electric energy measurement result corresponding to the compensation time according to the compensated electric energy corresponding to the compensation time and the original electric energy of the time period in which the compensation time is located.

[0070] In one implementation, the first determination module 220 is specifically used to: divide the current sampling data into multiple first data segments according to rising and falling trends, wherein the multiple first data segments include at least one rising data segment and at least one falling data segment, each first data segment corresponds to a first sub-time period, and the sum of all the first sub-time periods is the preset time period; for each first data segment, determine the current time curve based on the first data segment and the corresponding first sub-time period, wherein the current time curve is used to represent the change of current over time in the first sub-time period.

[0071] In one implementation, the first determination module 220 is specifically used to: divide the voltage sampling data into multiple second data segments according to rising and falling trends, wherein the multiple second data segments include at least one rising data segment and at least one falling data segment, each second data segment corresponds to a second sub-time period, and the sum of all second sub-time periods is the preset time period; for each second data segment, determine the voltage time curve based on the second data segment and the corresponding second sub-time period, wherein the voltage time curve is used to represent the change of voltage over time in the second sub-time period.

[0072] In one implementation, the third determination module 240 is specifically configured to: subtract a time point corresponding to the ith first intersection point from a time point corresponding to the ith second intersection point to obtain a compensation time amount corresponding to the ith first intersection point.

[0073] In one implementation, the electric energy metering device 200 also includes a first processing module, which is used to determine the compensation time point based on the time point corresponding to the i-th first intersection and the compensation time amount; determine the compensation current value based on the compensation time point and the i-th current time curve; determine the compensation voltage value based on the compensation time point and the i-th voltage time curve; and determine the compensated electric energy as the product of the compensation time amount, the compensation current value and the compensation voltage value.

[0074] In one implementation, determining the compensation time point based on the time point corresponding to the i-th first intersection point and the compensation time amount includes: determining the time point corresponding to the sum of the i-th first intersection point and half the compensation time amount as the compensation time point.

[0075] In one implementation, the electric energy metering device 200 also includes a second processing module, which is used to: obtain a time period corresponding to the compensation time amount, wherein the time period includes a first sub-time period corresponding to the current sampling data and a second sub-time period corresponding to the voltage sampling data; multiply the current and voltage corresponding to the same time point in the first sub-time period and the second sub-time period to obtain the instantaneous power at each of the time points; multiply the instantaneous power at each of the time points by the preset sampling interval time, and sum the multiplication results to obtain the original electric energy.

[0076] In one implementation, the electric energy metering device 200 further includes a third processing module, which is used to accumulate actual electric energy metering results corresponding to each of the compensation time amounts to obtain a total electric energy metering result within the preset time period.

[0077] An electric energy metering device provided in an embodiment of the present application can implement each process implemented in the electric energy metering method embodiment, and will not be described again here to avoid repetition.

[0078] The electric energy metering device in the embodiment of the present application may be a device, or a component, an integrated circuit, or a chip in an electronic device. The embodiment of the present application does not specifically limit this.

[0079] The electric energy metering device in the embodiment of the present application may be a device having an operating system. The operating system may be an Android operating system, an iOS operating system, or other possible operating systems, which are not specifically limited in the embodiment of the present application.

[0080] Optional, such as Figure 3 As shown, the embodiment of the present application also provides an electronic device 300, including a processor 310, a memory 320, and a program or instruction stored in the memory 320 and executable on the processor 310. When the program or instruction is executed by the processor 310, each process of the above-mentioned electric energy metering method embodiment is implemented, and the same technical effect can be achieved. To avoid repetition, it will not be repeated here.

[0081] The embodiment of the present application also provides a readable storage medium, on which a program or instruction is stored. When the program or instruction is executed by a processor, each process of the above-mentioned electric energy metering method embodiment is implemented, and the same technical effect can be achieved. To avoid repetition, it will not be repeated here.

[0082] The processor is a processor in the electronic device described in the above embodiment. The readable storage medium includes a computer readable storage medium, such as a computer read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk.

[0083] An embodiment of the present application further provides a chip, which includes a processor and a communication interface, the communication interface is coupled to the processor, and the processor is used to run programs or instructions to implement the various processes of the above-mentioned electric energy metering method embodiment, and can achieve the same technical effect. To avoid repetition, it will not be repeated here.

[0084] It should be understood that the chip mentioned in the embodiments of the present application can also be called a system-level chip, a system chip, a chip system or a system-on-chip chip, etc.

[0085] The embodiment of the present application also provides a computer program product, which includes at least one computer program. When the computer program is loaded and executed by a processor, the various processes of the above-mentioned electric energy metering method embodiment are implemented, and the same technical effect can be achieved. To avoid repetition, it will not be repeated here.

[0086] It should be noted that, in this article, the terms "comprise", "include" or any other variant thereof are intended to cover non-exclusive inclusion, so that the process, method, article or device including a series of elements includes not only those elements, but also includes other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, the elements defined by the sentence "comprise one..." do not exclude the presence of other identical elements in the process, method, article or device including the element. In addition, it should be pointed out that the scope of the methods and devices in the embodiments of the present application is not limited to performing functions in the order shown or discussed, and may also include performing functions in a substantially simultaneous manner or in reverse order according to the functions involved, for example, the described method may be performed in an order different from that described, and various steps may also be added, omitted, or combined. In addition, the features described with reference to certain examples may be combined in other examples.

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

[0088] The embodiments of the present application are described above in conjunction with the accompanying drawings, but the present application is not limited to the above-mentioned specific implementation methods. The above-mentioned specific implementation methods are merely illustrative and not restrictive. Under the guidance of the present application, ordinary technicians in this field can also make many forms without departing from the purpose of the present application and the scope of protection of the claims, all of which are within the protection of the present application.

Claims

1. A method for measuring electric energy, characterized in that: include: Within a preset time period, sampling the current and voltage according to a preset sampling interval to obtain current sampling data and voltage sampling data; Determine a current time curve of each first data segment corresponding to the current sampling data and a voltage time curve of each second data segment corresponding to the voltage sampling data according to the rising and falling trends; Determine, in time sequence, a first intersection point of two adjacent current-time curves, and determine a second intersection point of two adjacent voltage-time curves; Determine, according to the i-th first intersection point and the i-th second intersection point, a compensation time amount corresponding to the i-th first intersection point, wherein i is an integer greater than 0; The actual electric energy measurement result corresponding to the compensation time amount is determined according to the compensation electric energy corresponding to the compensation time amount and the original electric energy in the time period in which the compensation time amount is located.

2. The method according to claim 1, characterized in that The step of determining the current time curve of each first data segment corresponding to the current sampling data according to the rising and falling trends includes: According to the rising and falling trends, the current sampling data is divided into a plurality of first data segments, wherein the plurality of first data segments include at least one rising data segment and at least one falling data segment, each of the first data segments corresponds to a first sub-time period, and the sum of all the first sub-time periods is the preset time period; For each first data segment, the current-time curve is determined based on the first data segment and the corresponding first sub-time period, wherein the current-time curve is used to represent the change of current over time in the first sub-time period.

3. The method according to claim 1, characterized in that Determining the voltage time curve of each second data segment corresponding to the voltage sampling data according to the rising and falling trends includes: According to the rising and falling trends, the voltage sampling data is divided into a plurality of second data segments, wherein the plurality of second data segments include at least one rising data segment and at least one falling data segment, each second data segment corresponds to a second sub-time period, and the sum of all the second sub-time periods is the preset time period; For each second data segment, the voltage-time curve is determined based on the second data segment and the corresponding second sub-time period, wherein the voltage-time curve is used to represent the change of voltage over time in the second sub-time period.

4. The method according to claim 1, characterized in that: The step of determining the compensation time amount corresponding to the i-th first intersection point according to the i-th first intersection point and the i-th second intersection point comprises: The time point corresponding to the i-th first intersection point is subtracted from the time point corresponding to the i-th second intersection point to obtain a compensation time amount corresponding to the i-th first intersection point.

5. The method according to claim 1, characterized in that Before determining the actual electric energy measurement result corresponding to the compensation time amount according to the compensation electric energy corresponding to the compensation time amount and the original electric energy in the time period in which the compensation time amount is located, the method further includes: Determine a compensation time point according to the time point corresponding to the i-th first intersection point and the compensation time amount; Determining a compensation current value according to the compensation time point and the i-th current-time curve; Determining a compensation voltage value according to the compensation time point and the i-th voltage-time curve; The compensation electric energy is determined as a product of the compensation time amount, the compensation current value, and the compensation voltage value.

6. The method according to claim 5, characterized in that The step of determining the compensation time point according to the time point corresponding to the i-th first intersection point and the compensation time amount includes: The time point corresponding to the sum of the i-th first intersection point and half of the compensation time amount is determined as the compensation time point.

7. The method according to claim 5, characterized in that Before determining the actual electric energy measurement result corresponding to the compensation time amount according to the compensation electric energy corresponding to the compensation time amount and the original electric energy in the time period in which the compensation time amount is located, the method further includes: Acquire a time period corresponding to the compensation time amount, wherein the time period includes a first sub-time period corresponding to the current sampling data and a second sub-time period corresponding to the voltage sampling data; Multiplying the current and voltage corresponding to the same time point in the first sub-time period and the second sub-time period to obtain the instantaneous power at each of the time points; The instantaneous power at each time point is multiplied by the preset sampling interval time, and the product results are summed to obtain the original electric energy.

8. The method according to claim 1, characterized in that The method further comprises: The total electric energy measurement result within the preset time period is obtained by accumulating the actual electric energy measurement results corresponding to each of the compensation time amounts.

9. An electric energy metering device, characterized in that: include: The sampling module is used to sample the current and voltage within a preset time period and at a preset sampling interval to obtain current sampling data and voltage sampling data; A first determination module, configured to determine a current time curve of each first data segment corresponding to the current sampling data and a voltage time curve of each second data segment corresponding to the voltage sampling data according to an ascending and descending trend; A second determination module is used to determine, in time sequence, a first intersection point of two adjacent current-time curves and a second intersection point of two adjacent voltage-time curves; a third determining module, configured to determine a compensation time amount corresponding to an i-th first intersection point according to an i-th first intersection point and an i-th second intersection point, wherein i is an integer greater than 0; The fourth determination module is used to determine the actual electric energy measurement result corresponding to the compensation time amount according to the compensated electric energy corresponding to the compensation time amount and the original electric energy in the time period in which the compensation time amount is located.

10. An electronic device, characterized in that: include: A processor, a memory, and a program or instruction stored in the memory and executable on the processor, wherein the program or instruction, when executed by the processor, implements the steps of the electric energy metering method according to any one of claims 1 to 8.

11. A readable storage medium, characterized in that: The readable storage medium stores a program or instruction, and when the program or instruction is executed by a processor, the steps of the electric energy metering method according to any one of claims 1 to 8 are implemented.

Citation Information

Cited By

  • Metering method, device and equipment of electric energy meter and medium

    CN121577961A