CN116338564B - Metering precision temperature compensation method and system based on intelligent fusion terminal - Google Patents

Metering precision temperature compensation method and system based on intelligent fusion terminal Download PDF

Info

Publication number
CN116338564B
CN116338564B CN202310609163.9A CN202310609163A CN116338564B CN 116338564 B CN116338564 B CN 116338564B CN 202310609163 A CN202310609163 A CN 202310609163A CN 116338564 B CN116338564 B CN 116338564B
Authority
CN
China
Prior art keywords
temperature
compensation
fitting
metering
data
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202310609163.9A
Other languages
Chinese (zh)
Other versions
CN116338564A (en
Inventor
贺宁
张小秋
钱昱
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Nanjing Xinlian Electronics Co ltd
Original Assignee
Nanjing Xinlian Electronics Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Nanjing Xinlian Electronics Co ltd filed Critical Nanjing Xinlian Electronics Co ltd
Priority to CN202310609163.9A priority Critical patent/CN116338564B/en
Publication of CN116338564A publication Critical patent/CN116338564A/en
Application granted granted Critical
Publication of CN116338564B publication Critical patent/CN116338564B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G01MEASURING; TESTING
    • G01RMEASURING ELECTRIC VARIABLES; MEASURING MAGNETIC VARIABLES
    • G01R35/00Testing or calibrating of apparatus covered by the other groups of this subclass
    • G01R35/04Testing or calibrating of apparatus covered by the other groups of this subclass of instruments for measuring time integral of power or current

Abstract

The application relates to a metering precision temperature compensation method and a metering precision temperature compensation system based on an intelligent fusion terminal.

Description

Metering precision temperature compensation method and system based on intelligent fusion terminal
Technical Field
The application relates to the field of electric power information acquisition, in particular to temperature compensation of metering precision of an intelligent fusion terminal.
Background
The electric energy metering of the intelligent fusion terminal is to collect alternating current analog quantity, and temperature compensation is needed to be carried out on metering results in order to ensure the precision of the metering results under different working temperatures due to certain temperature drift of the characteristics of elements such as metering chips.
Common temperature compensation methods are mainly two major types, namely a circuit method and a software method. The circuit method mainly utilizes the temperature sensitive device such as a thermistor to compensate by matching with the circuit characteristic; the software method mainly comprises the steps of measuring temperature characteristics through a test, and carrying out compensation treatment through fitting, interpolation and other methods. The current metering precision temperature compensation method used in software comprises a rectangular method and a trapezoidal method. The compensation precision of the rectangular method and the trapezoidal method for metering depends on the density of the compensation points, the larger the density of the compensation points is, the higher the compensation precision is, more data points are required to be measured to reach the precision required by metering, and the compensation efficiency is low.
In the field of electric power information acquisition, along with popularization of intelligent terminals, electric energy metering data are acquired by using a special SOC (system on chip) on the intelligent fusion terminal, and the chip is provided with a temperature compensation related register, so that convenience is provided for temperature compensation, but a metering precision compensation method which is adaptive to the characteristics of the intelligent fusion terminal and has higher efficiency than that of the method is not provided.
Disclosure of Invention
The application aims to: the metering precision temperature compensation method based on the intelligent fusion terminal can ensure the metering precision after temperature compensation, can improve the working efficiency of temperature compensation, and can further improve the metering precision by directly adding a temperature compensation point under the condition of not modifying an algorithm model.
The technical scheme is as follows: the metering precision temperature compensation method based on the intelligent fusion terminal comprises the following steps of, for each metering device working for a preset time:
s1, adjusting a standard three-phase power source to a preset first power factor, acquiring corresponding data in preset temperature environments, respectively performing piecewise curve fitting, and storing parameters of each section of fitting curve into a memory;
s2, adjusting the standard three-phase power source to a preset second power factor, acquiring corresponding data in the preset temperature environments, obtaining corresponding fitting straight lines, and storing parameters of the obtained fitting straight lines into a memory.
According to one aspect of the present application, the step S1 is further:
s11, adjusting the temperature of a temperature box, and reading corresponding metering data in preset temperature environments;
s12, calculating the metering data to obtain corresponding data pairs, and performing quadratic curve fitting based on at least three continuous data pairs;
s13, calculating compensated metering data at each temperature by using the fitted quadratic curve, comparing the compensated metering data with theoretical values of the metering data to obtain corresponding errors, judging whether the errors are in a maximum operation error range, if so, conforming the fitted curve to the standard, and if so, not conforming the fitted curve to the standard; then, starting from the temperature, re-selecting successive at least three data pairs for new fitting;
s14, carrying out segment fitting on the curves meeting the standard at each temperature, determining parameters of each segment curve, listing the parameters into a matrix, and storing the parameters into a ferroelectric memory.
According to one aspect of the present application, the step S2 is further:
s21, adjusting the temperature of a temperature box, and reading corresponding metering data in the preset temperature environments;
s22, calculating the metering data to obtain corresponding data pairs, and determining a straight line by using at least two data pairs;
s23, calculating compensated metering data at different temperatures by using the determined straight line, comparing the compensated metering data with a theoretical value of the metering data to obtain corresponding errors, judging whether the errors are in a maximum operation error range, if so, conforming the straight line to a standard, if so, not conforming the straight line to the standard, inserting a temperature compensation point at the temperature, and respectively determining two straight lines between the point and two points adjacent to the point before and after the temperature compensation;
s24, carrying out segment fitting on the straight lines meeting the standard at different temperatures, determining parameters of each segment straight line, and storing the parameters into a ferroelectric memory in a matrix.
According to one aspect of the application, the step S12 specifically includes:
s12a, the temperature compensation range is-40 ℃ to-70 ℃, n temperature compensation points are selected in the temperature range and respectively recorded as the temperature t i I=1, 2, ·n, the theoretical value of the metering data is set to V; n is a natural number;
s12b, adjusting the temperature of the temperature box to be respectively at the temperature t i Measuring at the position to obtain actual metering data R at different temperatures i A first accuracy compensation value delta for each temperature point i =V-R i
S12c, obtaining i data pairs (t i ,Δδ i ) Using a conic delta (t) =at for consecutive 3 data pairs 2 +bt+c fitting, aAnd b and c are equation coefficients.
According to one aspect of the application, the step S14 specifically includes:
s14a, temperature t i Performing segment fitting, and respectively recording a of K groups of curve parameters obtained by all fitting k 、b k 、c k The temperature compensation parameter matrix is written as P:
,k∈K, K≤n/3;
the resulting K sets of temperature compensated expressions:
k is K which is less than or equal to n/3; n is a natural number of 3 or more;
the temperature compensation parameter matrix P at the first power factor is stored to a non-volatile storage medium.
S14b, at the time of measurement, the measured temperature t m Measured value R of measured data m According to temperature t m Find the corresponding curve delta j (t), j is more than or equal to 1 and less than or equal to k, so that the temperature t can be calculated m A first precision compensation value delta j (t m ) The compensated metering data value is V m =R m +Δδ j (t m )。
According to one aspect of the application, the step S22 specifically includes:
s22a, the temperature compensation range is-40 ℃ to-70 ℃, n temperature compensation points are selected in the temperature range and respectively recorded as the temperature t i I=1, 2, ·n, the theoretical value of the metering data is set to V; n is a natural number;
s22b, adjusting the temperature of the temperature box to be respectively at the temperature t i Measuring at the position to obtain actual metering data R at different temperatures i A second accuracy compensation value deltay for each temperature point i =V-R i
S22c, constructing i data pairs (t i ,Δy i ) Determining a straight line through 2 points, and determining a straight line equation y (t) =ct+d by adopting two adjacent data pairs; c. d is the coefficient of the equation.
According to one aspect of the application, the step S24 specifically includes:
s24a, obtaining i-1 straight lines through the calculation, wherein c k And d k For the parameter of the kth straight line, the temperature compensation parameter matrix is denoted as Q:
, k=1,2,...,i-1;
then the i-1 set of temperature compensated expressions are obtained:
, k=1,2,...,i-1;
storing a temperature compensation parameter matrix Q at a second power factor to a non-volatile storage medium;
s24b, at the time of measurement, the measured temperature t m Measured value R of measured data m According to temperature t m Find the corresponding straight line y j (t), j is more than or equal to 1 and less than or equal to k, so that the temperature t can be calculated m A second precision compensation value deltay at j (t m ) The compensated metering data value is V m =R m +Δy j (t m )。
According to one aspect of the application, further comprising step S3:
s31, reading parameters of at least two fitting straight lines in first time and second time which are discontinuous in time, and calculating the difference of precision compensation values of temperature points in two working preset time periods based on the fitting straight lines to obtain an overall precision compensation value;
s32, reading a constructed metering equipment drift model, calculating an accuracy compensation value caused by metering equipment material drift by taking a parameter of a fitting straight line in a first time as an initial value and taking a time difference in two time periods as drift time, and recording the accuracy compensation value as a material compensation value;
s33, calculating the difference between the overall precision compensation value and the material compensation value to obtain an environment compensation value;
and step S34, reducing the distance between the first time and the second time by adopting a random sliding window method, and calculating the environment compensation values one by one to obtain the environment compensation points of the metering equipment.
According to one aspect of the application, the method further comprises the step S35,
According to the steps S31 to S34, obtaining each environment compensation point, dividing a fitting starting point according to each environment compensation point to form a preset number of fitting intervals, carrying out sectional fitting and temperature compensation on each fitting interval, and constructing a sectional fitting curve with each fitting interval.
According to another aspect of the present application, there is provided a metering precision temperature compensation system based on an intelligent fusion terminal, including:
at least one processor; and
a memory communicatively coupled to at least one of the processors; wherein, the liquid crystal display device comprises a liquid crystal display device,
the memory stores instructions executable by the processor, the instructions being for execution by the processor to implement the metering accuracy temperature compensation method based on the intelligent fusion terminal according to any one of the above technical schemes.
Compared with the prior art, the application has the following beneficial effects. 1. Compared with the traditional single-curve method, the fitting algorithm of the sectional curve method is simpler, the sectional curves are all 2-time curves, the higher-order curves with more than 3 times cannot appear, and the compensation curve with the minimum error can be obtained in each temperature interval due to the characteristic of the section.
2. When the second power factor is the second power factor, the piecewise trapezoidal method is adopted, the function of the piecewise trapezoidal method is a straight line, the algorithm is simple, the number of the used compensation points is small in actual operation, the efficiency is high, the compensation precision can be dynamically increased by increasing the measurement compensation points, and the expandability is good.
3. By means of time-division fitting, fitting accuracy is improved, and compensation data processing difficulty is reduced.
Drawings
Fig. 1 is a thermal compensation flow of power factor 1.0 according to an embodiment of the application.
Fig. 2 is a thermal compensation process of 0.5L power factor according to an embodiment of the present application.
FIG. 3 is a schematic diagram of a segment curve according to an embodiment of the present application.
FIG. 4 is a schematic diagram of a segmented trapezoid in accordance with an embodiment of the present application.
Detailed Description
The electric energy metering of the intelligent fusion terminal is to collect alternating current analog quantity, and temperature compensation is needed to be carried out on metering results in order to ensure the precision of the metering results under different working temperatures due to certain temperature drift of the characteristics of elements such as metering chips. According to the applicant's studies, drift phenomena occur due to a number of factors, including material fatigue, temperature drift and environmental parameter drift. Variations in circuit dynamic parameters, such as supply voltage fluctuations, semiconductor parameter variations, and component aging, can also cause drift to occur. It should be noted that the above factors may also generate a superposition effect in some scenarios, such as parameter variation caused by material drift, and may further affect the variation of temperature drift.
For temperature drift compensation, the prior art generally provides compensation values by constructing a reference model, then calculating current parameter values, and inputting the reference model. Some of the techniques are realized by constructing a temperature drift calculation formula, some of the techniques are realized by an interpolation model, the temperature drift formula is a complex formula containing an index and an integral, and the calculation is complex; there are also higher order equations, which are also computationally complex. In general, there are two methods of hardware compensation and software compensation. However, the existing method also has the problems of relatively poor mobility, relatively large operand, relatively occupied resources and the like.
In the power industry, the compensation of the metering precision is to be respectively compensated when the power factor is 1.0 and the power factor is 0.5L, and the power factor is 1.0 is compensated, and then the temperature compensation with the power factor of 0.5L is carried out on the basis, wherein the specific steps are described in each embodiment below.
According to one aspect of the application, a metering precision temperature compensation method based on an intelligent fusion terminal performs the following steps for each metering device working for a predetermined time:
s1, adjusting a standard three-phase power source to a preset first power factor, acquiring corresponding data in preset temperature environments, respectively performing piecewise curve fitting, and storing parameters of each section of fitting curve into a memory;
s2, adjusting the standard three-phase power source to a preset second power factor, acquiring corresponding data in the preset temperature environments, obtaining corresponding fitting straight lines, and storing parameters of the obtained fitting straight lines into a memory.
In this embodiment, the working time of the metering device is classified, for example, the working time is 100 hours, 500 hours, 1000 hours, 5000 hours, and the like, and for the calculated amount device in each time, a plurality of groups are selected to perform temperature compensation test, so as to obtain a temperature compensation curve. The fitting between the stages is respectively carried out according to two working conditions of each metering device working for a preset time, and through the fitting between the stages, the adoption of an exponential function or a higher order function as a fitting curve is avoided, so that the calculated amount is greatly reduced, and meanwhile, the fitting precision is ensured. And according to fitting conditions in different working time periods, the piecewise fitting parameters of the metering equipment along with time can be constructed. Such as 1000 hours of operation, 5000 hours of operation. How the working time is divided so as to balance the data throughput and the fitting accuracy will be described later. It should be noted that the first power factor and the second power factor are preset values given by those skilled in the art according to circumstances.
In summary, the advantages of this embodiment are: by carrying out temperature compensation on the metering equipment, the influence of temperature on the metering precision can be effectively eliminated, and the precision and stability of the metering equipment are improved; the intelligent fusion terminal is adopted to collect and process data, so that automatic operation can be realized, and manual intervention and errors are reduced; the method is suitable for various metering devices, and can be customized according to the needs, so as to meet the requirements in different scenes; by adopting the technical means of piecewise curve fitting, memory storage parameters and the like, the reliability and the accuracy of data processing and storage can be ensured. The scheme has been verified in practical application and achieves good effect. For example, in the power industry, after the temperature compensation is performed on the electric energy meter by adopting the scheme, the measurement accuracy and stability of the electric energy meter can be greatly improved.
According to one aspect of the present application, the step S1 is further:
s11, adjusting the temperature of a temperature box, and reading corresponding metering data in preset temperature environments;
s12, calculating the metering data to obtain corresponding data pairs, and performing quadratic curve fitting based on at least three continuous data pairs;
s13, calculating compensated metering data at each temperature by using the fitted quadratic curve, comparing the compensated metering data with theoretical values of the metering data to obtain corresponding errors, judging whether the errors are in a maximum operation error range, if so, conforming the fitted curve to the standard, and if so, not conforming the fitted curve to the standard; then, starting from the temperature, re-selecting successive at least three data pairs for new fitting;
s14, carrying out segment fitting on the curves meeting the standard at each temperature, determining parameters of each segment curve, listing the parameters into a matrix, and storing the parameters into a ferroelectric memory.
In this embodiment, a fitting curve is constructed for the first power factor condition, and the specific procedure is as above. Specifically, for the power factor, a plurality of temperature points are set, measurement is performed to obtain data pairs, primary fitting is performed, for example, fitting is performed at a temperature between-40 ℃ and 70 ℃, a difference between detected data and fitted data in each interval is calculated, whether the detected data and the fitted data are within a preset error range or not is judged, segmentation is performed according to the error value, secondary fitting is performed again for each segment after segmentation, and therefore a quadratic curve of a preset number of segments is obtained. And judging whether the fitting numerical value of the quadratic curve on each segment and the standard deviation of the detection data belong to a threshold range, and if the deviation exceeds the range, carrying out segment fitting on the quadratic curve.
In summary, this embodiment has the following advantages: by performing secondary curve fitting and temperature compensation on the metering data, the influence of temperature on metering precision can be effectively eliminated, and the precision and stability of metering equipment are improved; the scheme adopts the technical means of quadratic curve fitting, piecewise fitting and the like, and can ensure the reliability and the accuracy of data processing and storage; flexible storage mode, convenient implementation, high read-write speed, strong durability and the like.
In the present application, the compensation value+the measurement value=the true value; thus, compensation value = true value-measured value;
the measured value is plotted 2 times against temperature, and the compensation value must be plotted 2 times against temperature because the true value uses y=0 or other constant. In particular to the figure.
According to one aspect of the present application, the step S2 is further:
s21, adjusting the temperature of a temperature box, and reading corresponding metering data in the preset temperature environments;
s22, calculating the metering data to obtain corresponding data pairs, and determining a straight line by using at least two data pairs;
s23, calculating compensated metering data at different temperatures by using the determined straight line, comparing the compensated metering data with a theoretical value of the metering data to obtain corresponding errors, judging whether the errors are in a maximum operation error range, if so, conforming the straight line to a standard, if so, not conforming the straight line to the standard, inserting a temperature compensation point at the temperature, and respectively determining two straight lines between the point and two points adjacent to the point before and after the temperature compensation;
s24, carrying out segment fitting on the straight lines meeting the standard at different temperatures, determining parameters of each segment straight line, and storing the parameters into a ferroelectric memory in a matrix.
In this embodiment, the implementation process is basically consistent with the first power factor, and it needs to be described that, when calculating the segments, not only the standard deviation of the detection value and the fitting value of each segment, but also the standard deviation of the detection value and the fitting value of the quadratic function in the segment needs to be calculated, then the integrated error of the segment points is calculated, and then the sequence is performed, or the endpoint value of the segment is adjusted.
In a word, the embodiment can effectively eliminate the influence of temperature on the metering precision, and improve the precision and stability of the metering equipment. After the temperature compensation is carried out on the electric energy meter by adopting the scheme, the measuring precision and stability of the electric energy meter can be greatly improved.
According to one aspect of the application, the step S12 specifically includes:
s12a, the temperature compensation range is-40 ℃ to-70 ℃, n temperature compensation points are selected in the temperature range and respectively recorded as the temperature t i I=1, 2, ·n, the theoretical value of the metering data is set to V; n is a natural number;
s12b, adjusting the temperature of the temperature box to be respectively at the temperature t i Measuring at the location to obtain actual metering data R at each (every) temperature i While the first accuracy compensation value delta of each temperature point i =V-R i
S12c, obtaining i data pairs (t i ,Δδ i ) Using a conic delta (t) =at for consecutive 3 data pairs 2 And carrying out fitting by +bt+c, wherein a, b and c are equation coefficients.
In another embodiment, step S12 may further be:
equally dividing the temperature compensation range into a plurality of temperature compensation points, adjusting a temperature box to each temperature compensation point, and measuring actual metering data at each temperature;
two end points and normal temperature points (20 or 25 ℃) are selected as fitting data, and a first quadratic curve is obtained;
calculating the difference between the actual metering data and the corresponding first quadratic curve fitting value, and obtaining a square value;
judging whether each temperature compensation point exceeds a threshold value based on the set threshold value, if so, dividing the temperature range into at least two temperature ranges according to the difference between the actual measurement data of each temperature compensation point and the fitting value of the first quadratic curve, or the change of the difference into a larger turning point or a smaller turning point;
re-fitting the divided temperature ranges to obtain a second quadratic curve and a third quadratic curve, continuously calculating the difference between the actual metering data and the corresponding fitting value of the first quadratic curve, and obtaining a square value; and judging whether each temperature compensation point exceeds the threshold value according to the set threshold value, if so, dividing the temperature range into at least two temperature ranges according to the difference square between the actual measurement data of each temperature compensation point and the fitting value of the second/third quadratic curve, or the turning point of which the difference square is enlarged or the turning point of which the difference square is lowered.
In practice, most devices follow the rule that the errors are relatively large in the low and high temperature regions, and thus require phasing, in other words from-40 ℃ to 25 ℃ (room temperature), 25 ℃ to 70 ℃, with different curve fits. In each section, the error is first increased, then decreased, then increased and then decreased, so that the section can be divided based on the decreased temperature point, and then each section is fitted, thereby improving the fitting precision of each section.
According to one aspect of the application, the step S14 specifically includes:
s14a, temperature t i Performing segment fitting, and respectively recording a of K groups of curve parameters obtained by all fitting k 、b k 、c k The temperature compensation parameter matrix is written as P:
,k∈K, K≤n/3;
the resulting K sets of temperature compensated expressions:
k is K which is less than or equal to n/3; n is a natural number of 3 or more;
the temperature compensation parameter matrix P at the first power factor is stored to a non-volatile storage medium.
S14b, at the time of measurement, the measured temperature t m Measured value R of measured data m According to temperature t m Find the corresponding curve delta j (t), j is more than or equal to 1 and less than or equal to k, so that the temperature t can be calculated m A first precision compensation value delta j (t m ) The compensated metering data value is V m =R mj (t m )。
According to one aspect of the application, the step S22 specifically includes:
s22a, the temperature compensation range is-40 ℃ to-70 ℃, n temperature compensation points are selected in the temperature range and respectively recorded as the temperature t i I=1, 2, ·n, the theoretical value of the metering data is set to V; n is a natural number;
s22b, adjusting the temperature of the temperature box to be t respectively i Measuring at the temperature to obtain actual metering data R at different temperatures i A second precision compensation value y for each temperature point i =V-R i
S22c, constructing i data pairs (t i ,Δy i ) Determining a straight line through 2 points, and determining a straight line equation y (t) =ct+d by adopting two adjacent data pairs; c. d is the coefficient of the equation.
According to one aspect of the application, the step S24 specifically includes:
s24a, obtaining i-1 straight lines through the calculation, wherein c k And d k For the parameter of the kth straight line, the temperature compensation parameter matrix is denoted as Q:
,k=1,2,...,i-1;
then the i-1 set of temperature compensated expressions are obtained:
, k=1,2,...,i-1;
storing a temperature compensation parameter matrix Q at a second power factor to a non-volatile storage medium;
s24b, at the time of measurement, the measured temperature t m Measured value R of measured data m According to temperature t m Find the corresponding straight line y j (t), j is more than or equal to 1 and less than or equal to k, so that the temperature t can be calculated m A second precision compensation value deltay at j (t m ) The compensated metering data value is V m =R m +Δy j (t m )。
In a further embodiment, the method further comprises the step S25,
Obtaining data of each temperature compensation point under the first power factor and the second power factor, calculating the square of the difference value of the fitting values of the actual metering data and the quadratic curve and the straight line under each section according to the section points, summing, judging whether the sum of the squares of the differences is smaller than a threshold value, and if not, adjusting the section points (similar to-25 ℃ and-5 ℃ and the like) to fit the quadratic curve and the straight line again, so that the sum of the difference between the fitting values of the actual metering data and the quadratic curve and the sum of the difference between the fitting values of the actual metering data and the straight line is minimum and smaller than the threshold value.
Since at different power factors the section dividing points are substantially identical, i.e. several section dividing points at a first power factor are identical or substantially identical to the section dividing points at a second power factor. Therefore, a step S0 may be added to perform fitting demarcation on the section demarcation points, so that in the subsequent step, each demarcation point data may be directly obtained, and then curve or line fitting may be directly performed.
Step S0a, calculating an arithmetic mean of the first power factor and the second power factor as a third power factor;
step S0b, adjusting the standard three power sources to a third power factor, respectively adjusting to a preset temperature point, and collecting corresponding data to obtain a correction data set;
step S0c, fitting a secondary curve to be detected by adopting an endpoint value and a normal temperature point value (for example, 25 ℃), and calculating a fitting value of the secondary curve for each temperature point;
s0d, respectively calculating the difference square of the sampling value and the fitting value of each temperature point, searching the interval point according to the change trend of the difference square, dividing the interval according to the interval point, and fitting the quadratic curve and the straight line one by one; and calculating the variance of the sampling value and the quadratic curve fitting value again to obtain a first variance, calculating the variance of the sampling value and the linear fitting value to obtain a second variance, obtaining the sum of the first variance and the second variance, and judging whether the sum is smaller than a preset value.
According to one aspect of the application, further comprising step S3:
and S31, reading parameters of at least two fitting straight lines in first time and second time which are discontinuous in time, and calculating the difference of the precision compensation values of the temperature points in two working preset time periods based on the fitting straight lines to obtain an overall precision compensation value.
And S32, reading the constructed metering equipment drift model, calculating an accuracy compensation value caused by the material drift of the metering equipment by taking the parameter of the fitting straight line in the first time as an initial value and taking the time difference in the two time periods as drift time, and recording the accuracy compensation value as a material compensation value.
S33, calculating the difference between the overall precision compensation value and the material compensation value to obtain an environment compensation value;
and step S34, reducing the distance between the first time and the second time according to a preset sequence, and calculating the environment compensation values one by one to obtain the environment compensation points of the metering equipment. In this step, a random sliding window method is used to reduce the distance between the first time and the second time.
Step S35, according to the steps S31 to S34, obtaining the environment compensation points, dividing the fitting starting points according to the environment compensation points to form a preset number of fitting intervals, carrying out sectional fitting and temperature compensation on each fitting interval, and constructing a sectional fitting curve with each fitting interval.
In this embodiment, in order to more accurately perform temperature compensation, and reduce fitting complexity, reduce data throughput, trace the factors generated by drift, and eliminate drift caused by relatively stable material deformation and drift effects of temperature superposition caused by material properties. In other words, the drift caused by deformation of the material can be calculated relatively stably, and after this influence is removed, the temperature drift can be calculated more accurately, thereby compensating. For example, a device, as the material parameter changes with time, has a relatively different value in two time periods differing by t due to an exponential change process of the material parameter, and part of the drift of the temperature is caused by the change of the material parameter, which can be calculated relatively accurately through a formula, and the other part is caused by the change of other factors caused by the change of the temperature, so that certain randomness and fluctuation exist. Thus by removing the relatively stable drift values, a more accurate calculation is possible.
For a further understanding of the present application, one embodiment of the present application will be described in detail. When the metering precision of the intelligent fusion terminal is subjected to temperature compensation, the temperature compensation is firstly performed under the condition that the power factor is 1.0, and then the temperature compensation under the condition that the power factor is 0.5L is performed based on the temperature compensation under the condition that the power factor is 1.0.
A temperature compensation step at a power factor of 1.0, as shown in fig. 1:
sa, adjusting a standard three-phase power source to enable the power factor to be 1.0, and enabling the theoretical value of metering data to be V.
Sb, at temperatures of-40 ℃, -25 ℃, -5 ℃,25 ℃,50 ℃,70 ℃ respectively, measured the measurement data values.
Sc and 6 pairs of data are obtained through measurement, as shown in figure 3, 3 points of-25 ℃ and-5 ℃ are used for making a curve of a normal temperature region, 3 points of-40 ℃ and-25 ℃ and-5 ℃ are used for making a curve of a low temperature region, 3 points of-5 ℃,25 ℃ and 50 ℃ are used for making a curve of a medium temperature region, and 3 points of 25 ℃,50 ℃ and 70 ℃ are used for making a curve of a high temperature region.
In this example, since the curve is fitted to every 3 adjacent temperature points, the maximum number of segment curves is already the number of the temperature points, so that it is no longer determined whether to add a curve equation by an error.
Sd, storing the obtained temperature compensation parameter matrix of the 4 curves into a ferroelectric memory.
The temperature compensation step at a power factor of 0.5L is shown in FIG. 2:
se, adjusting a standard three-phase power source to enable the power factor to be 0.5L, and enabling the theoretical value of metering data to be V.
Sf, measuring the measured data value at the temperature of minus 40 ℃, minus 25 ℃,50 ℃ and 70 ℃ respectively.
Sg, measured, 4 data pairs were obtained, and 2-point errors at-5 ℃ and 30 ℃ were considered to be 0, due to the basis of temperature compensation at a power factor of 1.0. As shown in FIG. 4, a straight line is formed between-40 ℃ and-25 ℃, a straight line is formed between-25 ℃ and-5 ℃, a straight line is formed between 30 ℃ and 50 ℃, a straight line is formed between 50 ℃ and 70 ℃, 4 straight line equations are formed in total, and in FIG. 4, a broken line at 60 ℃ indicates that if a large error at 60 ℃ is found, a temperature compensation point can be inserted at 60 ℃, and 2 straight lines are increased.
Sh, the obtained temperature compensation parameter matrix of 4 straight lines is stored in a ferroelectric memory.
The application uses the piecewise curve method when the power factor is 1.0L, guarantees the metering accuracy after compensation, when the power factor is 0.5L, because the basis when the power factor is 1.0L is already present, the application is based on the data of the power factor of 1.0L for fine adjustment, therefore uses the piecewise trapezoid method to carry out temperature compensation, thus guaranteeing the metering accuracy after temperature compensation, improving the efficiency of temperature compensation work, and further improving the metering accuracy by directly adding a temperature compensation point under the condition of not modifying an algorithm model. In short, the fitting is performed by adopting multi-section segmentation, and the fitting is performed by quadratic curve fitting without adopting complex curves. The calculation amount is small, the complexity is reduced, and the energy consumption is reduced. The adaptability is strong.
The application also provides a metering precision temperature compensation system based on the intelligent fusion terminal, which comprises the following steps:
at least one processor; and
a memory communicatively coupled to at least one of the processors; wherein, the liquid crystal display device comprises a liquid crystal display device,
the memory stores instructions executable by the processor, the instructions being for execution by the processor to implement the metering accuracy temperature compensation method based on the intelligent fusion terminal according to any one of the above technical schemes.
The preferred embodiments of the present application have been described in detail above, but the present application is not limited to the specific details of the above embodiments, and various equivalent changes can be made to the technical solution of the present application within the scope of the technical concept of the present application, and all the equivalent changes belong to the protection scope of the present application.

Claims (7)

1. The metering precision temperature compensation method based on the intelligent fusion terminal is characterized in that the following steps are executed for each metering device working for a preset time:
s1, adjusting a standard three-phase power source to a preset first power factor, acquiring corresponding data in preset temperature environments, respectively performing piecewise curve fitting, and storing parameters of each section of fitting curve into a memory;
s2, based on temperature compensation under the condition of the first power factor, adjusting a standard three-phase power source to a preset second power factor, acquiring corresponding data under each preset temperature environment, acquiring corresponding fitting straight lines, and storing parameters of each section of fitting straight lines into a memory;
the step S1 is further:
s11, adjusting the temperature of a temperature box, and reading corresponding metering data in preset temperature environments;
s12, calculating the metering data to obtain corresponding data pairs, and performing quadratic curve fitting based on at least three continuous data pairs;
s13, calculating compensated metering data at each temperature by using the fitted quadratic curve, comparing the compensated metering data with theoretical values of the metering data to obtain corresponding errors, judging whether the errors are in a maximum operation error range, if so, conforming the fitted curve to the standard, and if so, not conforming the fitted curve to the standard; then, starting from the temperature, re-selecting successive at least three data pairs for new fitting;
s14, carrying out segment fitting on the curves meeting the standard at each temperature, determining parameters of each segment curve, listing the parameters into a matrix, and storing the matrix into a ferroelectric memory;
the step S2 is further:
s21, adjusting the temperature of a temperature box, and reading corresponding metering data in the preset temperature environments;
s22, calculating the metering data to obtain corresponding data pairs, and determining a straight line by using at least two data pairs;
s23, calculating compensated metering data at different temperatures by using the determined straight line, comparing the compensated metering data with a theoretical value of the metering data to obtain corresponding errors, judging whether the errors are in a maximum operation error range, if so, conforming the straight line to a standard, if so, not conforming the straight line to the standard, inserting a temperature compensation point at the temperature, and respectively determining two straight lines between the point and two points adjacent to the point before and after the temperature compensation;
s24, carrying out segment fitting on the straight lines meeting the standard at different temperatures, determining parameters of each segment straight line, and storing the parameters into a ferroelectric memory in a matrix;
step S3:
s31, reading parameters of at least two fitting straight lines in first time and second time which are discontinuous in time, and calculating the difference of precision compensation values of temperature points in two working preset time periods based on the fitting straight lines to obtain an overall precision compensation value;
s32, reading a constructed metering equipment drift model, calculating an accuracy compensation value caused by metering equipment material drift by taking a parameter of a fitting straight line in a first time as an initial value and taking a time difference in two time periods as drift time, and recording the accuracy compensation value as a material compensation value;
s33, calculating the difference between the overall precision compensation value and the material compensation value to obtain an environment compensation value;
and step S34, reducing the distance between the first time and the second time by adopting a random sliding window method, and calculating the environment compensation values one by one to obtain the environment compensation points of the metering equipment.
2. The metering precision temperature compensation method based on the intelligent fusion terminal according to claim 1, wherein the specific steps of S12 are as follows:
s12a, the temperature compensation range is-40 ℃ to-70 ℃, n temperature compensation points are selected in the temperature range and respectively recorded as the temperature t i I=1, 2, ·n, the theoretical value of the metering data is set to V; n is a natural number;
s12b, adjusting the temperature of the temperature box to be respectively at the temperature t i Measuring at the position to obtain actual metering data R at different temperatures i A first accuracy compensation value delta for each temperature point i =V-R i
S12c, obtaining i data pairs (t i ,Δδ i ) Using a conic delta (t) =at for consecutive 3 data pairs 2 And carrying out fitting by +bt+c, wherein a, b and c are equation coefficients.
3. The metering precision temperature compensation method based on the intelligent fusion terminal according to claim 2, wherein the specific steps of S14 are as follows:
s14a, temperature t i Performing segment fitting, and respectively recording a of K groups of curve parameters obtained by all fitting k 、b k 、c k The temperature compensation parameter matrix is written as P:
,k∈K, K≤n/3;
the resulting K sets of temperature compensated expressions:
k is K which is less than or equal to n/3; n is a natural number of 3 or more;
storing a temperature compensation parameter matrix P at a first power factor to a non-volatile storage medium;
s14b, at the time of measurement, the measured temperature t m Measured value R of measured data m According to temperature t m Find the corresponding curve delta j (t), j is more than or equal to 1 and less than or equal to k, so that the temperature t can be calculated m A first precision compensation value delta j (t m ) The compensated metering data value is V m =R m +Δδ j (t m )。
4. The metering precision temperature compensation method based on the intelligent fusion terminal according to claim 1, wherein the specific steps of S22 are as follows:
s22a, the temperature compensation range is-40 ℃ to-70 ℃, n temperature compensation points are selected in the temperature range and respectively recorded as the temperature t i I=1, 2, ·n, the theoretical value of the metering data is set to V; n is a natural number;
s22b, adjusting the temperature of the temperature box to be respectively at the temperature t i Measuring at the position to obtain actual metering data R at different temperatures i A second accuracy compensation value deltay for each temperature point i =V-R i
S22c, constructing i data pairs (t i ,Δy i ) Determining a straight line through 2 points, and determining a straight line equation y (t) =ct+d by adopting two adjacent data pairs; c. d is the coefficient of the equation.
5. The metering precision temperature compensation method based on the intelligent fusion terminal according to claim 4, wherein the specific step of S24 is as follows:
s24a, obtaining i-1 straight lines through the calculation, wherein c k And d k As a parameter of the kth line, temperature compensationThe parameter matrix is denoted Q:
, k=1,2,...,i-1;
then the i-1 set of temperature compensated expressions are obtained:
, k=1,2,...,i-1;
storing a temperature compensation parameter matrix Q at a second power factor to a non-volatile storage medium;
s24b, at the time of measurement, the measured temperature t m Measured value R of measured data m According to temperature t m Find the corresponding straight line y j (t), j is more than or equal to 1 and less than or equal to k, so that the temperature t can be calculated m A second precision compensation value deltay at j (t m ) The compensated metering data value is V m =R m +Δy j (t m )。
6. The metering precision temperature compensation method based on the intelligent fusion terminal according to claim 1, further comprising the steps of S35,
According to the steps S31 to S34, obtaining each environment compensation point, dividing a fitting starting point according to each environment compensation point to form a preset number of fitting intervals, carrying out sectional fitting and temperature compensation on each fitting interval, and constructing a sectional fitting curve with each fitting interval.
7. Metering accuracy temperature compensation system based on intelligent fusion terminal, its characterized in that includes:
at least one processor; and
a memory communicatively coupled to at least one of the processors; wherein, the liquid crystal display device comprises a liquid crystal display device,
the memory stores instructions executable by the processor for execution by the processor to implement the intelligent fusion terminal-based metering precision temperature compensation method of any one of claims 1-6.
CN202310609163.9A 2023-05-29 2023-05-29 Metering precision temperature compensation method and system based on intelligent fusion terminal Active CN116338564B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202310609163.9A CN116338564B (en) 2023-05-29 2023-05-29 Metering precision temperature compensation method and system based on intelligent fusion terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202310609163.9A CN116338564B (en) 2023-05-29 2023-05-29 Metering precision temperature compensation method and system based on intelligent fusion terminal

Publications (2)

Publication Number Publication Date
CN116338564A CN116338564A (en) 2023-06-27
CN116338564B true CN116338564B (en) 2023-08-22

Family

ID=86886204

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202310609163.9A Active CN116338564B (en) 2023-05-29 2023-05-29 Metering precision temperature compensation method and system based on intelligent fusion terminal

Country Status (1)

Country Link
CN (1) CN116338564B (en)

Citations (14)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
DE102009029906A1 (en) * 2008-06-20 2009-12-31 Suss Micro Tec Test Systeme Gmbh Method for determining electrical properties of electronic components and method for calibrating the measuring unit
KR20100058251A (en) * 2008-11-24 2010-06-03 한국전기연구원 A method for temperature compensation of digital power meter
KR20100078756A (en) * 2008-12-30 2010-07-08 주식회사 우진 Apparatus for compensating temperature drift using fitting method and the method thereof
CN103499803A (en) * 2013-09-09 2014-01-08 扬州市万泰电器厂有限公司 Method for improving precision of built-in real-time clock of electric energy meter MCU
CN104181214A (en) * 2014-08-21 2014-12-03 华南农业大学 Small-signal sectional fitting temperature compensation method of water quality sensor
CN104297716A (en) * 2014-09-29 2015-01-21 江阴长仪集团有限公司 Intelligent electric meter RTC calibrating method
CN104849523A (en) * 2015-05-15 2015-08-19 威胜集团有限公司 Single-phase watt-hour meter temperature compensation method
CN106505996A (en) * 2016-10-12 2017-03-15 河海大学 A kind of RTC chip high accuracy frequency bias compensation method of combination variable capacitance
CN108151932A (en) * 2017-12-25 2018-06-12 扬州电力设备修造厂有限公司 A kind of electric operator tests system temperature drift compensation method
CN108663650A (en) * 2018-04-23 2018-10-16 北京市计量检测科学研究院 Watt-hour meter's field test device and method
CN113009404A (en) * 2021-01-26 2021-06-22 江阴长仪集团有限公司 Method for calibrating direct-current even harmonic error and electric energy meter
CN114035142A (en) * 2021-04-16 2022-02-11 湖南师范大学 Electric energy meter error compensation method and system based on segmented Lagrange interpolation
CN114167343A (en) * 2021-12-03 2022-03-11 深圳友讯达科技股份有限公司 Smart electric meter crystal oscillator frequency adjusting method based on exhaustion
CN115372885A (en) * 2022-08-23 2022-11-22 宁波三星智能电气有限公司 Metering terminal precision correction method and device, electronic equipment and storage medium

Patent Citations (14)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
DE102009029906A1 (en) * 2008-06-20 2009-12-31 Suss Micro Tec Test Systeme Gmbh Method for determining electrical properties of electronic components and method for calibrating the measuring unit
KR20100058251A (en) * 2008-11-24 2010-06-03 한국전기연구원 A method for temperature compensation of digital power meter
KR20100078756A (en) * 2008-12-30 2010-07-08 주식회사 우진 Apparatus for compensating temperature drift using fitting method and the method thereof
CN103499803A (en) * 2013-09-09 2014-01-08 扬州市万泰电器厂有限公司 Method for improving precision of built-in real-time clock of electric energy meter MCU
CN104181214A (en) * 2014-08-21 2014-12-03 华南农业大学 Small-signal sectional fitting temperature compensation method of water quality sensor
CN104297716A (en) * 2014-09-29 2015-01-21 江阴长仪集团有限公司 Intelligent electric meter RTC calibrating method
CN104849523A (en) * 2015-05-15 2015-08-19 威胜集团有限公司 Single-phase watt-hour meter temperature compensation method
CN106505996A (en) * 2016-10-12 2017-03-15 河海大学 A kind of RTC chip high accuracy frequency bias compensation method of combination variable capacitance
CN108151932A (en) * 2017-12-25 2018-06-12 扬州电力设备修造厂有限公司 A kind of electric operator tests system temperature drift compensation method
CN108663650A (en) * 2018-04-23 2018-10-16 北京市计量检测科学研究院 Watt-hour meter's field test device and method
CN113009404A (en) * 2021-01-26 2021-06-22 江阴长仪集团有限公司 Method for calibrating direct-current even harmonic error and electric energy meter
CN114035142A (en) * 2021-04-16 2022-02-11 湖南师范大学 Electric energy meter error compensation method and system based on segmented Lagrange interpolation
CN114167343A (en) * 2021-12-03 2022-03-11 深圳友讯达科技股份有限公司 Smart electric meter crystal oscillator frequency adjusting method based on exhaustion
CN115372885A (en) * 2022-08-23 2022-11-22 宁波三星智能电气有限公司 Metering terminal precision correction method and device, electronic equipment and storage medium

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
全温度下智能电能表计量误差分析及温度补偿研究;王凯;《中国优秀硕士学位论文全文数据库 工程科技Ⅱ辑》(第02期);C042-2432 *

Also Published As

Publication number Publication date
CN116338564A (en) 2023-06-27

Similar Documents

Publication Publication Date Title
CN110967636B (en) Battery state of charge correction method, device and system and storage medium
US10527503B2 (en) Reference circuit for metrology system
CN107742885B (en) Power distribution network voltage power sensitivity estimation method based on regular matching pursuit
KR20190027609A (en) Apparatus and method for estimating state of charge for battery and method thereof
CN107271081B (en) Silicon piezoresistive pressure transmitter temperature compensation method and device based on two-stage least square fitting
CN110413032B (en) Load line compensation in power monitoring
CN110488092B (en) Method for measuring and compensating electric energy quality device
CN110568397B (en) Electric energy meter correction method and system based on MCU software
US9209913B2 (en) Temperature compensation method and apparatus for received signal strength indicator
CN116338564B (en) Metering precision temperature compensation method and system based on intelligent fusion terminal
CN106970328B (en) SOC estimation method and device
CN109683524B (en) Processing method for sampling and synchronizing sampling signals without sampling and holding
CN113504401B (en) Method, device and system for compensating diary time error of electric energy meter
CN102129062B (en) Electric energy small-signal measuring and calibrating method and device
CN111896802B (en) Frequency self-adaptive sampling method
JP2019039764A (en) Impedance estimating device
CN115372885A (en) Metering terminal precision correction method and device, electronic equipment and storage medium
US11035902B2 (en) Advanced fuel gauge
CN103076494B (en) Power consumption measuring device and method
CN117290171B (en) Memory chip testing equipment and method
CN112731266B (en) Correction method under nonstandard condition of field calibration of electric energy meter
CN108692741A (en) A kind of closed-loop fiber optic gyroscope constant multiplier fast and stable method and device
CN116430255B (en) Battery electric quantity self-adaptive display method, device, storage medium and system
CN109946552B (en) Single-phase electric meter and ground fault detection method thereof
CN116047340A (en) Fuel cell stack impedance measurement correction method and device and electronic equipment

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant