Electric energy meter demand calculation method and device

By combining power judgment and power accumulation in slip time in the electric energy meter and pulse metering frequency division method, the problem of insufficient demand calculation accuracy is solved, and more accurate load variation reflection and grid load prediction accuracy is achieved.

CN115166350BActive Publication Date: 2025-07-29JIANGYIN CHANGYI GRP CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202210653848.9
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-06-10
Publication Date
2025-07-29
Estimated Expiration
2042-06-10

AI Technical Summary

Technical Problem

The existing demand calculation methods cannot accurately reflect load changes, resulting in insufficient demand calculation accuracy. Especially when charging electric vehicle and fluctuate loads of large industrial users, there are large errors, affecting the grid load prediction and billing accuracy.

Method used

The method of power judgment within the slip time and electric energy accumulation combined with pulse metering frequency division is used to determine the slip time and power sampling period, and determine whether the power is less than the start power, accumulate the effective electric energy time, and perform pulse metering frequency division calculation requirements to improve the calculation accuracy.

Benefits of technology

It realizes more accurately reflecting load changes, improving demand calculation accuracy, reducing errors, and ensuring the accuracy of grid load prediction and billing.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115166350B_ABST
    Figure CN115166350B_ABST
Patent Text Reader

Abstract

The present application relates to a method and device for calculating the demand of an electricity meter. The method includes: determining the slip time and the power sampling period; within each slip time, determining whether the power collected in the current power sampling period is less than the starting power. If it is less, the electricity accumulation time is not accumulated. Otherwise, the current power sampling period is added to the previous electricity accumulation time, and finally the electricity accumulation time within each slip time is determined to obtain the total electricity accumulation time within the demand period; according to the divided pulse constant, the electricity accumulation time within each slip time, and the current power, the electricity pulse accumulation value within each slip time is obtained, so as to obtain the total electricity pulse accumulation value within the demand period; the demand is calculated according to the total electricity pulse accumulation value, the total electricity accumulation time, the pulse constant, and the division frequency of the pulse constant. This method can effectively solve the problem of being unable to accurately reflect the load change, and achieve the beneficial effect of improving the accuracy of demand calculation.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the technical field of electric energy meters, and particularly to a method and device for calculating the demand of an electric energy meter, a computer device, a storage medium, and a computer program product. Background Art

[0002] With the increasing demand for electric vehicles, when many electric vehicles are connected to the grid for charging, it will inevitably bring great changes to the power line load. The power department needs to predict the grid load and implement peak shaving and valley filling measures to ensure the stability of the grid voltage and the balance of the load. The load fluctuation value of large industrial users is very large, and the impact on the grid is particularly significant. At present, the power department implements a two-part electricity price for industrial and commercial users and other users with a transformer capacity of more than 100 kVA. The two-part electricity price consists of two parts, namely the "basic electricity price" and the "kWh electricity price". The "basic electricity price" is generally charged according to the transformer capacity or can also be charged according to the maximum demand per month; the "kWh electricity price" is the electricity bill for the actual electricity used by the user. When the demand is used as a billing method, the implementation and calculation method of the demand in the electric energy meter become as important as the electric energy metering at this time.

[0003] Demand is a power measurement, which refers to the average value of the power within a specified demand period. The maximum demand refers to the maximum value of the demand recorded within the specified settlement period.

[0004] The existing demand calculation methods include the following several types:

[0005] 1. Slip difference type. Obtain a power value P at each slip time t i , i ∈ {1,..., n}, n > 1, n is the number of slip differences; when the demand period T = n × t is reached for the first time, calculate the demand D = (P1 +... + P n ) / n. This method can only simply and roughly achieve the purpose of demand measurement. Once within a certain slip time, due to the user's electrical equipment being started or the equipment operating abnormally, and the power value obtained at this time is the instantaneous peak value of the equipment, and no actual energy is generated and there is no impact on the grid, so within this demand period, the demand cannot accurately reflect the load situation of the user; or once within a certain slip time, due to the user's electrical equipment just shutting down, the power value obtained is a very small value or 0, and within this demand period, the demand also cannot accurately reflect the load situation of the user.

[0006] 2. An improved method for the above-mentioned slip type. Instead of obtaining a power value for calculation within each slip time, the average power is calculated, and the average value is used as the P value for calculating the demand. This method can correct some drawbacks of Method 1, but only limitedly improves the accuracy of power acquisition and cannot fundamentally solve the problem. The above problems may still exist. At the same time, due to the increase in sampling values, generally one power value occupies 3 bytes of storage space. For 60 in one minute, 180 more storage spaces are added. Since the demand is divided into forward active power, reverse active power, reactive power in Quadrant 1, reactive power in Quadrant 2, reactive power in Quadrant 3, reactive power in Quadrant 4, split-phase active power, reactive power, etc., up to 4320 more storage spaces may be needed, and the main control MCU chip of the existing electric energy meter needs to be reselected, increasing the cost.

[0007] 3. Using the electric energy accumulation method, the electric energy accumulation value E is obtained within each slip time t. At this time, the power is P = E / t, and other calculation methods are the same as above. This method can completely avoid the problems existing in the above methods, but the problems brought are as follows: 1) If only the existing electric energy accumulation value with an accuracy of 0.01 kWh is used as the calculation value or the electric energy accuracy accumulation value of 1 pulse is used, errors will inevitably occur, and the former has a greater error. Assuming that the pulse constant of the electric energy meter is 6400 imp / kWh, the current power is 1 kW, and the electric energy accumulation value in 1 minute is (6400 / 3600)*60 = 106.667 pulses, which is 0.0166 kWh of electricity. When calculating with the electricity quantity with an accuracy of 0.01 kWh, 0.0066 kWh of electricity calculation value is lost; when using the pulse method, 0.667 pulses of calculation value are lost. 2) Suppose within a slip time t, there is power in the previous period and the electric energy is indeed accumulating, but there is no power in the later period. At this time, there is no load, but in the calculation, P = E / t, and t is still a complete slip time, resulting in P becoming smaller and unable to accurately reflect the load. Summary of the Invention

[0008] Based on this, in view of the above technical problems, it is necessary to provide an electric energy meter demand calculation method, device, computer device, computer-readable storage medium, and computer program product that can improve the calculation accuracy and more truly and accurately reflect the load change.

[0009] In the first aspect, the present application provides an electric energy meter demand calculation method. The method includes:

[0010] Determine the slip time t and the power sampling period t0, where the power sampling period t0 ≤ 1 s;

[0011] During the i-th slip time t, the initial electric energy accumulation time is 0. It is determined whether the power collected in the current power sampling period t0 is less than the starting power. If it is less than the starting power, the electric energy accumulation time is not incremented; otherwise, the current power sampling period t0 is added to the previous electric energy accumulation time to finally determine the electric energy accumulation time t E (i), where i ∈ {1,..., n}, n > 1;

[0012] According to the electric energy accumulation time t E (i) within the i-th slip time t, the total electric energy accumulation time T within the demand period T is obtained E , where the demand period T = n × t;

[0013] According to the divided pulse constant, the electric energy accumulation time t E (i) within the i-th slip time t and the current power, the electric energy pulse accumulation value D t (i) within the i-th slip time t is calculated;

[0014] According to the electric energy pulse accumulation value D t (i) within the i-th slip time t, the total electric energy pulse accumulation value D within the demand period T is obtained T ;

[0015] According to the total electric energy pulse accumulation value D within the demand period T T , the total electric energy accumulation time T E , the pulse constant and the division frequency of the pulse constant, the demand P within the demand period T is calculated.

[0016] In one embodiment, the demand P within the demand period T is calculated according to the following formula:

[0017] P = (D T / (C × k)) / T E

[0018] where C is the pulse constant and k is the division frequency of the pulse constant.

[0019] In one embodiment, the total electric energy accumulation time T within the demand period T E is calculated according to the following formula:

[0020]

[0021] In one embodiment, the total electric energy pulse accumulation value D within the demand period T T is calculated according to the following formula:

[0022]

[0023] In one embodiment, the method further includes: dividing the pulse constant in the MCU of the watt-hour meter.

[0024] In one embodiment, the division frequency number of the pulse constant ≥ 5.

[0025] In one embodiment, the slip time t ≥ 1 min.

[0026] In one embodiment, the demand period T ≥ 5 min.

[0027] In a second aspect, the present application further provides a device for calculating the demand of a watt-hour meter. The device includes:

[0028] A period determination module, configured to determine the slip time t and the power sampling period t0, where the power sampling period t0 ≤ 1 s;

[0029] A power judgment module, configured to judge whether the power collected in the current power sampling period t0 is less than the starting power within the i-th slip time t. If it is less than the starting power, the electric energy accumulation time is not accumulated; otherwise, the current power sampling period t0 is added to the previous electric energy accumulation time to finally determine the electric energy accumulation time t E (i) within the i-th slip time t, where i ∈ {1,..., n} and n > 1;

[0030] An electric energy accumulation time determination module, configured to obtain the total electric energy accumulation time T within the demand period T according to the electric energy accumulation time t E (i) within the i-th slip time t, where the demand period T = n × t; E

[0031] An electric energy pulse cumulative value calculation module, configured to calculate the electric energy pulse cumulative value D E (i) within the i-th slip time t according to the divided pulse constant, the electric energy accumulation time t t (i) within the i-th slip time t and the current power, and obtain the total electric energy pulse cumulative value D within the demand period T according to the electric energy pulse cumulative value D t (i) within the i-th slip time t; T

[0032] A demand calculation module, configured to calculate the demand P within the demand period T according to the total electric energy pulse cumulative value D T within the demand period T, the total electric energy accumulation time T E , the pulse constant, and the division frequency number of the pulse constant.

[0033] In a third aspect, the present application also provides a computer device. The computer device includes a memory and a processor. The memory stores a computer program, and when the processor executes the computer program, the steps of the above power meter demand calculation method are implemented.

[0034] In a fourth aspect, the present application also provides a computer-readable storage medium. The computer-readable storage medium stores a computer program thereon, and when the computer program is executed by a processor, the steps of the above power meter demand calculation method are implemented.

[0035] In a fifth aspect, the present application also provides a computer program product. The computer program product includes a computer program, and when the computer program is executed by a processor, the steps of the above power meter demand calculation method are implemented.

[0036] For the above power meter demand calculation method, device, computer device, storage medium, and computer program product, by using power judgment to accurately accumulate the effective power time and frequency-dividing the pulse measurement method, the problem of being unable to accurately reflect the load change can be solved, and the beneficial effect of improving the demand calculation accuracy can be achieved. Description of the Drawings

[0037] Figure 1 It is a schematic flowchart of the power meter demand calculation method in an embodiment;

[0038] Figure 2 It is a structural block diagram of the power meter demand calculation device in an embodiment;

[0039] Figure 3 It is an internal structure diagram of a computer device in an embodiment. Detailed Embodiments

[0040] In order to make the objectives, technical solutions, and advantages of the present application clearer, the present application will be further described in detail below with reference to the drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application and are not used to limit the present application.

[0041] In an embodiment, as Figure 1 shown, a power meter demand calculation method is provided. In this embodiment, it is exemplified that the method is applied to a terminal. It can be understood that the method can also be applied to a server, and can also be applied to a system including a terminal and a server, and is implemented through the interaction between the terminal and the server. In this embodiment, the method includes the following steps:

[0042] Step 102, determine the slip time t and the power sampling period t0, where the power sampling period t0 ≤ 1 s.

[0043] For the power sampling period t0, the smaller t0 is, the more accurate the power judgment is, and the more accurate the electric energy accumulation time is; the slip time must be greater than the power sampling period. Optionally, the slip time t ≥ 1 min.

[0044] Step 104, within the i-th slip time t, the initial electric energy accumulation time is 0. Determine whether the power collected in the current power sampling period t0 is less than the starting power. If it is less than the starting power, the electric energy accumulation time is not accumulated; otherwise, add the current power sampling period t0 to the previous electric energy accumulation time to finally determine the electric energy accumulation time t E (i), where i ∈ {1,..., n} and n > 1.

[0045] Step 106, obtain the total electric energy accumulation time T within the demand period T based on the electric energy accumulation time t E (i) within the i-th slip time t. E , where the demand period T = n × t.

[0046] Optionally, the demand period T ≥ 5 min.

[0047] Optionally, the total electric energy accumulation time T within the demand period T E is calculated according to the following formula:

[0048]

[0049] Step 108, calculate the electric energy pulse cumulative value D E (i) within the i-th slip time t based on the divided pulse constant, the electric energy accumulation time t t (i) within the i-th slip time t and the current power.

[0050] Step 110, obtain the total electric energy pulse cumulative value D within the demand period T based on the electric energy pulse cumulative value D t (i) within the i-th slip time t. T .

[0051] Optionally, the total electric energy pulse cumulative value D within the demand period T T is calculated according to the following formula:

[0052]

[0053] Step 112, calculate the demand P within the demand period T based on the total electric energy pulse cumulative value D T within the demand period T, the total electric energy accumulation time T E , the pulse constant, and the frequency division number of the pulse constant.

[0054] Optionally, the demand P within the demand period T is calculated according to the following formula:

[0055] P = (D T / (C × k)) / T E

[0056] Wherein, C is the pulse constant, and k is the frequency division number of the pulse constant.

[0057] Optionally, the method further includes: dividing the pulse constant in the MCU of the electric energy meter.

[0058] Optionally, the frequency division number of the pulse constant ≥ 5.

[0059] Specifically, in this embodiment, the pulse constant C of the electric energy meter is 6400 imp / kwh, the current device power is 1 kW, the instantaneous power at device startup is 8 kW, and the peak power is 14 kW (the instantaneous value is occasionally captured); the set slip time t is 1 min, the power sampling period t0 is 1 s, and the demand period T is 15 min; the pulse frequency division number k is 10.

[0060] Within each 1-min slip time, the power is sampled once every 1 s for power judgment; in this embodiment, within the last 1-min slip time within the 15-min demand period, there is power and it is greater than the startup power in the first 30 s, and there is no power in the last 30 s; there is power and it is greater than the startup power in the remaining slip times; thus, it can be determined that within a 15-min demand period, the total power accumulation time of the electric energy within the 1st - 14th slip times is 14 min, and the power accumulation time of the electric energy within the 15th slip time is 30 s, that is, 0.5 min. Therefore, the total power accumulation time T E is 14.5 min.

[0061] According to the pulse constant after 10 - frequency division, the power accumulation time of the electric energy within each 1-min slip time, and the current device power of 1 kW, it can be determined that:

[0062] Within the first 14 slip times, the cumulative value of the electric energy pulses within each 1-min slip time is (6400 × 10 × 1) / 60 = 1066.67 pulses. Among them, / 60 is because 1 min = 1 / 60 h, and the time unit needs to be unified during the calculation process;

[0063] The cumulative value of the electric energy pulses within the 15th 1-min slip time is ((6400 × 10 × 1) / 60) × 0.5 = 533.35 pulses. Among them, / 60 is because 1 min = 1 / 60 h, and the power accumulation time of the electric energy within the 15th 1-min slip time is 0.5 min, so it is also necessary to ×0.5, and the time unit needs to be unified during the calculation process;

[0064] Therefore, within a 15-min demand period, the total cumulative value of the electric energy pulses DT It is 1066.67×14 + 533.35 = 15466.73 pulses.

[0065] According to the pulse constant C, the frequency division number k, and the total cumulative value D of the electrical energy pulses T The electricity consumption within a demand period of 15 minutes in this embodiment can be calculated as:

[0066] E T = D T / (C×k) = 15466.73 / (6400×10) kWh

[0067] Finally, according to the formula E T / T E The demand P within a demand period of 15 minutes is calculated as:

[0068] P = E T / T E = (15466.73 / (6400×10)) / (14.5 / 60) = 1.000 kW

[0069] Among them, 14.5 / 60 is to convert 14.5 minutes into hours to meet the unification of time units.

[0070] Based on the various parameters of the above embodiments, if the existing calculation method mentioned in the background technology is adopted, the following can be obtained:

[0071] Comparative Example 1

[0072] If the slip type of Method 1 mentioned in the background technology is adopted, the possible demand D calculated may be:

[0073] D = (1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1) / 15 = 1 kW;

[0074] D = (1 + 1 + 8 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1) / 15 = 1.466 kW;

[0075] D = (1 + 1 + 14 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1) / 15 = 1.866 kW;

[0076] D = (1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 0) / 15 = 0.933 kW;

[0077] D = (1 + 1 + 8 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 0) / 15 = 1.400 kW;

[0078] D = (1 + 1 + 14 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 0) / 15 = 1.800 kW.

[0079] Comparative Example 2

[0080] If Method 2 mentioned in the background art is adopted, the calculated demand D may be:

[0081] D = (1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1) / 15 = 1 kW;

[0082] D = (1 + 1 + 1.116 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1) / 15 = 1.007 kW;

[0083] D = (1 + 1 + 1.216 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1) / 15 = 1.014 kW;

[0084] D = (1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 0.5) / 15 = 0.966 kW;

[0085] D = (1 + 1 + 1.116 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 0.5) / 15 = 0.9744 kW;

[0086] D = (1 + 1 + 1.216 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 0.5) / 15 = 0.981 kW.

[0087] Comparative Example 3

[0088] If the electrical energy accumulation method of Method 3 mentioned in the background art is adopted, the calculated demand D may be:

[0089] Taking the pulse counting method as an example, if the pulse number is stored once every minute, then

[0090] D = ((106 * 14 + 53) / 6400) / (15 / 60) = 0.96 kW;

[0091] If the total pulses are accumulated every 15 minutes, there may be less than one pulse loss before and after. The main reason is that when the demand starts to be calculated, there are no pulses at this time, then

[0092] D = ((105.667 + 106.667 * 13 + 53.335) / 6400) / (15 / 60) = 0.966 kW.

[0093] In summary, it can be seen that, compared with the existing demand calculation methods, the demand calculation method of the present application can more accurately reflect the load change and has higher calculation accuracy.

[0094] It should be understood that although the steps in the flowcharts involved in the above embodiments are sequentially shown according to the indications of the arrows, these steps are not necessarily executed in the order indicated by the arrows. Unless there is a clear description in this article, there is no strict order limit for the execution of these steps, and these steps can be executed in other orders. Moreover, at least a part of the steps in the flowcharts involved in the above embodiments may include multiple steps or multiple stages. These steps or stages are not necessarily executed at the same moment, but can be executed at different moments. The execution order of these steps or stages is not necessarily sequential, but can be executed alternately or in turn with at least a part of other steps or steps or stages in other steps.

[0095] Based on the same inventive concept, the embodiments of the present application also provide a demand calculation device for an electric energy meter for implementing the above-mentioned electric energy meter demand calculation method. The solution provided by this device to solve the problem is similar to the solution described in the above method. Therefore, the specific limitations in one or more embodiments of the following demand calculation device for an electric energy meter can refer to the limitations on the electric energy meter demand calculation method in the above text, and will not be repeated here.

[0096] In one embodiment, as Figure 2 shown, a demand calculation device for an electric energy meter is provided, including:

[0097] A period determination module for determining the slip time t and the power sampling period t0, where the power sampling period t0 ≤ 1 s;

[0098] A power judgment module for determining, within the i-th slip time t, whether the power collected in the current power sampling period t0 is less than the starting power. If it is less than the starting power, the electric energy accumulation time is not accumulated; otherwise, the current power sampling period t0 is added to the previous electric energy accumulation time to finally determine the electric energy accumulation time t E (i), where i ∈ {1,..., n}, n > 1;

[0099] An electric energy accumulation time determination module for obtaining the total electric energy accumulation time T within the demand period T according to the electric energy accumulation time t E (i) within the i-th slip time t E , where the demand period T = n × t;

[0100] An electric energy pulse cumulative value calculation module for calculating according to the divided pulse constant and the electric energy accumulation time t within the i-th slip time tE (i) Determine the cumulative value D of the electrical energy pulses within the i-th slip time t based on the current power t (i), and based on the cumulative value D of the electrical energy pulses within the i-th slip time t t obtain the total cumulative value D of the electrical energy pulses within the demand period T T ;

[0101] A demand calculation module, configured to calculate the demand P within the demand period T according to the total cumulative value D of the electrical energy pulses within the demand period T T , the total electrical energy cumulative time T E , the pulse constant, and the frequency division number of the pulse constant

[0102] Each module in the above electrical energy meter demand calculation device can be implemented in whole or in part by software, hardware, and their combination. Each of the above modules can be embedded in or independent of the processor in the computer device in the form of hardware, or stored in the memory of the computer device in the form of software, so that the processor can call and execute the operations corresponding to each of the above modules.

[0103] In one embodiment, a computer device is provided. The computer device can be a server or a terminal, and its internal structure diagram can be as shown in Figure 3 . The computer device includes a processor, a memory, and a network interface connected through a system bus. Among them, the processor of the computer device is used to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system, a computer program, and a database. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The database of the computer device is used to store the obtained frozen data of the electrical energy meter. The network interface of the computer device is used to communicate with an external terminal through a network connection. When the computer program is executed by the processor, it implements a data storage method for freezing the electrical energy meter.

[0104] Those skilled in the art can understand that Figure 3 the structure shown in is only a block diagram of some structures related to the solution of the present application, and does not constitute a limitation on the computer device to which the solution of the present application is applied. The specific computer device may include more or fewer components than those shown in the figure, or combine some components, or have a different component layout.

[0105] In one embodiment, a computer device is provided, including a memory and a processor. A computer program is stored in the memory. When the processor executes the computer program, the following steps are implemented:

[0106] Determine the slip time t and the power sampling period t0, where the power sampling period t0 ≤ 1 s;

[0107] During the i-th slip time t, the initial electric energy accumulation time is 0. It is determined whether the power collected in the current power sampling period t0 is less than the starting power. If it is less than the starting power, the electric energy accumulation time is not incremented; otherwise, the current power sampling period t0 is added to the previous electric energy accumulation time, and finally the electric energy accumulation time t during the i-th slip time t is determined. E (i), where i ∈ {1,..., n}, n > 1;

[0108] According to the electric energy accumulation time t during the i-th slip time t E (i), the total electric energy accumulation time T within the demand period T is obtained. E , where the demand period t = n × t;

[0109] According to the divided pulse constant, the electric energy accumulation time t during the i-th slip time t E (i) and the current power, the electric energy pulse accumulation value D during the i-th slip time t is calculated. t (i);

[0110] According to the electric energy pulse accumulation value D during the i-th slip time t t (i), the total electric energy pulse accumulation value D within the demand period T is obtained. T ;

[0111] According to the total electric energy pulse accumulation value D within the demand period T T , the total electric energy accumulation time T E , the pulse constant and the division frequency of the pulse constant, the demand P within the demand period T is calculated.

[0112] In one embodiment, when the processor executes the computer program, it also implements:

[0113] The demand P within the demand period T is calculated according to the following formula:

[0114] P = (D T / (C × k)) / T E .

[0115] In one embodiment, when the processor executes the computer program, it also implements:

[0116] The total electric energy accumulation time T within the demand period T E is calculated according to the following formula:

[0117]

[0118] In one embodiment, when the processor executes the computer program, it also implements:

[0119] Total electrical energy pulse cumulative value D within the demand period T T It is calculated according to the following formula:

[0120]

[0121] In one embodiment, when the processor executes the computer program, it also implements:

[0122] Dividing the pulse constant in the MCU of the electricity meter.

[0123] In one embodiment, a computer-readable storage medium is provided, on which a computer program is stored. When the computer program is executed by a processor, the following steps are implemented:

[0124] Determine the slip time t and the power sampling period t0, where the power sampling period t0 ≤ 1 s;

[0125] Within the i-th slip time t, the initial electrical energy accumulation time is 0. Determine whether the power collected in the current power sampling period t0 is less than the starting power. If it is less than the starting power, the electrical energy accumulation time is not incremented; otherwise, the current power sampling period t0 is added to the previous electrical energy accumulation time to finally determine the electrical energy accumulation time t E (i), where i ∈ {1,..., n}, n > 1;

[0126] According to the electrical energy accumulation time t E (i) within the i-th slip time t, obtain the total electrical energy accumulation time T within the demand period T E , where the demand period T = n × t;

[0127] According to the divided pulse constant, the electrical energy accumulation time t E (i) within the i-th slip time t and the current power, calculate the electrical energy pulse cumulative value D t (i) within the i-th slip time t;

[0128] According to the electrical energy pulse cumulative value D t (i) within the i-th slip time t, obtain the total electrical energy pulse cumulative value D within the demand period T T ;

[0129] According to the total electrical energy pulse cumulative value D T within the demand period T, the total electrical energy accumulation time T E , the pulse constant and the division frequency number of the pulse constant, calculate the demand P within the demand period T.

[0130] In one embodiment, when the processor executes the computer program, it also implements:

[0131] The demand P within the demand period T is calculated according to the following formula:

[0132] P = (D T / (C × k)) / T E .

[0133] In one embodiment, when the processor executes the computer program, it further implements:

[0134] The total power cumulative time T within the demand period T E is calculated according to the following formula:

[0135]

[0136] In one embodiment, when the processor executes the computer program, it further implements:

[0137] The total power pulse cumulative value D within the demand period T T is calculated according to the following formula:

[0138]

[0139] In one embodiment, when the processor executes the computer program, it further implements:

[0140] Dividing the pulse constant in the MCU of the electricity meter.

[0141] In one embodiment, a computer program product is provided, including a computer program, and when the computer program is executed by a processor, the following steps are implemented:

[0142] Determine the slip time t and the power sampling period t0, where the power sampling period t0 ≤ 1 s;

[0143] Within the i-th slip time t, the initial power cumulative time is 0. Determine whether the power collected in the current power sampling period t0 is less than the starting power. If it is less than the starting power, the power cumulative time is not accumulated; otherwise, add the current power sampling period t0 to the previous power cumulative time, and finally determine the power cumulative time t E (i) within the i-th slip time t, where i ∈ {1,..., n} and n > 1;

[0144] According to the power cumulative time t E (i) within the i-th slip time t, obtain the total power cumulative time T within the demand period T E , where the demand period T = n × t;

[0145] According to the divided pulse constant, the power cumulative time t E (i) within the i-th slip time t and the current power, calculate the power pulse cumulative value D within the i-th slip time tt (i);

[0146] According to the cumulative value D of the electrical energy pulses within the i-th slip time t t (i) Obtain the total cumulative value D of the electrical energy pulses within the demand period T T ;

[0147] According to the total cumulative value D of the electrical energy pulses within the demand period T T 、the total electrical energy cumulative time T E 、the pulse constant and the frequency division number of the pulse constant, calculate the demand P within the demand period T.

[0148] In one embodiment, when the processor executes the computer program, it also implements:

[0149] The demand P within the demand period T is calculated according to the following formula:

[0150] P = (D T / (C × k)) / T E .

[0151] In one embodiment, when the processor executes the computer program, it also implements:

[0152] The total electrical energy cumulative time T within the demand period T E is calculated according to the following formula:

[0153]

[0154] In one embodiment, when the processor executes the computer program, it also implements:

[0155] The total cumulative value D of the electrical energy pulses within the demand period T T is calculated according to the following formula:

[0156]

[0157] In one embodiment, when the processor executes the computer program, it also implements:

[0158] Perform frequency division on the pulse constant in the MCU of the electricity meter.

[0159] It should be noted that the user information (including but not limited to user device information, user personal information, etc.) and data (including but not limited to data for analysis, stored data, displayed data, etc.) involved in this application are all information and data authorized by the user or fully authorized by all parties.

[0160] Those of ordinary skill in the art can understand that all or part of the processes in the methods of the above embodiments can be completed by instructing relevant hardware through a computer program. The computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above methods. Among them, any reference to a memory, database, or other medium used in the embodiments provided in this application can include at least one of non-volatile and volatile memories. Non-volatile memory can include read-only memory (ROM), magnetic tape, floppy disk, flash memory, optical memory, high-density embedded non-volatile memory, resistive random access memory (ReRAM), magnetoresistive random access memory (MRAM), ferroelectric random access memory (FRAM), phase change memory (PCM), graphene memory, etc. Volatile memory can include random access memory (RAM) or external cache memory, etc. By way of illustration and not limitation, RAM can be in various forms, such as static random access memory (SRAM) or dynamic random access memory (DRAM), etc. The databases involved in the embodiments provided in this application can include at least one of relational databases and non-relational databases. Non-relational databases can include distributed databases based on blockchain, etc., without limitation. The processors involved in the embodiments provided in this application can be general-purpose processors, central processing units, graphics processing units, digital signal processors, programmable logic devices, data processing logics based on quantum computing, etc., without limitation.

[0161] The technical features of the above embodiments can be combined arbitrarily. For the sake of brevity of description, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, it should be considered as the scope described in this specification.

[0162] The above embodiments only represent several implementation manners of this application. The description is relatively specific and detailed, but it should not be construed as a limitation on the patent scope of this application. It should be noted that for those of ordinary skill in the art, without departing from the concept of this application, several modifications and improvements can still be made, and these all belong to the protection scope of this application. Therefore, the protection scope of this application should be subject to the appended claims.

Claims

1. A method for calculating the demand of an electric energy meter, characterized in that, The method includes: Determining a slip time t and a power sampling period t0, where the power sampling period t0 ≤ 1 s; During the i-th slip time t, the initial electrical energy accumulation time is 0. It is determined whether the power collected in the current power sampling period t0 is less than the starting power. If it is less than the starting power, the electrical energy accumulation time is not incremented; otherwise, the current power sampling period t0 is added to the previous electrical energy accumulation time, and finally the electrical energy accumulation time t(i) within the i-th slip time t is determined, where i ∈ {1,..., n}, n > 1; E (i), where i ∈ {1,..., n}, n > 1; According to the cumulative power time t within the i-th slip time t E (i) Obtain the total cumulative power time T within the demand period T E , where the demand period T = n × t; According to the divided pulse constant, the electric energy accumulation time t within the i-th slip time t E (i), and the current power, calculate the electric energy pulse accumulation value D t (i) within the i-th slip time t; According to the cumulative value D of the electric energy pulses within the i-th slip time t t (i) Obtain the total cumulative value D of the electric energy pulses within the demand period T T ; According to the total electrical energy pulse cumulative value D within the demand period T T , the total electrical energy cumulative time T E , the pulse constant and the frequency division number of the pulse constant are used to calculate the demand P within the demand period T.

2. The method according to claim 1, characterized in that, Calculating the demand P within the demand period T according to the following formula: P = (D T / (C × k)) / T E where C is the pulse constant and k is the frequency division number of the pulse constant.

3. The method according to claim 1, wherein The total power consumption cumulative time T within the demand period T E is calculated according to the following formula:

4. The method according to claim 1, characterized in that, The total cumulative value D of the electrical energy pulses within the demand period T T is calculated according to the following formula:

5. The method according to claim 1, wherein The method further includes: Dividing the pulse constant in the MCU of the electric energy meter.

6. The method according to claim 1, wherein The frequency division number of the pulse constant ≥ 5.

7. The method according to claim 1, characterized in that, The slip time t ≥ 1 min.

8. The method according to claim 1, wherein The demand period T ≥ 5 min.

9. An electricity meter demand calculation device, characterized in that, The device includes: A period determination module for determining a slip time t and a power sampling period t0, where the power sampling period t0 ≤ 1 s; A power judgment module, which is used to judge whether the power collected in the current power sampling period t0 is less than the starting power within the i-th slip time t. If it is less than the starting power, the electric energy accumulation time is not accumulated; otherwise, the current power sampling period t0 is added to the previous electric energy accumulation time to finally determine the electric energy accumulation time t within the i-th slip time t E (i), where i ∈ {1,..., n} and n > 1; The electric energy cumulative time determination module is used to determine the electric energy cumulative time t within the i-th slip time t E (i) Obtain the total electric energy cumulative time T within the demand period T E , where the demand period T = n × t; The electric energy pulse cumulative value calculation module is used to calculate the cumulative value D(i) of the electric energy pulses within the i-th slip time t based on the frequency-divided pulse constant, the electric energy cumulative time t(i) within the i-th slip time t, and the current power, and obtain the total cumulative value D of the electric energy pulses within the demand period T based on the cumulative value D(i) of the electric energy pulses within the i-th slip time t; E (i), and obtain the total cumulative value D of the electric energy pulses within the demand period T based on the cumulative value D(i) of the electric energy pulses within the i-th slip time t; t (i), and obtain the total cumulative value D of the electric energy pulses within the demand period T based on the cumulative value D(i) of the electric energy pulses within the i-th slip time t; t (i), and obtain the total cumulative value D of the electric energy pulses within the demand period T based on the cumulative value D(i) of the electric energy pulses within the i-th slip time t; T ; A demand calculation module, configured to calculate a demand P within the demand period T according to a total cumulative value D of power pulses, a total cumulative power time T, a pulse constant, and a frequency division number of the pulse constant within the demand period T. T and a total cumulative power time T E within the demand period T.

10. A computer device, comprising a memory and a processor, the memory storing a computer program, characterized in that, When the processor executes the computer program, it implements the steps of the method according to any one of claims 1 to 8.

Citation Information

Patent Citations

  • Electric energy meter electric energy metering method and device, storage medium and terminal

    CN111736013A

  • Method and system for improving metering precision of three-phase cost control intelligent electric meter based on MCU

    CN112782470A