Measuring terminal precision correction method, device, electronic equipment and storage medium
By obtaining the ambient temperature of the metering terminal, using high temperature, low temperature and normal temperature correction parameters to calculate the compensation coefficient, and correcting the electric energy value detected by the metering terminal, the problem of detection deviation in extreme environments is solved, and accuracy is improved and cost savings are achieved.
Patent Information
- Application Number
- CN202211013317.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-08-23
- Publication Date
- 2025-09-12
- Estimated Expiration
- 2042-08-23
AI Technical Summary
In extreme environments, metering terminals may experience detection deviations due to low component precision. Existing technologies make it difficult to reduce detection deviations without changing components.
By obtaining the temperature of the environment where the metering terminal is located, the corresponding compensation coefficient is calculated using the high temperature, low temperature and normal temperature correction parameters, and the detected electric energy value is corrected, including voltage and current compensation, to achieve the output of the actual electric energy value.
Without changing the components of the metering terminal, the detection deviation is reduced, the detection accuracy of the metering terminal is improved, and the hardware cost is saved.
Smart Images

Figure CN115372885B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of power electronics, and in particular to a method, device, electronic equipment and storage medium for correcting the accuracy of a metering terminal. Background Art
[0002] Metering terminals in power systems are multifunctional electronic products that integrate metering, meter reading, and communication functions. They are generally used to collect meter data or grid energy data. Metering terminals are common electronic products, and their electronic components are not high-precision. With climate change, extreme weather events are becoming more frequent.
[0003] Due to the low precision of the components of the metering terminal, the metering terminal is affected in extreme environments, resulting in output value storage deviation. Therefore, a method is urgently needed to reduce the detection deviation without changing the components of the metering terminal. Summary of the Invention
[0004] In view of this, an object of the present invention is to provide a method, device, electronic device and storage medium for correcting the accuracy of a metering terminal, which can reduce the detection deviation of the metering terminal without changing the components of the metering terminal.
[0005] In order to achieve the above objectives, the technical solutions adopted in the embodiments of the present invention are as follows:
[0006] In a first aspect, an embodiment of the present invention provides a method for correcting the accuracy of a metering terminal, which is applied to a metering terminal connected to a power grid, wherein the metering terminal stores high-temperature correction parameters, low-temperature correction parameters, and normal-temperature correction parameters. The method includes:
[0007] Obtaining the current temperature of the environment in which the metering terminal is located, and determining the current temperature;
[0008] If the current temperature is higher than the high temperature threshold, a high temperature compensation coefficient of the current temperature is obtained according to the high temperature correction parameter and the normal temperature correction parameter, and the detected electric energy value collected by the metering terminal is corrected in combination with the high temperature compensation coefficient to obtain and output the actual electric energy value;
[0009] If the current temperature is lower than the low temperature threshold, a low temperature compensation coefficient for the current temperature is obtained according to the low temperature correction parameter and the normal temperature correction parameter, and the detected electric energy value collected by the metering terminal is corrected in combination with the low temperature compensation coefficient to obtain and output the actual electric energy value;
[0010] If the current temperature is within the normal temperature range, the detected electric energy value collected by the metering terminal is corrected according to the normal temperature correction parameter to obtain and output the actual electric energy value.
[0011] Furthermore, the method further comprises:
[0012] In environments where the temperature is normal temperature, low temperature and high temperature, correction parameters of the metering terminal are obtained and stored based on the comparison results of the detected electric energy value of the metering terminal with the preset standard electric energy value, and the correction parameters include high temperature correction parameters, low temperature correction parameters and normal temperature correction parameters.
[0013] Furthermore, the step of obtaining the calibration parameters of the metering terminal according to the comparison results of the detected electric energy value of the metering terminal with the preset standard electric energy value under the environments of normal temperature, low temperature and high temperature respectively includes:
[0014] In an environment where the temperature is normal temperature, obtaining a detection electric energy value collected by the metering terminal, calculating a difference between a preset standard electric energy value and the detection electric energy value, and using a ratio between the difference and the standard electric energy value as a first correction value;
[0015] In an environment where the temperature is low temperature, obtaining a detection electric energy value collected by the metering terminal, calculating a difference between the standard electric energy value and the detection electric energy value, and using a ratio between the difference and the standard electric energy value as a low temperature correction parameter;
[0016] In an environment where the temperature is a high temperature value, obtaining a detection electric energy value collected by the metering terminal, calculating a difference between the standard electric energy value and the detection electric energy value, and using a ratio between the difference and the standard electric energy value as a high temperature correction parameter;
[0017] Again, in an environment where the temperature is the normal temperature value, obtaining the detection electric energy value collected by the metering terminal, calculating the difference between the standard electric energy value and the detection electric energy value, and using the ratio between the difference and the standard electric energy value as a first correction value;
[0018] A normal temperature correction parameter is obtained according to the first correction value and the second correction value.
[0019] Furthermore, the high temperature compensation coefficient includes a voltage compensation coefficient and a current compensation coefficient;
[0020] The step of obtaining the high temperature compensation coefficient of the current temperature according to the high temperature correction parameter and the normal temperature correction parameter includes:
[0021] Based on the high temperature correction parameter and the normal temperature correction parameter, a high temperature correction line is fitted; wherein the high temperature correction line has temperature as the x-axis and the correction parameter as the y-axis; the high temperature correction line includes a voltage correction line and a current correction line;
[0022] The slope of the voltage correction line at the current temperature is used as a voltage compensation coefficient, and the slope of the current correction line at the current temperature is used as a current compensation coefficient.
[0023] Furthermore, the step of correcting the detected electric energy value collected by the metering terminal in combination with the high temperature compensation coefficient to obtain the actual electric energy value includes:
[0024] Calculating the product of the voltage compensation coefficient and the detection voltage value currently collected by the metering terminal, and adding the product to the detection voltage value to obtain an actual voltage value;
[0025] The product of the current compensation coefficient and the detection current value currently collected by the metering terminal is calculated, and the product is added to the detection current value to obtain the actual current value.
[0026] Furthermore, the low temperature compensation coefficient includes a voltage compensation coefficient and a current compensation coefficient;
[0027] The step of obtaining the low-temperature compensation coefficient of the current temperature according to the low-temperature correction parameter and the normal-temperature correction parameter includes:
[0028] Based on the low-temperature correction parameter and the normal-temperature correction parameter, a low-temperature correction line is fitted, wherein the low-temperature correction line has temperature as an x-axis and the correction parameter as a y-axis; the low-temperature correction line includes a voltage correction line and a current correction line;
[0029] The slope of the voltage correction line at the current temperature is used as a voltage compensation coefficient, and the slope of the current correction line at the current temperature is used as a current compensation coefficient.
[0030] Furthermore, the step of correcting the detected electric energy value collected by the metering terminal in combination with the low temperature compensation coefficient to obtain the actual electric energy value includes:
[0031] Calculating the product of the voltage compensation coefficient and the detection voltage value currently collected by the metering terminal, and adding the product to the detection voltage value to obtain an actual voltage value;
[0032] The product of the current compensation coefficient and the detection current value currently collected by the metering terminal is calculated, and the product is added to the detection current value to obtain the actual current value.
[0033] In a second aspect, an embodiment of the present invention provides a metering terminal accuracy correction device, which is applied to a metering terminal connected to a power grid. The metering terminal stores high-temperature correction parameters, low-temperature correction parameters, and normal-temperature correction parameters. The device includes a temperature acquisition module, a high-temperature correction module, a low-temperature correction module, and a normal-temperature correction module.
[0034] The temperature acquisition module is used to obtain the current temperature of the environment in which the metering terminal is located and to determine the current temperature;
[0035] The high-temperature correction module is configured to obtain a high-temperature compensation coefficient for the current temperature based on the high-temperature correction parameter and the normal-temperature correction parameter if the current temperature is higher than the high-temperature threshold, and to correct the detected electric energy value collected by the metering terminal in combination with the high-temperature compensation coefficient to obtain and output an actual electric energy value;
[0036] The low-temperature correction module is configured to obtain a low-temperature compensation coefficient for the current temperature based on the low-temperature correction parameter and the normal-temperature correction parameter if the current temperature is lower than the low-temperature threshold, and to correct the detected electric energy value collected by the metering terminal in combination with the low-temperature compensation coefficient to obtain and output an actual electric energy value;
[0037] The normal temperature correction module is used to correct the detected electric energy value collected by the metering terminal according to the normal temperature correction parameter if the current temperature is within the normal temperature range, and obtain and output the actual electric energy value.
[0038] In a third aspect, an embodiment of the present invention provides an electronic device, comprising a processor and a memory, wherein the memory stores a computer program that can be executed by the processor, and the processor can execute the computer program to implement the metering terminal accuracy correction method as described in the first aspect.
[0039] In a fourth aspect, an embodiment of the present invention provides a storage medium having a computer program stored thereon, wherein the computer program, when executed by a processor, implements the method for correcting the accuracy of a metering terminal as described in the first aspect.
[0040] The metering terminal accuracy correction method, device, electronic device and storage medium provided in the embodiments of the present invention, after obtaining the current temperature of the environment in which the metering terminal is located, obtain the compensation amount (high temperature compensation coefficient, low temperature compensation coefficient or normal temperature correction parameter) corresponding to the current temperature under the corresponding temperature attribute according to the temperature attribute of the current temperature (high temperature, low temperature or normal temperature), and correct the detected electric energy value collected by the metering terminal to obtain and output the actual electric energy value, so as to realize the correction of the detected electric energy value of the metering terminal without changing the components of the metering terminal, thereby reducing the detection deviation of the metering terminal.
[0041] In order to make the above-mentioned objects, features and advantages of the present invention more obvious and easy to understand, preferred embodiments are given below and described in detail with reference to the accompanying drawings. BRIEF DESCRIPTION OF THE DRAWINGS
[0042] In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the following briefly introduces the drawings required for use in the embodiments. It should be understood that the following drawings only illustrate certain embodiments of the present invention and therefore should not be regarded as limiting the scope. For ordinary technicians in this field, other relevant drawings can be obtained based on these drawings without paying any creative work.
[0043] Figure 1 A block diagram of a metering terminal accuracy correction system provided by an embodiment of the present invention is shown.
[0044] Figure 2 One of the flow charts of the method for correcting the accuracy of a metering terminal provided in an embodiment of the present invention is shown.
[0045] Figure 3 The second flowchart of the method for correcting the accuracy of a metering terminal provided in an embodiment of the present invention is shown.
[0046] Figure 4 Shown Figure 3 Flow chart of some sub-steps of step S11.
[0047] Figure 5 It's out Figure 2 or Figure 3 Schematic diagram of the flow of some sub-steps of step S14.
[0048] Figure 6 It's out Figure 2 or Figure 3 Schematic diagram of the flow of some sub-steps of step S16.
[0049] Figure 7 1 is a block diagram of a metering terminal accuracy correction device provided in an embodiment of the present invention.
[0050] Figure 8 FIG. 1 is a block diagram of an electronic device provided by an embodiment of the present invention.
[0051] Figure numerals: 100 - measurement terminal precision correction system; 110 - measurement terminal; 120 - high and low temperature box; 130 - standard platform; 140 - measurement terminal precision correction device; 150 - temperature acquisition module; 160 - high temperature correction module; 170 - low temperature correction module; 180 - normal temperature correction module; 190 - electronic equipment. DETAILED DESCRIPTION
[0052] The following will be combined with the accompanying drawings to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only some embodiments of the present invention, not all embodiments. Generally, the components of the embodiments of the present invention described and shown in the drawings herein can be arranged and designed in various different configurations.
[0053] Therefore, the following detailed description of the embodiments of the present invention provided in the accompanying drawings is not intended to limit the scope of the invention as claimed, but is merely intended to represent selected embodiments of the present invention. All other embodiments obtained by those skilled in the art based on the embodiments of the present invention without creative work are within the scope of protection of the present invention.
[0054] 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 actual relationship or order between these entities or operations. Moreover, the terms "comprises," "comprising," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, method, article, or apparatus comprising a series of elements includes not only those elements, but also other elements not explicitly listed, or elements inherent to such process, method, article, or apparatus. In the absence of further limitations, an element defined by the phrase "comprising a ..." does not exclude the presence of additional identical elements in the process, method, article, or apparatus comprising the element.
[0055] Metering terminals are common electronic products, and their components are not high-precision. With climate change, extreme weather conditions are becoming increasingly frequent. Due to the low precision of these components, their performance is affected by temperature in extreme environments, leading to deviations in their detection performance. Therefore, a method is urgently needed to reduce detection deviations without modifying the components of the metering terminals.
[0056] Based on the above considerations, an embodiment of the present invention provides a metering terminal accuracy correction solution that can reduce detection deviation without changing the components of the metering terminal. The following describes this solution from the perspective of the metering terminal accuracy correction method.
[0057] The method for correcting the accuracy of a metering terminal provided by the embodiment of the present invention can be applied to Figure 1 In the metering terminal accuracy correction system 100 shown, the system includes a metering terminal 110 connected to the power grid, a high and low temperature box 120 and a standard platform 130, and the metering terminal 110 can be connected to the standard platform 130 in a wired or wireless manner.
[0058] The standard platform 130 is used to output the standard electric energy value that the metering terminal 110 should output to the metering terminal. The standard electric energy value includes but is not limited to a standard voltage value and a standard current value.
[0059] It should be noted that, for different metering terminals 110 , the standard platform 130 can output different standard electric energy values, that is, different metering terminals can have different standard electric energy values.
[0060] When calibrating the metering terminal 110, the metering terminal 110 is placed in a high and low temperature box 120 to simulate a normal temperature environment, a high temperature environment and a low temperature environment, and then the detection value of the metering terminal 110 is calibrated in the normal temperature environment, the high temperature environment and the low temperature environment respectively to obtain normal temperature correction parameters, low temperature correction parameters and high temperature correction parameters, and the normal temperature correction parameters are stored in the normal temperature storage area of the register of the metering terminal 110, the low temperature correction parameters are stored in the low temperature storage area of the register of the metering terminal 110, and the high temperature correction parameters are stored in the high temperature storage area of the register of the metering terminal 110.
[0061] The metering terminal 110 can be calibrated before leaving the factory, so that when the metering terminal 110 is put into use, it can calibrate the detected electric energy value collected by itself based on the normal temperature correction parameters, low temperature correction parameters and normal temperature correction parameters pre-stored in the register to obtain and output a more accurate detected electric energy value.
[0062] In one embodiment, reference Figure 2 , provides a measurement terminal accuracy correction method, in this embodiment, the measurement terminal accuracy correction method is applied to Figure 1 Taking the metering terminal 110 in FIG. 1 as an example, the following steps may be included.
[0063] S12, obtaining the current temperature of the environment where the metering terminal is located, and determining the current temperature.
[0064] The metering terminal may include a temperature sensor, which can be used to collect the real-time temperature of the surrounding environment. Alternatively, a temperature detection device may be provided in conjunction with the metering terminal, and the temperature detection device and the metering terminal may be co-located, so that the temperature detection device detects the ambient temperature in real time and transmits the ambient temperature to the metering terminal.
[0065] S14, if the current temperature is higher than the high temperature threshold, a high temperature compensation coefficient of the current temperature is obtained according to the high temperature correction parameter and the normal temperature correction parameter, and the detected electric energy value collected by the metering terminal is corrected in combination with the high temperature compensation coefficient to obtain and output the actual electric energy value.
[0066] S16, if the current temperature is lower than the low temperature threshold, a low temperature compensation coefficient of the current temperature is obtained according to the low temperature correction parameter and the normal temperature correction parameter, and the detected electric energy value collected by the metering terminal is corrected in combination with the low temperature compensation coefficient to obtain and output the actual electric energy value.
[0067] S18: If the current temperature is within the normal temperature range, the detected electric energy value collected by the metering terminal is corrected according to the normal temperature correction parameter to obtain and output the actual electric energy value.
[0068] The normal temperature range, low temperature threshold, and high temperature threshold are all pre-set values. For example, the normal temperature range may be between -15°C and 55°C, the low temperature threshold may be -15°C, and the high temperature threshold may be 55°C. It should be understood that different normal temperature ranges, low temperature thresholds, and high temperature thresholds may be used for different application scenarios.
[0069] For example, at time t, metering terminal 110 collects data from the connected power grid to obtain a detected energy value. Simultaneously, metering terminal 110 obtains the current temperature of the environment in which the metering terminal is located via a temperature sensor. After determining the current temperature, if it is between -15°C and 55°C (normal temperature range), metering terminal 110 reads a normal temperature correction parameter from the normal temperature storage area of the register, corrects the detected energy value based on the normal temperature correction parameter, and outputs the actual energy value.
[0070] If the current temperature is lower than -15°C (low temperature threshold), the metering terminal 110 reads the normal temperature correction parameter and the low temperature correction parameter from the normal temperature storage area and the low temperature storage area of the register respectively, and obtains the low temperature compensation coefficient at the current temperature based on the low temperature correction parameter and the normal temperature correction parameter, and corrects the detected electric energy value in combination with the low temperature compensation coefficient to obtain the actual electric energy value, and outputs the actual electric energy value.
[0071] If the current temperature is higher than 55°C (high temperature threshold), the metering terminal 110 reads the normal temperature correction parameter and the high temperature correction parameter from the normal temperature storage area and the high temperature storage area of the register respectively, and obtains the high temperature compensation coefficient at the current temperature based on the high temperature correction parameter and the normal temperature correction parameter, and corrects the detected electric energy value in combination with the high temperature compensation coefficient to obtain the actual electric energy value, and outputs the actual electric energy value.
[0072] Through the above steps S12-S18, the detected electric energy value of the metering terminal can be corrected without changing the components of the metering terminal, thereby reducing the detection deviation of the metering terminal and saving hardware costs.
[0073] The acquisition method of the normal temperature correction parameter, low temperature correction parameter and high temperature correction parameter used in the above S12-S18 can be flexibly set. For example, it can be a value set based on historical experience or a value obtained after actual experiment. This embodiment does not specifically limit it. In one embodiment, refer to Figure 3 The metering terminal accuracy correction method provided by the embodiment of the present invention further includes step S11, which obtains normal temperature correction parameters, low temperature correction parameters and high temperature correction parameters.
[0074] S11 , obtaining and storing calibration parameters of the metering terminal according to comparison results of the detected electric energy value of the metering terminal with a preset standard electric energy value under environments of normal temperature, low temperature, and high temperature, respectively.
[0075] The correction parameters include high temperature correction parameters, low temperature correction parameters and normal temperature correction parameters. After obtaining the high temperature correction parameters, low temperature correction parameters and normal temperature correction parameters, the high temperature correction parameters, low temperature correction parameters and normal temperature correction parameters are respectively stored in the high temperature storage area, low temperature storage area and normal temperature storage area of the register of the metering terminal.
[0076] The detection capability of the metering terminal is mainly related to the performance of the components. The performance of the components will be affected by temperature. After the metering terminal is calibrated in high temperature environment and low temperature environment, the performance of the components of the metering terminal will be affected by the high temperature environment and low temperature environment, thereby affecting the detection performance of the metering terminal in the normal temperature environment. In order to ensure the accuracy of the normal temperature calibration parameters to a certain extent, in one embodiment, the idea of reverse adjustment is introduced in the process of obtaining the high temperature calibration parameters, low temperature calibration parameters and normal temperature calibration parameters of the metering terminal. For details, refer to Figure 4 , the above step S11 may include the following steps.
[0077] S111, in an environment where the temperature is normal temperature, obtain a detection electric energy value collected by a metering terminal, calculate a difference between a preset standard electric energy value and the detection electric energy value, and use a ratio between the difference and the standard electric energy value as a first correction value.
[0078] In actual applications, if the metering terminal is calibrated only in a normal temperature environment, that is, only step S111 is performed, the first correction value obtained will be stored as a normal temperature correction parameter in the normal temperature storage area of the metering terminal register. At the same time, the normal temperature correction parameter will be backed up and stored in the high temperature storage area and the low temperature storage area of the register respectively, so that the normal temperature correction parameter can be used as the correction parameter of the metering terminal in high temperature environment and low temperature environment.
[0079] S112, in an environment where the temperature is low temperature, obtaining the detection electric energy value collected by the metering terminal, calculating the difference between the standard electric energy value and the detection electric energy value, and using the ratio between the difference and the standard electric energy value as a low temperature correction parameter.
[0080] S113, in an environment where the temperature is a high temperature value, obtaining the detection electric energy value collected by the metering terminal, calculating the difference between the standard electric energy value and the detection electric energy value, and using the ratio between the difference and the standard electric energy value as a high temperature correction parameter.
[0081] S114, again in an environment where the temperature is normal temperature, obtaining the detection electric energy value collected by the metering terminal, calculating the difference between the standard electric energy value and the detection electric energy value, and taking the ratio between the difference and the standard electric energy value as the first correction value.
[0082] S115, obtaining a normal temperature correction parameter according to the first correction value and the second correction value.
[0083] The standard electric energy value includes, but is not limited to, a standard current value and a standard voltage value, and the detected electric energy value also includes, but is not limited to, a detected current value and a detected voltage value. The normal temperature correction parameters thus obtained include, but are not limited to, voltage correction parameters and current correction parameters, the high temperature correction parameters include, but are not limited to, voltage correction parameters and current correction parameters, and the low temperature correction parameters include, but are not limited to, voltage correction parameters and current correction parameters. Furthermore, the normal temperature value, high temperature value, and low temperature value are all set values, and the normal temperature value, high temperature value, and low temperature value can each have only one value (i.e., the normal temperature value has only one value, the low temperature value has only one value, and the high temperature value has only one value), or can each have two or more values.
[0084] When the normal temperature value, high temperature value and low temperature value each have only one value, there is only one set of normal temperature correction parameters, high temperature correction parameters and low temperature correction parameters, that is, there is only one current correction value and voltage correction value of the normal temperature correction parameters, high temperature correction parameters and low temperature correction parameters.
[0085] Taking the normal temperature of 25°C, the low temperature of -40°C and the high temperature of 70°C as an example, first set the voltage value, current value and other electrical energy values for the standard body 130 according to customer needs, and calibrate the ABC three-phase electrical energy values of the standard body 130 with the set voltage value, current value and other electrical energy values. After the calibration is completed, the standard body 130 outputs electrical energy values such as voltage value, current value and power value in a resistive environment, that is, outputs standard electrical energy values, so that the metering terminal obtains the standard electrical energy value.
[0086] After the temperature of the high and low temperature box 120 is adjusted to 25° C., the metering terminal 110 connected to the power grid is placed in the high and low temperature box 120 and enters the normal temperature calibration mode.
[0087] In normal temperature calibration mode, metering terminal 110 samples the power grid and obtains power detection values for the three phases connected to the grid, with the angle between phases A, B, and C being zero. Power correction parameters are then derived based on the difference between the detected power values and the standard power values for each phase. Next, using the same principle, the phase angle of metering terminal 110 is corrected, typically selecting 0.5L, meaning the voltage-current angle is 60 degrees, for phase correction. Similarly, current and voltage correction parameters are derived based on the detected voltage and current values, the standard voltage, and the standard current errors, to produce a first correction value. This first correction value includes the current and voltage correction parameters.
[0088] The voltage correction parameter can be calculated as U err =(220-U) / 220*100%. Among them, U err Indicates voltage correction parameter, 220 is standard voltage value, and U is detection voltage value. Similarly, the calculation method of current correction parameter can also be I err =(I e -I) / I e *100%, where I err Indicates the current correction parameter, I err The calculation method of the correction parameters of other electric energy values is similar and will not be elaborated in detail in this embodiment.
[0089] After adjusting the temperature of the high and low temperature box 120 to -40°C, place the metering terminal 110 connected to the power grid into the high and low temperature box 120 and enter the low temperature calibration mode. In the low temperature calibration mode, the metering terminal 110 automatically calculates the difference (deviation) between the currently sampled detection electric energy value and the standard electric energy value. If the difference is large, for example, the standard voltage value is 220V and the detection voltage value is lower than 219.8, the ratio between the difference between the standard electric energy value and the detection electric energy value and the standard electric energy value is used as the low temperature correction parameter and saved in the low temperature storage area of the register. For example, the calculation formula of the voltage correction parameter is: U err =(220-219.8) / 220*100%. For the calculation formulas of other correction parameters, refer to the calculation method of the normal temperature correction parameters above.
[0090] Similarly, after adjusting the temperature of the high-low temperature chamber 120 to 70°C, the high-temperature calibration mode is entered. In high-temperature calibration mode, the metering terminal 110 automatically calculates the difference (deviation) between the currently sampled detected energy value and the standard energy value, and uses the ratio of this difference to the standard energy value as the low-temperature correction parameter, which is stored in the high-temperature storage area of the register. The calculation formulas for each correction parameter are described above.
[0091] After both high-temperature and low-temperature calibrations are completed, the temperature of the high-temperature and low-temperature chamber 120 is adjusted back to 25°C and the normal temperature calibration mode is entered to perform a reverse adjustment to the normal temperature. In the low-temperature calibration mode, the metering terminal 110 automatically calculates the difference (deviation) between the currently sampled detected electric energy value and the standard electric energy value. If the difference is less than or equal to the preset value, the second correction parameter is recorded as 0. If the difference is greater than the preset value, the second correction parameter is calculated according to the correction parameter calculation method. The first correction parameter and the second correction parameter are added together to obtain the normal temperature correction parameter, which is then stored in the normal temperature storage area of the register.
[0092] After executing steps S111-S115, the metering terminal is calibrated and ready for use. After being put into use, the metering terminal connected to the power grid corrects the electric energy value it collects based on the normal temperature correction parameters, low temperature correction parameters, and high temperature correction parameters stored in its register.
[0093] In one embodiment, in order to improve the detection accuracy of the metering terminal, in the process of obtaining the high temperature compensation coefficient using the high temperature correction parameter and the normal temperature correction parameter, the influence of different current temperatures is introduced. Figure 5 , the above step S14 may include the following sub-steps.
[0094] S141 , fitting a high temperature correction line based on the high temperature correction parameters and the normal temperature correction parameters.
[0095] The high-temperature correction line uses temperature as the x-axis and the correction parameter as the y-axis. Since both the high-temperature correction parameter and the normal-temperature correction parameter include correction values such as voltage correction parameters and current correction parameters, the high-temperature correction line can include both voltage correction lines and current correction lines, meaning that different correction values have their own correction lines.
[0096] S142 , using the slope of the voltage correction line at the current temperature as a voltage compensation coefficient, and using the slope of the current correction line at the current temperature as a current compensation coefficient.
[0097] It should be understood that when the high-temperature correction parameters are merely a set of correction parameters obtained after calibrating the metering terminal at a high temperature value, and the normal-temperature correction parameters are also merely a set of correction parameters obtained after calibrating the metering terminal at a normal temperature value, the high-temperature correction lines (i.e., the voltage correction line and the current correction line) are both straight lines. At this time, the slopes at any temperature are the same, that is, as long as the current temperature exceeds the high-temperature threshold, the high-temperature compensation coefficient is the same regardless of the degree.
[0098] When two or more sets of correction parameters are obtained after calibrating the metering terminal at at least two high temperature values of the high temperature correction parameter, the high temperature correction line (i.e., the voltage correction line and the current correction line) can be a curve. At this time, the slope at different temperatures may be different, that is, different temperatures exceeding the high temperature threshold have different high temperature compensation coefficients.
[0099] Through the above steps S141 and S142, a high-temperature compensation coefficient that conforms to the temperature change can be obtained at different temperatures according to the change of the high-temperature correction line, so that the change of the high-temperature compensation coefficient is more consistent with the law that the performance of the components of the metering terminal changes with temperature, thereby making the metering accuracy of the metering terminal more accurate in a high-temperature environment, thereby improving the performance of the metering terminal.
[0100] The high temperature compensation coefficient (including the voltage compensation coefficient and the current compensation coefficient) is obtained through the above steps S141 and S142, and the detected electric energy value collected by the metering terminal is corrected in combination with the high temperature compensation coefficient in the following manner to obtain the actual electric energy value: the product of the voltage compensation coefficient and the detected voltage value currently collected by the metering terminal is calculated, and the product is added to the detected voltage value to obtain the actual voltage value; the product of the current compensation coefficient and the detected current value currently collected by the metering terminal is calculated, and the product is added to the detected current value to obtain the actual current value.
[0101] In order to further improve the detection accuracy of the metering terminal, the influence of different current temperatures is introduced in the process of obtaining the low temperature compensation coefficient using the low temperature correction parameters and the normal temperature correction parameters. Figure 6 , the above step S16 may include the following sub-steps.
[0102] S161, fitting a low-temperature correction line based on the low-temperature correction parameters and the normal-temperature correction parameters.
[0103] The low-temperature correction line uses temperature as the x-axis and the correction parameter as the y-axis. Since both the low-temperature correction parameter and the normal-temperature correction parameter include correction values such as voltage correction parameters and current correction parameters, the low-temperature correction line can also include a voltage correction line and a current correction line, meaning that different correction values have their own correction lines.
[0104] S162 , using the slope of the voltage correction line at the current temperature as a voltage compensation coefficient, and using the slope of the current correction line at the current temperature as a current compensation coefficient.
[0105] It should be understood that when the low-temperature correction parameters are only a set of correction parameters obtained after calibrating the metering terminal at a low temperature value, and the low-temperature correction parameters are also only a set of correction parameters obtained after calibrating the metering terminal at a normal temperature value, the low-temperature correction lines (i.e., the voltage correction line and the current correction line) are both straight lines. At this time, the slope is the same at any temperature, that is, as long as the current temperature is lower than the low-temperature threshold, the low-temperature compensation coefficient is the same regardless of how many degrees it is.
[0106] When two or more sets of correction parameters are obtained after calibrating the metering terminal at at least two low temperature values of the low temperature correction parameters, the low temperature correction lines (i.e., the voltage correction line and the current correction line) can be curves. At this time, the slopes at different temperatures may be different, that is, different temperatures below the low temperature threshold have different low temperature compensation coefficients.
[0107] Through the above steps S161 and S162, a low-temperature compensation coefficient that conforms to the temperature change can be obtained at different temperatures according to the change of the low-temperature correction line, so that the change of the low-temperature compensation coefficient is more consistent with the law that the performance of the components of the metering terminal changes with temperature, thereby making the metering accuracy of the metering terminal more accurate in a low-temperature environment, thereby improving the performance of the metering terminal.
[0108] The low-temperature compensation coefficient (including the voltage compensation coefficient and the current compensation coefficient) is obtained through the above steps S161 and S162, and the detected electric energy value collected by the metering terminal is corrected in combination with the low-temperature compensation coefficient in the following manner to obtain the actual electric energy value: the product of the voltage compensation coefficient and the detected voltage value currently collected by the metering terminal is calculated, and the product is added to the detected voltage value to obtain the actual voltage value; the product of the current compensation coefficient and the detected current value currently collected by the metering terminal is calculated, and the product is added to the detected current value to obtain the actual current value.
[0109] When the current temperature of the metering terminal is within the normal temperature range, the method of correcting the detected electric energy value collected by the metering terminal to obtain the actual electric energy value in the above-mentioned step S18 may include: calculating the product of the voltage correction parameter and the detected voltage value currently collected by the metering terminal, adding the product to the detected voltage value, and obtaining the actual voltage value; calculating the product of the current correction parameter and the detected current value currently collected by the metering terminal, and adding the product to the detected current value to obtain the actual current value.
[0110] It should be understood that, under normal temperature conditions, the current correction parameter and the voltage correction parameter are both values within the normal temperature correction parameters.
[0111] The metering terminal accuracy correction method provided in an embodiment of the present invention, without changing the electronic components of the metering terminal, obtains compensation coefficients for the metering terminal at high temperature, low temperature, and normal temperature based on the characteristics of the correction parameters affected by the performance changes of the electronic components at different temperatures. The detected electric energy values collected by the metering terminal are corrected according to the compensation coefficients, which can correct the deviation of the metering terminal and improve the detection accuracy of the metering terminal.
[0112] Based on the concept of the above-mentioned measurement terminal accuracy correction method, in one embodiment, referring to Figure 7 , provides a measurement terminal accuracy correction device 140, which can be applied to Figure 1 The metering terminal 110 in the embodiment stores high temperature correction parameters, low temperature correction parameters, and normal temperature correction parameters. The metering terminal accuracy correction device 140 may include a temperature acquisition module 150, a high temperature correction module 160, a low temperature correction module 170, and a normal temperature correction module 180.
[0113] The temperature acquisition module 150 is used to acquire the current temperature of the environment in which the metering terminal is located and to determine the current temperature.
[0114] The high temperature correction module 160 is used to obtain a high temperature compensation coefficient for the current temperature based on the high temperature correction parameter and the normal temperature correction parameter if the current temperature is higher than the high temperature threshold, and to correct the detected electric energy value collected by the metering terminal in combination with the high temperature compensation coefficient to obtain and output the actual electric energy value.
[0115] The low-temperature correction module 170 is used to obtain a low-temperature compensation coefficient for the current temperature based on the low-temperature correction parameter and the normal-temperature correction parameter if the current temperature is lower than the low-temperature threshold, and to correct the detected electric energy value collected by the metering terminal in combination with the low-temperature compensation coefficient to obtain and output the actual electric energy value.
[0116] The normal temperature correction module 180 is used to correct the detected electric energy value collected by the metering terminal according to the normal temperature correction parameter if the current temperature is within the normal temperature range, and obtain and output the actual electric energy value.
[0117] In the above-mentioned metering terminal accuracy correction device 140, through the coordinated action of the temperature acquisition module 150, the high temperature correction module 160, the low temperature correction module 170 and the normal temperature correction module 180, the detected electric energy value of the metering terminal can be corrected without changing the components of the metering terminal, thereby reducing the detection deviation of the metering terminal.
[0118] The specific definitions of the metering terminal accuracy correction device 140 can be found in the definitions of the metering terminal accuracy correction method described above and will not be repeated here. Each module within the aforementioned metering terminal accuracy correction device 140 can be implemented in whole or in part via software, hardware, or a combination thereof. Each of these modules can be embedded in or independent of a processor within an electronic device in hardware form, or stored in the electronic device's memory as software, allowing the processor to call and execute the corresponding operations of each module.
[0119] In one embodiment, an electronic device 190 is provided. The electronic device may be a metering terminal, and its internal structure may be as shown in FIG. Figure 8 As shown. The electronic device 190 includes a processor, a memory, a communication interface, a display screen and an input device connected via a system bus. Among them, the processor of the electronic device 190 is used to provide computing and control capabilities. The memory of the electronic device 190 includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system and a computer program. The internal memory provides an environment for the operation of the operating system and computer program in the non-volatile storage medium. The communication interface of the electronic device 190 is used to communicate with an external terminal in a wired or wireless manner. The wireless manner can be implemented through WIFI, an operator network, near field communication (NFC) or other technologies. When the computer program is executed by the processor, the metering terminal accuracy correction method improved as described in the above embodiment is implemented.
[0120] Figure 8 The structure shown in the figure is only a block diagram of a part of the structure related to the solution of the present invention, and does not constitute a limitation on the electronic device to which the solution of the present invention is applied. The specific electronic device may include Figure 8 More or fewer components may be shown, or some components may be combined, or the components may be arranged differently.
[0121] In one embodiment, the metering terminal accuracy correction device 140 provided by the present invention can be implemented in the form of a computer program. The computer program can be used in Figure 8 The electronic device 190 shown in FIG. 1 is executed. The memory of the electronic device 190 may store various program modules constituting the metering terminal accuracy correction device 140, such as: Figure 7 The temperature acquisition module 150, high temperature correction module 160, low temperature correction module 170 and normal temperature correction module 180 are shown. The computer program composed of each program module enables the processor to execute the steps of the measurement terminal accuracy correction method described in this specification.
[0122] For example, Figure 8 The electronic device 190 shown may be Figure 7The temperature acquisition module 150 in the metering terminal accuracy correction device 140 shown in FIG. performs step S12. The electronic device 190 can perform step S14 through the high temperature correction module 160. The electronic device 190 can perform step S16 through the low temperature correction module 170. The electronic device 190 can perform step S18 through the normal temperature correction module 180.
[0123] In one embodiment, an electronic device is provided, comprising a memory and a processor, wherein the memory stores a computer program, and the processor implements the following steps when executing the computer program: obtaining the current temperature of the environment in which the metering terminal is located, and judging the current temperature; if the current temperature is higher than a high temperature threshold, obtaining a high temperature compensation coefficient for the current temperature according to a high temperature correction parameter and a normal temperature correction parameter, and correcting the detected electric energy value collected by the metering terminal in combination with the high temperature compensation coefficient to obtain and output an actual electric energy value; if the current temperature is lower than a low temperature threshold, obtaining a low temperature compensation coefficient for the current temperature according to the low temperature correction parameter and the normal temperature correction parameter, and correcting the detected electric energy value collected by the metering terminal in combination with the low temperature compensation coefficient to obtain and output an actual electric energy value; if the current temperature is within the normal temperature range, correcting the detected electric energy value collected by the metering terminal according to the normal temperature correction parameter to obtain and output an actual electric energy value.
[0124] 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: obtaining the current temperature of the environment in which the metering terminal is located and judging the current temperature; if the current temperature is higher than a high temperature threshold, obtaining a high temperature compensation coefficient for the current temperature according to a high temperature correction parameter and a normal temperature correction parameter, and correcting the detected electric energy value collected by the metering terminal in combination with the high temperature compensation coefficient to obtain and output an actual electric energy value; if the current temperature is lower than a low temperature threshold, obtaining a low temperature compensation coefficient for the current temperature according to the low temperature correction parameter and the normal temperature correction parameter, and correcting the detected electric energy value collected by the metering terminal in combination with the low temperature compensation coefficient to obtain and output an actual electric energy value; if the current temperature is within the normal temperature range, correcting the detected electric energy value collected by the metering terminal according to the normal temperature correction parameter to obtain and output an actual electric energy value.
[0125] In the several embodiments provided by the present invention, it should be understood that the disclosed devices and methods can also be implemented in other ways. The device embodiments described above are merely illustrative. For example, the flowcharts and block diagrams in the accompanying drawings show the possible architectures, functions, and operations of the devices, methods, and computer program products according to multiple embodiments of the present invention. In this regard, each box in the flowchart or block diagram can represent a module, program segment, or part of the code, which contains one or more executable instructions for implementing the specified logical functions. It should also be noted that in some alternative implementations, the functions marked in the boxes can also occur in an order different from that 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, as well as the combination of boxes in the block diagram and / or flowchart, can be implemented using a dedicated hardware-based system that performs the specified functions or actions, or can be implemented using a combination of dedicated hardware and computer instructions.
[0126] In addition, the functional modules in the various embodiments of the present invention may be integrated together to form an independent part, or each module may exist independently, or two or more modules may be integrated to form an independent part.
[0127] 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 invention, or the part that contributes to the prior art, or the part of the technical solution, can be embodied in the form of a software product. The computer software product is stored in a storage medium and includes several instructions for enabling a computer device (which can be a personal computer, server, or network device, etc.) to execute all or part of the steps of the method described in each embodiment of the present invention. 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.
[0128] The foregoing description is merely a preferred embodiment of the present invention and is not intended to limit the present invention. Those skilled in the art will readily appreciate that various modifications and variations of the present invention are possible. Any modifications, equivalent substitutions, or improvements made within the spirit and principles of the present invention are intended to be within the scope of protection of the present invention.
Claims
1. A method for correcting the accuracy of a measurement terminal, characterized in that: A method for a metering terminal connected to a power grid, wherein the metering terminal stores high-temperature correction parameters, low-temperature correction parameters, and normal-temperature correction parameters, includes: In an environment where the temperature is normal temperature, according to the comparison result of the detected electric energy value of the metering terminal and the preset standard electric energy value, the normal temperature correction parameter of the metering terminal is obtained and stored, including: in an environment where the temperature is normal temperature, obtaining the detected electric energy value collected by the metering terminal, calculating the difference between the preset standard electric energy value and the detected electric energy value, and taking the ratio between the difference and the standard electric energy value as the first correction value; in an environment where the temperature is low temperature, obtaining the detected electric energy value collected by the metering terminal, calculating the difference between the standard electric energy value and the detected electric energy value, taking the ratio between the difference and the standard electric energy value as the low temperature correction parameter, and storing the low temperature correction parameter; in an environment where the temperature is low temperature, obtaining the detected electric energy value collected by the metering terminal, calculating the difference between the standard electric energy value and the detected electric energy value, and taking the ratio between the difference and the standard electric energy value as the low temperature correction parameter, and storing the low temperature correction parameter. In an environment with a high temperature value, obtaining the detected electric energy value collected by the metering terminal, calculating the difference between the standard electric energy value and the detected electric energy value, using the ratio between the difference and the standard electric energy value as a high temperature correction parameter, and storing the high temperature correction parameter; again in an environment with a temperature of the normal temperature value, obtaining the detected electric energy value collected by the metering terminal, calculating the difference between the standard electric energy value and the detected electric energy value, and using the ratio between the difference and the standard electric energy value as a second correction value; if the difference is less than or equal to a preset value, recording the second correction value as 0; if the difference is greater than the preset value, adding the first correction value and the second correction value to obtain and store the normal temperature correction parameter; Obtaining the current temperature of the environment in which the metering terminal is located, and determining the current temperature; If the current temperature is higher than the high temperature threshold, a high temperature compensation coefficient of the current temperature is obtained according to the high temperature correction parameter and the normal temperature correction parameter, and the detected electric energy value collected by the metering terminal is corrected in combination with the high temperature compensation coefficient to obtain and output the actual electric energy value; If the current temperature is lower than the low temperature threshold, a low temperature compensation coefficient for the current temperature is obtained according to the low temperature correction parameter and the normal temperature correction parameter, and the detected electric energy value collected by the metering terminal is corrected in combination with the low temperature compensation coefficient to obtain and output the actual electric energy value; If the current temperature is within the normal temperature range, the detected electric energy value collected by the metering terminal is corrected according to the normal temperature correction parameter to obtain and output the actual electric energy value.
2. The method for correcting the accuracy of a metering terminal according to claim 1, characterized in that: The high temperature compensation coefficient includes a voltage compensation coefficient and a current compensation coefficient; The step of obtaining the high temperature compensation coefficient of the current temperature according to the high temperature correction parameter and the normal temperature correction parameter includes: Based on the high temperature correction parameter and the normal temperature correction parameter, a high temperature correction line is fitted; wherein the high temperature correction line has temperature as an x-axis and the correction parameter as a y-axis; the high temperature correction line includes a voltage correction line and a current correction line; The slope of the voltage correction line at the current temperature is used as a voltage compensation coefficient, and the slope of the current correction line at the current temperature is used as a current compensation coefficient.
3. The method for correcting the accuracy of a metering terminal according to claim 2, characterized in that: The step of correcting the detected electric energy value collected by the metering terminal in combination with the high temperature compensation coefficient to obtain and output the actual electric energy value includes: Calculating the product of the voltage compensation coefficient and the detection voltage value currently collected by the metering terminal, and adding the product to the detection voltage value to obtain an actual voltage value; The product of the current compensation coefficient and the detection current value currently collected by the metering terminal is calculated, and the product is added to the detection current value to obtain the actual current value.
4. The method for correcting the accuracy of a metering terminal according to claim 1, wherein: The low temperature compensation coefficient includes a voltage compensation coefficient and a current compensation coefficient; The step of obtaining the low-temperature compensation coefficient of the current temperature according to the low-temperature correction parameter and the normal-temperature correction parameter includes: Based on the low-temperature correction parameter and the normal-temperature correction parameter, a low-temperature correction line is fitted, wherein the low-temperature correction line has temperature as an x-axis and the correction parameter as a y-axis; the low-temperature correction line includes a voltage correction line and a current correction line; The slope of the voltage correction line at the current temperature is used as a voltage compensation coefficient, and the slope of the current correction line at the current temperature is used as a current compensation coefficient.
5. The method for correcting the accuracy of a metering terminal according to claim 4, characterized in that: The step of correcting the detected electric energy value collected by the metering terminal in combination with the low temperature compensation coefficient to obtain the actual electric energy value includes: Calculating the product of the voltage compensation coefficient and the detection voltage value currently collected by the metering terminal, and adding the product to the detection voltage value to obtain an actual voltage value; The product of the current compensation coefficient and the detection current value currently collected by the metering terminal is calculated, and the product is added to the detection current value to obtain the actual current value.
6. A measurement terminal accuracy correction device, characterized in that: A metering terminal connected to a power grid stores high-temperature correction parameters, low-temperature correction parameters, and normal-temperature correction parameters. The device includes a temperature acquisition module, a high-temperature correction module, a low-temperature correction module, and a normal-temperature correction module. In an environment where the temperature is normal temperature, according to the comparison result of the detected electric energy value of the metering terminal and the preset standard electric energy value, the normal temperature correction parameter of the metering terminal is obtained and stored, including: in an environment where the temperature is normal temperature, obtaining the detected electric energy value collected by the metering terminal, calculating the difference between the preset standard electric energy value and the detected electric energy value, and taking the ratio between the difference and the standard electric energy value as the first correction value; in an environment where the temperature is low temperature, obtaining the detected electric energy value collected by the metering terminal, calculating the difference between the standard electric energy value and the detected electric energy value, taking the ratio between the difference and the standard electric energy value as the low temperature correction parameter, and storing the low temperature correction parameter; in an environment where the temperature is low temperature, obtaining the detected electric energy value collected by the metering terminal, calculating the difference between the standard electric energy value and the detected electric energy value, and taking the ratio between the difference and the standard electric energy value as the low temperature correction parameter, and storing the low temperature correction parameter. In an environment with a high temperature value, obtaining the detected electric energy value collected by the metering terminal, calculating the difference between the standard electric energy value and the detected electric energy value, using the ratio between the difference and the standard electric energy value as a high temperature correction parameter, and storing the high temperature correction parameter; again in an environment with a temperature of the normal temperature value, obtaining the detected electric energy value collected by the metering terminal, calculating the difference between the standard electric energy value and the detected electric energy value, and using the ratio between the difference and the standard electric energy value as a second correction value; if the difference is less than or equal to a preset value, recording the second correction value as 0; if the difference is greater than the preset value, adding the first correction value and the second correction value to obtain and store the normal temperature correction parameter; The temperature acquisition module is used to obtain the current temperature of the environment in which the metering terminal is located and to determine the current temperature; The high-temperature correction module is configured to obtain a high-temperature compensation coefficient for the current temperature based on the high-temperature correction parameter and the normal-temperature correction parameter if the current temperature is higher than the high-temperature threshold, and to correct the detected electric energy value collected by the metering terminal in combination with the high-temperature compensation coefficient to obtain and output an actual electric energy value; The low-temperature correction module is configured to obtain a low-temperature compensation coefficient for the current temperature based on the low-temperature correction parameter and the normal-temperature correction parameter if the current temperature is lower than the low-temperature threshold, and to correct the detected electric energy value collected by the metering terminal in combination with the low-temperature compensation coefficient to obtain and output an actual electric energy value; The normal temperature correction module is used to correct the detected electric energy value collected by the metering terminal according to the normal temperature correction parameter if the current temperature is within the normal temperature range, and obtain and output the actual electric energy value.
7. An electronic device, characterized in that: The method comprises a processor and a memory, wherein the memory stores a computer program that can be executed by the processor, and the processor can execute the computer program to implement the metering terminal accuracy correction method according to any one of claims 1 to 5.
8. A storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the method for correcting the accuracy of a metering terminal according to any one of claims 1 to 5 is implemented.
Citation Information
Patent Citations
High-precision metering method and system of transformer area intelligent fusion terminal
CN112363001A
Clock calibration method, electronic equipment and readable storage medium
CN114859285A