Electric energy compensation method and device, electric energy meter and computer readable storage medium

By setting the metering chip and compensation function in the power meter, compensation is performed based on the relationship between the power compensation value and the time of the high current power supply, the problem of low calculation accuracy of the power value caused by the heating of the manganese copper sensor is solved, and a higher calculation accuracy of the power value is achieved. .

CN118938116APending Publication Date: 2024-11-12NINGBO SANXING MEDICAL & ELECTRIC CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411335378.7
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-09-24
Publication Date
2024-11-12

AI Technical Summary

Technical Problem

When using manganese copper sensors in the electric energy meter, the sensor is heated by a large current for a long time, and the change in resistance value leads to current errors. The existing compensation method cannot be adjusted when the temperature exceeds the adjustable range, resulting in low accuracy of the calculation of the electric energy value.

Method used

Set up a metering chip and compensation function in the power meter. By fitting the relationship between the electric energy compensation value and the energization time of the large current, calculate the electric energy compensation value and set the electric energy compensation coefficient to compensate the electric energy value and improve the calculation accuracy.

Benefits of technology

There is no need to pay attention to the sensor heating temperature. Compensation is performed through the relationship between the power compensation value and the time of the high current energization, so as to improve the calculation accuracy of the power value and meet the accuracy requirements of the self-heating performance experiment of the power meter.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118938116A_ABST
    Figure CN118938116A_ABST
Patent Text Reader

Abstract

The embodiment of the invention provides an electric energy compensation method and device, an electric energy meter and a computer readable storage medium, and relates to the technical field of electric energy meters. A metering chip is arranged in the electric energy meter, a compensation function is stored in the electric energy meter, the compensation function represents the relation between the electric energy compensation value and the large-current power-on duration, and the large-current power-on duration is the duration when the current of the electric energy meter reaches the maximum current. Obtaining the current current of the electric energy meter from the metering chip; if the current current reaches the maximum current, the current electric energy compensation value is calculated according to the current large-current power-on duration and the compensation function; the electric energy compensation coefficient in the metering chip is set according to the current electric energy compensation value, so that the metering chip compensates the electric energy value according to the electric energy compensation coefficient after calculating the electric energy value of the electric energy meter, and the calculation precision of the electric energy value can be improved.
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 in particular to an electric energy compensation method, device, electric energy meter and computer-readable storage medium. Background Art

[0002] At present, electric energy meters need to collect current through current sensors and calculate the electric energy of the electric energy meter in combination with the rated voltage. However, when the current sensor is a sensor made of resistive materials such as a manganese copper sensor, a large current exceeding the maximum current will cause the sensor to heat up and cause the sensor resistance to change, which will affect the collected current value, resulting in a large error in the electric energy value calculated based on the current value.

[0003] In the prior art, the temperature generated by the sensor heating can be compensated by setting the adjustable range of the temperature coefficient, thereby reducing the current error caused by the change in resistance caused by the heating of the manganese copper sensor. However, if the temperature generated by the sensor heating exceeds the adjustable range of the temperature coefficient, the current error cannot be adjusted, which will cause the calculated electric energy error to still be large and the electric energy value calculation accuracy to be low. Summary of the invention

[0004] In view of this, the purpose of the present application is to provide an electric energy compensation method, device, electric energy meter and computer-readable storage medium to compensate for electric energy errors, thereby improving the calculation accuracy of electric energy values.

[0005] In order to achieve the above purpose, the technical solution adopted in the embodiment of the present application is as follows:

[0006] In a first aspect, the present invention provides an electric energy compensation method, which is applied to an electric energy meter, wherein a metering chip is provided in the electric energy meter, and a compensation function is stored in the electric energy meter, wherein the compensation function represents the relationship between the electric energy compensation value and the large current power-on time, wherein the large current power-on time is the duration during which the current of the electric energy meter reaches the maximum current, and the method comprises:

[0007] Obtaining the current of the electric energy meter from the metering chip;

[0008] If the current current reaches the maximum current, the current electric energy compensation value is calculated according to the current high current power-on time and the compensation function;

[0009] The electric energy compensation coefficient in the metering chip is set according to the current electric energy compensation value, so that after the metering chip calculates the electric energy value of the electric energy meter, it compensates the electric energy value according to the electric energy compensation coefficient.

[0010] In an optional implementation manner, the setting of the electric energy compensation coefficient in the metering chip according to the current electric energy compensation value includes:

[0011] Converting the current electric energy compensation value into a first compensation coefficient according to a preset conversion formula;

[0012] Acquire a second compensation coefficient in the metering chip, calculate the electric energy compensation coefficient according to the first compensation coefficient and the second compensation coefficient, and set the electric energy compensation coefficient in the metering chip; wherein the second compensation coefficient is the electric energy compensation value of the electric energy meter in the initial state.

[0013] In an optional implementation, the compensation function is obtained by the following steps:

[0014] Acquire a plurality of sample error data under the maximum current power-on duration and the large current power-on duration corresponding to each of the sample error data;

[0015] The compensation function is obtained by fitting a cubic function according to each of the sample error data and the large current power-on time corresponding to each of the sample error data.

[0016] In an optional implementation manner, the fitting of a cubic function according to each of the sample error data and the large current power-on time corresponding to each of the sample error data includes:

[0017] Amplify each of the sample error data according to a preset amplification factor;

[0018] The univariate cubic function is fitted according to the amplified sample error data and the large current power-on time corresponding to each sample error data.

[0019] In an optional implementation manner, obtaining the current current of the electric energy meter from the metering chip includes:

[0020] Obtaining the current of the electric energy meter from the metering chip once every preset time period;

[0021] If the current current reaches the maximum current, the current electric energy compensation value is calculated according to the current high current power-on time and the compensation function, including:

[0022] If the current current reaches the maximum current, determining whether the current high current power-on time is a multiple of a preset value;

[0023] If the current high current power-on time is a multiple of the preset value, the current electric energy compensation value is calculated according to the current high current power-on time, the preset value and the compensation function.

[0024] In a second aspect, the present invention provides an electric energy compensation device, which is applied to an electric energy meter, wherein a metering chip is provided in the electric energy meter, and a compensation function is stored in the electric energy meter, wherein the compensation function represents the relationship between the electric energy compensation value and the large current power-on time, wherein the large current power-on time is the duration during which the current of the electric energy meter reaches the maximum current, and the device comprises:

[0025] An acquisition module, used for acquiring the current current of the electric energy meter from the metering chip;

[0026] A calculation module, configured to calculate a current electric energy compensation value according to a current high current power-on time and the compensation function if the current current reaches a maximum current;

[0027] The compensation module is used to set the electric energy compensation coefficient in the metering chip according to the current electric energy compensation value, so that after the metering chip calculates the electric energy value of the electric energy meter, it compensates the electric energy value according to the electric energy compensation coefficient.

[0028] In an optional embodiment, the compensation module is also used to convert the current electric energy compensation value into a first compensation coefficient according to a preset conversion formula; obtain the second compensation coefficient in the metering chip, calculate the electric energy compensation coefficient according to the first compensation coefficient and the second compensation coefficient, and set the electric energy compensation coefficient in the metering chip; wherein the second compensation coefficient is the electric energy compensation value of the electric energy meter in the initial state.

[0029] In an optional implementation manner, the acquisition module is further used to acquire the current current of the electric energy meter from the metering chip once every preset time period;

[0030] The calculation module is also used to determine whether the current high current power-on time is a multiple of a preset value if the current current reaches the maximum current; if the current high current power-on time is a multiple of the preset value, the current electric energy compensation value is calculated based on the current high current power-on time, the preset value and the compensation function.

[0031] In a third aspect, the present invention provides an electric energy meter, comprising a single-chip microcomputer and a metering chip, wherein the single-chip microcomputer is communicatively connected with the metering chip, and the single-chip microcomputer can execute a computer program to implement the method described in any one of the aforementioned implementation modes.

[0032] In a fourth aspect, the present invention provides a computer-readable storage medium having a computer program stored thereon, wherein the computer program, when executed by a single-chip microcomputer, implements the method described in any one of the aforementioned implementation modes.

[0033] The electric energy compensation method, device, electric energy meter and computer-readable storage medium provided by the embodiment of the present application, a metering chip is provided in the electric energy meter, and a compensation function is stored in the electric energy meter. Since the compensation function can characterize the relationship between the electric energy compensation value and the large current power-on time, the electric energy meter can calculate the electric energy compensation value according to the current large current power-on time and the compensation function when the current current reaches the maximum current, so as to set the electric energy compensation coefficient in the metering chip according to the electric energy compensation value, and the metering chip can compensate the electric energy value according to the electric energy compensation coefficient. This solution does not need to pay attention to the temperature generated by the heating of the sensor, but by fitting the relationship between the electric energy compensation value and the large current power-on time, when the current current reaches the maximum current, the current electric energy compensation value is calculated according to the current large current power-on time to compensate the electric energy value, thereby improving the calculation accuracy of the electric energy value.

[0034] In order to make the above-mentioned objects, features and advantages of the present application more obvious and easy to understand, preferred embodiments are specifically cited below and described in detail with reference to the attached drawings. BRIEF DESCRIPTION OF THE DRAWINGS

[0035] In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings required for use in the embodiments will be briefly introduced below. It should be understood that the following drawings only show certain embodiments of the present application and therefore should not be regarded as limiting the scope. For ordinary technicians in this field, other related drawings can be obtained based on these drawings without paying creative work.

[0036] Figure 1 A block diagram of an electric energy meter provided in an embodiment of the present application is shown;

[0037] Figure 2 A schematic diagram of a flow chart of the electric energy compensation method provided in an embodiment of the present application is shown;

[0038] Figure 3 Another schematic diagram of a flow chart of an electric energy compensation method provided in an embodiment of the present application is shown;

[0039] Figure 4 A schematic diagram of a compensation function is shown;

[0040] Figure 5 An example diagram showing the error between the compensated electric energy value and the standard electric energy value;

[0041] Figure 6 A functional module diagram of an electric energy compensation device provided in an embodiment of the present application is shown.

[0042] Icon: 100 - single chip microcomputer; 110 - metering chip; 200 - acquisition module; 210 - calculation module; 220 - compensation module. DETAILED DESCRIPTION

[0043] 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 only part of the embodiments of the present application, not all of the embodiments. The components of the embodiments of the present application described and shown in the drawings here can be arranged and designed in various different configurations.

[0044] Therefore, the following detailed description of the embodiments of the present application provided in the accompanying drawings is not intended to limit the scope of the present application for which protection is sought, but merely represents selected embodiments of the present application. Based on the embodiments of the present application, all other embodiments obtained by those skilled in the art without creative work are within the scope of protection of the present application.

[0045] It should be noted that relational terms such as "first" and "second" are used only to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprises" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, an element defined by the sentence "comprises a ..." does not exclude the existence of other identical elements in the process, method, article or device including the element.

[0046] At present, electric energy meters need to collect current through current sensors and calculate the electric energy of the electric energy meter in combination with the rated voltage. However, when the current sensor is a sensor made of resistive materials such as a manganese copper sensor, if a large current exceeding the maximum current passes through it for a long time, the sensor will heat up and cause the sensor resistance to change, which will affect the collected current value, resulting in a large error in the electric energy value calculated based on the current value.

[0047] Taking the self-heating performance experiment of the blind sample electricity meter as an example, the experiment requires the output of the rated voltage (Un) and maximum current (Imax) of the electricity meter, at a power factor of 1.0 for 60 minutes, and at a power factor of 0.5L for 60 minutes, and the difference between the maximum and minimum values ​​of the electric energy pulse error detected during the experiment should not exceed 0.03%.

[0048] However, if the current sensor is a manganese copper sensor, it may cause a large error in the calculation of the electric energy value, resulting in the difference between the maximum and minimum values ​​of the electric energy pulse error detected during the experiment exceeding 0.03%, which does not meet the experimental requirements.

[0049] In the prior art, the accuracy of electric energy values ​​can generally be improved in the following two ways.

[0050] 1. By setting the adjustable range of the temperature coefficient, the temperature generated by the sensor can be compensated, thereby reducing the current error caused by the change in resistance caused by the heating of the manganese copper sensor;

[0051] 2. Perform compensation at multiple time points. For example, in the self-heating test, 60 minutes is divided into n time periods. In each time period, the relationship between the error value and time is represented by a linear equation. The equation corresponding to each time period is stored in the electric energy meter, and the electric energy is compensated according to the time period.

[0052] However, the above methods all have certain defects.

[0053] First, for the first method, although the temperature generated by the sensor heating can be compensated by setting the adjustable range of the temperature coefficient, if the temperature rise trend is inconsistent or the temperature generated by the sensor heating exceeds the adjustable range of the temperature coefficient due to the long-term passage of large current, the current error cannot be adjusted, which will cause the calculated electric energy error to still be large and the electric energy value calculation accuracy to be low.

[0054] As for the second method, after subdividing 60 minutes into multiple time periods, multiple compensation functions need to be stored in each electric energy meter. If compensation is performed on multiple electric energy meters, since the subdivided time periods are certain, but the relationship curve representations of the error value and time of each electric energy meter are different, there may be a problem of poor fit between the error value and time in some time periods when the division is based on multiple time periods. That is, in these time periods, the relationship between the error value and time is not strictly represented as a linear function of one variable, which will lead to poor accuracy of the error value calculated in the time period, thereby making the electric energy value calculation accuracy of some electric energy meters low.

[0055] For example, if 60 minutes are divided into six time periods, namely [0,10], (10,20], (20,30], (30,40], (40,50], (50,60], and six linear functions of error values ​​and time are generated for multiple electric energy meters according to these six time periods and stored in the electric energy meters, then six functions need to be stored in the electric energy meters, and many parameters need to be written. In addition, the relationship between the error value and time of some electric energy meters in a certain time period may not actually be represented as a linear function, but still needs to be calculated according to the linear function. Therefore, the electric energy value calculated in this time period also has the problem of low accuracy.

[0056] Based on this, the embodiments of the present application provide an electric energy compensation method, device, electric energy meter and computer-readable storage medium to solve the above problems.

[0057] Specifically, Figure 1 For a block diagram of an electric energy meter provided in the embodiment of the present application, see Figure 1 The electric energy meter includes a single chip microcomputer 100 and a metering chip 110, and the single chip microcomputer 100 and the metering chip 110 are communicatively connected.

[0058] Optionally, the single-chip microcomputer may store an executable computer program, and the single-chip microcomputer may implement the electric energy compensation method provided in the embodiment of the present application by executing the computer program.

[0059] Optionally, the electric energy meter may also be provided with a current sensor, which may be used to collect the current of the electric energy meter and send the current to a metering chip, which may then calculate the electric energy value of the electric energy meter based on the current value and the rated voltage of the electric energy meter.

[0060] Optionally, the current sensor may be a manganese copper sensor.

[0061] In this embodiment, a compensation function may also be stored in the electric energy meter, and the compensation function may characterize the relationship between the electric energy compensation value and the duration of high current power-on.

[0062] It can be understood that the high current power-on time is the duration during which the current of the energy meter reaches the maximum current.

[0063] Optionally, the compensation function is generated in advance according to the actual application of the electric energy meter and stored in the single chip microcomputer.

[0064] It should be understood that Figure 1 The structure shown is only a schematic diagram of the structure of the electric energy meter. The electric energy meter may also include a Figure 1 More or fewer components as shown, or with Figure 1 Different configurations are shown. Figure 1 Each component shown in the figure can be implemented by hardware, software or a combination thereof.

[0065] Next, the above Figure 1 The electric energy meter in the embodiment is the execution body, and the electric energy compensation method provided in the embodiment of the present application is exemplarily introduced in combination with the flow chart.

[0066] Specifically, Figure 2 A schematic diagram of a flow chart of the electric energy compensation method provided in the embodiment of the present application is shown in Figure 2 , the method comprising:

[0067] Step S20, obtaining the current current of the electric energy meter from the metering chip.

[0068] Optionally, the metering chip can obtain the current value sent by the current sensor once at a preset time interval, such as 100ms. When the current value needs to be obtained, the microcontroller can read the most recent current value obtained by the metering chip from the metering chip as the current current of the electric energy meter.

[0069] Step S21, if the current current reaches the maximum current, the current electric energy compensation value is calculated according to the current high current power-on time and the compensation function.

[0070] Optionally, the current high current power-on duration refers to the duration between the current moment and the moment when the current of the electric energy meter reaches the maximum current.

[0071] Step S22, setting the electric energy compensation coefficient in the metering chip according to the current electric energy compensation value, so that after the metering chip calculates the electric energy value of the electric energy meter, it compensates the electric energy value according to the electric energy compensation coefficient.

[0072] Optionally, since the data format processed by the single chip microcomputer may be different from the data format that can be processed by the metering chip, the electric energy meter needs to convert the calculated current electric energy compensation value into an electric energy compensation coefficient that can be processed by the metering chip to set the metering chip.

[0073] Optionally, after calculating the electric energy value of the electric energy meter, the metering chip may compensate the electric energy value according to an electric energy compensation coefficient set therein, so as to obtain an accurate electric energy value.

[0074] Optionally, the metering chip can calculate the electric energy value once according to the current and the rated voltage after obtaining the current sent by the current sensor once, and compensate the electric energy value according to the electric energy compensation coefficient set therein. In the electric energy compensation method provided in the embodiment of the present application, a metering chip is provided in the electric energy meter, and a compensation function is stored in the electric energy meter. Since the compensation function can characterize the relationship between the electric energy compensation value and the large current power-on time, the electric energy meter can calculate the electric energy compensation value according to the current large current power-on time and the compensation function when the current current reaches the maximum current, so as to set the electric energy compensation coefficient in the metering chip according to the electric energy compensation value, and then the metering chip can compensate the electric energy value according to the electric energy compensation coefficient. This scheme does not need to pay attention to the temperature generated by the heating of the sensor, but by fitting the relationship between the electric energy compensation value and the large current power-on time, the current electric energy compensation value is calculated according to the current large current power-on time when the current current reaches the maximum current to compensate the electric energy value, thereby improving the calculation accuracy of the electric energy value.

[0075] In addition, since the scheme does not divide time periods, there is no need to store multiple compensation functions in the electric energy meter, nor will it lead to the problem of poor fitting effect of the compensation function in some time periods. Therefore, the accuracy of the calculated electric energy compensation value can be guaranteed, thereby improving the calculation accuracy of the electric energy value.

[0076] It can be understood that the electric energy compensation method provided in the embodiment of the present application can be used for scenarios where a single current point needs to be measured for a long time to calculate the electric energy value, thereby ensuring the calculation accuracy of the electric energy value, such as a blind sample electric energy meter self-heating performance test experiment.

[0077] In a possible implementation manner, the electric energy meter is also communicatively connected to the performance detection platform.

[0078] Optionally, the performance testing platform may store standard electric energy parameters of the electric energy meter, so the performance testing platform may calculate the error between the electric energy value and the standard electric energy value according to the electric energy value of the electric energy meter.

[0079] In this embodiment, the self-heating performance test experiment of the electric energy meter can be carried out on the electric energy meter, and the error between the electric energy value in the experiment and the standard electric energy value can be calculated by the performance detection platform, and a compensation function can be generated according to the error.

[0080] Specifically, in Figure 2 On the basis of Figure 3 For another flow chart of the electric energy compensation method provided in the embodiment of the present application, please refer to Figure 3 , the compensation function can be obtained by the following steps:

[0081] Step S10, obtaining a plurality of sample error data under the maximum current power-on duration and the large current power-on duration corresponding to each sample error data.

[0082] Optionally, the performance detection platform can calculate the error between the electric energy value output by the electric energy meter and the standard electric energy value at intervals during the self-heating performance test experiment, and multiple errors can be obtained after the self-heating performance delay.

[0083] Optionally, since these errors also include electric energy errors when the current value does not reach the maximum current, these errors can be screened according to the current value to obtain the errors when the current value reaches the maximum current value. These errors are sample error data.

[0084] It can be understood that each error corresponds to a power-on duration. In this embodiment, the time when the current value reaches the maximum current value can be taken as time 0 to obtain the high current power-on duration corresponding to each sample error data.

[0085] In a possible implementation, since the performance detection platform outputs sample error data once every certain period of time, the high current power-on time can be represented by the number of times the performance detection platform outputs sample error data.

[0086] Step S11, fitting a cubic function according to each sample error data and the high current power-on time corresponding to each sample error data to obtain a compensation function.

[0087] Optionally, in order to ensure the calculation accuracy, the compensation function can be a cubic function, that is, y=ax 3 +bx 2 +cx+d. Wherein, y represents the electric energy error, and x represents the duration of the high current power-on. Optionally, in the single-chip microcomputer, the compensation function can be stored in the form of coefficients of an equation. In this embodiment, a, b, and c in the compensation function can be stored in the single-chip microcomputer.

[0088] It can be understood that in the compensation function, d is the electric energy error value between the initial electric energy value and the standard electric energy value. In order to ensure the calculation accuracy, the electric energy error value in the initial situation should have been stored in the metering chip for compensation, so it does not need to be stored.

[0089] Optionally, considering the limited floating-point calculation accuracy of the single-chip microcomputer, in order to ensure the calculation accuracy, each sample error data can be amplified according to a preset amplification factor, and then a univariate cubic function is fitted according to each amplified sample error data and the large current power-on time corresponding to each sample error data.

[0090] Optionally, the preset magnification factor can be set according to the actual sample error. In a possible implementation, the preset magnification factor can be 1,000,000.

[0091] In one example, Figure 4 For a curve diagram of the compensation function, see Figure 4 The horizontal axis is the number of times the performance test platform outputs sample error data, and the vertical axis is the amplified sample error data.

[0092] It can be understood that, since the performance detection platform outputs sample error data once every certain period of time, the number of times the performance detection platform outputs sample error data can represent the duration of high current power-on.

[0093] For example, if the performance test bench outputs sample error data once every 3 seconds, then 1 on the horizontal axis refers to the first time the performance test bench outputs sample error data, which actually indicates that the high current power-on time corresponding to the sample error data is 3 seconds.

[0094] By analogy, 66 refers to the 66th time that the performance test bench outputs sample error data, which actually indicates that the high current power-on time corresponding to the sample error data is 198s.

[0095] In this example, 0 in the horizontal axis refers to the moment when the current value reaches the maximum current value. In one possible implementation method, the staff can export each sample error data and the high current power-on time corresponding to each sample error data to other electronic devices for function fitting, and then set the fitted compensation function to the electric energy meter.

[0096] In this embodiment, the electric energy meter can obtain the current current of the electric energy meter from the metering chip once every preset time period.

[0097] Optionally, the preset duration can be set according to actual application conditions. In a possible implementation, the preset duration can be 1 second.

[0098] Optionally, if the x-axis in the compensation function is actually the number of times the performance detection platform outputs sample error data, when the electric energy meter calculates the current electric energy compensation value based on the current high current power-on time, it is necessary to first convert the current high current power-on time into the number of times the performance detection platform outputs sample error data, and then substitute the number into the compensation function for calculation.

[0099] For example, if the performance test bench outputs sample error data once every 3 seconds, and the current high current power-on duration is 6 seconds, the electric energy meter needs to calculate the number of times corresponding to the current high current power-on duration, that is, 6 / 3=2, and then substitute 2 into the compensation function for calculation, thereby obtaining the current electric energy compensation value.

[0100] Optionally, considering that the time interval between the performance detection platform outputting sample error data is very short, only a few seconds, the electric energy meter can also calculate the current electric energy compensation value according to the frequency of the performance detection platform outputting sample error data.

[0101] Specifically, when the current current reaches the maximum current, the electric energy meter can first determine whether the current high current power-on time is a multiple of the preset value. If the current high current power-on time is a multiple of the preset value, the current electric energy compensation value is calculated based on the current high current power-on time, the preset value and the compensation function.

[0102] Optionally, the preset value refers to the time interval at which the performance detection platform outputs sample error data.

[0103] Optionally, if the current high current power-on duration is not a multiple of a preset value, the electric energy meter may ignore the current information and not calculate the current electric energy compensation value.

[0104] Optionally, the electric energy meter may update the electric energy compensation coefficient in the metering chip according to the current electric energy compensation value each time after calculating the current electric energy compensation value.

[0105] It can be understood that in this embodiment, if the current high current power-on time is not a multiple of the preset value, the metering chip can compensate the electric energy value by the electric energy compensation value calculated last time.

[0106] In this embodiment, since the time interval between the output of sample error data by the performance detection platform is very short, the accuracy of the compensated electric energy value can be guaranteed within a certain range.

[0107] Next, a possible implementation method is provided for how to set the electric energy compensation coefficient in the metering chip according to the current electric energy compensation value.

[0108] Specifically, the electric energy meter can first convert the current electric energy compensation value into a first compensation coefficient according to a preset conversion formula, then obtain the second compensation coefficient in the metering chip, calculate the electric energy compensation coefficient according to the first compensation coefficient and the second compensation coefficient, and set the electric energy compensation coefficient in the metering chip.

[0109] The second compensation coefficient is the electric energy compensation value of the electric energy meter in the initial state.

[0110] It can be understood that the second compensation coefficient refers to d in the above-mentioned cubic function.

[0111] Optionally, the conversion formula may be used to convert the data form of the single chip microcomputer into a data form that can be processed by the metering chip, and the conversion formula may be set according to the actual situation of the metering chip.

[0112] In a possible implementation, the electric energy compensation coefficient may be a cumulative value of the first compensation coefficient and the second compensation coefficient.

[0113] Optionally, in the self-heating performance test experiment of the electric energy meter, the metering chip can compensate the electric energy value according to the electric energy compensation coefficient set therein, and output the compensated electric energy value to the performance detection platform, so that the performance detection platform calculates the error based on the compensated electric energy value and the standard electric energy value.

[0114] Optionally, in order to reduce data fluctuations, the performance detection platform may obtain a plurality of compensated electric energy values, and average them, and then calculate the error based on the average value of the compensated electric energy values ​​and the standard electric energy value.

[0115] In one example, the metering chip can calculate the electric energy value every 100 ms, and compensate the electric energy value according to the electric energy compensation coefficient set therein, and then output the compensated electric energy value to the performance detection platform. The performance detection platform can calculate the average value of all compensated electric energy values ​​obtained within 3 seconds, and calculate the error based on the average value and the standard electric energy value and output it.

[0116] In one example, Figure 5 For an example of the error between the compensated energy value and the standard energy value, see Figure 5 , combined with Figure 4 It can be seen that by conducting the electric energy self-heating performance test experiment using the method in the prior art, the difference between the maximum and minimum values ​​of the electric energy pulse error reached 0.3975%, far exceeding the 0.03% standard in the experimental requirements. By using the electric energy compensation method provided in the embodiment of the present application, the difference between the maximum and minimum values ​​of the electric energy pulse can be reduced to 0.0299%, thereby also improving the accuracy of the electric energy meter self-heating performance test experiment.

[0117] In order to execute the corresponding steps in the above embodiments and various possible methods, a method for implementing an electric energy compensation device is given below. Optionally, the electric energy compensation device can adopt the above Figure 1 For further information, please refer to Figure 6 , Figure 6 A functional module diagram of an electric energy compensation device provided in an embodiment of the present application. It should be noted that the basic principle and technical effects of the electric energy compensation device provided in this embodiment are the same as those of the above-mentioned embodiments. For the sake of brief description, for parts not mentioned in this embodiment, reference can be made to the corresponding contents in the above-mentioned embodiments. The electric energy compensation device includes: an acquisition module 200, a calculation module 210 and a compensation module 220.

[0118] The acquisition module 200 is used to acquire the current of the electric energy meter from the metering chip.

[0119] It can be understood that the acquisition module 200 is used to execute the above step S20.

[0120] The calculation module 210 is used to calculate the current electric energy compensation value according to the current high current power-on time and the compensation function if the current current reaches the maximum current.

[0121] It can be understood that the calculation module 210 is used to execute the above step S21.

[0122] The compensation module 220 is used to set the electric energy compensation coefficient in the metering chip according to the current electric energy compensation value, so that after the metering chip calculates the electric energy value of the electric energy meter, it compensates the electric energy value according to the electric energy compensation coefficient.

[0123] It can be understood that the compensation module 220 is used to execute the above step S22.

[0124] Optionally, the compensation module 220 is also used to convert the current electric energy compensation value into a first compensation coefficient according to a preset conversion formula; obtain the second compensation coefficient in the metering chip, calculate the electric energy compensation coefficient according to the first compensation coefficient and the second compensation coefficient, and set the electric energy compensation coefficient in the metering chip; wherein the second compensation coefficient is the electric energy compensation value of the electric energy meter in the initial state.

[0125] Optionally, the acquisition module 200 is also used to obtain multiple sample error data under the maximum current power-on time and the large current power-on time corresponding to each sample error data; fit a univariate cubic function according to each sample error data and the large current power-on time corresponding to each sample error data to obtain a compensation function.

[0126] It can be understood that the acquisition module 200 is used to execute the above steps S10 to S11.

[0127] Optionally, the acquisition module 200 is further used to amplify each sample error data according to a preset amplification factor; and fit a univariate cubic function according to each amplified sample error data and the large current power-on time corresponding to each sample error data.

[0128] Optionally, the acquisition module 200 is further configured to acquire the current of the electric energy meter from the metering chip once every preset time period.

[0129] Optionally, the calculation module 210 is also used to determine whether the current high current power-on time is a multiple of a preset value if the current current reaches the maximum current; if the current high current power-on time is a multiple of the preset value, the current electric energy compensation value is calculated based on the current high current power-on time, the preset value and the compensation function.

[0130] The embodiment of the present application also provides a computer-readable storage medium on which a computer program is stored. When the computer program is executed by a single-chip microcomputer, the electric energy compensation method provided in the embodiment of the present application can be implemented.

[0131] In several embodiments provided in the present application, it should be understood that the disclosed devices and methods can also be implemented in other ways. The device embodiments described above are merely schematic. For example, the flowcharts and block diagrams in the accompanying drawings show the possible architecture, functions and operations of the devices, methods and computer program products according to multiple embodiments of the present application. In this regard, each box in the flowchart or block diagram can represent a module, a program segment or a part of the code, and a part of the module, program segment or code contains one or more executable instructions for implementing the specified logical function. It should also be noted that in some alternative implementations, the functions marked in the box can also occur in a different order from the order marked in the accompanying drawings. For example, two consecutive boxes can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each box in the block diagram and / or flowchart, and the combination of boxes in the block diagram and / or flowchart can be implemented with a dedicated hardware-based system that performs a specified function or action, or can be implemented with a combination of dedicated hardware and computer instructions.

[0132] In addition, the functional modules in the various embodiments of the present application may be integrated together to form an independent part, or each module may exist separately, or two or more modules may be integrated to form an independent part.

[0133] If the functions are implemented in the form of software function modules and sold or used as independent products, they can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present application can be essentially or partly embodied in the form of a software product that contributes to the prior art. The computer software product is stored in a storage medium, including several instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the various embodiments of the present application. The aforementioned storage medium includes: various media that can store program codes, such as a USB flash drive, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk.

[0134] The above are only preferred embodiments of the present application and are not intended to limit the present application. For those skilled in the art, the present application may have various modifications and variations. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present application shall be included in the protection scope of the present application.

Claims

1. A method for electric energy compensation, characterized in that: Applied to an electric energy meter, the electric energy meter is provided with a metering chip, and the electric energy meter stores a compensation function, the compensation function represents the relationship between the electric energy compensation value and the large current power-on time, the large current power-on time is the duration of the current of the electric energy meter reaching the maximum current, the method comprises: Obtaining the current of the electric energy meter from the metering chip; If the current current reaches the maximum current, the current electric energy compensation value is calculated according to the current high current power-on time and the compensation function; The electric energy compensation coefficient in the metering chip is set according to the current electric energy compensation value, so that after the metering chip calculates the electric energy value of the electric energy meter, it compensates the electric energy value according to the electric energy compensation coefficient.

2. The method according to claim 1, characterized in that The step of setting the electric energy compensation coefficient in the metering chip according to the current electric energy compensation value includes: Converting the current electric energy compensation value into a first compensation coefficient according to a preset conversion formula; Acquire a second compensation coefficient in the metering chip, calculate the electric energy compensation coefficient according to the first compensation coefficient and the second compensation coefficient, and set the electric energy compensation coefficient in the metering chip; wherein the second compensation coefficient is the electric energy compensation value of the electric energy meter in the initial state.

3. The method according to claim 1, characterized in that The compensation function is obtained by the following steps: Acquire a plurality of sample error data under the maximum current power-on duration and the large current power-on duration corresponding to each of the sample error data; The compensation function is obtained by fitting a cubic function according to each of the sample error data and the large current power-on time corresponding to each of the sample error data.

4. The method according to claim 3, characterized in that The fitting of a cubic function according to each of the sample error data and the large current power-on time corresponding to each of the sample error data comprises: Amplify each of the sample error data according to a preset amplification factor; The univariate cubic function is fitted according to the amplified sample error data and the large current power-on time corresponding to each sample error data.

5. The method according to claim 1, characterized in that The step of obtaining the current current of the electric energy meter from the metering chip includes: Obtaining the current of the electric energy meter from the metering chip once every preset time period; If the current current reaches the maximum current, the current electric energy compensation value is calculated according to the current high current power-on time and the compensation function, including: If the current current reaches the maximum current, determining whether the current high current power-on time is a multiple of a preset value; If the current high current power-on time is a multiple of the preset value, the current electric energy compensation value is calculated according to the current high current power-on time, the preset value and the compensation function.

6. An electric energy compensation device, characterized in that: Applied to an electric energy meter, wherein a metering chip is provided in the electric energy meter, and a compensation function is stored in the electric energy meter, wherein the compensation function represents the relationship between the electric energy compensation value and the large current power-on time, wherein the large current power-on time is the duration during which the current of the electric energy meter reaches the maximum current, and the device comprises: An acquisition module, used for acquiring the current current of the electric energy meter from the metering chip; A calculation module, configured to calculate a current electric energy compensation value according to a current high current power-on time and the compensation function if the current current reaches a maximum current; The compensation module is used to set the electric energy compensation coefficient in the metering chip according to the current electric energy compensation value, so that after the metering chip calculates the electric energy value of the electric energy meter, it compensates the electric energy value according to the electric energy compensation coefficient.

7. The device according to claim 6, characterized in that The compensation module is further used to convert the current electric energy compensation value into a first compensation coefficient according to a preset conversion formula; obtain the second compensation coefficient in the metering chip, calculate the electric energy compensation coefficient according to the first compensation coefficient and the second compensation coefficient, and set the electric energy compensation coefficient in the metering chip; wherein the second compensation coefficient is the electric energy compensation value of the electric energy meter in the initial state.

8. The device according to claim 6, characterized in that The acquisition module is further used to acquire the current current of the electric energy meter from the metering chip once every preset time period; The calculation module is also used to determine whether the current high current power-on time is a multiple of a preset value if the current current reaches the maximum current; if the current high current power-on time is a multiple of the preset value, the current electric energy compensation value is calculated based on the current high current power-on time, the preset value and the compensation function.

9. An electric energy meter, characterized in that: The method comprises a single chip microcomputer and a metering chip, wherein the single chip microcomputer is communicatively connected with the metering chip, and the single chip microcomputer can execute a computer program to implement the method described in any one of claims 1 to 5.

10. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a single chip microcomputer, the method described in any one of claims 1 to 5 is implemented.